/* ============================================================
   THEME: black & white — finalized.
   The site chrome is pure monochrome (white surface, near-black
   ink). All color comes from the App Store panels themselves —
   they stay dark navy with amber + cyan glows, untouched, and
   pop dramatically against the white canvas.

   Aesthetic: high-end editorial / product (Apple, Linear, Things).
   Typography does the heavy lifting; type scale, spacing, and
   weight contrast carry the design. Decorative glows are removed.
   ============================================================ */

/* ------------------------------- Base ------------------------------- */

:root {
  --ink:        #0A0E14;   /* primary text + buttons */
  --ink-2:      #1F2330;   /* slightly softer headings */
  --muted:      #5A6373;   /* body copy */
  --muted-2:    #8A8F9C;   /* subdued / footer copy */
  --line:       rgba(10, 14, 20, 0.10);
  --line-soft:  rgba(10, 14, 20, 0.06);
  --surface:    #FFFFFF;
  --surface-2:  #FAFAFA;   /* alternate section bg */
  --surface-3:  #F4F5F7;   /* elevated surfaces (eyebrow, faq idle) */

  /* Remap the tokens the original styles.css uses so every
     `color: var(--text-X)` instantly becomes B&W-correct. This is
     the cleanest way to recolor the entire site in one shot. */
  --text:    #0A0E14 !important;
  --text-2:  #5A6373 !important;
  --text-3:  #8A8F9C !important;
  --text-4:  #A8ACB5 !important;
  --white:   #FFFFFF !important;
}

body {
  background: #FFFFFF !important;
  color: var(--ink) !important;
}

/* Kill ambient color blobs + grain — pure white canvas. */
body::before, body::after { display: none !important; content: none !important; }

/* ------------------------------- Nav ------------------------------- */
.nav {
  background: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}
.nav a, .nav-link, .nav-links a {
  color: var(--ink) !important;
}
.nav-links a:hover { color: var(--muted) !important; }

/* Pepta brand mark — matches the actual app icon exactly:
   ice-blue gradient tile (#DDE6F2 → #FFFFFF) with the navy chain.
   This is the brand identity, not site chrome — it stays the same
   here, in the app, and on every panel. The wordmark stays solid
   black so it sits cleanly on the white site canvas. */
.brand { color: var(--ink) !important; }
.brand-mark {
  background: linear-gradient(180deg, #DDE6F2 0%, #FFFFFF 100%) !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(10, 14, 20, 0.08), inset 0 0 0 1px rgba(10, 14, 20, 0.06) !important;
}
/* The SVG already has stroke="#1E3A66" navy on its <g>. Don't
   override it — let the chain's lines paint as-is so the mark
   matches the app icon (chain with visible connecting lines). */
.brand-word {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: var(--ink) !important;
  color: var(--ink) !important;
}
.footer-tag { color: var(--muted-2) !important; }

/* CTA mark (black slab) — same brand mark (ice-blue tile, navy chain)
   so the icon you tap to download matches the icon on your home screen. */
.cta-mark {
  background: linear-gradient(180deg, #DDE6F2 0%, #FFFFFF 100%) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.30) !important;
}

/* ------------------------------- Hero ------------------------------- */

.hero { padding-top: 80px !important; padding-bottom: 80px !important; }

/* Subtle vignette behind phone — mostly invisible, just a hint of warmth */
.hero-glow {
  background: radial-gradient(60% 50% at 50% 50%,
    rgba(10, 14, 20, 0.06) 0%,
    rgba(10, 14, 20, 0.00) 70%) !important;
  filter: blur(40px) !important;
  inset: -10% -10% 5% -10% !important;
}

/* Eyebrow tag: pill, dark text on subtle gray. No glow. */
.eyebrow {
  background: var(--surface-3) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  letter-spacing: 0.08em;
  font-weight: 600 !important;
}
.eyebrow-dot {
  background: var(--ink) !important;
  box-shadow: none !important;
  animation: none !important;
}

/* Headline — pure black, no gradient. Type does all the work. */
.headline {
  color: var(--ink) !important;
  letter-spacing: -0.02em !important;
}
.grad {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: var(--ink) !important;
  color: var(--ink) !important;
  /* The accent phrase becomes italic-like via font-feature/weight contrast */
  font-style: italic;
  font-weight: 800 !important;
}

.lede, .hero-lede, .hero-text p { color: var(--muted) !important; }
.hero-meta, .hero-foot, .hero-trust, .hero-bullets {
  color: var(--muted-2) !important;
}

/* Hero phone has a soft drop shadow only — no halo */
.hero-phone {
  box-shadow:
    0 30px 60px rgba(10, 14, 20, 0.18),
    0 12px 24px rgba(10, 14, 20, 0.10) !important;
}

/* ------------------------------- Buttons ------------------------------- */

/* Primary: solid black, white text. The button is the action. */
.btn-primary {
  background: var(--ink) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--ink) !important;
  box-shadow: none !important;
}
.btn-primary:hover {
  background: var(--ink-2) !important;
  box-shadow: 0 12px 24px rgba(10, 14, 20, 0.18) !important;
  transform: translateY(-1px);
}
.btn-primary .btn-eyebrow,
.btn-primary .btn-eyebrow-line { color: rgba(255, 255, 255, 0.65) !important; }

/* Secondary / ghost: white surface, dark border + text.
   Border is intentionally crisp (1.5px, dark gray) so the button
   reads as a real button on a white canvas. */
.btn-secondary,
.btn-ghost {
  background: #FFFFFF !important;
  color: var(--ink) !important;
  border: 1.5px solid rgba(10, 14, 20, 0.20) !important;
  box-shadow: 0 1px 2px rgba(10, 14, 20, 0.05) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.btn-secondary:hover,
.btn-ghost:hover {
  border-color: var(--ink) !important;
  background: var(--surface-2) !important;
  box-shadow: 0 8px 20px rgba(10, 14, 20, 0.12) !important;
  transform: translateY(-1px);
}
.btn-secondary .btn-eyebrow,
.btn-ghost .btn-eyebrow,
.btn-secondary .btn-eyebrow-line,
.btn-ghost .btn-eyebrow-line { color: var(--muted) !important; }
.btn-ghost .store-small { color: var(--muted) !important; opacity: 1 !important; }
.btn-primary .store-small { color: rgba(255, 255, 255, 0.65) !important; opacity: 1 !important; }

/* Nav download button — same as primary but compact */
.nav .btn,
.nav .btn-primary {
  background: var(--ink) !important;
  color: #FFFFFF !important;
}

/* ------------------------------- Section heads ------------------------------- */

.section-pad > .container > .section-head { padding-top: 0 !important; }
.section-pad > .container > .section-head::before { display: none !important; }

.section-head h2,
.section-title {
  color: var(--ink) !important;
  letter-spacing: -0.02em !important;
}
.section-head .grad,
.section-title .grad {
  background: none !important;
  -webkit-text-fill-color: var(--ink) !important;
  color: var(--ink) !important;
  font-style: italic;
}
.section-head p,
.section-sub,
.section-lede { color: var(--muted) !important; }

/* Subtle hairline rule above each section title — quiet structure */
.section-head { position: relative; }
.section-head::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--ink);
  margin: 0 auto 22px;
  order: -1;
}
.section-head { display: flex; flex-direction: column; align-items: center; }
.section-head > * { width: 100%; }

/* Eyebrow / kicker labels above section heads — small caps, dark */
.section-eyebrow,
.kicker {
  color: var(--ink) !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  font-size: 12px !important;
  font-weight: 700 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

/* ------------------------------- Section backgrounds ------------------------------- */

/* Alternate sections use the very subtle off-white so the page has rhythm. */
.section:nth-of-type(even) { background: var(--surface-2); }
.section-features,
.section-quote,
.section-reviews,
.section-faq,
.section-cta,
.section-pad { position: relative; }

/* Override theme-specific dark sections (hybrid theme leftovers) */
.feature-hero, .section-quote {
  background: transparent !important;
}
.feature-hero::before, .section-quote::before { display: none !important; }

/* ------------------------------- Premium feature (chart hero) ------------------------------- */

.feature-art img,
.feature-art-tilt img {
  border-radius: 32px !important;
  box-shadow:
    0 40px 80px rgba(10, 14, 20, 0.18),
    0 16px 32px rgba(10, 14, 20, 0.10),
    0 0 0 1px rgba(10, 14, 20, 0.04) !important;
}
.feature-hero .feature-art::before { display: none !important; }
.feature-title { color: var(--ink) !important; letter-spacing: -0.02em !important; }
.feature-copy, .feature p { color: var(--muted) !important; }
.feature-meta { color: var(--muted-2) !important; }

/* Feature bullet list — dark text, black check dots (strict B&W) */
.feature-list li { color: var(--ink) !important; font-weight: 600 !important; }
.feature-list li::before {
  background: var(--ink) !important;
  box-shadow: none !important;
}
.feature-list li::after { border-color: #FFFFFF !important; }

/* Feature badges become subtle dark pills */
.badge,
.badge-amber,
.badge-blue {
  background: var(--surface-3) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11.5px;
}

/* ------------------------------- Three feature cards ------------------------------- */

.card {
  background: #FFFFFF !important;
  border: 1px solid var(--line) !important;
  box-shadow:
    0 1px 2px rgba(10, 14, 20, 0.04),
    0 12px 28px rgba(10, 14, 20, 0.06) !important;
  position: relative;
  overflow: hidden;
}
.card::before { display: none !important; content: none !important; }
.card:hover {
  border-color: rgba(10, 14, 20, 0.20) !important;
  transform: translateY(-3px);
  box-shadow:
    0 4px 8px rgba(10, 14, 20, 0.05),
    0 24px 48px rgba(10, 14, 20, 0.10) !important;
}

.card-title { color: var(--ink) !important; letter-spacing: -0.01em !important; }
.card-copy { color: var(--muted) !important; }

.feature-card-art {
  background: var(--surface-3) !important;
  box-shadow: none !important;
  border: 1px solid var(--line-soft);
}
.feature-card-art::after { display: none !important; }

/* ------------------------------- Featured quote ------------------------------- */

.section-quote { padding: 80px 0 !important; }

.quote-card {
  background: var(--surface-2) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  position: relative;
}
.quote-card::after { display: none !important; }

.quote-mark {
  background: var(--ink) !important;
  color: #FFFFFF !important;
  width: 64px !important;
  height: 64px !important;
  font-size: 72px !important;
  box-shadow: none !important;
  border-radius: 18px;
}

.quote-text { color: var(--ink) !important; font-weight: 600; }
.quote-author { color: var(--muted) !important; }
.quote-author strong { color: var(--ink) !important; }

/* ------------------------------- Reviews grid ------------------------------- */

.review {
  background: #FFFFFF !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 1px 2px rgba(10, 14, 20, 0.04) !important;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.review:hover {
  border-color: rgba(10, 14, 20, 0.20) !important;
  background: #FFFFFF !important;
  box-shadow:
    0 4px 8px rgba(10, 14, 20, 0.05),
    0 16px 32px rgba(10, 14, 20, 0.08) !important;
  transform: translateY(-2px);
}
.review-author, .review-name { color: var(--ink) !important; }
.review-meta, .review-handle { color: var(--muted-2) !important; }
.review-body, .review p { color: var(--muted) !important; }

.review-tag {
  background: var(--surface-3) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  letter-spacing: 0.10em;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
}

/* Stars: solid black, no glow */
.stars { color: var(--ink) !important; text-shadow: none !important; }

/* ------------------------------- FAQ ------------------------------- */

.faq-item {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: background 0.2s ease;
}
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item:hover {
  border-top-color: rgba(10, 14, 20, 0.25) !important;
  box-shadow: none !important;
  background: transparent !important;
}
.faq-item[open] {
  background: transparent !important;
  border-top-color: rgba(10, 14, 20, 0.30) !important;
  box-shadow: none !important;
}
.faq-item summary { color: var(--ink) !important; font-weight: 700 !important; }
.faq-item .faq-answer,
.faq-item p { color: var(--muted) !important; }
.faq-item summary::after,
.faq-toggle { color: var(--ink) !important; }

/* ------------------------------- CTA ------------------------------- */

.section-cta { padding: 100px 0 !important; }

/* The CTA card is the visual inverse — solid black slab. Reads as
   "press here", and rhymes with the colorful panels by being a
   hero-sized statement block. */
.cta-card {
  background: var(--ink) !important;
  border: 1px solid var(--ink) !important;
  color: #FFFFFF !important;
  box-shadow:
    0 50px 100px rgba(10, 14, 20, 0.30),
    0 20px 40px rgba(10, 14, 20, 0.20) !important;
  position: relative;
  overflow: hidden;
}
.cta-card::after { display: none !important; }
.cta-card * { color: inherit; }
.cta-title { color: #FFFFFF !important; letter-spacing: -0.02em !important; }
.cta-copy, .cta-card p { color: rgba(255, 255, 255, 0.72) !important; }
.cta-eyebrow {
  color: rgba(255, 255, 255, 0.55) !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
}
.cta-mark {
  background: #FFFFFF !important;
  color: var(--ink) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.30) !important;
}

/* CTA buttons invert: white primary on black card */
.cta-card .btn-primary {
  background: #FFFFFF !important;
  color: var(--ink) !important;
  border: 1px solid #FFFFFF !important;
}
.cta-card .btn-primary:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.30) !important;
}
.cta-card .btn-primary .btn-eyebrow,
.cta-card .btn-primary .btn-eyebrow-line { color: rgba(10, 14, 20, 0.55) !important; }

.cta-card .btn-secondary,
.cta-card .btn-ghost {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.40) !important;
  box-shadow: none !important;
}
.cta-card .btn-secondary:hover,
.cta-card .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: #FFFFFF !important;
  transform: translateY(-1px);
}
.cta-card .btn-secondary .btn-eyebrow,
.cta-card .btn-ghost .btn-eyebrow,
.cta-card .btn-secondary .btn-eyebrow-line,
.cta-card .btn-ghost .btn-eyebrow-line { color: rgba(255, 255, 255, 0.55) !important; }
.cta-card .btn-ghost .store-small { color: rgba(255, 255, 255, 0.55) !important; opacity: 1 !important; }

/* ------------------------------- Footer ------------------------------- */

.footer {
  background: var(--surface-2) !important;
  border-top: 1px solid var(--line) !important;
  color: var(--muted) !important;
  position: relative;
}
.footer::before { display: none !important; }
.footer a { color: var(--muted) !important; }
.footer a:hover { color: var(--ink) !important; }
.footer-brand,
.footer-brand strong,
.footer h4,
.footer-legal strong { color: var(--ink) !important; }
.footer-fine, .footer-meta { color: var(--muted-2) !important; }

/* ------------------------------- Legal pages ------------------------------- */

.legal-shell {
  background: #FFFFFF !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 1px 2px rgba(10, 14, 20, 0.04) !important;
}
.legal-shell h1, .legal-shell h2, .legal-shell h3 {
  color: var(--ink) !important;
  letter-spacing: -0.01em !important;
}
.legal-shell p, .legal-shell li { color: var(--muted) !important; }
.legal-shell strong { color: var(--ink) !important; }
.legal-shell a { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; }

.legal-callout {
  background: var(--surface-3) !important;
  border-left: 3px solid var(--ink) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

/* ------------------------------- Misc ------------------------------- */

/* Selection highlight stays brand-respectful */
::selection { background: var(--ink); color: #FFFFFF; }

/* Hairline horizontal rules anywhere on the site */
hr { border: none; border-top: 1px solid var(--line); }
