/* DermoAI website. Tokens come from the app (core/ui DermoColors.kt) and the business card. */
:root {
  --pine: #1E6E5C;
  --pine-deep: #123F33;
  --pine-night: #0D2E26;
  --pine-pale: #D9EDE4;
  --mint: #BFE6D6;
  --sand: #EAE4DA;
  --cream: #F4EFE7;
  --well: #E2DCD1;
  --ink: #202B26;
  --slate: #55645C;
  --line: #C9C1B4;
  --coral: #E8634A; --coral-ink: #B33A24;
  --amber: #D4953A; --amber-ink: #8A5A10;
  --sage: #65A58D; --sage-ink: #2F6B57;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Raleway", "Segoe UI", system-ui, sans-serif;

  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 20px;
  --raise: 6px 6px 16px -6px rgba(145, 134, 112, .55), -5px -5px 14px -6px rgba(255, 255, 255, .95);
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.012em; }
h3 { font-size: 1.22rem; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--pine); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn--pine { background: var(--pine); color: #fff; box-shadow: 0 8px 20px -10px rgba(18, 63, 51, .7); }
.btn--pine:hover { background: var(--pine-deep); }
.btn--mint { background: var(--mint); color: var(--pine-deep); box-shadow: 0 10px 30px -12px rgba(191, 230, 214, .8); }
.btn--mint:hover { background: #fff; }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(191, 230, 214, .45); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--mint); background: rgba(191, 230, 214, .08); }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--cream); box-shadow: var(--raise);
  transition: transform .2s var(--ease);
}
.round svg { width: 22px; height: 22px; fill: none; stroke: var(--pine-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { transform: translateY(-2px); }
.round:disabled { opacity: .4; cursor: default; transform: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px var(--gut) 0; }
.nav__bar {
  max-width: calc(var(--wrap) + 80px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-stuck .nav__bar {
  background: rgba(244, 239, 231, .78);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px -18px rgba(32, 43, 38, .45), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand__mark { width: 28px; height: 28px; color: var(--pine); }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--slate); font-weight: 500; font-size: .95rem; padding: 10px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--ink); background: rgba(32, 43, 38, .06); }
.nav__toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: 14px var(--gut) 0; }
.hero__card {
  position: relative; overflow: hidden;
  max-width: calc(var(--wrap) + 80px); margin-inline: auto;
  min-height: min(820px, calc(100svh - 90px));
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(120% 90% at 78% 40%, #2A8A72 0%, rgba(42, 138, 114, 0) 55%),
    radial-gradient(90% 80% at 0% 100%, var(--pine-night) 0%, rgba(13, 46, 38, 0) 60%),
    linear-gradient(160deg, var(--pine) 0%, var(--pine-deep) 70%);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 24px;
  padding: clamp(28px, 5vw, 72px);
  isolation: isolate;
}
/* fine grain so the gradient does not band */
.hero__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; mix-blend-mode: soft-light; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__title {
  font-size: clamp(2.9rem, 1.4rem + 5.4vw, 6rem);
  line-height: .98; letter-spacing: -.022em; font-weight: 600;
  max-width: 9.5em;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--mint); }
.hero__lede { margin-top: 26px; max-width: 32em; font-size: clamp(1.04rem, .95rem + .4vw, 1.2rem); color: rgba(255, 255, 255, .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 20px; font-size: .9rem; color: rgba(191, 230, 214, .8); }

.hero__stage { position: relative; display: grid; place-items: center; min-height: 660px; }
.lens { position: absolute; width: min(700px, 128%); aspect-ratio: 1; fill: none; overflow: visible; }
.lens__dots { stroke: rgba(191, 230, 214, .55); stroke-width: 2.4; stroke-dasharray: .1 13; stroke-linecap: round; transform-origin: 300px 300px; animation: spin 90s linear infinite; }
.lens__dots--in { stroke: rgba(191, 230, 214, .35); animation-direction: reverse; animation-duration: 120s; }
.lens__ring { stroke: var(--mint); stroke-width: 10; opacity: .9; }
.lens__inner { fill: rgba(191, 230, 214, .06); stroke: rgba(191, 230, 214, .18); stroke-width: 1; }
.lens__ticks line { stroke: rgba(255, 255, 255, .7); stroke-width: 3; stroke-linecap: round; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- phone frame ---------- */
.phone {
  --w: 240px;
  position: relative; display: block; width: var(--w); padding: calc(var(--w) * .035);
  aspect-ratio: 1080 / 2220; box-sizing: content-box;
  border-radius: calc(var(--w) * .16);
  background: linear-gradient(145deg, #2b3631, #0f1714 60%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .14),
    0 2px 0 1px #050807,
    0 40px 60px -30px rgba(5, 20, 15, .55),
    0 18px 30px -18px rgba(5, 20, 15, .4);
  border: 0; margin: 0; cursor: default;
}
.phone > img, .phone__screen {
  width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * .128);
  overflow: hidden; background: var(--sand);
}
.phone::after { /* punch-hole camera */
  content: ""; position: absolute; top: calc(var(--w) * .06); left: 50%; translate: -50% 0;
  width: calc(var(--w) * .04); aspect-ratio: 1; border-radius: 50%; background: #0b0f0d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone__video { width: 100%; height: 100%; object-fit: cover; }
.phone__play {
  position: absolute; right: -18px; bottom: 16%; z-index: 4;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--pine-deep);
  background: var(--mint); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55);
  transition: background-color .2s, scale .2s var(--ease);
}
.phone__play:hover { background: #fff; scale: 1.06; }
.phone__play svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.phone__play .i-play { fill: currentColor; stroke-width: 1.5; display: none; }
.phone__play.is-paused .i-play { display: block; }
.phone__play.is-paused .i-pause { display: none; }
.phone--hero { --w: clamp(220px, 19vw, 280px); z-index: 2; }
.phone--sm { --w: 220px; }
.phone--tile { --w: 230px; }
.phone--rail {
  --w: calc(100cqi / 1.07);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 2px 0 1px #050807, 0 18px 26px -18px rgba(5, 20, 15, .5);
}
.phone--viewer { --w: min(340px, 34svh, 70vw); cursor: default; }
.shot { cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s; }
.shot:hover { transform: translateY(-6px); }
.shot:focus-visible { outline-offset: 6px; border-radius: calc(var(--w) * .16); }


/* the one orchestrated moment: page load */
.js .hero__title, .js .hero__lede, .js .hero__actions, .js .hero__note { opacity: 0; translate: 0 18px; animation: rise .9s var(--ease) forwards; }
.js .hero__lede { animation-delay: .12s; }
.js .hero__actions { animation-delay: .22s; }
.js .hero__note { animation-delay: .3s; }
.js .lens__ring { stroke-dasharray: 1483; stroke-dashoffset: 1483; animation: draw 1.6s .15s var(--ease) forwards; }
.js .phone--hero { opacity: 0; translate: 0 60px; animation: rise 1.1s .35s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; translate: 0 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0 0; }
.section__head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head p, .outcomes__intro > p, .privacy__lede { margin-top: 18px; color: var(--slate); font-size: 1.08rem; max-width: 34em; }

/* steps: a real sequence, so it is numbered */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.step { display: grid; justify-items: center; gap: 28px; text-align: center; }
.step .phone { justify-self: center; }
.step__text { position: relative; padding-top: 54px; max-width: 22em; }
.step__n {
  position: absolute; left: 50%; top: 0; translate: -50% 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 600 1.1rem/1 var(--serif);
  color: var(--pine-deep); background: var(--pine-pale); box-shadow: inset 0 0 0 1.5px rgba(30, 110, 92, .25);
}
.step__text p { margin-top: 8px; color: var(--slate); }


/* outcomes */
.outcomes__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.outcomes__phone { margin-top: 40px; }
.outcome-list { list-style: none; margin: 0; padding: 8px 0; border-radius: var(--r-lg); background: var(--cream); box-shadow: var(--raise); }
.outcome { --c: var(--slate); position: relative; padding: 26px 30px 26px 76px; }
.outcome + .outcome { border-top: 1px solid rgba(201, 193, 180, .7); }
.outcome::before {
  content: ""; position: absolute; left: 30px; top: 30px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 20%, transparent);
}
.outcome h3 { color: var(--ci, var(--ink)); }
.outcome p { margin-top: 6px; color: var(--slate); }
.outcome--urgent { --c: var(--coral); --ci: var(--coral-ink); }
.outcome--consult { --c: var(--amber); --ci: var(--amber-ink); }
.outcome--benign { --c: var(--sage); --ci: var(--sage-ink); }
.outcome--unsure { --c: #8F968D; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 30px; }
.tile__text p, .tile > p { margin-top: 8px; color: var(--slate); max-width: 26em; }
.tile .phone { position: absolute; bottom: -42%; right: 26px; }
.tile--timeline { grid-column: span 3; grid-row: span 2; min-height: 600px; background: var(--pine-pale); }
.tile--timeline .phone { --w: 270px; bottom: -27%; right: 50%; translate: 50% 0; }
.tile--skinmind, .tile--report { grid-column: span 3; min-height: 290px; }
.tile--skinmind { background: var(--cream); box-shadow: var(--raise); }
.tile--skinmind .tile__text, .tile--report .tile__text { max-width: 52%; }
.tile--report { background: linear-gradient(150deg, var(--pine), var(--pine-deep)); color: #fff; }
.tile--report .tile__text p { color: rgba(255, 255, 255, .78); }
.tile--skinmind .phone, .tile--report .phone { top: 26px; bottom: auto; }
.tile--small { grid-column: span 2; background: var(--cream); box-shadow: var(--raise); }
.tile--small h3 { margin-top: 18px; }
.tile__icon { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--pine-pale); fill: none; stroke: var(--pine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* gallery rail */
.gallery__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.gallery__ctrl { display: flex; gap: 12px; }
.rail {
  --per: 5; --gap: 28px; --pad: 18px; /* pad gives the phone shadows room without moving the phones off the grid */
  list-style: none; display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); /* % = content box, padding excluded */
  width: calc(min(100% - 2 * var(--gut), var(--wrap)) + 2 * var(--pad)); margin: 0 auto;
  padding: 10px var(--pad) 64px; scroll-padding-inline: var(--pad);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail li { scroll-snap-align: start; container-type: inline-size; display: grid; justify-items: center; text-align: center; }
.rail p { margin-top: 16px; font-weight: 600; color: var(--slate); font-size: .95rem; }
.rail:focus-visible { outline-offset: -3px; }

/* privacy */
.privacy__grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px);
  padding: clamp(32px, 6vw, 72px); border-radius: var(--r-xl); background: var(--well);
  box-shadow: inset 6px 6px 16px -8px rgba(145, 134, 112, .6), inset -6px -6px 16px -8px rgba(255, 255, 255, .9);
}
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
.facts h3 { font-size: 1.1rem; }
.facts h3::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--pine); margin-bottom: 14px; }
.facts p { margin-top: 8px; color: var(--slate); font-size: .98rem; }

/* faq */
.faq__wrap { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 40px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; font: 600 1.12rem/1.35 var(--serif);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--cream) no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%231E6E5C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  box-shadow: var(--raise); transition: rotate .3s var(--ease);
}
.faq__list details[open] summary::after { rotate: 45deg; }
.faq__list details p { padding: 0 60px 24px 4px; color: var(--slate); max-width: 40em; }

/* cta */
.cta { padding: clamp(80px, 11vw, 140px) var(--gut) 0; }
.cta__card {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: calc(var(--wrap) + 80px); margin-inline: auto; text-align: center;
  padding: clamp(64px, 9vw, 120px) var(--gut);
  border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(80% 120% at 50% 110%, #2A8A72, var(--pine-deep) 70%);
}
.cta__lens { position: absolute; z-index: -1; width: 720px; left: 50%; top: 50%; translate: -50% -50%; fill: none; opacity: .3; }
.cta h2 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); }
.cta p { margin: 18px auto 34px; max-width: 30em; color: rgba(255, 255, 255, .8); font-size: 1.1rem; }

/* footer */
.foot { padding: 72px 0 40px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot__contact { margin-top: 18px; }
.foot__contact a, .foot__links a { color: var(--pine-deep); font-weight: 600; text-underline-offset: 3px; }
.foot__links { margin-top: 8px; font-size: .95rem; }
.foot__disclaimer { color: var(--slate); font-size: .95rem; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-top: 22px; color: var(--slate); font-size: .86rem; }

/* viewer */
.viewer {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100svh; max-width: none; max-height: none;
  background: transparent; display: none; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 40px);
}
.viewer[open] { display: flex; animation: fade .3s var(--ease); }
.viewer::backdrop { background: rgba(13, 46, 38, .82); backdrop-filter: blur(6px); }
.viewer__fig { margin: 0; display: grid; justify-items: center; gap: 22px; animation: rise-in .4s var(--ease); }
.viewer figcaption { color: #fff; max-width: 30em; text-align: center; padding: 0 16px; font-weight: 500; }
.viewer__close { position: absolute; top: 18px; right: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; translate: 0 24px; } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .rail { --per: 3; }
  .hero__card { grid-template-columns: 1fr; text-align: left; padding-bottom: 0; }
  .hero__stage { min-height: 600px; margin-top: 10px; }
  .tile--skinmind .tile__text, .tile--report .tile__text { max-width: 100%; }
  .tile--skinmind, .tile--report { min-height: 470px; }
  .tile--skinmind .phone, .tile--report .phone { top: auto; bottom: -40%; right: 50%; translate: 50% 0; }
}
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 76px 12px auto; flex-direction: column; gap: 2px; padding: 12px;
    border-radius: 24px; background: rgba(244, 239, 231, .96); backdrop-filter: blur(16px);
    box-shadow: 0 24px 50px -20px rgba(32, 43, 38, .5);
    opacity: 0; translate: 0 -10px; visibility: hidden; transition: opacity .25s, translate .25s var(--ease), visibility 0s .25s;
  }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; color: var(--ink); }
  .nav.is-open .nav__links { opacity: 1; translate: 0 0; visibility: visible; transition: opacity .25s, translate .25s var(--ease); }
  .nav.is-open .nav__bar { background: rgba(244, 239, 231, .9); }
  .nav__cta { margin-left: auto; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--cream); box-shadow: var(--raise); cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: translate .25s, rotate .25s; }
  .nav.is-open .nav__toggle span:first-child { translate: 0 4px; rotate: 45deg; }
  .nav.is-open .nav__toggle span:last-child { translate: 0 -4px; rotate: -45deg; }

  .steps { grid-template-columns: 1fr; gap: 64px; }
  .step .phone { --w: 210px; }
  .how { padding-bottom: 0; }
  .outcomes__grid, .privacy__grid, .faq__wrap, .foot__grid { grid-template-columns: 1fr; }
  .outcomes__phone { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile--timeline, .tile--skinmind, .tile--report, .tile--small { grid-column: auto; grid-row: auto; }
  /* phones join the tile's flow under the text; the tile crops their lower part */
  .tile--timeline, .tile--skinmind, .tile--report { min-height: 0; padding-bottom: 0; }
  .tile--timeline .phone, .tile--skinmind .phone, .tile--report .phone {
    --w: 230px; position: relative; top: auto; bottom: auto; right: auto; translate: none;
    margin: 30px auto calc(var(--w) * -0.95);
  }
  .facts { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .hero { padding-inline: 8px; }
  .hero__card { border-radius: 30px; padding: 30px 22px 0; }
  .hero__actions .btn { width: 100%; }
  .hero__stage { min-height: 0; padding: 40px 0 44px; }
  .lens { width: 140%; }
  .phone--hero { --w: 210px; }
  .step .phone { --w: 200px; }
  .outcome { padding: 22px 22px 22px 62px; }
  .outcome::before { left: 22px; top: 26px; width: 18px; height: 18px; }
  .tile { padding: 24px; }
  .gallery__ctrl { display: none; }
  .rail { --pad: 19%; width: 100%; grid-auto-columns: 100%; } /* one phone centred, neighbours peek in */
  .rail li { scroll-snap-align: center; }
  .cta { padding-inline: 8px; }
  .cta__card { border-radius: 30px; }
  .viewer__nav { position: absolute; bottom: 20px; }
  .viewer__prev { left: calc(50% - 60px); } .viewer__next { right: calc(50% - 60px); }
  .phone--viewer { --w: min(300px, 36svh, 72vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .lens__dots { animation: none; }
  /* show the hero in its final state instead of relying on (shortened) animations with delays */
  .js .hero__title, .js .hero__lede, .js .hero__actions, .js .hero__note, .js .phone--hero {
    animation: none; opacity: 1; translate: none; scale: none;
  }
  .js .lens__ring { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .shot:hover { transform: none; }
  .viewer[open], .viewer__fig { animation: none; }
}

/* ---------- secondary pages ---------- */
.page .nav { position: static; }
.prose { max-width: 44rem; padding: 48px 0 96px; }
.prose h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: 1.05; }
.prose h2 { font-size: 1.4rem; margin-top: 40px; }
.prose p { margin-top: 14px; color: var(--slate); }
.prose a { color: var(--pine-deep); font-weight: 600; }
.lost { position: relative; overflow: hidden; isolation: isolate; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; padding: 24px; }
.lost__lens { position: absolute; z-index: -1; width: min(720px, 140vw); left: 50%; top: 50%; translate: -50% -50%; fill: none; }
.lost .lens__dots { stroke: rgba(30, 110, 92, .45); }
.lost .lens__ring { stroke: var(--pine-pale); }
.lost h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); }
.lost p { color: var(--slate); max-width: 26em; }

/* ---------- additions: GitHub, conditions, source ---------- */
.gh { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn--line { color: var(--pine-deep); box-shadow: inset 0 0 0 1.5px rgba(30, 110, 92, .45); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--pine); background: rgba(30, 110, 92, .06); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta__note { margin: 20px auto 0 !important; font-size: .92rem !important; color: rgba(191, 230, 214, .85) !important; }

.cond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.cond { --c: var(--sage); padding: 28px 30px 30px; border-radius: var(--r-lg); background: var(--cream); box-shadow: var(--raise); }
.cond h3 { display: flex; align-items: center; gap: 12px; color: var(--ci, var(--ink)); }
.cond h3::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 20%, transparent); }
.cond ul { list-style: none; margin: 18px 0 0; padding: 0; }
.cond li { padding: 11px 0; border-top: 1px solid rgba(201, 193, 180, .7); color: var(--ink); }
.cond--urgent { --c: var(--coral); --ci: var(--coral-ink); }
.cond--consult { --c: var(--amber); --ci: var(--amber-ink); }
.cond--benign { --c: var(--sage); --ci: var(--sage-ink); }

.source__card {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--r-xl); background: var(--cream); box-shadow: var(--raise);
}
.source__text p { margin-top: 18px; color: var(--slate); font-size: 1.08rem; max-width: 34em; }
.source__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.repo {
  display: grid; gap: 12px; padding: 28px; border-radius: var(--r-md); text-decoration: none;
  background: var(--pine-deep); color: rgba(255, 255, 255, .78);
  box-shadow: 0 24px 40px -24px rgba(18, 63, 51, .7); transition: transform .3s var(--ease);
}
.repo:hover { transform: translateY(-3px); }
.repo__name { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.05rem; padding-bottom: 14px; border-bottom: 1px solid rgba(191, 230, 214, .2); }
.repo__name .gh { width: 22px; height: 22px; }
.repo__line { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.repo__line::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); flex: none; }
.faq__list details p a { color: var(--pine-deep); font-weight: 600; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 1024px) { .cond-grid { grid-template-columns: 1fr 1fr; } .cond--benign { grid-column: span 2; } }
@media (max-width: 860px) { .source__card { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .cond-grid { grid-template-columns: 1fr; } .cond--benign { grid-column: auto; } }
@media (max-width: 520px) { .source__actions .btn, .cta__actions .btn { width: 100%; } }
