/* ============================================================
   StoicPath — landing page styles
   Palette + feel mirror the app: dark navy, green + gold accents,
   a muted royal-plum "quote" moment. Calm, contemplative, premium.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg:        #0E1119;
  --bg-deep:   #080A0F;
  --surface:   #151A23;
  --surface-2: #1B212C;
  --green:     #7FBF95;
  --green-brt: #8FD3A0;
  --gold:      #C9A657;
  --gold-lt:   #E8C77A;
  --plum:      #6A4C9C;
  --plum-deep: #2A2050;
  --text:      #E9E7DF;
  --muted:     #9BA5B0;
  --muted-2:   #6A7280;
  --hairline:  rgba(255, 250, 240, 0.08);
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(14, 17, 25, 0.72);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand .n { color: var(--green); }
.nav-cta {
  font-weight: 600; font-size: 14px; color: #0c1712;
  background: var(--green-brt); padding: 10px 18px; border-radius: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(143, 211, 160, .25); }

/* ---------- Buttons / store badges ---------- */
.badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.18);
  padding: 11px 18px; border-radius: 13px; min-width: 190px;
  transition: transform .15s ease, border-color .15s ease;
}
.badge:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.4); }
.badge svg { width: 26px; height: 26px; flex: 0 0 auto; }
.badge .bt { display: flex; flex-direction: column; line-height: 1.15; }
.badge .bt small { font-size: 10px; letter-spacing: .3px; opacity: .85; text-transform: none; }
.badge .bt b { font-size: 18px; font-weight: 600; letter-spacing: .2px; }
.badge.soon { background: #12151d; color: var(--muted); cursor: default; }
.badge.soon:hover { transform: none; border-color: rgba(255,255,255,.18); }
.badge.soon .tag {
  margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .6px;
  color: var(--gold-lt); border: 1px solid rgba(232,199,122,.4); border-radius: 6px;
  padding: 2px 6px; text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 18% 12%, rgba(106,76,156,.28) 0%, transparent 60%),
    radial-gradient(50% 45% at 92% 78%, rgba(201,166,87,.10) 0%, transparent 60%),
    radial-gradient(80% 70% at 50% -10%, rgba(127,191,149,.08) 0%, transparent 55%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: 60px; line-height: 1.08;
  letter-spacing: -0.5px; margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--gold-lt); }
.hero .sub { font-size: 20px; color: var(--muted); max-width: 480px; margin-bottom: 34px; }
.hero .badges { margin-bottom: 18px; }
.hero .fineprint { font-size: 13px; color: var(--muted-2); }
.hero .fineprint .free { color: var(--green-brt); font-weight: 600; }

/* Phone frame */
.phone {
  position: relative; width: 300px; margin: 0 auto;
  border-radius: 42px; padding: 10px; background: #1b1e26;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4);
}
.phone::after { /* glow */
  content: ""; position: absolute; inset: -40px -30px; z-index: -1;
  background: radial-gradient(50% 50% at 50% 40%, rgba(106,76,156,.35), transparent 70%);
  filter: blur(10px);
}
.phone img { border-radius: 33px; width: 100%; }
.hero-phone { transform: rotate(1.5deg); }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section-pad { padding: 86px 0; }
.center { text-align: center; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
h2.title { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.15; letter-spacing: -0.3px; margin-bottom: 18px; }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto; }

/* ---------- The idea / quote moment ---------- */
.idea { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%); }
.quote-card {
  position: relative; max-width: 720px; margin: 40px auto 0; padding: 44px 44px 38px;
  border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 120% at 30% 8%, #241F3A 0%, #1D1A2E 55%, #191723 100%);
  border: 1px solid rgba(255,250,240,.06);
  box-shadow: inset 0 1px 0 rgba(255,250,240,.09);
}
.quote-card .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(#C9A657cc, #C9A65733); }
.quote-card .mark { position: absolute; top: 6px; left: 26px; font-family: var(--serif); font-size: 90px; color: rgba(232,199,122,.30); line-height: 1; }
.quote-card q { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.32; quotes: none; position: relative; z-index: 1; margin-bottom: 18px; }
.quote-card .by { color: var(--gold); font-weight: 600; font-size: 18px; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 70px 0; }
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature.flip .f-media { order: 2; }
.f-copy .fnum { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 20px; margin-bottom: 10px; }
.f-copy h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.15; margin-bottom: 14px; letter-spacing: -0.2px; }
.f-copy p { font-size: 17px; color: var(--muted); max-width: 440px; }
.f-copy .pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.f-copy .pill { font-size: 13px; font-weight: 600; color: var(--green); border: 1px solid rgba(127,191,149,.3); border-radius: 999px; padding: 6px 14px; }
.f-media { display: flex; justify-content: center; }
.f-media .phone { width: 268px; }
.feature .phone::after { background: radial-gradient(50% 50% at 50% 40%, rgba(127,191,149,.22), transparent 70%); }
.feature.gold .phone::after { background: radial-gradient(50% 50% at 50% 40%, rgba(201,166,87,.22), transparent 70%); }
.feature.plum .phone::after { background: radial-gradient(50% 50% at 50% 40%, rgba(106,76,156,.30), transparent 70%); }

/* ---------- First program ---------- */
.program { background: linear-gradient(180deg, var(--bg-deep), var(--bg)); }
.program .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.program .stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 30px; }
.program .stat { font-size: 14px; font-weight: 600; color: var(--gold-lt); background: rgba(201,166,87,.08); border: 1px solid rgba(201,166,87,.22); border-radius: 999px; padding: 8px 16px; }
.program p.body { font-size: 17px; color: var(--muted); max-width: 460px; }

/* ---------- Closing CTA ---------- */
.cta { text-align: center; padding: 100px 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 80% at 50% 30%, rgba(106,76,156,.22), transparent 60%),
              radial-gradient(50% 60% at 50% 100%, rgba(201,166,87,.10), transparent 60%);
}
.cta .wrap { position: relative; z-index: 1; }
.cta img.mark { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 26px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.cta h2 { font-family: var(--serif); font-weight: 500; font-size: 52px; margin-bottom: 16px; letter-spacing: -0.4px; }
.cta .sub { font-size: 19px; color: var(--muted); margin-bottom: 34px; }
.cta .badges { justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--hairline); padding: 44px 0; background: var(--bg-deep); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer .brand { font-size: 17px; }
footer .brand img { width: 26px; height: 26px; }
footer .links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
footer .links a:hover { color: var(--text); }
footer .copy { font-size: 13px; color: var(--muted-2); width: 100%; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero .badges { justify-content: center; }
  .hero h1 { font-size: 46px; }
  .hero-phone { transform: none; order: -1; }
  .feature, .program .wrap { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  /* Single column: always show the image first, then the text, so the whole
     page reads image → text → image → text with no two images back-to-back. */
  .feature .f-media, .program .f-media { order: -1; }
  .f-copy p, .program p.body { margin-left: auto; margin-right: auto; }
  .f-copy .pills, .program .stats { justify-content: center; }
  h2.title { font-size: 32px; }
  .cta h2 { font-size: 38px; }
  .quote-card q { font-size: 24px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  .badges { flex-direction: column; align-items: stretch; }
  .badge { min-width: 0; width: 100%; }
  footer .wrap { flex-direction: column; text-align: center; }
}
