/* Fonts are self-hosted (SIL Open Font License): no third-party requests. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Dr. Agent — marketing site.
   One sans (Geist) for everything; a serif italic only where a person speaks. */

:root {
  --bg: #f7f6f2;
  --bg-2: #efede6;
  --surface: #ffffff;
  --ink: #0e1513;
  --ink-2: #4b5552;
  --ink-3: #7c8582;
  --line: #e4e1d8;
  --teal: #0f766e;
  --teal-2: #0b5a54;
  --red: #c2392d;
  --dark: #0c1110;
  --dark-2: #151c1a;
  --on-dark: #e9eeec;
  --on-dark-2: #9aa5a2;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans); letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, dl, dd, figure { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

/* ---------------------------------------------------------------- type */
.h1 { font-size: clamp(48px, 7.4vw, 96px); font-weight: 600; line-height: .96; letter-spacing: -.05em; }
.h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 600; line-height: 1.04; letter-spacing: -.04em; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; letter-spacing: -.012em; }
.quote { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.005em; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 10px;
  font: 500 15.5px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s;
}
.btn--sm { height: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 9px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #24302d; }
.btn--line { border-color: #cfcbc0; color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, .82);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 36px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.brand__mark { width: 28px; height: 28px; flex: none; border-radius: 7px; display: block; }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: 14.5px; color: var(--ink-2); }
.nav__links a { transition: color .15s; }
.nav__links a:hover { color: var(--ink); }
.nav__toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; position: relative; cursor: pointer; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease); }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { display: grid; padding: 4px 24px 20px; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------------------------------------------------------------- screenshots */
.screen {
  border-radius: 14px; overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 1px rgba(14, 21, 19, .1), 0 2px 4px rgba(14, 21, 19, .04), 0 34px 70px -30px rgba(14, 21, 19, .45);
}
.screen img { width: 100%; }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 0; overflow-x: clip; }
.hero__copy { max-width: 860px; }
.hero .lede { margin-top: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__stage { position: relative; margin-top: clamp(56px, 7vw, 88px); }
.screen--hero { transform-origin: 50% 0; }

/* ---------------------------------------------------------------- facts */
.facts { padding: clamp(88px, 10vw, 128px) 0 0; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.facts dt { font-size: 13.5px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.facts dd { font-size: 15px; color: var(--ink-2); line-height: 1.5; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(96px, 12vw, 160px) 0; }
.section__title { margin-bottom: clamp(48px, 6vw, 80px); }
.section--tint { background: var(--bg-2); }

/* how it works: alternating rows */
.row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.row + .row { margin-top: clamp(72px, 9vw, 128px); }
.row--flip { grid-template-columns: 7fr 5fr; }
.row--flip .row__copy { order: 2; }
.row__copy p { margin-top: 16px; color: var(--ink-2); max-width: 30em; }
.row__step {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 20px;
  border-radius: 50%; border: 1px solid #cfcbc0; font-size: 13px; font-weight: 500; color: var(--ink-2);
}

/* the call (dark) */
.section--dark { background: var(--dark); color: var(--on-dark); }
.call { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.call__intro { position: sticky; top: 112px; }
.call__intro p { margin-top: 20px; color: var(--on-dark-2); max-width: 26em; }
.lines li { padding: 28px 0; border-top: 1px solid rgba(233, 238, 236, .12); display: grid; gap: 10px; }
.lines li:last-child { border-bottom: 1px solid rgba(233, 238, 236, .12); }
.lines .quote { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; color: #fff; }
.lines span { font-size: 14.5px; color: var(--on-dark-2); }
.lines__patient .quote { color: #b9e0d9; }

/* safety */
.safety { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.safety__copy p { margin-top: 20px; color: var(--ink-2); max-width: 32em; }
.alert { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(194, 57, 45, .25), 0 30px 60px -30px rgba(194, 57, 45, .45); }
.alert__bar { display: flex; align-items: center; gap: 9px; padding: 11px 18px; background: var(--red); color: #fff; font-size: 13px; font-weight: 500; }
.alert__bar i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.3s ease-in-out infinite; }
.alert .quote { padding: 22px 20px 0; font-size: 26px; line-height: 1.25; }
.alert__said { margin: 18px 20px 20px; padding: 12px 14px; border-radius: 10px; background: #fbeae7; color: #8e2a20; font-size: 14.5px; }
.rules { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: clamp(40px, 5vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.rules dt { font-weight: 600; font-size: 16px; letter-spacing: -.015em; margin-bottom: 8px; }
.rules dd { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* product tour */
.product__head p { margin-top: 16px; color: var(--ink-2); }
.tabs { margin-top: 40px; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(14, 21, 19, .06); width: fit-content; max-width: 100%; }
.tabs__list button {
  border: 0; background: none; cursor: pointer; padding: 9px 16px; border-radius: 9px;
  font: 500 14.5px/1 var(--sans); color: var(--ink-2); letter-spacing: -.01em; transition: background .2s, color .2s;
}
.tabs__list button:hover { color: var(--ink); }
.tabs__list button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 21, 19, .1); }
.screen--tour { margin-top: 24px; }
.screen--tour img { transition: opacity .25s var(--ease); }
.screen--tour img.is-swapping { opacity: 0; }
.tabs__caption { margin-top: 16px; font-size: 15px; color: var(--ink-2); min-height: 1.6em; }
.more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid #dcd8cd; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.more strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* data */
.data { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 96px); }
.data__list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.data__list dt { font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.data__list dd { font-size: 15px; color: var(--ink-2); }

/* demo */
.demo-section { background: var(--dark); color: var(--on-dark); padding: clamp(96px, 12vw, 152px) 0; }
.demo-section__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.demo-section__lede { margin-top: 20px; color: var(--on-dark-2); font-size: 18px; max-width: 26em; }
.form { background: var(--surface); color: var(--ink); border-radius: 16px; padding: clamp(22px, 3vw, 32px); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; font-size: 13.5px; font-weight: 500; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.field--wide { grid-column: 1 / -1; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input {
  height: 46px; padding: 0 13px; border-radius: 9px; border: 1px solid #d6d2c8; background: var(--surface);
  font: 400 16px/1 var(--sans); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #a5aca9; }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, .15); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.form .btn { margin-top: 22px; }
.form__fine { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.form__status { margin-top: 8px; font-size: 14.5px; min-height: 1.3em; }
.form__status.is-error { color: var(--red); }
.form.is-sent .form__grid, .form.is-sent .btn, .form.is-sent .form__fine { display: none; }
.form.is-sent .form__status { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }

/* footer */
.footer { padding: 36px 0 44px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; font-size: 13.5px; color: var(--ink-3); }
.footer__inner p:first-of-type { flex: 1; min-width: 260px; }
.brand--small { color: var(--ink); font-size: 14.5px; }
.brand--small .brand__mark { width: 22px; height: 22px; }

/* 404 */
.notfound { min-height: 100vh; display: grid; align-items: center; padding: 64px 0; }
.notfound .wrap { display: grid; gap: 28px; justify-items: start; }

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes pulse { 50% { opacity: .3; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .rules, .more { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .row, .call, .safety, .data, .demo-section__grid { grid-template-columns: 1fr; }
  .row--flip .row__copy { order: 0; }
  .call__intro { position: static; }
}
@media (min-width: 901px) { .mobile-menu { display: none !important; } }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .h1 { font-size: 46px; }
  .facts__grid, .rules, .more, .data__list, .form__grid { grid-template-columns: 1fr; gap: 24px; }
  .tabs__list { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tabs__list button { flex: none; }
}

/* ---------------------------------------------------------------- audio player (the call) */
.player { margin-top: 32px; padding: 18px; border-radius: 14px; background: var(--dark-2); border: 1px solid rgba(233, 238, 236, .1); max-width: 420px; }
.player__langs { display: flex; flex-wrap: wrap; max-width: 100%; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(233, 238, 236, .06); width: fit-content; }
.player__lang { border: 0; background: none; color: var(--on-dark-2); font: 500 13.5px/1 var(--sans); padding: 8px 12px; border-radius: 8px; cursor: pointer; transition: background .2s, color .2s; }
.player__lang:hover { color: #fff; }
.player__lang[aria-pressed="true"] { background: rgba(233, 238, 236, .14); color: #fff; }
.player__bar { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.player__play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--dark); display: grid; place-items: center; cursor: pointer; transition: transform .15s var(--ease); }
.player__play:hover { transform: scale(1.05); }
.player__play svg { width: 20px; height: 20px; fill: currentColor; }
.player__play .i-pause, .player.is-playing .player__play .i-play { display: none; }
.player.is-playing .player__play .i-pause { display: block; }
.player__track { flex: 1; height: 6px; border-radius: 3px; background: rgba(233, 238, 236, .15); cursor: pointer; position: relative; }
.player__track i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: #7fd1c4; }
.player__time { flex: none; font: 500 12.5px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--on-dark-2); min-width: 78px; text-align: right; }
.player__note { margin-top: 14px; font-size: 12.5px; color: var(--on-dark-2); }

.lines__seek { all: unset; cursor: pointer; display: block; border-radius: 6px; }
.lines__seek:focus-visible { outline: 2px solid #7fd1c4; outline-offset: 4px; }
.lines li { transition: opacity .3s var(--ease); }
.lines.is-active li { opacity: .38; }
.lines.is-active li.is-current { opacity: 1; }
.lines li.is-current .quote { color: #fff; }
.lines__patient.is-current .quote { color: #b9e0d9; }
@media (max-width: 900px) { .player { max-width: none; } }

/* ---------------------------------------------------------------- footer links + legal pages */
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); }
.textlink { display: inline-block; margin-top: 18px; font-weight: 500; color: var(--teal); }
.textlink:hover { text-decoration: underline; text-underline-offset: 3px; }

.legal__cta { margin-left: auto; }
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); }
.legal__wrap { max-width: 760px; }
.legal__kicker { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.legal__lede { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 32px 0 8px; padding: 16px 0; border-block: 1px solid var(--line); font-size: 14.5px; }
.legal__toc a { color: var(--ink-2); }
.legal__toc a:hover { color: var(--ink); }
.legal h2 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; margin: 44px 0 12px; }
.legal h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a:not(.btn) { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.legal__facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.legal__facts > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.legal__facts dt { font-weight: 600; letter-spacing: -.01em; }
.legal__facts dd { color: var(--ink-2); line-height: 1.6; }
@media (max-width: 600px) { .legal__facts > div { grid-template-columns: 1fr; gap: 4px; } }


/* ---------------------------------------------------------------- hero film + motion */
.headline .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.headline .line > span { display: inline-block; transform: translateY(105%); animation: line-up 1s var(--ease) forwards; }
.headline .line:nth-child(2) > span { animation-delay: .09s; }
@keyframes line-up { to { transform: none; } }

.screen--hero { opacity: 0; transform: translateY(28px) scale(.975); animation: film-in 1.2s var(--ease) .25s forwards; }
.screen--hero img { display: block; width: 100%; height: auto; }
@keyframes film-in { to { opacity: 1; transform: none; } }

/* screenshots ease in as they arrive */
.row .screen, .screen--tour { transition: transform 1.1s var(--ease), box-shadow 1.1s var(--ease); }
.row.reveal:not(.is-in) .screen { transform: translateY(24px) scale(.97); }

/* scroll-linked depth where the browser supports it (progressive) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__stage { animation: hero-depth linear both; animation-timeline: view(); animation-range: exit 0% exit 60%; }
    @keyframes hero-depth { to { transform: scale(.95) translateY(-12px); opacity: .55; } }
    .lines li { animation: line-focus linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    @keyframes line-focus { from { opacity: .25; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .headline .line > span, .screen--hero { animation: none; transform: none; opacity: 1; }
  .row.reveal:not(.is-in) .screen { transform: none; }
}
