/* "Try it yourself": nine steps beside the phone. */
.try .hero h1 { max-width: 13ch; }
.fine-note { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 14px; max-width: 36em; }
.trysteps { list-style: none; margin-top: 40px; display: grid; gap: 8px; }
.trysteps > li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--radius-lg); background: var(--card); transition: opacity 0.25s ease, box-shadow 0.25s ease; scroll-margin-top: 96px; }
.trysteps .n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.trysteps .body { min-width: 0; flex: 1; }
.trysteps h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.trysteps p { color: #48484c; font-size: 15px; line-height: 1.5; margin-top: 4px; }
.trysteps .act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.trysteps .act:empty { display: none; }
.trysteps .btn { height: 42px; padding: 0 18px; font-size: 14px; border: 0; cursor: pointer; }
.trysteps .btn[disabled] { opacity: 0.45; cursor: default; }
.trysteps .btn.busy { opacity: 0.7; cursor: progress; }
.trysteps .btn.busy::before { content: ""; width: 13px; height: 13px; margin-right: 8px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.trysteps input[type="number"] { width: 92px; height: 42px; border-radius: 999px; border: 1px solid var(--line); padding: 0 14px; font: inherit; font-size: 14px; background: var(--soft); }
.trysteps .out { font-size: 13px; line-height: 1.6; color: #48484c; margin-top: 10px; overflow-wrap: anywhere; }
.trysteps .out:empty { display: none; }
.trysteps .out .line { display: block; }
.trysteps .out .err { color: #dc2626; }
.trysteps .out .ok { color: #15803d; font-weight: 600; }
.trysteps .out .bad { color: #dc2626; font-weight: 600; }
.trysteps .out a { color: inherit; }
.trysteps .out code { font-size: 12px; }
.trysteps .timer { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.trysteps > li.locked { opacity: 0.45; }
.trysteps > li.locked .act { display: none; }
.trysteps > li.ready { box-shadow: 0 0 0 2px var(--ink); }
.trysteps > li.ready .n { background: var(--ink); color: #fff; }
.trysteps > li.done .n { background: var(--green); color: #fff; font-size: 0; }
.trysteps > li.done .n::after { content: "✓"; font-size: 14px; }
.trysteps > li.done .act { display: none; }

.reset-row { margin-top: 18px; }
.linkish { color: var(--muted); font-size: 13px; text-decoration: underline; }

/* On a phone the steps come first; the phone mock-up follows them. */
@media (max-width: 900px) {
  .layout.try { grid-template-areas: "hero" "rest" "device"; }
  .layout.try .device { margin-top: 32px; }
  .layout.try .rest .foot { display: none; }
}
