/* ==========================================================================
   Ahem! — shared site styles
   Dark, cinematic, warm — the site mirrors the app's fullscreen overlay.
   Palette: warm near-black + Ahem logo blue #2563EB
   Type:    Bricolage Grotesque (display) · Instrument Sans (body)
            Spline Sans Mono (times & countdown digits)
   ========================================================================== */

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

:root {
  --bg:            #0F0E0C;
  --bg-raised:     #16140F;
  --surface:       #1C1913;
  --border:        #2A2620;
  --border-light:  #3A352C;
  --text:          #F2EFE7;
  --text-dim:      #ABA595;
  --text-faint:    #878171; /* ≥4.5:1 on both bg tones (WCAG AA) */
  --accent:        #2563EB;
  --accent-hover:  #1D53CC;
  --accent-bright: #85AAF6;
  --accent-dim:    rgba(37, 99, 235, 0.14);
  --green:         #4ADE80;
  --red:           #EF6A5E;

  --font-display:  'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-body:     'Instrument Sans', 'Segoe UI', sans-serif;

  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --radius:        18px;
  --radius-sm:     10px;
  --container:     1120px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-bright); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 0.6rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ==========================================================================
   NAV
   ========================================================================== */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(15, 14, 12, 0.78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-nav.scrolled { border-bottom-color: var(--border); background: rgba(15, 14, 12, 0.92); }
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em;
}
.nav-logo img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.25rem; border-radius: 100px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.25s var(--ease), transform 0.15s var(--ease);
}
.nav-cta:hover { background: var(--accent-hover); box-shadow: 0 4px 24px rgba(37, 99, 235, 0.4); }
.nav-cta:active { transform: scale(0.98); }

/* Coming-soon badge — replaces buy buttons pre-launch */
.nav-cta.soon, .btn-primary.soon {
  background: transparent; color: var(--text-dim); cursor: default;
  box-shadow: none; border: 1px solid var(--border-light);
}
.nav-cta.soon:hover, .btn-primary.soon:hover { background: transparent; box-shadow: none; }
.nav-cta.soon:active, .btn-primary.soon:active { transform: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: clamp(8rem, 16vh, 11rem) 0 0; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 60% at 70% 0%, rgba(37, 99, 235, 0.10), transparent 65%);
  pointer-events: none;
}

/* Giant live countdown — ghost digits, exactly like the app overlay */
.hero-clock {
  position: absolute; top: clamp(4rem, 10vh, 7rem); right: -1.5rem; z-index: 0;
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(9rem, 24vw, 22rem); line-height: 0.9; letter-spacing: -0.04em;
  color: rgba(242, 239, 231, 0.045);
  font-variant-numeric: tabular-nums;
  user-select: none; pointer-events: none; white-space: nowrap;
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  color: var(--accent-bright); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero-kicker::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 12px var(--green);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.9rem, 7vw, 5.2rem); line-height: 1.02; letter-spacing: -0.035em;
  margin-bottom: 1.6rem; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero-desc {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--text-dim);
  max-width: 34em; line-height: 1.7; margin-bottom: 2.4rem; text-wrap: pretty;
}
.hero-desc strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.hero-note { font-size: 0.95rem; color: var(--text-faint); text-wrap: pretty; }
.hero-note strong { color: var(--text-dim); font-weight: 600; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 2rem; border-radius: 100px; border: none; cursor: pointer;
  background: var(--accent); color: #fff; text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: 1.08rem;
  box-shadow: 0 4px 28px rgba(37, 99, 235, 0.35);
  transition: background 0.2s ease, box-shadow 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 36px rgba(37, 99, 235, 0.5); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.7rem; border-radius: 100px; cursor: pointer;
  background: transparent; color: var(--text); text-decoration: none;
  border: 1px solid var(--border-light);
  font-family: var(--font-body); font-weight: 600; font-size: 1.08rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover { border-color: var(--text-faint); background: rgba(255, 255, 255, 0.04); }

/* Hero screenshot in a window frame */
.hero-shot { position: relative; z-index: 1; margin-top: clamp(3rem, 7vh, 5rem); padding-bottom: clamp(4rem, 8vh, 6rem); }
.window-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-light);
  background: #000;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 30px 90px rgba(0, 0, 0, 0.65),
    0 0 120px rgba(37, 99, 235, 0.12);
}
.window-frame img, .window-frame video { width: 100%; height: auto; display: block; }
.hero-shot figcaption {
  text-align: center; margin-top: 1.1rem;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text-faint); letter-spacing: 0.06em;
}

/* ==========================================================================
   VALUE STRIP
   ========================================================================== */
.value-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-raised); }
.value-strip-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem 2.75rem; padding: 1.3rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--container); margin: 0 auto;
}
.value-item {
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.value-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
.section { padding: clamp(5rem, 11vh, 8rem) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-label {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  color: var(--accent-bright); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1rem; display: block;
}
.section-heading {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -0.025em;
  margin-bottom: 1.1rem; max-width: 18em; text-wrap: balance;
}
.section-sub { font-size: 1.1rem; color: var(--text-dim); max-width: 36em; line-height: 1.7; text-wrap: pretty; }

/* Problem section */
.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split.reverse { grid-template-columns: 5fr 7fr; }
.bullets { display: flex; flex-direction: column; gap: 1.15rem; margin-top: 1.9rem; }
.bullet { display: flex; gap: 0.9rem; align-items: flex-start; }
.bullet-marker {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 0.2rem;
  color: var(--accent-bright);
}
.bullet-marker svg { width: 22px; height: 22px; }
.bullet p { color: var(--text-dim); line-height: 1.7; text-wrap: pretty; }
.bullet p strong { color: var(--text); font-weight: 600; }

.figure-glow { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-light); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55); background:#000; }
.figure-glow img { width: 100%; }

/* Full-bleed countdown banner */
.banner { border-top: 1px solid var(--border); background: #000; position: relative; max-width: var(--container); margin: 0 auto; }
.banner img { display: block; width: 100%; }
.banner-caption {
  position: absolute; bottom: 1rem; right: 1.4rem;
  font-family: var(--font-body); font-size: 0.9rem; letter-spacing: 0.1em;
  color: var(--text-faint); text-transform: uppercase;
}

/* Features — editorial numbered rows */
.feature-rows { margin-top: 3.25rem; border-top: 1px solid var(--border); }
.feature-row {
  display: grid; grid-template-columns: 5rem 1fr 1.4fr; gap: 2rem;
  padding: 2.4rem 0; border-bottom: 1px solid var(--border); align-items: baseline;
}
.feature-num {
  font-family: var(--font-body); font-size: 1rem; color: var(--text-faint); font-weight: 500;
}
.feature-row h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
  letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance;
}
.feature-row p { color: var(--text-dim); line-height: 1.7; text-wrap: pretty; }
.features-more { margin-top: 1.9rem; color: var(--text-faint); font-size: 1rem; text-wrap: pretty; }
.features-more strong { color: var(--text-dim); font-weight: 600; }

/* Privacy strip */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3rem; }
.privacy-card {
  padding: 1.6rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-raised);
}
.privacy-card svg { width: 26px; height: 26px; stroke: var(--accent-bright); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 0.9rem; }
.privacy-card h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.privacy-card p { font-size: 0.92rem; color: var(--text-faint); line-height: 1.55; text-wrap: pretty; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.price-card {
  background: var(--bg-raised); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 2.5rem 2.4rem;
  position: relative; overflow: hidden;
}
.price-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}
.price-line { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 0.4rem; }
.price-amount {
  font-family: var(--font-body); font-weight: 600; font-size: 3.4rem;
  letter-spacing: -0.05em; color: var(--text); line-height: 1;
}
.price-label { color: var(--text-faint); font-size: 1rem; }
.price-tagline { color: var(--text-dim); margin-bottom: 1.9rem; text-wrap: pretty; }
.price-perks { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.1rem; }
.price-perks li { display: flex; align-items: flex-start; gap: 0.65rem; color: var(--text-dim); font-size: 1rem; }
.price-perks svg { width: 18px; height: 18px; stroke: var(--green); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 0.25rem; }
.price-card .btn-primary { width: 100%; justify-content: center; }
.price-foot { margin-top: 1rem; text-align: center; font-size: 0.95rem; color: var(--text-faint); }

/* Specs / audience lists */
.fact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.fact-col h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 1.2rem;
}
.fact-list { list-style: none; display: flex; flex-direction: column; }
.fact-list li {
  padding: 0.8rem 0; border-bottom: 1px solid var(--border);
  color: var(--text-dim); font-size: 1rem; display: flex; gap: 0.7rem; align-items: baseline; text-wrap: pretty;
}
.fact-list li::before { content: '·'; color: var(--accent-bright); font-weight: 800; }

/* ==========================================================================
   FAQ — native accordions
   ========================================================================== */
.faq-list { max-width: 760px; margin-top: 2.75rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0.25rem; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-bright); }
.faq-item summary::after {
  content: '+'; font-family: var(--font-body); font-size: 1.35rem; color: var(--text-faint);
  transition: transform 0.25s var(--ease); flex-shrink: 0; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent-bright); }
.faq-item .faq-a { padding: 0 0.25rem 1.5rem; color: var(--text-dim); line-height: 1.7; max-width: 60ch; text-wrap: pretty; }
.faq-item summary { text-wrap: balance; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-raised); padding: 2.75rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.footer-brand img { width: 24px; height: 24px; }
.footer-tag { color: var(--text-faint); font-size: 0.92rem; }
.footer-links { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; font-size: 0.92rem; color: var(--text-faint); }
.footer-links a { color: var(--text-dim); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent-bright); }
.footer-sep { opacity: 0.45; }

/* ==========================================================================
   LEGAL DOC PAGES (privacy / terms)
   ========================================================================== */
.doc-page { padding-top: 68px; }
.doc-header { padding: clamp(3.5rem, 8vh, 5.5rem) 0 2.5rem; border-bottom: 1px solid var(--border); }
.doc-header h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.03em; margin-bottom: 0.5rem; text-wrap: balance;
}
.doc-meta { font-family: var(--font-body); font-size: 0.9rem; color: var(--text-faint); letter-spacing: 0.05em; }
.doc-body { max-width: 720px; padding: 3rem 0 6rem; }
.doc-callout {
  background: var(--accent-dim); border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: var(--radius-sm); padding: 1.3rem 1.5rem; margin-bottom: 2.75rem;
  color: var(--text); line-height: 1.7; font-size: 1.02rem;
}
.doc-callout strong { color: var(--accent-bright); }
.doc-callout { text-wrap: pretty; }
.doc-section { margin-bottom: 2.75rem; }
.doc-section h2 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 0.8rem; text-wrap: balance;
}
.doc-section p { color: var(--text-dim); line-height: 1.75; margin-bottom: 0.75rem; font-size: 1.02rem; text-wrap: pretty; }
.doc-section p:last-child { margin-bottom: 0; }
.doc-section ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.5rem; }
.doc-section ul li { position: relative; padding-left: 1.15em; color: var(--text-dim); line-height: 1.7; font-size: 1.02rem; text-wrap: pretty; }
.doc-section ul li::before { content: '·'; position: absolute; left: 0.25em; color: var(--accent-bright); font-weight: 800; }
.doc-section li strong, .doc-section p strong { color: var(--text); }
.doc-section a { color: var(--accent-bright); text-decoration: none; }
.doc-section a:hover { text-decoration: underline; }

/* ==========================================================================
   MOTION
   ========================================================================== */
/* Hidden initial state only when JS is running (html.js) — content is never
   lost if scripts fail to load. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js .reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
  .pricing-wrap { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 3rem 1fr; }
  .feature-row p { grid-column: 2; }
  .hero-clock { font-size: clamp(7rem, 26vw, 13rem); opacity: 0.8; }
}
@media (max-width: 600px) {
  .privacy-grid, .fact-cols { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .feature-row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.9rem 0; }
  .feature-row p { grid-column: 1; }
}
