/* Aurikal landing page
   Palette: Tympan Navy (primary), Auricle Rose (accent), Blush (surface), Live Mint (status). */
:root {
  --bg: #FFFFFF;
  --tint: #F3F5F9;
  --surface: #FFFFFF;
  --ink: #13315C;
  --text: #16223A;
  --muted: #56627C;
  --line: #DCE2EC;
  --rose: #EF6F6C;
  --rose-strong: #D9534F;
  --blush: #FDE8E6;
  --mint: #1FA897;
  --on-ink: #FFFFFF;
  --accent: var(--rose);
  --shadow: 0 24px 60px -24px rgba(19, 49, 92, .35);
  --f-display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1422; --tint: #111A2C; --surface: #152036; --ink: #A9C4F0; --text: #E7ECF5;
    --muted: #9AA6BE; --line: #26324C; --rose: #FF8A86; --rose-strong: #FF8A86; --blush: #3A2026;
    --mint: #4FD8C7; --on-ink: #0D1422; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); color: var(--text); margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rose-strong); }
.accent { color: var(--rose); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--f-body); text-decoration: none; cursor: pointer;
  padding: 15px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--rose-strong); color: #FFFFFF; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--ink); --accent: var(--rose); }
.brand-word { font: 600 22px/1 var(--f-display); letter-spacing: -.035em; color: var(--ink); }
.tld { color: var(--rose); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 8px; }

/* Hero */
.hero { padding-block: 72px 80px; background: radial-gradient(1200px 520px at 85% 0%, var(--blush), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 80px); font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.lead { font-size: 19px; color: var(--muted); max-width: 54ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.say { font-size: 14px; color: var(--muted); }
.say b { color: var(--text); font-weight: 600; }

.hero-visual { display: grid; gap: 10px; }
.device {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); padding: 20px; display: grid; gap: 16px;
}
.device-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.device-mark { width: 40px; height: 40px; flex: none; color: var(--ink); --accent: var(--rose); }
.device-title { display: grid; line-height: 1.35; min-width: 0; }
.device-title b { font-size: 15px; }
.device-title span { font-size: 13px; color: var(--muted); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--f-mono); color: var(--mint); white-space: nowrap; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.transcript { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.msg { border-radius: 16px; padding: 12px 14px; display: grid; gap: 4px; max-width: 88%; }
.msg .who { font: 500 11px var(--f-mono); letter-spacing: .04em; color: var(--muted); }
.msg p { font-size: 15px; line-height: 1.45; }
.msg .xl { color: var(--muted); font-size: 14px; border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 2px; }
.msg.clinician { background: var(--tint); justify-self: start; border-bottom-left-radius: 6px; }
.msg.patient { background: var(--blush); justify-self: end; border-bottom-right-radius: 6px; }
.wave { display: flex; gap: 5px; align-items: center; justify-content: center; height: 28px; }
.wave i { width: 5px; border-radius: 3px; background: var(--rose); height: 40%; animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s; } .wave i:nth-child(3) { animation-delay: .2s; }
.wave i:nth-child(4) { animation-delay: .3s; } .wave i:nth-child(5) { animation-delay: .4s; }
.wave i:nth-child(6) { animation-delay: .5s; } .wave i:nth-child(7) { animation-delay: .6s; }
@keyframes wave { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.visual-note { font: 400 12px var(--f-mono); color: var(--muted); text-align: center; }

/* Transcript entrance (starts visible; JS adds .play to animate) */
.transcript.play .msg { animation: rise .5s ease both; }
.transcript.play .msg:nth-child(2) { animation-delay: .6s; }
.transcript.play .msg:nth-child(3) { animation-delay: 1.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Language ribbon */
.ribbon { border-block: 1px solid var(--line); background: var(--tint); overflow: hidden; padding-block: 18px; }
.ribbon-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.ribbon ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 44px; padding-right: 44px; }
.ribbon li { font: 600 20px/1.2 var(--f-display); color: var(--ink); white-space: nowrap; opacity: .85; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding-block: 96px; }
.section-tint { background: var(--tint); }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 2px solid var(--ink); }
.step-n { font: 600 14px var(--f-mono); color: var(--rose-strong); }
.step h3 { font-size: 22px; }
.step p { color: var(--muted); }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.product h3 { font-size: 21px; color: var(--ink); }
.product h3 span { color: var(--rose); }
.product p { color: var(--muted); font-size: 16px; }

.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.who-card { display: grid; gap: 12px; align-content: start; min-width: 0; }
.who-card h3 { font-size: 15px; font-family: var(--f-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.who-card .quote { font: 600 24px/1.25 var(--f-display); color: var(--ink); letter-spacing: -.02em; }
.who-card p:last-child { color: var(--muted); }

.section-ink { background: #13315C; color: #FFFFFF; }
.section-ink h2 { color: #FFFFFF; font-size: clamp(30px, 4vw, 44px); }
.section-ink .eyebrow { color: #FFB3B0; }
.name-grid { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: center; }
.name-mark { width: 220px; height: 220px; color: #FFFFFF; --accent: #EF6F6C; }
.name-copy { display: grid; gap: 16px; min-width: 0; }
.name-copy p:last-child { font-size: 19px; color: #D6E0F0; max-width: 60ch; }
.name-copy b { color: #FFFFFF; }

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.demo-grid > * { min-width: 0; }
.demo-copy { display: grid; gap: 16px; }
.demo-copy h2 { font-size: clamp(30px, 4vw, 44px); color: var(--ink); }
.demo-copy p:last-child { color: var(--muted); font-size: 18px; }
.demo-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input {
  font: 16px var(--f-body); color: var(--text); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 35%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--rose-strong); }
.form-status { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-status.error { color: var(--rose-strong); }
.form-status.ok { color: var(--mint); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: grid; gap: 10px; }
.footer-line { font: 600 18px var(--f-display); color: var(--ink); }
.footer-small { font-size: 13px; color: var(--muted); max-width: 70ch; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .demo-grid { grid-template-columns: 1fr; gap: 44px; }
  .products { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 720px) {
  .hero { padding-block: 48px 56px; }
  .section { padding-block: 68px; }
  .steps, .who-grid, .products { grid-template-columns: 1fr; }
  .name-grid { grid-template-columns: 1fr; gap: 28px; }
  .name-mark { width: 120px; height: 120px; }
  .msg { max-width: 96%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Invitation-only sign-up */
.invite-note { margin: 0 0 12px; font-weight: 500; }
.invite-only { padding: 14px 16px; border: 1px solid var(--line, #DCE2EC); border-radius: 12px; background: var(--tint, #EAF0F8); }
.invite-only p { margin: 0 0 8px; }
.hero-note { margin: 10px 0 0; font-size: 14px; color: var(--muted, #5A6680); }
