/* Plateau marketing site — tokens mirror data/COLORS.js in the app repo. */

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #0A0A0A;              /* BACKGROUND_DEEP_BLACK */
  --bg-raised: #111111;       /* BACKGROUND_BLACK */
  --surface: rgba(255, 255, 255, 0.06);        /* GLASS_CARD */
  --surface-border: rgba(255, 255, 255, 0.10); /* GLASS_CARD_BORDER */
  --accent: #FFD600;          /* YELLOW_TXT — the app's interactive highlight */
  --glow: #4285f4;            /* MAIN_BLUE — decoration only, never body text */
  --affirm: #2FB163;          /* GREEN_TXT */
  --text: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.5);        /* WHITE_50_TXT */
  --radius: 16px;
  --section-y: clamp(64px, 10vw, 128px);
  --measure: 62ch;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 600; }
p  { margin: 0 0 1em; max-width: var(--measure); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

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

.container {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--raised { background: var(--bg-raised); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.lede { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--text-dim); }

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #000; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--surface-border); }

/* Scroll reveal — neutralised entirely under reduced motion. */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: #000;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(10, 10, 10, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--surface-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.site-header .btn--sm { padding: 9px 18px; font-size: 0.875rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.9375rem;
}
.wordmark img { border-radius: 7px; }

.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) var(--section-y);
  overflow: hidden;
}
/* Ambient blue wash lifted from the logo's glowing plate. */
.hero::before {
  content: '';
  position: absolute;
  inset: -20% 30% auto -10%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(66, 133, 244, 0.16), transparent);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  grid-template-columns: 1fr;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 20px; }
.hero__note { color: var(--text-dim); font-size: 0.9375rem; margin: 0; }
.hero__shot { justify-self: center; }

/* Phone frame drawn in CSS — sharp at any density, no device art licensing. */
.phone {
  position: relative;
  width: min(300px, 78vw);
  padding: 10px;
  border-radius: 44px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.6) inset;
}
.phone::after {
  content: '';
  position: absolute;
  top: 22px; left: 50%;
  width: 84px; height: 24px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone img { border-radius: 34px; display: block; }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero__shot { justify-self: end; }
}

.proof { padding-block: clamp(32px, 5vw, 48px); }
.proof-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  margin: 0;
  padding: 24px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.9375rem;
  text-align: center;
}
.proof-bar strong { display: block; color: var(--text); font-size: 1.25rem; font-weight: 700; }

.feature__inner {
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  grid-template-columns: 1fr;
}
.feature__media { justify-self: center; }

.feature__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature__points li {
  position: relative;
  padding-left: 30px;
  color: var(--text-dim);
  max-width: var(--measure);
}
.feature__points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 16px; height: 9px;
  border-left: 2px solid var(--affirm);
  border-bottom: 2px solid var(--affirm);
  transform: rotate(-45deg);
}

@media (min-width: 900px) {
  .proof-bar { grid-template-columns: repeat(4, 1fr); }
  .feature__inner { grid-template-columns: 1fr 1fr; }
  .feature--reverse .feature__media { order: -1; justify-self: start; }
}

.plans {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}
.plan { position: relative; }
.plan--pro { border-color: rgba(66, 133, 244, 0.45); box-shadow: 0 0 60px rgba(66, 133, 244, 0.10); }
.plan__tagline { color: var(--text-dim); font-size: 0.9375rem; }
.plan__group {
  margin: 24px 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan__list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-dim);
  font-size: 0.9375rem;
}
.plan__list li strong { color: var(--text); font-weight: 600; }
.plan__list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.5em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--affirm);
  border-bottom: 2px solid var(--affirm);
  transform: rotate(-45deg);
}
/* Unshipped features read as pending, not delivered. */
.plan__list--muted li::before {
  border-color: var(--text-dim);
  border-bottom: none;
  border-left: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--text-dim);
  transform: none;
  top: 0.55em;
}
.badge {
  position: absolute;
  top: -11px; right: 20px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--glow);
  color: #0A0A0A;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 860px) {
  .plans { grid-template-columns: 1fr 1fr; align-items: start; }
}

.prices {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 40px;
  max-width: 720px;
}
.price { position: relative; }
.price--featured { border-color: var(--accent); }
.price__amount {
  margin: 12px 0 4px;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}
.price__amount span { font-size: 1rem; font-weight: 400; color: var(--text-dim); }
.price__note { color: var(--text-dim); font-size: 0.875rem; margin: 0; }
.price--featured .badge { background: var(--accent); color: #000; }

@media (min-width: 640px) {
  .prices { grid-template-columns: 1fr 1fr; }
}

.faq { max-width: 780px; margin-top: 32px; display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: '\2212'; }
.faq p { color: var(--text-dim); margin: 0 0 16px; }

.site-footer { border-top: 1px solid var(--surface-border); padding-block: 40px; }
.site-footer__inner { display: grid; gap: 20px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer__links a { color: var(--text-dim); text-decoration: none; }
.site-footer__links a:hover { color: var(--text); text-decoration: underline; }
.site-footer__note { color: var(--text-dim); font-size: 0.875rem; margin: 0; }

@media (min-width: 760px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .site-footer__links { justify-content: center; }
}

.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.375rem; margin-top: 48px; }
.legal p, .legal li { color: var(--text-dim); }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal__updated { color: var(--text-dim); font-size: 0.875rem; }
.legal__disclaimer {
  margin-top: 48px;
  padding: 20px 24px;
  border-left: 2px solid var(--glow);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Official store artwork. Google ships its badge with ~1/4-height transparent
   padding baked into the canvas and Apple does not, so pairing the files
   as-downloaded left the row lopsided: a 22px optical gap against a 12px rule,
   and Apple flush to the container while Google sat inset. The Google PNG is
   therefore cropped to its own content box — the trademark itself untouched —
   and the clear space both vendors require is supplied here in CSS instead.
   That keeps the two badges the same height and both flush to the text above. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;                /* > 1/4 badge height, Google's stated minimum */
  margin-block: 28px 20px;
}
.store-badges a {
  display: inline-flex;
  border-radius: 8px;
}
.store-badges img { display: block; height: 40px; width: auto; }

@media (max-width: 400px) {
  .store-badges { gap: 14px; }
  .store-badges img { height: 36px; }
}

.download { text-align: center; }
.download .store-badges { justify-content: center; }
.download p { margin-inline: auto; }

/* Must stay last: overrides motion declared anywhere above it by source
   order, not specificity, so nothing appended after this block can escape it. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .site-header { transition: none; }
}
