/* Landing page. Builds on app.css tokens: Paper background, Evergreen actions,
   Sunrise glow behind the example, Plus Jakarta Sans for headings. */
.wrap.wide { max-width: 1080px; }
.landing h1, .landing h2, .landing h3, .result-card .big, .price, .plan-name { font-family: "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.012em; word-spacing: .03em; }
.landing h3 { font-size: 1.1rem; margin: 0 0 12px; }

.top-nav { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: .95rem; }
.top-nav a { color: var(--ink-2); text-decoration: none; }
.top-nav a:hover { color: var(--ink); }
.top-nav .btn-sm { background: var(--brand); color: var(--brand-ink); padding: 9px 16px; border-radius: 10px; white-space: nowrap; }
.landing .logo span { white-space: nowrap; }
@media (max-width: 400px) { .top-nav .btn-sm { padding: 8px 12px; font-size: .88rem; } .landing .logo { font-size: 1rem; } }
@media (max-width: 760px) { .top-nav a:not(.btn-sm) { display: none; } }

.btn-lg { display: inline-block; background: var(--brand); color: var(--brand-ink); font-weight: 700; padding: 15px 26px; border-radius: 12px; text-decoration: none; font-size: 1.08rem; }
.btn-lg:hover { filter: brightness(1.08); }
.btn-ghost { display: inline-block; border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); padding: 14px 22px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.btn-ghost:hover { border-color: var(--brand); }
.wide-btn { display: block; text-align: center; margin-top: 14px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 36px 0 76px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.04; margin: 0 0 18px; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 33em; margin: 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 12px; }
.hero-card { position: relative; }
.sun { position: absolute; z-index: 0; left: 50%; top: -70px; transform: translateX(-50%); width: 460px; height: 230px; border-radius: 460px 460px 0 0;
  background: radial-gradient(circle at 50% 100%, rgba(243,201,105,.95), rgba(243,201,105,.35) 50%, rgba(243,201,105,0) 72%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sun { opacity: .45; } }
:root[data-theme="dark"] .sun { opacity: .45; }
.result-card { position: relative; z-index: 1; border-radius: 20px; padding: 30px; margin: 0; box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 18px 50px rgba(31,94,78,.14); }
.result-card .eyebrow { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.result-card .big { font-size: 1.8rem; font-weight: 800; line-height: 1.15; margin: 6px 0 18px; }
.result-card .big.yes { color: var(--yes); }
.result-card .big.notyet { color: var(--notyet); }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.mini-stats > div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.mini-stats b { display: block; font-size: 1.5rem; }
.mini-stats span { font-size: .85rem; color: var(--ink-3); }

/* sections */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 68px 0; }
.wrap.section { padding-top: 68px; padding-bottom: 68px; }
.landing h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; margin: 0 0 12px; }
.section-lede { max-width: 46em; color: var(--ink-2); font-size: 1.08rem; margin: 0 0 24px; }
.band .card { background: var(--bg); box-shadow: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col .card { margin: 0; }
.center { text-align: center; margin: 32px 0 0; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; color: var(--ink-2); }
.steps li::before { counter-increment: s; content: counter(s); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-weight: 800; font-family: "Plus Jakarta Sans", system-ui, sans-serif; margin-bottom: 14px; }
.steps b { display: block; color: var(--ink); margin-bottom: 6px; font-size: 1.05rem; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 52px; align-items: start; }
.split p { color: var(--ink-2); font-size: 1.05rem; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.trust li { position: relative; padding: 14px 16px 14px 46px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); }
.trust li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 13px; height: 7px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }
.trust b { color: var(--ink); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.plan { display: flex; flex-direction: column; padding: 30px; margin: 0; }
.plan-name { font-weight: 800; font-size: 1.1rem; }
.price { font-size: 2.5rem; font-weight: 800; margin: 2px 0 12px; }
.price span { font-size: 1rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.plan ul { padding-left: 20px; color: var(--ink-2); flex: 1; margin: 0 0 8px; }
.plan li { margin-bottom: 8px; }
.plan.pro { border: 2px solid var(--brand); box-shadow: 0 12px 40px rgba(31,94,78,.14); }
.plan .fine { margin: 10px 0 0; text-align: center; }

.narrow { max-width: 780px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { color: var(--ink-2); margin: 10px 0 0; }

/* closing band: fixed Evergreen in both themes so the white text always reads */
.final { background: #1F5E4E; text-align: center; padding: 84px 0 76px; }
.final h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.final p { color: rgba(255,255,255,.86); font-size: 1.12rem; margin: 0 0 28px; }
.final-sun { position: relative; width: 170px; height: 85px; border-radius: 170px 170px 0 0; background: #F3C969; margin: 0 auto 34px; box-shadow: 0 0 90px rgba(243,201,105,.55); }
.final-sun::after { content: ""; position: absolute; left: -60px; right: -60px; bottom: -12px; height: 8px; border-radius: 4px; background: #F6F4EF; }
.btn-lg.light { background: #F6F4EF; color: #1F5E4E; }

/* loading placeholders while the example runs */
.skel { display: inline-block; height: .9em; border-radius: 6px; vertical-align: middle;
  background: linear-gradient(90deg, var(--line), var(--bg), var(--line)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel-chart { height: 280px; border-radius: 10px; background: linear-gradient(90deg, var(--line), var(--bg), var(--line)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel, .skel-chart { animation: none; } }

@media (max-width: 860px) {
  .hero, .split, .two-col, .plans { grid-template-columns: 1fr; }
  .hero { padding: 12px 0 60px; gap: 64px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .steps, .mini-stats { grid-template-columns: 1fr; }
  .sun { width: 320px; height: 160px; top: -50px; }
  .result-card { padding: 22px; }
  .band, .wrap.section { padding-top: 52px; padding-bottom: 52px; }
}

/* ---------- blog ---------- */
.article { max-width: 740px; padding-top: 12px; padding-bottom: 40px; }
.article h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 800; line-height: 1.1; margin: 8px 0 12px; }
.article h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.article p, .article li { font-size: 1.1rem; line-height: 1.65; color: var(--ink-2); }
.article p.lead { font-size: 1.22rem; color: var(--ink); }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 10px; }
.article a { color: var(--brand); }
.crumbs { font-size: .88rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.byline { font-size: .9rem; color: var(--ink-3) !important; margin: 0 0 26px; }
.fig { margin: 28px 0; padding: 20px; }
.fig figcaption { font-size: .88rem; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.fig .legend { margin-bottom: 8px; }
.chart .lbl { font-size: 12px; fill: var(--ink-2); }
.cta-box { margin: 44px 0 28px; padding: 30px; border: 2px solid var(--brand); }
.cta-box h2 { margin-top: 0; }
.method { line-height: 1.6; }
.post-card { display: block; text-decoration: none; margin: 18px 0; transition: border-color .15s; }
.post-card:hover { border-color: var(--brand); }
.post-card h2 { margin: 6px 0 8px; color: var(--ink); font-size: 1.35rem; }
.post-card p { margin: 0; font-size: 1rem; }

/* ---------- affiliate page ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.tile { margin: 0; padding: 22px; }
.tile h3 { margin: 0 0 8px; }
.tile p { margin: 0; color: var(--ink-2); }
.calc label { display: block; font-weight: 600; margin: 14px 0 4px; }
.calc input[type=range] { margin-bottom: 4px; }
.calc .mini-stats { margin-top: 18px; }
.rules { padding-left: 20px; color: var(--ink-2); font-size: 1.05rem; }
.rules li { margin-bottom: 10px; }
.apply { margin: 0; padding: 28px; }
textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; }
#dash .card { margin-top: 8px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
