/* Landing page. Builds on tokens.css. Radius system: frames 16, tiles 28, pills full. */
:root {
  --gutter: 32px;
  --maxw: 1200px;
  --sec-y: 120px;
  --bg: var(--surface-container-lowest);
  --bg-alt: var(--surface);
  --tile-bg: var(--surface-container-lowest);
  --band-1: #00575A;
  --band-2: #00797D;
  --frame-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px -8px rgba(16, 24, 40, .14);
}
[data-theme="dark"] {
  --bg: var(--surface);
  --bg-alt: var(--surface-container-lowest);
  --tile-bg: var(--surface-container-low);
  --band-1: #003A3C;
  --band-2: #00585B;
  --frame-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 32px 80px -16px rgba(0, 0, 0, .7);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { background: var(--bg); overflow-x: hidden; }
.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 20px; border-radius: var(--r-full); background: var(--primary); color: var(--on-primary); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

[data-auth][hidden], [hidden] { display: none !important; }
.only-dark { display: none !important; }
[data-theme="dark"] .only-dark { display: block !important; }
[data-theme="dark"] .only-light { display: none !important; }

.accent { color: var(--primary); }
.eyebrow { margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.section-title { margin: 0; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.12; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
.lead { margin: 0; font-size: 1.15rem; line-height: 1.6; color: var(--on-surface-variant); max-width: 56ch; text-wrap: pretty; }
.section { padding-block: var(--sec-y); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.btn .ms { transition: transform var(--d-short) var(--ease); }
.btn:hover .ms { transform: translateX(2px); }
.btn.has-icon:has(.ms:last-child) { padding-left: 24px; padding-right: 20px; }
.btn-lg.has-icon:has(.ms:last-child) { padding-left: 28px; padding-right: 24px; }
.tile-icon {
  width: 48px; height: 48px; border-radius: var(--r-s); display: grid; place-items: center; flex: none;
  background: var(--secondary-container); color: var(--on-secondary-container);
}

/* ------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-med) var(--ease);
}
.topbar.scrolled { border-bottom-color: var(--outline-variant); }
.topbar-in { height: 72px; display: flex; align-items: center; gap: 32px; }
.topbar .brand img { width: 32px; height: 32px; }
.topbar .brand .word { font-size: 1.2rem; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a {
  padding: 8px 14px; border-radius: var(--r-full); color: var(--on-surface-variant); text-decoration: none;
  font-size: .889rem; font-weight: 500; white-space: nowrap; transition: color var(--d-short) var(--ease), background-color var(--d-short) var(--ease);
}
.topnav a:hover { color: var(--on-surface); background: color-mix(in srgb, var(--on-surface) 6%, transparent); }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.top-actions .btn { --h: 44px; padding: 0 20px; font-size: .889rem; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(32px, 6vh, 64px) 0 clamp(48px, 8vh, 88px); }
.hero { background: var(--bg); }
/* Faint dot grid behind the product shots, fading out radially. */
.hero::before {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 62%; height: 100%; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--primary) 38%, transparent) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 52%, #000 35%, transparent 88%);
          mask-image: radial-gradient(ellipse 85% 75% at 60% 52%, #000 35%, transparent 88%);
}
/* Hairline ribbons generated by scripts/build_hero_lines.py. The mask only fades the edges so the
   lines stay clear of the headline; the lines themselves are a single flat brand color. */
.hero-lines {
  position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none;
  color: var(--primary);
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 30%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 9%);
          mask-image: linear-gradient(90deg, transparent 4%, #000 30%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 9%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.hero-lines path { vector-effect: non-scaling-stroke; }
[data-theme="dark"] .hero-lines { opacity: .7; }
@media (max-width: 720px) { .hero-lines { opacity: .45; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-lines path {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: hero-draw 2.4s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: calc(var(--i) * 28ms + 150ms);
  }
}
@keyframes hero-draw { to { stroke-dashoffset: 0; } }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-title {
  margin: 0; font-size: clamp(3rem, 5.4vw, 5rem); line-height: 1.02; font-weight: 500; letter-spacing: -.04em;
  font-variation-settings: "opsz" 144;
}
.hero-sub { margin: 0; max-width: 30ch; font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--on-surface-variant); text-wrap: pretty; }
.hero-ctas { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.hero-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--on-surface-variant); font-size: .889rem; }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks .ms { font-size: 20px; color: var(--primary); font-variation-settings: "FILL" 1; }

.hero-visual { position: relative; padding: 0 0 48px 64px; }
.hero-dash { width: 132%; margin: 0; }
.hero-sheet {
  position: absolute; left: 0; bottom: 0; width: 38%; margin: 0;
  border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--outline-variant);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 12px 32px -8px rgba(16, 24, 40, .20);
  aspect-ratio: 640 / 760;
}
[data-theme="dark"] .hero-sheet { box-shadow: 0 32px 64px -12px rgba(0, 0, 0, .8); }
.hero-sheet img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Browser style frame around a real screenshot */
.frame {
  position: relative; overflow: hidden; border-radius: var(--r-m);
  border: 1px solid var(--outline-variant); background: var(--surface-container-low);
  box-shadow: var(--frame-shadow);
}
.frame img { display: block; width: 100%; height: auto; }
.frame-bar { height: 36px; display: grid; place-items: center; border-bottom: 1px solid var(--outline-variant); background: var(--surface-container); }
.frame-url {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 12px; border-radius: var(--r-full);
  background: var(--surface-container-highest); color: var(--on-surface-variant); font-size: .7rem; font-weight: 500;
}
.frame-url .ms { font-size: 13px; }

/* ------------------------------------------------------------ trust strip */
.strip { border-block: 1px solid var(--outline-variant); background: var(--bg); position: relative; z-index: 1; }
.strip-in { list-style: none; margin: 0; padding: 32px 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.strip-in li { display: flex; align-items: center; gap: 14px; }
.strip-in strong { display: block; font-size: 1.05rem; font-weight: 600; color: var(--on-surface); }
.strip-in li > span:last-child { font-size: .889rem; color: var(--on-surface-variant); line-height: 1.4; }
.strip-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.sources-line { margin: 0; padding: 0 0 28px; font-size: .85rem; color: var(--on-surface-variant); text-align: center; }
.sources-line span { font-weight: 600; color: var(--on-surface); margin-right: 4px; }

/* ------------------------------------------------------------ features bento */
.features { background: var(--bg-alt); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile {
  display: grid; gap: 14px; align-content: start; padding: 32px; border-radius: var(--r-l);
  background: var(--tile-bg); border: 1px solid var(--outline-variant);
  transition: border-color var(--d-short) var(--ease), box-shadow var(--d-med) var(--ease);
}
.tile:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--outline-variant)); box-shadow: var(--elev-1); }
.tile h3 { margin: 6px 0 0; font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--on-surface-variant); font-size: 1rem; line-height: 1.6; }
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }
.tile-media { padding: 0; overflow: hidden; grid-template-columns: minmax(0, 1fr); }
.tile-media .tile-copy { display: grid; gap: 14px; padding: 32px 32px 8px; max-width: 620px; }
.tile-shot { margin: 8px 0 0 32px; border-radius: var(--r-m) 0 0 0; overflow: hidden; border: 1px solid var(--outline-variant); border-right: 0; border-bottom: 0; }
.tile-shot img { display: block; width: 100%; height: auto; }
.tile-accent { background: color-mix(in srgb, var(--primary-container) 35%, var(--tile-bg)); }
.tile-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.tile-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.tile-list li::before { content: "check"; font-family: "Material Symbols Rounded"; font-size: 20px; color: var(--primary); }
.tile-row { gap: 8px 24px; }
.tile-row h3 { margin: 0 0 6px; }
.tile-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.tile-row .btn { grid-column: 2; justify-self: start; }
.tile-why { display: flex; flex-direction: column; gap: 14px; padding-right: 0; padding-bottom: 0; }
.tile-why > :not(.why-shot) { margin-right: 32px; }
.why-shot { margin-top: auto; padding-top: 16px; }
.why-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-m) 0 0 0; border: 1px solid var(--outline-variant); border-right: 0; border-bottom: 0; box-shadow: var(--elev-1); }

/* ------------------------------------------------------------ how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: s; }
.step { display: grid; gap: 12px; align-content: start; }
.step-art { aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; background: var(--surface-container); margin-bottom: 12px; }
.step-art { border: 1px solid var(--outline-variant); }
.step-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.step h3 { margin: 0; font-size: 1.4rem; font-weight: 500; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--on-surface-variant); font-size: 1rem; line-height: 1.6; }

/* ------------------------------------------------------------ teal band */
.band {
  position: relative; isolation: isolate; overflow: hidden; padding: var(--sec-y) 0; color: #E6F6F5;
  background: var(--band-1);
}
.band-head { display: grid; gap: 16px; max-width: 760px; text-align: left; margin-bottom: 56px; }
.band .section-title { color: #fff; }
.band .lead { color: #C4E4E2; }
.eyebrow.on-band { color: #9CF1F0; }
.gallery { position: relative; }
.gallery-fallback { max-width: 1040px; }
.band-shot { border-color: rgba(255, 255, 255, .18); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .45); }
.tpl-row {
  scroll-padding-inline: max(var(--gutter), (100vw - var(--maxw)) / 2);
  list-style: none; margin: 0; padding: 12px max(var(--gutter), (100vw - var(--maxw)) / 2) 24px; display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.tpl-row::-webkit-scrollbar { display: none; }
.tpl { flex: 0 0 auto; width: 248px; scroll-snap-align: start; }
.tpl figure { margin: 0; display: grid; gap: 14px; }
.tpl-paper { aspect-ratio: 720 / 932; border-radius: var(--r-xs); overflow: hidden; background: #fff; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45); transition: transform var(--d-med) var(--ease); }
.tpl:hover .tpl-paper { transform: translateY(-4px); }
.tpl-paper img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tpl figcaption { font-size: .889rem; font-weight: 500; color: #D6EEEC; }
.band-cta { margin-top: 48px; }
.band-btn { background: #fff; color: #00494B; }
.band-btn:hover { box-shadow: var(--elev-2); }
.band :focus-visible { outline-color: #9CF1F0; }

/* ------------------------------------------------------------ privacy */
.privacy { background: var(--bg-alt); }
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.trust li { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--r-l); background: var(--tile-bg); border: 1px solid var(--outline-variant); }
.trust h3 { margin: 6px 0 0; font-size: 1.15rem; font-weight: 500; }
.trust p { margin: 0; color: var(--on-surface-variant); font-size: .95rem; line-height: 1.6; }

/* ------------------------------------------------------------ faq */
.faq-in { max-width: 860px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  border-radius: var(--r-m); border: 1px solid var(--outline-variant); background: var(--tile-bg);
  transition: border-color var(--d-short) var(--ease), box-shadow var(--d-short) var(--ease);
}
.faq-list details[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--outline-variant)); box-shadow: var(--elev-1); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 24px; font-size: 1.1rem; font-weight: 500; line-height: 1.4; border-radius: inherit;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ms { color: var(--on-surface-variant); flex: none; transition: transform var(--d-med) var(--ease); }
.faq-list details[open] summary .ms { transform: rotate(180deg); color: var(--primary); }
.faq-list summary:hover { color: var(--primary); }
.faq-list details p { margin: 0; padding: 0 24px 24px; color: var(--on-surface-variant); font-size: 1.02rem; line-height: 1.65; max-width: 68ch; }

/* ------------------------------------------------------------ final cta */
.final { padding-top: 0; }
.final-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: end;
  padding: 72px 0 0 72px; border-radius: var(--r-l); color: #E6F6F5;
  background: var(--band-1);
}
.final-copy { display: grid; gap: 20px; justify-items: start; padding-bottom: 72px; }
.final-title { margin: 0; max-width: 16ch; color: #fff; font-size: clamp(2.2rem, 3.8vw, 3.2rem); line-height: 1.06; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
.final-sub { margin: 0; color: #C4E4E2; font-size: 1.1rem; line-height: 1.6; max-width: 44ch; }
.final-ctas { margin-top: 12px; }
.final-btn { background: #fff; color: #00494B; }
.final-btn:hover { box-shadow: var(--elev-2); }
.final-card :focus-visible { outline-color: #9CF1F0; }
.final-shot { margin: 0; height: 340px; border-radius: var(--r-m) 0 0 0; overflow: hidden; box-shadow: 0 -10px 60px rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .2); border-right: 0; border-bottom: 0; }
.final-shot img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------ footer */
.foot { background: var(--bg-alt); border-top: 1px solid var(--outline-variant); padding: 72px 0 0; }
.foot-in { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; }
.foot-brand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.foot-brand p { margin: 0; font-size: .95rem; color: var(--on-surface-variant); max-width: 28ch; }
.foot .brand img { width: 28px; height: 28px; }
.foot .brand .word { font-size: 1.15rem; }
.foot-cta { --h: 44px; padding: 0 22px; font-size: .889rem; margin-top: 4px; }
.foot-col { display: grid; gap: 12px; align-content: start; }
.foot-col h3 { margin: 0 0 4px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-surface); }
.foot-col a { color: var(--on-surface-variant); text-decoration: none; font-size: .9rem; width: fit-content; }
.foot-col a:hover { color: var(--primary); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0 40px; border-top: 1px solid var(--outline-variant); }
.foot-base p { margin: 0; font-size: .85rem; color: var(--on-surface-variant); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1280px) {
  .topnav a:nth-child(5) { display: none; }
  .hero-in { gap: 40px; }
}
@media (max-width: 1100px) {
  :root { --sec-y: 104px; }
  .topnav { display: none; }
  .top-actions { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { padding-left: 48px; }
  .hero-dash { width: 112%; }
  .strip-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-tall { grid-row: auto; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-card { grid-template-columns: 1fr; padding: 64px 48px 0; }
  .final-copy { padding-bottom: 0; }
  .final-shot { height: 260px; margin-left: 15%; }
  .foot-in { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .step-art { aspect-ratio: 16 / 9; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile-row { grid-template-columns: 1fr; }
  .tile-row .btn { grid-column: 1; }
  .tile-why { padding-right: 24px; }
  .tile-why > :not(.why-shot) { margin-right: 0; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --sec-y: 80px; }
  .topbar-in { height: 64px; gap: 12px; }
  .top-signin { display: none; }
  .top-actions .btn { --h: 40px; padding: 0 16px; }
  .hero { padding-top: 32px; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 3.2rem); }
  .hero-sub { font-size: 1.1rem; }
  .hero-ctas { width: 100%; flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual { padding: 0 0 32px 24px; }
  .hero-dash { width: 150%; }
  .hero-sheet { width: 46%; }
  .frame-bar { height: 26px; }
  .frame-url { height: 16px; font-size: .6rem; padding: 0 8px; }
  .strip-in { grid-template-columns: 1fr; gap: 18px; padding-top: 28px; }
  .section-head { margin-bottom: 40px; }
  .tile { padding: 24px; }
  .tile-media .tile-copy { padding: 24px 24px 4px; }
  .tile-shot { margin-left: 24px; }
  .tpl { width: 200px; }
  .faq-list summary { font-size: 1.02rem; padding: 18px 20px; }
  .faq-list details p { padding: 0 20px 20px; }
  .final-card { padding: 48px 24px 0; border-radius: var(--r-m); }
  .final-shot { margin-left: 10%; height: 200px; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover .ms, .tpl:hover .tpl-paper { transform: none; }
  .faq-list summary .ms { transition: none; }
}
