/* NotiPilot marketing site. Plain CSS, no build step.
   Colors come from the app theme (Teal 500/700, Orange 500/700, app dark surfaces).
   Text-bearing teal/orange are the darker/lighter tonal variants so every pair meets WCAG AA. */

:root {
  color-scheme: dark light;
  --bg: #0b0f0e;
  --bg-rgb: 11 15 14;
  --surface: #141918;
  --surface-2: #1b2220;
  --line: #2b3331;
  --line-strong: #3c4745;
  --text: #f3f5f4;
  --muted: #a6b0ad;
  --accent: #2dd4bf;          /* teal text/icons on dark */
  --accent-strong: #14b8a6;   /* button fill */
  --on-accent: #03201d;
  --warm: #fb923c;            /* orange text/icons on dark */
  --warm-strong: #f97316;
  --warm-soft: rgb(249 115 22 / 0.14);
  --accent-soft: rgb(45 212 191 / 0.12);
  --glow: rgb(20 184 166 / 0.18);
  --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.7);
  --play-bg: #000;
  --play-fg: #fff;
  --play-line: #55605d;

  --font-display: "Bricolage Grotesque", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 64px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafaf9;
    --bg-rgb: 250 250 249;
    --surface: #ffffff;
    --surface-2: #eff4f3;
    --line: #dbe2e0;
    --line-strong: #bcc7c4;
    --text: #1c1917;
    --muted: #4f5d5a;
    --accent: #0f766e;
    --accent-strong: #0f766e;
    --on-accent: #ffffff;
    --warm: #c2410c;
    --warm-strong: #ea580c;
    --warm-soft: rgb(234 88 12 / 0.1);
    --accent-soft: rgb(15 118 110 / 0.08);
    --glow: rgb(20 184 166 / 0.14);
    --shadow: 0 24px 50px -28px rgb(15 40 36 / 0.35);
    --play-line: #000;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--accent-strong); color: var(--on-accent);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 10px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(var(--bg-rgb) / 0.94);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
}
.brand img { border-radius: 10px; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a, .menu a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 10px 12px; border-radius: 10px;
}
.nav-links a:hover, .menu a:hover { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  color: var(--text); font-weight: 600; font-size: 0.95rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--surface-2); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 8px; box-shadow: var(--shadow); display: grid;
}
.menu-panel a { padding: 12px 14px; }

@media (max-width: 420px) {
  /* Not live yet: the hero pill is right under the headline, so drop the header pill to keep the bar uncrowded. */
  html:not([data-play-live="true"]) .header-actions .play--sm { display: none; }
}
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .menu { display: none; }
}

/* ---------- Buttons ---------- */
/* The Google Play button has two states, switched by html[data-play-live] (set in /play-config.js).
   Default (not live): a non-link "Coming soon" pill. Live: the real link. */
.play {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 22px 8px 16px;
  background: var(--play-bg); color: var(--play-fg);
  border: 1.5px solid var(--play-line); border-radius: 14px;
  text-decoration: none; line-height: 1.1;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.play[href]:hover { transform: translateY(-2px); border-color: var(--accent-strong); text-decoration: none; }
.play[href]:active { transform: translateY(0); }
.play svg { width: 28px; height: 28px; flex: none; }
.play small { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.01em; opacity: 0.9; }
.play strong { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.play--sm { min-height: 44px; padding: 4px 14px 4px 10px; gap: 8px; border-radius: 12px; }
.play--sm svg { width: 20px; height: 20px; }
.play--sm small { display: none; }
.play--sm strong { font-size: 0.9rem; font-weight: 600; white-space: nowrap; }

.play .soon, .play .live { display: block; }
html:not([data-play-live="true"]) .play .live,
html[data-play-live="true"] .play .soon { display: none; }
html:not([data-play-live="true"]) .play-live-only { display: none; }

/* Coming-soon pill: calm, readable, clearly not a link. */
.play:not([href]) {
  cursor: default; color: var(--text);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--accent-strong), var(--warm-strong)) border-box;
  border-color: transparent;
}
.play:not([href]) svg { opacity: 0.85; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: var(--text); text-decoration: none;
  border-bottom: 2px solid var(--accent-strong);
}
.link-arrow:hover { color: var(--accent); }

/* ---------- Sections ---------- */
section { padding-block: clamp(56px, 9vw, 108px); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; max-width: 40rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding-block: clamp(36px, 7vw, 88px) clamp(32px, 5vw, 56px);
  background:
    radial-gradient(60% 60% at 82% 25%, var(--glow), transparent 70%),
    radial-gradient(34% 30% at 8% 62%, var(--warm-soft), transparent 70%);
}
.hero-grid { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 10.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--accent); }
.hero .lede { margin-top: 24px; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 34rem; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-meta { margin-top: 20px; color: var(--muted); font-size: 0.95rem; }

.hero-visual { display: grid; gap: 14px; justify-items: center; }
.phone {
  width: min(100%, 320px);
  padding: 10px; border-radius: 42px;
  background: #1a1f1e; border: 1px solid #343d3b;
  box-shadow: var(--shadow), 0 0 0 1px rgb(255 255 255 / 0.03) inset;
}
/* The screen is always dark, like the app, so it carries its own tokens. */
.screen {
  --s-surface: #1b2220; --s-line: #2e3735; --s-text: #f3f5f4; --s-muted: #a6b0ad;
  --s-accent: #2dd4bf; --s-warm: #fb923c;
  background: #0f1211; color: var(--s-text);
  border-radius: 33px; padding: 14px 14px 22px; min-height: 500px;
  display: flex; flex-direction: column;
}
.screen-notch { width: 78px; height: 8px; border-radius: 4px; background: #262c2b; margin: 0 auto 18px; }
.screen-title { font-size: 0.85rem; font-weight: 600; color: var(--s-muted); margin-bottom: 10px; padding-inline: 2px; }
.feed { display: grid; gap: 10px; }
.feed li {
  display: grid; gap: 3px; padding: 12px 14px; border-radius: 16px;
  background: var(--s-surface); border: 1px solid var(--s-line);
  animation: arrive 1.9s ease-out both;
}
.feed li:nth-child(2) { animation-delay: 0.2s; }
.feed li:nth-child(3) { animation-delay: 0.4s; }
.feed .src { font-size: 0.8125rem; color: var(--s-muted); }
.feed .msg { font-weight: 600; font-size: 0.975rem; line-height: 1.35; }
.feed .out { margin-top: 2px; font-size: 0.875rem; font-weight: 600; color: var(--s-accent); display: flex; align-items: center; gap: 6px; }
.feed .out svg { width: 16px; height: 16px; flex: none; }
.feed li.is-dismissed { opacity: 0.82; }
.feed li.is-dismissed .msg { text-decoration: line-through; text-decoration-thickness: 1px; }
.feed li.is-dismissed .out { color: var(--s-muted); }
.feed li.is-urgent { border-color: #f97316; background: #2a1c12; animation-name: arrive-urgent; }
.feed li.is-urgent .out { color: var(--s-warm); }
.screen-foot { margin-top: auto; padding-top: 28px; display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--s-muted); font-size: 0.85rem; }
.screen-foot img { border-radius: 14px; }
.hero-note { font-size: 0.8125rem; color: var(--muted); text-align: center; max-width: 320px; }

@keyframes arrive {
  0% { opacity: 0; transform: translateY(10px); }
  25% { opacity: 1; transform: none; }
}
@keyframes arrive-urgent {
  0% { opacity: 0; transform: translateY(10px); box-shadow: 0 0 0 0 rgb(249 115 22 / 0); }
  25% { opacity: 1; transform: none; }
  60% { box-shadow: 0 0 0 5px rgb(249 115 22 / 0.3); }
  100% { box-shadow: 0 0 0 0 rgb(249 115 22 / 0); }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
  .hero h1 span { white-space: nowrap; }
  .phone { transform: rotate(2deg); }
}

/* ---------- Features ---------- */
.feature-block + .feature-block { margin-top: clamp(48px, 7vw, 84px); }
.feature-block h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 8px; }
.feature-block .sub { color: var(--muted); max-width: 40rem; margin-bottom: 28px; }

.match-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.match-list li { display: grid; grid-template-columns: 40px 1fr; gap: 6px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.match-list h4, .act-grid h4, .control-list h4 { margin: 0; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.match-list p, .act-grid p, .control-list p { color: var(--muted); font-size: 0.975rem; line-height: 1.55; margin-top: 4px; }
@media (min-width: 760px) {
  .match-list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

.ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent);
}
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--warm { background: var(--warm-soft); color: var(--warm); }

.act-grid { display: grid; gap: 28px 32px; }
.act-grid li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
@media (min-width: 640px) { .act-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .act-grid { grid-template-columns: repeat(3, 1fr); } }
.act-note { margin-top: 24px; color: var(--muted); font-size: 0.95rem; max-width: 44rem; }

.two-col { display: grid; gap: clamp(28px, 5vw, 56px); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.1fr 1fr; align-items: start; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.panel h3 { font-size: 1.4rem; margin-bottom: 4px; }
.panel .sub { color: var(--muted); font-size: 0.975rem; margin-bottom: 18px; }
.tmpl-list { display: grid; }
.tmpl-list li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.tmpl-list li:first-child { border-top: 0; }
.tmpl-list strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; }
.tmpl-list span { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

.control-list { display: grid; gap: 20px; }
.control-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }

/* ---------- How it works ---------- */
.how { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; gap: 28px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 6px 18px; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  background: var(--accent-strong); color: var(--on-accent);
}
.steps h3 { font-size: 1.3rem; padding-top: 6px; }
.steps p { color: var(--muted); }

.anatomy { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.anatomy-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.anatomy-sub { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.anatomy dl { margin: 18px 0 0; display: grid; gap: 0; }
.anatomy .row { display: grid; grid-template-columns: 5.2rem 1fr; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.anatomy dt { font-family: var(--font-display); font-weight: 800; color: var(--accent); }
.anatomy dt.then { color: var(--warm); }
.anatomy dd { margin: 0; font-size: 0.975rem; line-height: 1.5; }
.anatomy dd ul { display: grid; gap: 4px; }
.anatomy dd li::before { content: "\2192\00a0"; color: var(--muted); }
@media (min-width: 900px) {
  .how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
}
@media (max-width: 899px) { .anatomy { margin-top: 36px; } }

/* ---------- Gallery ---------- */
.gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.gallery-head .section-head { margin-bottom: 0; }
.shots-controls { display: none; gap: 8px; }
.js .shots-controls { display: flex; }
.shots-controls[hidden] { display: none !important; }
.shots-controls button {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong);
  display: grid; place-items: center;
}
.shots-controls button:hover { background: var(--surface-2); border-color: var(--accent-strong); }
.shots-controls button:disabled { opacity: 0.4; cursor: default; }
.shots-controls svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.shots {
  margin-top: 36px;
  display: flex; gap: 20px; align-items: flex-start;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 20px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.shots:focus-visible { outline-offset: -3px; }
.shot { flex: none; scroll-snap-align: start; margin: 0; width: 248px; }
.shot--wide { width: min(372px, calc(100vw - 72px)); }
.shot img { border-radius: 20px; border: 1px solid var(--line-strong); width: 100%; background: #0f0f0f; }
.shot figcaption { margin-top: 14px; font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.shot figcaption strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 2px; letter-spacing: -0.01em; }
.shots-note { margin-top: 8px; color: var(--muted); font-size: 0.875rem; }
@media (min-width: 640px) { .shot { width: 272px; } .shot--wide { width: 412px; } }

/* ---------- Privacy ---------- */
.privacy { background: var(--surface); border-block: 1px solid var(--line); }
.privacy-list { display: grid; gap: 22px; }
.privacy-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.privacy-list h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
.privacy-list p { margin-top: 4px; color: var(--muted); font-size: 0.975rem; line-height: 1.55; }
.privacy .cta { margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 4px 22px; color: var(--muted); max-width: 44rem; }
.faq .answer p + p { margin-top: 12px; }
.faq .answer strong { color: var(--text); }

/* ---------- Closing CTA ---------- */
.closing { padding-block: clamp(48px, 8vw, 88px); text-align: center; background: radial-gradient(50% 80% at 50% 0%, var(--glow), transparent 75%); border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.closing p { margin: 14px auto 28px; color: var(--muted); max-width: 32rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand p { margin-top: 10px; max-width: 24rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--text); display: inline-flex; align-items: center; min-height: 44px; }
.legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; display: grid; gap: 6px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } .footer-links { justify-content: flex-end; } }

/* ---------- Prose pages (privacy policy, 404) ---------- */
.page-head { padding-block: clamp(40px, 7vw, 80px) 8px; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.03em; }
.page-head .updated { margin-top: 14px; color: var(--muted); }
.prose { max-width: 44rem; padding-block: 24px clamp(56px, 8vw, 96px); }
.prose h2 { font-size: 1.55rem; margin: 44px 0 12px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose .table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

.notfound { min-height: 60vh; display: grid; align-content: center; padding-block: 72px; }
.notfound h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); letter-spacing: -0.035em; }
.notfound p { margin-top: 16px; color: var(--muted); max-width: 32rem; }
.notfound .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .play:hover { transform: none; }
}
