:root {
  --bg: #F6F8F2;
  --bg-tint: #EAF1E2;
  --ink: #153F2F;
  --ink-soft: #3E5546;
  --muted: #5E7064;
  --line: #D8E3D5;
  --brand: #295335;      /* the device's garden green */
  --brand-ink: #FFFFFF;
  --sun: #F2B33D;        /* matches the yellow case */
  --sun-soft: #FCE9C0;
  --card: #FFFFFF;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31,42,46,.06), 0 8px 28px rgba(31,42,46,.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h1 em { font-style: italic; color: var(--brand); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 100; }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .9em; }
.eyebrow--light { color: var(--sun); }
.big { font-size: 1.2rem; color: var(--ink-soft); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--brand); color: var(--brand-ink); text-decoration: none;
  font: 600 1rem/1 var(--sans); padding: 16px 26px; border-radius: 999px; border: 2px solid var(--brand);
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(41,83,53,.25); }
.btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: rgba(41,83,53,.06); box-shadow: none; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--full { width: 100%; background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn--full:hover { box-shadow: 0 6px 18px rgba(242,179,61,.35); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,247,240,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__logo { height: 30px; width: auto; }
.brand__name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.nav__links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 88px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 28px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; }
.hero__trust li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-right: 8px; vertical-align: middle; }
.hero__media { position: relative; }
.hero__media::before {
  content: ""; position: absolute; inset: 6% -10% -6% 8%; z-index: -1;
  background: radial-gradient(closest-side, var(--sun-soft), transparent 75%);
}
.bubble {
  position: absolute; background: var(--card); box-shadow: var(--shadow); border-radius: 16px;
  padding: 12px 16px; font-size: .92rem; max-width: 250px; line-height: 1.4;
  animation: float 6s ease-in-out infinite;
}
.bubble--a { left: -28px; top: 14%; font-family: var(--serif); font-style: italic; border-bottom-left-radius: 4px; }
.bubble--b { right: -12px; bottom: 12%; color: var(--brand); font-weight: 500; border-bottom-right-radius: 4px; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Device images + fallbacks */
.device { margin: 0; border-radius: 24px; overflow: hidden; background: var(--bg-tint); box-shadow: var(--shadow); }
.device img { width: 100%; height: 100%; object-fit: cover; }
.device--hero { aspect-ratio: auto; }
.device--cutout { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.device--cutout img { height: auto; object-fit: contain; filter: drop-shadow(0 24px 36px rgba(31,42,46,.22)) drop-shadow(0 4px 8px rgba(31,42,46,.12)); }
.device--hero img { max-width: 88%; margin: 0 auto; }
.device.is-missing {
  display: grid; place-items: center; text-align: center; padding: 24px;
  background: repeating-linear-gradient(135deg, var(--sun-soft) 0 14px, #FFF4DA 14px 28px);
  color: #8A6418; font-size: .9rem; font-weight: 500;
}
.device.is-missing img { display: none; }
.device.is-missing::after { content: attr(data-label); }

/* Bands & sections */
.band { background: var(--brand); color: #EAF2F1; padding: 72px 0; }
.band h2 { color: #fff; }
.band .big { color: #CFE0DE; margin: 0; }
.section { padding: 96px 0; }
.section--tint { background: var(--bg-tint); }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.steps__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun-soft); color: #8A6418; font-family: var(--serif); font-weight: 600; margin-bottom: 16px; }
.steps p { color: var(--ink-soft); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.feature p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.feature__icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(30,90,87,.08); display: grid; place-items: center; margin-bottom: 18px; }
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--rev .split__copy { order: 0; }
.devices { position: relative; padding: 8% 4% 6%; background: radial-gradient(closest-side, var(--sun-soft), transparent 80%); }
.device--a { width: 78%; }
.device--b { position: absolute; right: 0; bottom: 0; width: 40%; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sun-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%238A6418' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.ticks--light li { color: #CFE0DE; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-top: 4px solid var(--sun); }
.card p { color: var(--ink-soft); margin: 0; }

.never { background: var(--card); border-radius: var(--radius); padding: 34px; border: 1px solid var(--line); }
.never ul { margin: 0; padding: 0; list-style: none; }
.never li { padding: 12px 0 12px 34px; border-top: 1px solid var(--line); position: relative; color: var(--ink-soft); }
.never li:first-child { border-top: 0; }
.never li::before { content: "×"; position: absolute; left: 4px; top: 8px; font-size: 1.4rem; color: #B5523B; font-weight: 600; }

.backers { padding: 40px 0 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.backers__label { text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.backers__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; font-weight: 600; color: var(--ink-soft); }
.backers__list span { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 4px; }

/* Clinical team */
.sub { color: var(--ink-soft); max-width: 40em; margin: 0 auto; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; max-width: 920px; margin-left: auto; margin-right: auto; }
.doc { text-align: center; background: var(--card); border-radius: var(--radius); padding: 28px 20px; box-shadow: var(--shadow); }
.doc h3 { font-size: 1.08rem; margin: 0 0 6px; }
.doc__photo {
  position: relative; width: 132px; height: 132px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden;
  background: var(--sun-soft); box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--sun-soft);
}
.doc__photo img { width: 100%; height: 100%; object-fit: cover; }
.doc__photo.no-photo img { display: none; }
.doc__photo.no-photo::after {
  content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 2.4rem; color: var(--brand);
}
.doc__role { color: var(--brand); font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
.doc__bio { color: var(--muted); font-size: .88rem; margin: 0; line-height: 1.45; }

/* Join */
.join { background: var(--brand); color: #EAF2F1; }
.join h2 { color: #fff; }
.join__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.join__copy p { color: #CFE0DE; font-size: 1.1rem; }
.form { background: var(--card); color: var(--ink); border-radius: 22px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.form__row { margin-bottom: 16px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form .opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  display: block; width: 100%; padding: 12px 14px; font: 16px/1.4 var(--sans); color: var(--ink);
  background: #FFFCF7; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30,90,87,.15); }
.form .is-invalid { border-color: #B5523B; }
.form__fine { font-size: .82rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form__status { margin: 10px 0 0; font-size: .95rem; text-align: center; min-height: 1.2em; }
.form__status.is-error { color: #B5523B; }
.form__done { text-align: center; padding: 36px 8px; }
.form__done h3 { font-size: 1.6rem; }
.form__done p { color: var(--ink-soft); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* FAQ */
.faq { margin-top: 36px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 12px; margin: 0; }

/* Footer */
.footer { padding: 48px 0 32px; background: var(--bg-tint); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.footer nav a:hover { color: var(--ink); }
.footer__small { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.footer__fine { color: var(--muted); font-size: .8rem; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* Simple content page */
.page { padding: 64px 0 96px; }
.page h2 { font-size: 1.4rem; margin-top: 1.6em; }
.page p, .page li { color: var(--ink-soft); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }


/* Hero photo: the device at a real kitchen table */
.device--photo { border-radius: 28px; box-shadow: 0 30px 60px -24px rgba(21,63,47,.45); background: var(--bg-tint); }
.device--photo img { aspect-ratio: 1672 / 941; height: auto; }
.hero__media::before { display: none; }

/* Hear it: real recordings from the device */
.section--hear { background: var(--card); }
.demos { max-width: 920px; margin: 36px auto 0; }
.demos__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.demos__tabs button { font: 600 .95rem/1 var(--sans); padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.demos__tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.demos__tabs button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.demos__screen { margin: 0; padding: 7px; border-radius: 26px; background: #1d2327; box-shadow: 0 30px 60px -24px rgba(21,63,47,.45); }
.demos__screen video { display: block; width: 100%; aspect-ratio: 1180 / 820; border-radius: 20px; background: #F3F6EE; }
.demos__caption { text-align: center; color: var(--ink-soft); margin: 18px auto 0; max-width: 40em; }

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

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .split, .join__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 32px; }
  .hero__media { max-width: 520px; margin: 0 auto; width: 100%; }
  .features, .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .split--rev .split__copy { order: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav__links { display: none; }
  .section { padding: 64px 0; }
  .band { padding: 56px 0; }
  .features, .cards { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; gap: 14px; }
  .doc { display: grid; grid-template-columns: 88px 1fr; column-gap: 18px; text-align: left; align-items: center; padding: 18px; }
  .doc__photo { width: 88px; height: 88px; margin: 0; grid-row: span 3; }
  .doc h3 { font-size: 1rem; }
  .form { padding: 22px; }
  .form__row--2 { grid-template-columns: 1fr; }
  .bubble { font-size: .82rem; max-width: 190px; }
  .hero__media { margin: 24px 0 28px; }
  .bubble--a { left: auto; right: 0; top: -30px; }
  .bubble--b { right: auto; left: 0; bottom: -30px; }
  .hero__cta .btn { flex: 1 1 auto; }
}
