/* HYBRID — landing page (signed out). Uses the theme tokens from app.css. */
body.is-landing { padding-bottom: 0; overflow-x: hidden; }
body.is-landing .top { display: none; }
body.is-landing .view { max-width: none; padding: 0; }
.landing { --ease: cubic-bezier(.2, .7, .1, 1); --gut: clamp(16px, 5vw, 64px); color: var(--text); background: var(--bg); }
.landing section { padding: clamp(64px, 12vh, 140px) var(--gut); position: relative; }
.landing .btn { min-height: 52px; padding: 0 22px; border-radius: 2px; text-decoration: none; color: var(--text); font-weight: 600; }
.landing .btn.primary { background: var(--accent); color: #fff; }
.l-h2 { font-size: clamp(36px, 7vw, 88px); line-height: .95; letter-spacing: -.035em; font-weight: 900; margin: 0 0 40px; text-transform: uppercase; }
.l-h2 span { color: var(--muted); }

/* hero */
.l-hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.l-hero-in { --p: 0; position: relative; z-index: 1; transform: translateY(calc(var(--p) * -60px)) scale(calc(1 - var(--p) * .06)); opacity: calc(1 - var(--p) * 1.1); will-change: transform, opacity; }
.l-kicker { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; animation: l-up .8s var(--ease) both; }
.l-kicker i, .l-final footer i { width: 10px; height: 10px; background: var(--accent); display: inline-block; }
.l-title { font-size: clamp(76px, 22vw, 300px); line-height: .82; letter-spacing: -.06em; font-weight: 900; margin: 18px 0 22px -.04em; animation: l-up 1s .1s var(--ease) both; }
.l-title span { color: var(--accent); display: inline-block; animation: l-blink 2.4s 1.2s steps(1) infinite; }
.l-lead { font-size: clamp(24px, 4.2vw, 48px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; animation: l-up 1s .2s var(--ease) both; }
.l-sub { font-size: clamp(16px, 1.6vw, 20px); color: var(--muted); max-width: 520px; margin: 0 0 30px; animation: l-up 1s .3s var(--ease) both; }
.l-cta { display: flex; gap: 10px; flex-wrap: wrap; animation: l-up 1s .4s var(--ease) both; }
.l-ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34vh; }
.l-ridge-fill { fill: color-mix(in srgb, var(--accent) 7%, transparent); animation: l-fade 1.6s 1s both; }
.l-ridge-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: l-draw 2.2s .5s var(--ease) forwards; }
.l-scrollhint { position: absolute; left: 50%; bottom: 0; width: 1px; height: 64px; background: var(--line); z-index: 1; overflow: hidden; }
.l-scrollhint span { position: absolute; left: 0; top: 0; width: 1px; height: 24px; background: var(--accent); animation: l-wheel 1.8s var(--ease) infinite; }

/* marquee */
.l-marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg); }
.l-marquee > div { display: flex; width: max-content; animation: l-marq 28s linear infinite; }
.l-marquee span { font-size: clamp(22px, 4vw, 44px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; padding: 0 28px; white-space: nowrap; }
.l-marquee span::after { content: ""; display: inline-block; width: .32em; height: .32em; background: var(--accent); margin-left: 56px; vertical-align: .18em; }
.l-marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--text); }

/* stats */
.landing .l-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); padding: 0; border-bottom: 1px solid var(--line); }
.l-stats > div { background: var(--bg); padding: clamp(28px, 6vw, 64px) var(--gut); }
.l-stats b { display: block; font-size: clamp(56px, 10vw, 120px); font-weight: 900; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.l-stats > div:last-child b { color: var(--accent); }
.l-stats span { color: var(--muted); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
@media (min-width: 900px) { .landing .l-stats { grid-template-columns: repeat(4, 1fr); } }

/* features */
.l-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .l-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .l-grid { grid-template-columns: repeat(3, 1fr); } }
.l-card { background: var(--bg); padding: 32px 26px 36px; position: relative; overflow: hidden; transition: background .4s, opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.l-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); transition: width .6s var(--ease) .3s; }
.l-card.in::before { width: 48px; }
.l-card:hover::before { width: 100%; }
.l-card:hover { background: var(--surface-2); }
.l-num { font-size: 64px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--muted); letter-spacing: -.04em; margin-bottom: 18px; }
.l-card h3 { font-size: 22px; margin: 0 0 8px; letter-spacing: -.01em; text-transform: uppercase; font-weight: 800; }
.l-card p { margin: 0; color: var(--muted); line-height: 1.5; }

/* course: the red line draws as you scroll through the section */
.l-course { --p: 0; border-block: 1px solid var(--line); }
.l-course-head { display: grid; gap: 12px; margin-bottom: 30px; }
.l-course-head .l-h2 { margin: 0; }
.l-course-head p { color: var(--muted); max-width: 440px; font-size: 18px; margin: 0; }
@media (min-width: 900px) { .l-course-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.l-course-svg { width: 100%; height: auto; overflow: visible; }
.l-course-base { fill: none; stroke: var(--line); stroke-width: 2; }
.l-course-line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - min(1, var(--p) * 1.35)); }
.l-cp circle { fill: var(--bg); stroke: var(--accent); stroke-width: 3; }
.l-cp text { fill: var(--text); font-size: 15px; font-weight: 800; text-transform: uppercase; }
@media (max-width: 700px) { .l-cp text { font-size: 30px; } .l-cp circle { r: 11; } .l-course-line { stroke-width: 6; } }
.l-cp { opacity: clamp(0, (var(--p) * 1.35 - var(--at)) * 12, 1); transition: opacity .2s; }

/* steps */
.l-steps ol { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .l-steps ol { grid-template-columns: repeat(3, 1fr); } }
.l-steps li { counter-increment: s; background: var(--bg); padding: 30px 26px; display: grid; gap: 8px; align-content: start; }
.l-steps li::before { content: "0" counter(s); font-size: 14px; font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.l-steps li b { font-size: 22px; text-transform: uppercase; letter-spacing: -.01em; }
.l-steps li span { color: var(--muted); line-height: 1.5; }

/* final */
.l-final { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; }
.l-final-big { font-size: clamp(80px, 20vw, 280px); font-weight: 900; letter-spacing: -.06em; line-height: .85; text-transform: uppercase; }
.l-final-big span { color: var(--accent); }
.l-final p { font-size: clamp(18px, 2vw, 24px); color: var(--muted); max-width: 560px; }
.l-final footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 60px; font-size: 13px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.l-final footer span { display: flex; align-items: center; gap: 8px; }

/* reveal on scroll */
.l-reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.l-reveal.in { opacity: 1; transform: none; }

@keyframes l-up { from { opacity: 0; transform: translateY(30px); } }
@keyframes l-fade { from { opacity: 0; } }
@keyframes l-draw { to { stroke-dashoffset: 0; } }
@keyframes l-blink { 50% { opacity: 0; } }
@keyframes l-wheel { from { transform: translateY(-24px); } to { transform: translateY(64px); } }
@keyframes l-marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before { animation: none !important; transition: none !important; }
  .l-ridge-line, .l-course-line { stroke-dashoffset: 0; }
  .l-hero-in { transform: none; opacity: 1; }
  @media (max-width: 700px) { .l-cp text { font-size: 30px; } .l-cp circle { r: 11; } .l-course-line { stroke-width: 6; } }
.l-cp { opacity: 1; }
}

/* price */
.l-price-card { border: 1px solid var(--line); padding: clamp(26px, 5vw, 48px); max-width: 560px; display: grid; gap: 22px; position: relative; }
.l-price-card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 64px; height: 4px; background: var(--accent); }
.l-price-sum b { font-size: clamp(64px, 12vw, 120px); font-weight: 900; letter-spacing: -.05em; line-height: .9; }
.l-price-sum span { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; margin-top: 8px; }
.l-price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.l-price-card li { display: flex; gap: 12px; align-items: baseline; }
.l-price-card li::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; transform: translateY(-1px); }
.l-price-card .btn { justify-self: start; }
.l-final .btn { margin-top: 18px; }
.l-trial { justify-self: start; background: var(--accent); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; padding: 8px 12px; }
