:root {
  --bg: #f3f8f8; --surface: #ffffff; --ink: #0f2a33; --muted: #5a6f76; --line: #dbe6e8;
  --brand: #0e8a7d; --brand-dark: #0a6b61; --brand-ink: #ffffff; --brand-soft: #e2f4f1;
  --navy: #0f2a33; --ok: #1e7f4f; --warn: #a86300; --bad: #b3261e;
  --radius: 18px; --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 60px -36px rgba(15, 42, 51, 0.45);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0.2em 0 0.6em; }
h2 { font-size: 1.15rem; margin: 0 0 0.85em; }
h3 { font-size: 1.05rem; margin: 0 0 0.4em; }
::selection { background: var(--brand); color: #fff; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── Top strip + header ─────────────────────────────────── */
.strip { background: var(--navy); color: #cfe3e3; font-size: 0.82rem; }
.strip-inner { max-width: 1160px; margin: 0 auto; padding: 7px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.strip b { color: #fff; }
.strip .pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff6b5e; margin-right: 8px; animation: pulse 1.6s infinite; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.topbar.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(15, 42, 51, 0.5); }
.topbar-inner { max-width: 1160px; margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 1.3rem; line-height: 1; animation: beat 1.8s ease-in-out infinite; }
.topbar nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.topbar nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 99px; font-size: 0.95rem; transition: background 0.2s, color 0.2s; }
.topbar nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.topbar nav a.btn { color: var(--brand-ink); }
.topbar nav a.btn:hover { background: var(--brand-dark); color: var(--brand-ink); }
.inline { display: inline; margin: 0; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1080px; margin: 0 auto; padding: 36px 20px 64px; }
.container.wide { max-width: none; padding: 0; }
.section { max-width: 1160px; margin: 0 auto; padding: 72px 20px; }
.section-head { max-width: 620px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 0.4em; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.grid-2 > .card, .grid-3 > .card, .grid-4 > .card { margin-bottom: 0; }
.container > .grid-2, .container > .grid-3 { margin-bottom: 20px; }
.narrow { max-width: 460px; margin: 48px auto; padding: 32px; animation: rise 0.6s var(--ease) both; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.footer { background: var(--navy); color: #a9c1c4; font-size: 0.88rem; padding: 36px 20px; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer b { color: #fff; }
.footer p { margin: 4px 0; max-width: 46em; }

/* ── Home page ──────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #e6f5f2 0%, #f3f8f8 55%, #e9f1fa 100%); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(14, 138, 125, 0.22), transparent 68%); animation: drift 12s ease-in-out infinite alternate; }
.hero-inner { position: relative; max-width: 1160px; margin: 0 auto; padding: 72px 20px 84px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 0.45em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 0.88rem; color: var(--muted); }
.trust span::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 6px; }

.board { position: relative; background: var(--surface); border-radius: 26px; padding: 26px; box-shadow: 0 40px 80px -40px rgba(15, 42, 51, 0.55); border: 1px solid var(--line); animation: rise 1s var(--ease) 0.2s both, float 6s ease-in-out 1.2s infinite; }
.board-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.board-now { font-size: 4.2rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 14px 0 4px; font-variant-numeric: tabular-nums; color: var(--brand); }
.board-queue { display: flex; gap: 8px; margin: 18px 0 6px; }
.board-queue span { flex: 1; text-align: center; padding: 10px 0; border-radius: 12px; background: var(--bg); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.board-queue span.you { background: var(--brand); color: #fff; animation: beat 1.8s ease-in-out infinite; }
.ecg { width: 100%; height: 54px; margin-top: 10px; }
.ecg path { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 90 400; animation: ecg 2.4s linear infinite; }
.ecg path.ghost { stroke-opacity: 0.15; stroke-dasharray: none; animation: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; max-width: 1160px; margin: 0 auto; padding: 36px 20px; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.92rem; }

.dept { display: flex; flex-direction: column; gap: 6px; transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.dept:hover, .doc:hover { transform: translateY(-6px); border-color: var(--brand); }
.dept-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; transition: background 0.3s, color 0.3s; }
.dept:hover .dept-icon { background: var(--brand); color: #fff; }
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 20px; left: 24px; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--brand); }
.doc { display: flex; gap: 14px; align-items: center; transition: transform 0.35s var(--ease), border-color 0.3s; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.doc b { display: block; }
.cta-band { background: var(--brand); color: #fff; border-radius: 28px; padding: 44px 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: 0.85; }
.cta-band .btn { background: #fff; color: var(--brand-dark); margin: 0; }

/* Scroll reveal: only hides content when the script is running */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .stagger > .reveal:nth-child(2) { transition-delay: 0.07s; }
.js .stagger > .reveal:nth-child(3) { transition-delay: 0.14s; }
.js .stagger > .reveal:nth-child(4) { transition-delay: 0.21s; }
.js .stagger > .reveal:nth-child(5) { transition-delay: 0.28s; }
.js .stagger > .reveal:nth-child(6) { transition-delay: 0.35s; }
.js .stagger > .reveal:nth-child(n + 7) { transition-delay: 0.42s; }

/* ── Forms + buttons ────────────────────────────────────── */
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 0.95rem; }
input, textarea, select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 138, 125, 0.14); outline: none; }
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; accent-color: var(--brand); box-shadow: none; }
textarea { resize: vertical; }
.otp { font-size: 1.9rem; letter-spacing: 0.45em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; padding: 16px 0 16px 0.45em; }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 99px; padding: 12px 24px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; margin-top: 16px; transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; box-shadow: 0 14px 26px -16px rgba(14, 138, 125, 0.9); }
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.secondary:hover { border-color: var(--ink); background: var(--surface); }
.btn.small { padding: 8px 16px; margin: 0; }
.btn.full { width: 100%; text-align: center; }
.btn.flat { margin: 0; }
.linklike { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.topbar .linklike { padding: 8px 12px; text-decoration: none; color: var(--muted); }
.topbar .linklike:hover { color: var(--bad); }
.resend { margin-top: 16px; font-size: 0.9rem; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; background: var(--brand-soft); animation: rise 0.5s var(--ease) both; }
.flash.error { background: #fbe4e2; color: var(--bad); }
.flash.success { background: #e2f3ea; color: var(--ok); }
.flash-wrap { max-width: 1080px; margin: 0 auto; padding: 16px 20px 0; }
details { margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
summary { cursor: pointer; font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: 10px; }

/* ── App screens ────────────────────────────────────────── */
.page-head { margin-bottom: 24px; animation: rise 0.6s var(--ease) both; }
.page-head h1 { margin-bottom: 0.2em; }
.container > .card, .container > .grid-2, .container > .urgency, .container > form.card { animation: rise 0.7s var(--ease) 0.08s both; }
.row-link { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; transition: background 0.2s, padding 0.3s var(--ease); }
.row-link:hover { background: var(--brand-soft); padding-left: 16px; }
.pill { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #eef2f3; color: var(--muted); }
.pill.booked, .pill.routine { background: #e8eef9; color: #2c4f9e; }
.pill.checked_in, .pill.soon { background: #fff2dc; color: var(--warn); }
.pill.in_consultation, .pill.completed { background: #e2f3ea; color: var(--ok); }
.pill.cancelled, .pill.no_show, .pill.urgent, .pill.emergency { background: #fbe4e2; color: var(--bad); }
.tag { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); border-radius: 99px; padding: 5px 12px; margin: 0 6px 6px 0; font-size: 0.9rem; font-weight: 500; animation: pop 0.4s var(--ease) both; }
.tag:nth-child(2) { animation-delay: 0.05s; } .tag:nth-child(3) { animation-delay: 0.1s; } .tag:nth-child(4) { animation-delay: 0.15s; } .tag:nth-child(n + 5) { animation-delay: 0.2s; }
.urgency { border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; border: 1px solid var(--line); border-left-width: 6px; }
.urgency.routine { background: #e8eef9; border-color: #2c4f9e; }
.urgency.soon { background: #fff2dc; border-color: var(--warn); }
.urgency.urgent, .urgency.emergency { background: #fbe4e2; border-color: var(--bad); }
.condition { margin-bottom: 18px; }
.cond-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
meter.bar { width: 100%; height: 10px; border: 0; border-radius: 99px; background: var(--bg); overflow: hidden; transform-origin: left; animation: grow 1s var(--ease) 0.2s both; }
meter.bar::-webkit-meter-bar { background: var(--bg); border: 0; border-radius: 99px; height: 10px; }
meter.bar::-webkit-meter-optimum-value { background: var(--brand); border-radius: 99px; }
meter.bar::-moz-meter-bar { background: var(--brand); border-radius: 99px; }
.symptom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 12px; margin: 12px 0 4px; }
.check { font-weight: 400; margin: 0; display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.check:hover { background: var(--brand-soft); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { font-weight: 600; margin: 0; border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; display: flex; gap: 6px; align-items: center; cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.slot:hover { border-color: var(--brand); transform: translateY(-2px); }
.slot input { position: absolute; opacity: 0; }
.slot:has(input:checked) { border-color: var(--brand); background: var(--brand); color: #fff; }
.slot:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.inline-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.inline-form label { margin: 0 0 6px; }
.inline-form input { width: auto; }
.inline-form .btn { margin-top: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
tbody tr { transition: background 0.2s; }
tbody tr:hover { background: var(--bg); }
tr.serving, tr.serving:hover { background: #e2f3ea; }
.card:has(table) { overflow-x: auto; }
.live { border-color: var(--brand); }
.live .big { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--brand); }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-left: 6px; animation: pulse 1.6s infinite; }
.your-turn { border-color: var(--ok); background: #e2f3ea; animation: beat 1.4s ease-in-out 3; }

/* ── Sign-in front door ─────────────────────────────────── */
.auth { display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: calc(100vh - 220px); }
.auth-side { position: relative; overflow: hidden; background: linear-gradient(160deg, #0f2a33 0%, #0a4f49 100%); color: #d7ebe8; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-side > * { animation: rise 0.8s var(--ease) both; }
.auth-side h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 14em; }
.auth-side .eyebrow { color: #7fe0d2; }
.auth-list { list-style: none; padding: 0; margin: 12px 0 28px; display: grid; gap: 14px; max-width: 30em; }
.auth-list li { padding-left: 18px; border-left: 3px solid #7fe0d2; animation: rise 0.7s var(--ease) both; }
.auth-list li:nth-child(1) { animation-delay: 0.15s; }
.auth-list li:nth-child(2) { animation-delay: 0.25s; }
.auth-list li:nth-child(3) { animation-delay: 0.35s; }
.auth-list b { display: block; color: #fff; }
.auth-list span { font-size: 0.92rem; }
.auth-side .ecg { max-width: 420px; }
.auth-side .ecg path { stroke: #7fe0d2; }
.auth-form { display: grid; place-items: center; padding: 40px 20px; }
.auth-title { font-size: 1.8rem; margin-bottom: 0.3em; }
.auth-foot { margin: 18px 0 0; }
.card.flat { margin: 0; width: 100%; }

/* ── Home choices ───────────────────────────────────────── */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 28px; }
.choice { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s; animation: rise 0.7s var(--ease) both; }
.choice:nth-child(2) { animation-delay: 0.08s; }
.choice:nth-child(3) { animation-delay: 0.16s; }
.choice:hover { transform: translateY(-8px); border-color: var(--brand); }
.choice h2 { font-size: 1.35rem; margin: 6px 0 0; }
.choice p { margin: 0; flex: 1; }
.choice-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.choice-icon svg { width: 28px; height: 28px; }
.choice:hover .choice-icon { background: var(--brand); color: #fff; transform: rotate(-6deg) scale(1.06); }
.choice-go { font-weight: 600; color: var(--brand); margin-top: 8px; }

/* ── Consultation + tracking ────────────────────────────── */
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em; }
.upper { text-transform: uppercase; }
.center { text-align: center; }
.flat { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-row { display: grid; grid-template-columns: 1fr 140px; gap: 14px; }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 16px; transition: border-color 0.2s, background 0.2s; }
.drop:hover, .drop:focus-within { border-color: var(--brand); background: var(--brand-soft); }
.drop input { border: 0; padding: 0; background: none; box-shadow: none; }
.drop p { margin: 8px 0 0; }
.step-mini { display: flex; flex-direction: column; gap: 4px; box-shadow: none; }
.doctor-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.pick { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; font-weight: 400; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.pick:hover { border-color: var(--brand); transform: translateY(-2px); }
.pick input { position: absolute; opacity: 0; }
.pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(14, 138, 125, 0.18); }
.pick:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.pick b, .pick .small { display: block; }
.pick .pill { margin-left: auto; }
.pick .avatar { width: 42px; height: 42px; font-size: 0.85rem; }
.done-mark { width: 84px; height: 84px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; animation: pop 0.5s var(--ease) both; }
.done-mark svg { width: 42px; height: 42px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.5s ease 0.3s forwards; }
.code-big { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 2rem; font-weight: 700; letter-spacing: 0.12em; padding: 16px; margin: 18px 0 6px; border: 2px dashed var(--brand); border-radius: 16px; color: var(--brand-dark); background: var(--brand-soft); }
.track-form { display: flex; gap: 12px; align-items: center; }
.track-form input { font-size: 1.3rem; font-weight: 700; padding: 14px 18px; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 8px 0 26px; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: var(--line); }
.timeline li:first-child::before { display: none; }
.timeline .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); margin-bottom: 6px; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before, .timeline li.now::before { background: var(--brand); }
.timeline li.done .dot { background: var(--brand); border-color: var(--brand); }
.timeline li.now { color: var(--ink); }
.timeline li.now .dot { border-color: var(--brand); animation: beat 1.8s ease-in-out infinite; }
.grid-2.plain { gap: 28px; }
.media { width: 100%; max-height: 380px; border-radius: 14px; background: #0f2a33; object-fit: contain; }
.reply { margin-top: 20px; padding: 20px 22px; border-radius: 16px; background: var(--brand-soft); border-left: 6px solid var(--brand); animation: rise 0.6s var(--ease) both; }
.reply p { margin: 0 0 8px; white-space: pre-line; }
.pill.pending { background: #fff2dc; color: var(--warn); }
.pill.reviewed { background: #e8eef9; color: #2c4f9e; }
.pill.replied { background: #e2f3ea; color: var(--ok); }
@keyframes draw { to { stroke-dashoffset: 0; } }

@keyframes pulse { 50% { opacity: 0.3; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.08); } 28% { transform: scale(1); } 42% { transform: scale(1.05); } 56% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.15); } }
@keyframes ecg { from { stroke-dashoffset: 490; } to { stroke-dashoffset: 0; } }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 20px 56px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 40px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .track-form { flex-direction: column; align-items: stretch; }
  .section { padding: 52px 20px; }
  .topbar nav a:not(.btn) { padding: 6px 8px; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
