/* Bedside by Tuesday. Tuesday Clinics colours: navy #091835, teal #317D87 / #2DD4BF, cream #F9F1E2. */
:root {
  --navy: #091835;
  --navy-2: #102036;
  --cream: #f9f1e2;
  --teal: #2dd4bf;
  --teal-deep: #0f766e;
  --bg: #f3f5f7;
  --surface: #ffffff;
  --band: #eaf0f4;
  --ink: #0a1220;
  --muted: #4d5a69;
  --line: #dde3e9;
  --link: #0f766e;
  --wrap: 1120px;
  --m: clamp(16px, 4vw, 40px);
  --gap: clamp(56px, 7vw, 96px);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220;
    --surface: #102036;
    --band: #0d1a2d;
    --ink: #f3f6fb;
    --muted: #a9b8cf;
    --line: #22344f;
    --link: #5eead4;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
img { max-width: 100%; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--m); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 9; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.draft { background: #fff3c4; color: #4a3500; font-size: 14px; padding: 8px 0; }
.todo { background: #ffe58a; color: #3d2c00; font-size: 0.82em; font-weight: 600; padding: 1px 6px; border-radius: 4px; }

.top { background: var(--navy); color: var(--cream); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 1.1rem; }
.brand b { font-weight: 700; }
.top nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.top nav a { color: #c7d2e0; text-decoration: none; font-size: 15px; }
.top nav a:hover { color: #fff; }

.hero { background: var(--navy); color: var(--cream); padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.eyebrow { color: var(--teal); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.hero h1 { color: #fff; }
.lede { font-size: 1.2rem; margin-top: 20px; color: #dbe3ee; max-width: 36ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.note { margin-top: 16px; color: #a9b8cf; font-size: 15px; }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--teal); color: var(--navy); font-weight: 700; text-decoration: none; }
.btn[aria-disabled="true"] { cursor: default; }
.btn-quiet { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }

.phone { justify-self: center; width: min(320px, 100%); }
.phone-screen { background: var(--bg); color: var(--ink); border: 10px solid #000; border-radius: 44px; overflow: hidden; box-shadow: 0 30px 60px rgb(0 0 0 / 35%); }
.p-bar { display: flex; align-items: center; gap: 8px; background: var(--navy-2); color: #fff; padding: 34px 16px 14px; font-size: 15px; }
.p-bar span { margin-left: auto; color: #c7d2e0; font-size: 13px; }
.p-list { list-style: none; margin: 0; padding: 10px; display: grid; gap: 8px; }
.p-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.p-list b { display: block; font-size: 13.5px; }
.p-list small { color: var(--muted); }
.p-foot { margin: 4px 10px 16px; padding: 12px; border-radius: 999px; background: var(--teal); color: var(--navy); font-weight: 700; font-size: 13px; text-align: center; }
.phone-cap { color: #a9b8cf; font-size: 13px; text-align: center; margin-top: 12px; }
.pill { flex: none; border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 600; }
.pill.green { background: #dcf2e4; color: #145732; }
.pill.amber { background: #fbeed3; color: #6e4300; }
.pill.blue { background: #e0eafa; color: #1c4a8a; }
.pill.teal { background: #d8f1ec; color: #0a4d42; }

.section { padding: var(--gap) 0; }
.band { background: var(--band); }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.lede-sm { margin-top: 14px; color: var(--muted); }

.steps { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--teal); font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal-deep); border-radius: 12px; padding: 16px 18px; }
.facts b { display: block; margin-bottom: 4px; }

.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); }
.price { font-size: 1.1rem; }
.price b { font-size: 3rem; letter-spacing: -0.02em; }
.plans { display: grid; gap: 4px; }
.save { display: inline-block; vertical-align: middle; margin-left: 6px; background: #e0eafa; color: #1c4a8a; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.trial { display: inline-block; margin-top: 6px; background: #d8f1ec; color: #0a4d42; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 14px; }
.price-card ul { margin: 20px 0 24px; padding-left: 20px; display: grid; gap: 6px; }
.fine { color: var(--muted); font-size: 13.5px; margin-top: 16px; }

.spec { margin: 0; display: grid; gap: 0; }
.spec div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }

.story { background: var(--navy); color: #dbe3ee; }
.story h2 { color: #fff; }
.story .lede-sm { color: #a9b8cf; }
.story-body { display: grid; gap: 16px; font-size: 1.05rem; }
.story-close { color: var(--cream); font-weight: 600; border-left: 3px solid var(--teal); padding-left: 16px; }

details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 10px; color: var(--muted); }
.narrow h2 { margin-bottom: 20px; }

.foot { background: var(--navy); color: #a9b8cf; padding: 40px 0; font-size: 14px; }
.foot .brand { color: var(--cream); margin-bottom: 16px; }
.foot p + p { margin-top: 8px; }

@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 820px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
}
.foot a { color: var(--cream); }
.pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 32px; }
.pages article { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 16px; padding: 22px; }
.pages p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 40px; margin-top: 28px; }
.extras p { color: var(--muted); }
.extras b { color: var(--ink); }

/* ---- Depth and rhythm ---- */
:root { --band: #e4ecf2; }
@media (prefers-color-scheme: dark) { :root { --band: #0f2038; } }
.hero { background: radial-gradient(900px 520px at 78% 30%, rgb(45 212 191 / 14%), transparent 70%), var(--navy); }
@media (min-width: 1000px) { .pages { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 560px) and (max-width: 999px) { .pages { grid-template-columns: repeat(2, 1fr); } }

/* ---- Phone screens ---- */
.stage { position: relative; height: 440px; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transition: opacity 0.45s ease; }
.scr .p-foot { margin-top: auto; }
.p-foot.stop { background: #e5484d; color: #fff; }
.p-list li.hot { border-color: var(--teal); box-shadow: 0 0 0 2px rgb(45 212 191 / 30%); }
.rec { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; font-weight: 700; font-size: 15px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; }
.wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 110px; margin-top: 24px; }
.wave i { width: 5px; height: 70px; border-radius: 3px; background: var(--teal-deep); transform: scaleY(0.35); }
.wave i:nth-child(3n) { transform: scaleY(0.8); }
.wave i:nth-child(4n) { transform: scaleY(0.55); }
.wave i:nth-child(5n) { transform: scaleY(1); }
.video { position: relative; margin: 10px 10px 0; height: 250px; border-radius: 18px; overflow: hidden; background: #dfe7ee; }
.video-main { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-self { position: absolute; right: 10px; bottom: 10px; width: 62px; height: 82px; object-fit: cover; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 4px 10px rgb(0 0 0 / 25%); }
.video-rec { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgb(9 24 53 / 78%); color: #fff; font-size: 12px; font-weight: 700; }
.rec-hint { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 28px 0; }
.letter { padding: 18px 18px 0; display: grid; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.label-card { margin: 16px 14px 6px; padding: 12px 14px; background: #fff; color: #111; border-radius: 8px; border: 1px dashed #9aa7b5; display: grid; gap: 2px; font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.label-card b { font-size: 14px; }
.fields, .items { list-style: none; margin: 0; padding: 8px 10px; display: grid; gap: 8px; }
.fields li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; position: relative; }
.fields small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.fields li::after { content: "✓"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--teal-deep); font-weight: 700; }
.items li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13.5px; }
.items b { min-width: 34px; }
.items li::after { content: ""; margin-left: auto; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); flex: none; }
.items li.on::after { content: "✓"; display: grid; place-items: center; background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; font-size: 13px; font-weight: 700; }
.items li.more { color: var(--muted); font-size: 12.5px; background: none; border-style: dashed; }
.items li.more::after { display: none; }
.portal { margin: 12px 10px 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; font-size: 13px; }
.portal small { font-weight: 700; font-size: 13.5px; }
.portal .search { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--bg); }
.portal em { font-style: normal; color: var(--muted); font-size: 12px; }

/* Hero: static fallback shows the drafted letter */
.hero-stage .scr:nth-child(2) { opacity: 1; }

/* Walkthrough: the phone shows the active step */
.tour-phone { display: none; }
.tour-stage[data-active="1"] .scr:nth-child(1),
.tour-stage[data-active="2"] .scr:nth-child(2),
.tour-stage[data-active="3"] .scr:nth-child(3),
.tour-stage[data-active="4"] .scr:nth-child(4),
.tour-stage[data-active="5"] .scr:nth-child(5) { opacity: 1; }
.js .tour-phone { display: block; }

@media (min-width: 900px) {
  .js .tour { display: grid; grid-template-columns: 1fr 320px; gap: clamp(40px, 7vw, 96px); align-items: start; margin-top: 16px; }
  .js .tour .steps { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .js .tour .steps li { background: none; border: 0; border-left: 3px solid var(--line); border-radius: 0; padding: 0 0 0 32px; min-height: 38vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.4; transition: opacity 0.3s ease, border-color 0.3s ease; }
  .js .tour .steps li.active { opacity: 1; border-left-color: var(--teal-deep); }
  .js .tour .steps h3 { font-size: 1.5rem; }
  .js .tour .steps p { font-size: 1.05rem; max-width: 44ch; }
  .js .tour-phone { position: sticky; top: max(24px, calc(50vh - 260px)); }
}
@media (max-width: 899px) {
  .js .tour { display: grid; margin-top: 28px; }
  .js .tour-phone { order: -1; width: 250px; margin-bottom: 24px; }
  .js .tour-phone .stage { height: 390px; }
  .js .tour .steps { display: flex; margin: 0 calc(var(--m) * -1); padding: 4px var(--m) 12px; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; }
  .js .tour .steps::-webkit-scrollbar { display: none; }
  .js .tour .steps li { flex: 0 0 82%; scroll-snap-align: center; opacity: 0.55; transition: opacity 0.3s ease, border-color 0.3s ease; }
  .js .tour .steps li.active { opacity: 1; border-color: var(--teal-deep); }
}

/* Requirements marks */
.spec .ok dt::before, .spec .part dt::before, .spec .no dt::before { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-right: 8px; font-size: 12px; font-weight: 700; color: #fff; vertical-align: -3px; }
.spec .ok dt::before { content: "✓"; background: var(--teal-deep); }
.spec .part dt::before { content: "~"; background: #b7791f; }
.spec .no dt::before { content: "✕"; background: #7b8794; }

/* ---- Motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-stage .scr:nth-child(1) { animation: hs1 13s infinite; }
  .hero-stage .scr:nth-child(2) { animation: hs2 13s infinite; }
  .hero-stage .scr:nth-child(3) { animation: hs3 13s infinite; }
  .hero-stage .letter p:nth-child(1) { animation: hl1 13s infinite; }
  .hero-stage .letter p:nth-child(2) { animation: hl2 13s infinite; }
  .hero-stage .letter p:nth-child(3) { animation: hl3 13s infinite; }
  .hero-stage .letter p:nth-child(4) { animation: hl4 13s infinite; }
  .wave i { animation: wave 0.9s ease-in-out infinite alternate; }
  .wave i:nth-child(2n) { animation-delay: -0.3s; }
  .wave i:nth-child(3n) { animation-delay: -0.55s; }
  .wave i:nth-child(5n) { animation-delay: -0.75s; }
  .rec-dot { animation: blink 1.2s ease-in-out infinite; }
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes hs1 { 0%, 28% { opacity: 1; } 32%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hs2 { 0%, 28% { opacity: 0; } 32%, 70% { opacity: 1; } 74%, 100% { opacity: 0; } }
@keyframes hs3 { 0%, 70% { opacity: 0; } 74%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hl1 { 0%, 33% { opacity: 0; transform: translateY(6px); } 37%, 100% { opacity: 1; transform: none; } }
@keyframes hl2 { 0%, 40% { opacity: 0; transform: translateY(6px); } 44%, 100% { opacity: 1; transform: none; } }
@keyframes hl3 { 0%, 48% { opacity: 0; transform: translateY(6px); } 52%, 100% { opacity: 1; transform: none; } }
@keyframes hl4 { 0%, 56% { opacity: 0; transform: translateY(6px); } 60%, 100% { opacity: 1; transform: none; } }
@keyframes wave { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
@keyframes blink { 50% { opacity: 0.3; } }

/* ---- Tuesday Clinics page: desktop window illustration ---- */
.hero-wide { grid-template-columns: 1fr 1.15fr; }
.win { min-width: 0; }
.win-bar { display: flex; align-items: center; gap: 6px; background: #000; color: #a9b8cf; font-size: 12px; padding: 10px 14px; border-radius: 14px 14px 0 0; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4658; }
.win-bar span { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { display: grid; grid-template-columns: 132px 1fr; background: var(--bg); color: var(--ink); border-radius: 0 0 14px 14px; overflow: hidden; box-shadow: 0 30px 60px rgb(0 0 0 / 35%); min-height: 300px; }
.rail { list-style: none; margin: 0; padding: 12px 8px; background: var(--navy-2); color: #c7d2e0; font-size: 12px; display: grid; gap: 2px; align-content: start; }
.rail li { padding: 7px 10px; border-radius: 8px; }
.rail li.on { background: rgb(45 212 191 / 18%); color: #fff; font-weight: 600; }
.wk { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 12px; align-content: start; }
.wk div { display: grid; gap: 6px; align-content: start; }
.wk b { font-size: 12px; color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.ap { font-size: 10.5px; line-height: 1.3; padding: 6px 7px; border-radius: 8px; font-weight: 600; overflow-wrap: anywhere; }
.ap.new { background: #e0eafa; color: #1c4a8a; }
.ap.rev { background: #d8f1ec; color: #0a4d42; }
.ap.pop { background: #fbeed3; color: #6e4300; }
.ap.list { background: var(--navy); color: var(--teal); padding-block: 18px; }
@media (max-width: 820px) {
  .hero-wide { grid-template-columns: 1fr; }
  .win-body { grid-template-columns: 1fr; }
  .rail { display: none; }
}

.cta { text-align: center; }
.cta .actions { justify-content: center; }
.cta .lede-sm { font-size: 1.1rem; }

/* ---- Tuesday Clinics: features, roadmap, screenshots ---- */
.lede.tag { color: var(--teal); font-weight: 600; font-size: 1.35rem; margin-top: 14px; }
.eyebrow.dark { color: var(--teal-deep); }
@media (prefers-color-scheme: dark) { .eyebrow.dark { color: var(--teal); } }
.shot { margin: 0; min-width: 0; border-radius: 14px; overflow: hidden; background: var(--navy-2); border: 1px solid rgb(255 255 255 / 8%); box-shadow: 0 30px 60px rgb(0 0 0 / 30%); min-height: 220px; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 12px; background: var(--surface); }
.hero .shot figcaption { color: #a9b8cf; background: var(--navy-2); }
.feature { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.feature p:not(.eyebrow) { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }
.later { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; margin-top: 28px; }
.later h3 { color: var(--teal-deep); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .later h3 { color: var(--teal); } }
.later ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.later li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); }
.later b { display: block; color: var(--ink); margin-bottom: 2px; }
.btn-ink { background: var(--navy); color: var(--cream); }
@media (prefers-color-scheme: dark) { .btn-ink { background: var(--teal); color: var(--navy); } }
.story.cta .lede-sm { color: #c7d2e0; }
.story .fine, .story .fine a { color: #a9b8cf; }
@media (max-width: 820px) {
  .feature, .later { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
}
.feature.solo { grid-template-columns: 1fr; max-width: 640px; }

/* ---- One site header: brand + product switch (constant), section links (per product) ---- */
.top { position: sticky; top: 0; z-index: 50; view-transition-name: site-header; box-shadow: 0 1px 0 rgb(255 255 255 / 6%); }
.top-row { flex-wrap: nowrap; padding-block: 12px; }
.top .brand span { font-size: 1.15rem; }
.top nav.products ul { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / 7%); }
.top nav.products a { display: block; padding: 7px 16px; border-radius: 999px; color: #c7d2e0; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; }
.top nav.products a:hover { color: #fff; background: rgb(255 255 255 / 8%); }
.top nav.products a[aria-current="page"] { background: var(--teal); color: var(--navy); }
.subnav { border-top: 1px solid rgb(255 255 255 / 7%); view-transition-name: site-subnav; }
.subnav ul { display: flex; gap: 6px 22px; list-style: none; margin: 0; padding: 9px 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { color: #a9b8cf; text-decoration: none; font-size: 14px; white-space: nowrap; }
.subnav a:hover, .subnav a.here { color: #fff; }
html { scroll-padding-top: 112px; }
@media (max-width: 560px) {
  .top-row { gap: 10px; }
  .top .brand span { display: none; }
  .top nav.products a { padding: 7px 12px; font-size: 14px; }
}

/* ---- Shared footer ---- */
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1.4fr; gap: 24px 40px; align-items: start; }
.foot-tag { margin-top: 10px; color: var(--cream); }
.foot nav ul, .foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot nav a { color: var(--cream); font-weight: 600; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot nav span { display: block; font-size: 13px; color: #8d9bb1; }
.foot-contact li { font-size: 13px; color: #8d9bb1; }
.foot-contact a { display: block; font-size: 14px; }
.foot-fine { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 8%); font-size: 13px; }
.foot-fine p + p { margin-top: 6px; }
.foot .brand { margin-bottom: 0; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---- Cross-promotion band ---- */
.xsell { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 48px; align-items: center; }
.xsell .actions { margin-top: 0; justify-content: flex-end; }
@media (max-width: 820px) { .xsell { grid-template-columns: 1fr; } .xsell .actions { justify-content: flex-start; } }

/* ---- Smooth page changes: the header stays put, the page cross-fades ---- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
  ::view-transition-group(site-header) { animation-duration: 0s; }
  ::view-transition-old(site-subnav), ::view-transition-new(site-subnav) { animation-duration: 0.18s; }
}
.btn-quiet-ink { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }

/* Tighter gap under the sticky header */
.hero { padding-top: clamp(20px, 3vw, 36px); }
.hero .eyebrow { margin-bottom: 10px; }

/* ---- Section links land just under the sticky header ---- */
:root { --hdr: 98px; }
@media (max-width: 560px) { :root { --hdr: 92px; } }
html { scroll-padding-top: 0; }
main section[id] { scroll-margin-top: calc(var(--hdr) - var(--gap) + 20px); }

/* ---- Bigger screenshots on the Clinics page ---- */
.wrap.wide { max-width: 1320px; }
.feature { grid-template-columns: minmax(240px, 1fr) minmax(0, 2.3fr); margin-top: clamp(28px, 4vw, 52px); }
#record h2 + .feature { margin-top: clamp(20px, 3vw, 32px); }
.feature.flip { grid-template-columns: minmax(0, 2.3fr) minmax(240px, 1fr); }
.feature.solo { grid-template-columns: 1fr; }
.shot .zoom { display: block; cursor: zoom-in; }
.shot.small-shot { max-width: 640px; justify-self: center; width: 100%; }
.shot .hint { display: none; }
.hero-wide { grid-template-columns: 0.9fr 1.3fr; }

/* ---- Phones: screenshots keep their size and pan sideways ---- */
@media (max-width: 820px) {
  :root { --gap: 48px; }
  .feature, .feature.flip, .hero-wide { grid-template-columns: 1fr; }
  .feature { gap: 16px; margin-top: 40px; }
  .feature-text { order: 0; }
  .feature p:not(.eyebrow) { font-size: 1rem; }
  .shot { margin-inline: calc(var(--m) * -1); border-radius: 0; border-inline: 0; box-shadow: none; }
  .shot.small-shot { max-width: none; }
  .shot .zoom { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .shot .zoom img { width: 680px; max-width: none; }
  .shot.small-shot .zoom img { width: 560px; }
  .shot .hint { display: inline; }
  .shot .hint-wide { display: none; }
  .hero-shot { margin-top: 8px; }
}
:root { --wrap: 1240px; }
.wrap.wide { max-width: var(--wrap); }
/* Sharper, larger captures: on phones show them at a fixed readable height and pan */
@media (max-width: 820px) {
  .shot .zoom img, .shot.small-shot .zoom img { width: auto; height: 420px; max-width: none; }
}
.shot picture { display: contents; }

/* How to use it: gestures and what they do */
.guide { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 1000px) { .guide { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.guide-group { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.guide-group h3 { margin-bottom: 6px; }
.guide dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.guide dl > div:first-child { border-top: 0; }
.guide dt { margin-bottom: 6px; }
.guide dd { margin: 0; color: var(--muted); font-size: 15.5px; }
.gesture { display: inline-block; font-weight: 600; font-size: 14px; color: var(--teal-deep); background: color-mix(in srgb, var(--teal) 16%, transparent); border-radius: 999px; padding: 3px 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gesture { color: var(--teal); } }
@media (min-width: 640px) and (max-width: 999px) {
  .guide dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: baseline; }
  .guide dt { margin-bottom: 0; }
}

/* Fixed lower banner: stays on screen while the page scrolls */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--navy); color: var(--cream); border-top: 1px solid rgba(249,241,226,.12); padding-bottom: env(safe-area-inset-bottom); }
.dock-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.dock p { margin: 0; font-size: 15.5px; line-height: 1.35; }
.dock .btn { min-height: 42px; padding: 0 18px; white-space: nowrap; flex: none; }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (max-width: 560px) {
  .dock p span { display: none; }
  .dock p { font-size: 15px; }
}
@media print { .dock { display: none; } body { padding-bottom: 0; } }

/* Slogans */
.tag-aside { display: block; font-size: .8em; font-weight: 500; color: var(--muted); margin-top: 4px; }
.hero .tag-aside { color: inherit; opacity: .75; }
.pearl { padding: clamp(40px, 6vw, 72px) 0; text-align: center; }
.pearl p { margin: 0 auto; max-width: 22em; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.pearl p::before { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--teal); margin: 0 auto 20px; }

/* Free plan box, beside the paid plan card */
.free-plan { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 16px; padding: 22px; }
.free-price { margin: 6px 0 0; color: var(--muted); }
.free-price b { font-size: 2rem; color: var(--ink); letter-spacing: -0.02em; margin-right: 4px; }
.free-plan ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); font-size: 15.5px; }

/* Website and App Store prices */
.plan-where { margin: 14px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plan-where:first-child { margin-top: 0; }
.price-sm { font-size: 1rem; }
.price-sm b { font-size: 1.4rem; }
.group { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

/* Founding offer */
.founding { margin-top: 16px; border-radius: 16px; padding: 22px; background: var(--navy); color: var(--cream); border: 1px solid rgba(45,212,191,.35); }
.founding h3 { color: var(--cream); margin: 8px 0 8px; font-size: 1.15rem; line-height: 1.35; }
.founding p { margin: 0 0 10px; font-size: 15.5px; color: rgba(249,241,226,.82); }
.founding-tag { display: inline-block; margin: 0 !important; background: var(--teal); color: var(--navy) !important; border-radius: 999px; padding: 3px 12px; font-size: 13px !important; font-weight: 700; }
.founding-cta { margin-bottom: 0 !important; }
.founding a { color: var(--teal); font-weight: 700; }

/* Three products in the switch: drop " by Tuesday" on narrower screens */
@media (max-width: 900px) { .top nav.products .by { display: none; } }
@media (max-width: 420px) {
  .top nav.products a { padding: 6px 9px; font-size: 13.5px; }
  .top .brand span { display: none; }
}
