/* ============================================================
   FORK LANDING — content sections
   Contains: flow (how it works), ideology + orbit, stats, faq,
   final CTA, footer, integrations, social mechanics, platform
   features grid, marquee, decorative grids, pricing, scroll curve.
   ============================================================ */

/* ── FLOW / HOW IT WORKS ─────────────────────────── */
.l-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .l-flow { grid-template-columns: 1fr; }
}

.l-flow-card {
    position: relative;
    padding: 40px 32px 36px;
    border-radius: 24px;
    border: 1px solid var(--l-border);
    background: var(--l-surface);
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.l-flow-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--l-border));
    box-shadow: var(--l-shadow);
}

.l-flow-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 72px;
    line-height: 1;
    color: color-mix(in srgb, var(--l-fg) 18%, transparent);
    position: absolute;
    top: 18px;
    right: 26px;
}

.l-flow-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.l-flow-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.l-flow-desc {
    color: var(--l-dim);
    font-size: 15px;
    line-height: 1.55;
}

/* ── IDEOLOGY ─────────────────────────────────────── */
.l-ideology {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    gap: 40px;
    align-items: center;
}

@media (max-width: 900px) {
    .l-ideology { grid-template-columns: 1fr; }
}

.l-ideology-text h2 {
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}

.l-ideology-text h2 .serif { font-weight: 400; }

.l-ideology-text p {
    color: var(--l-dim);
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 14px;
}

.l-ideology-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
}

.l-ideology-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.l-ideology-item svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--accent);
    margin-top: 2px;
}

.l-ideology-item strong {
    display: block;
    color: var(--l-fg);
    font-size: 15px;
    margin-bottom: 2px;
}

.l-ideology-item span {
    color: var(--l-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Ideology visual: orbit of app icons */
.l-orbit {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-width: 320px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    justify-self: center;
}

.l-orbit::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%);
    filter: blur(50px);
}

.l-orbit-core {
    position: absolute;
    inset: 36%;
    border-radius: 28%;
    background: var(--l-fg);
    color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    z-index: 3;
    box-shadow: var(--l-shadow-strong);
    animation: l-pulse 3.2s ease-in-out infinite;
}

.l-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed var(--l-border);
    animation: l-spin 60s linear infinite;
}

.l-orbit-ring-2 {
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    border: 1px dashed var(--l-border);
    animation: l-spin 40s linear infinite reverse;
}

.l-orbit-icon {
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: var(--l-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: l-orbit-bob 4s ease-in-out infinite;
    z-index: 2;
}

.l-orbit-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 18px 40px -10px color-mix(in srgb, var(--accent) 40%, transparent);
}

@keyframes l-orbit-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ── STATS ─────────────────────────────────────────── */
.l-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 820px) {
    .l-stats { grid-template-columns: repeat(2, 1fr); }
}

.l-stat {
    padding: 32px 24px;
    border-radius: 20px;
    border: 1px solid var(--l-border);
    background: var(--l-surface);
    text-align: center;
}

.l-stat-num {
    font-family: var(--serif);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
}

.l-stat-label {
    margin-top: 10px;
    font-size: 13px;
    color: var(--l-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── FAQ ──────────────────────────────────────────── */
.l-faq {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.l-faq-item {
    border: 1px solid var(--l-border);
    background: var(--l-surface);
    border-radius: 18px;
    overflow: hidden;
}

.l-faq-q {
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    text-align: left;
    transition: background 0.2s;
}

.l-faq-q:hover { background: var(--bg-tertiary); }

.l-faq-plus {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    position: relative;
    transition: transform 0.3s;
}

.l-faq-plus::before,
.l-faq-plus::after {
    content: "";
    position: absolute;
    background: var(--l-fg);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s;
}

.l-faq-plus::before { width: 14px; height: 2px; }
.l-faq-plus::after  { width: 2px; height: 14px; }

.l-faq-item.open .l-faq-plus::after { transform: translate(-50%, -50%) scaleY(0); }

/* JS-measured max-height accordion — smoother than animating
   grid-template-rows. Padding stays applied; max-height + overflow
   handle the visual collapse, so there's no layout thrash. */
.l-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-height;
}

.l-faq-a-inner {
    padding: 4px 26px 22px;
    color: var(--l-dim);
    font-size: 15px;
    line-height: 1.6;
}

/* ── FINAL CTA ─────────────────────────────────────── */
.l-cta-final {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

.l-cta-final h2 {
    font-size: clamp(42px, 7vw, 96px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.035em;
}

.l-cta-final h2 .serif { font-weight: 400; }

.l-cta-final p {
    margin-top: 24px;
    color: var(--l-dim);
    font-size: 17px;
    line-height: 1.6;
}

.l-cta-final-actions {
    margin-top: 40px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── FOOTER ───────────────────────────────────────── */
.l-footer {
    padding: 60px clamp(20px, 5vw, 60px) 40px;
    border-top: 1px solid var(--l-border);
    background: var(--l-surface);
}

.l-footer-top {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--l-border);
}

@media (max-width: 820px) {
    .l-footer-top { grid-template-columns: 1fr 1fr; }
}

.l-footer-brand .l-nav-logo { margin-bottom: 14px; }

.l-footer-brand p {
    color: var(--l-muted);
    font-size: 13px;
    line-height: 1.6;
    max-width: 34ch;
}

.l-footer-col h4 {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--l-muted);
    margin-bottom: 18px;
}

.l-footer-col a {
    display: block;
    font-size: 14px;
    color: var(--l-dim);
    padding: 6px 0;
    transition: color 0.2s;
}

.l-footer-col a:hover { color: var(--l-fg); }

.l-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.l-social {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--l-border);
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--l-dim);
    transition: all 0.2s;
}

.l-social:hover {
    color: var(--l-fg);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.l-footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--l-muted);
}

.l-legal {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.l-legal a { color: var(--l-muted); transition: color 0.2s; }
.l-legal a:hover { color: var(--l-fg); }

/* ── INTEGRATIONS GRID ─────────────────────────────── */
.l-int-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 820px) { .l-int-grid { grid-template-columns: 1fr; max-width: 420px; } }

.l-int-card {
    position: relative;
    padding: 32px 28px 30px;
    border-radius: 24px;
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.4s, border-color 0.3s, box-shadow 0.4s;
}
.l-int-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--l-shadow);
}
.l-int-card.live { border-color: color-mix(in srgb, var(--accent) 40%, var(--l-border)); }
.l-int-card.live:hover { box-shadow: 0 30px 70px -20px color-mix(in srgb, var(--accent) 35%, transparent); }
.l-int-card.soon { opacity: 0.88; }

.l-int-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.l-int-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.l-int-logo svg { width: 24px; height: 24px; fill: currentColor; }
.l-int-logo-tg { background: linear-gradient(135deg, #2aabee, #229ed9); }
.l-int-logo-x  { background: #000; color: #fff; }
.l-int-logo-rd { background: #ff4500; }
[data-theme="light"] .l-int-logo-x { background: #000; color: #fff; }

.l-int-status {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.l-int-status.live {
    background: color-mix(in srgb, #30d158 14%, transparent);
    color: #30d158;
}
.l-int-status.live::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #30d158;
    box-shadow: 0 0 8px #30d158;
    animation: l-pulse 2s infinite;
}
.l-int-status.soon {
    background: var(--bg-body);
    color: var(--l-muted);
    border: 1px solid var(--l-border);
}

.l-int-card h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--l-fg);
}
.l-int-card p {
    font-size: 13.5px;
    color: var(--l-dim);
    line-height: 1.55;
    flex: 1;
}
.l-int-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
}
.l-int-meta span {
    font-size: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--bg-body);
    color: var(--l-dim);
    font-weight: 600;
    border: 1px solid var(--l-border);
}

/* ── SOCIAL MECHANICS GRID ─────────────────────────── */
.l-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 820px) { .l-social-grid { grid-template-columns: 1fr; max-width: 500px; } }

.l-social-card {
    position: relative;
    padding: 38px 36px 40px;
    border-radius: 26px;
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s, border-color 0.3s, box-shadow 0.4s;
}

.l-social-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--l-border));
    box-shadow: var(--l-shadow);
}

.l-social-art {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 180px;
    height: 140px;
    opacity: 0.95;
    pointer-events: none;
}

.l-social-card h3 {
    font-family: var(--serif);
    font-style: italic;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: auto;
    margin-bottom: 10px;
    color: var(--l-fg);
}

.l-social-card p {
    font-size: 14px;
    color: var(--l-dim);
    line-height: 1.55;
    max-width: 34ch;
}

.l-social-card-1 .l-social-art { color: #ff375f; }
.l-social-card-2 .l-social-art { color: #0a84ff; }
.l-social-card-3 .l-social-art { color: #30d158; }
.l-social-card-4 .l-social-art { color: #bf5af2; }

/* ── PLATFORM FEATURES GRID ────────────────────────── */
.l-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 1060px) { .l-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .l-features-grid { grid-template-columns: 1fr; max-width: 420px; } }

.l-feat {
    padding: 28px 26px 30px;
    border-radius: 22px;
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    transition: transform 0.4s, border-color 0.3s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}
.l-feat::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -40%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.l-feat:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--l-border));
    box-shadow: var(--l-shadow);
}
.l-feat:hover::before { opacity: 1; }

.l-feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.l-feat-icon svg { width: 22px; height: 22px; }

.l-feat h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: var(--l-fg);
    position: relative;
    z-index: 1;
}
.l-feat p {
    font-size: 13px;
    color: var(--l-dim);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}
.l-feat code {
    font-family: ui-monospace, "SF Mono", monospace;
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--bg-body);
    color: var(--l-fg);
}

/* Shared macOS-style window dots (used in stage, arc cards) */
.l-watch-dots { display: flex; gap: 6px; flex-shrink: 0; }
.l-watch-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--l-border);
}
.l-watch-dots span:nth-child(1) { background: #ff5f57; }
.l-watch-dots span:nth-child(2) { background: #febc2e; }
.l-watch-dots span:nth-child(3) { background: #28c840; }

/* ── MARQUEE OF PROMPTS ───────────────────────────── */
.l-marquee {
    position: relative;
    padding: 70px 0;
    border-top: 1px solid var(--l-border);
    border-bottom: 1px solid var(--l-border);
    overflow: hidden;
    background:
        linear-gradient(180deg, var(--l-surface) 0%, var(--bg-body) 100%);
}

.l-marquee::before,
.l-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 160px;
    z-index: 3;
    pointer-events: none;
}

.l-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-body), transparent);
}

.l-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-body), transparent);
}

.l-marquee-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: l-marquee-scroll 60s linear infinite;
}

.l-marquee:hover .l-marquee-track {
    animation-play-state: paused;
}

.l-marquee-track.reverse {
    animation-direction: reverse;
    margin-top: 18px;
}

@keyframes l-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.l-marquee-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid var(--l-border);
    background: var(--l-surface);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 13px;
    color: var(--l-fg);
    white-space: nowrap;
    box-shadow: var(--l-shadow);
}

.l-marquee-chip .emoji { font-size: 17px; }

.l-marquee-chip-accent {
    background: var(--l-fg);
    color: var(--bg-body);
    border-color: var(--l-fg);
}

.l-marquee-caret {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    vertical-align: -2px;
    background: var(--accent);
    margin-right: 4px;
}

/* ── Decorative grid background (stats, cta) ──────── */
.l-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image:
        linear-gradient(to right, var(--l-border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--l-border) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}

[data-theme="light"] .l-grid-bg { opacity: 0.7; }

.l-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── Pipeline diagram (how it works) ─────────────── */
.l-flow-pipeline {
    position: relative;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.l-flow-pipeline-line {
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--l-border) 15%, var(--l-border) 85%, transparent);
    z-index: 0;
}

.l-flow-pipeline-line::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    background-size: 30% 100%;
    background-repeat: no-repeat;
    animation: l-pipeline-move 3s linear infinite;
}

@keyframes l-pipeline-move {
    0%   { background-position: -30% 0; }
    100% { background-position: 130% 0; }
}

/* ── Stats section wrapper with grid bg ──────────── */
.l-stats-section {
    position: relative;
    isolation: isolate;
}

/* ── Section ornaments ─────────────────────────────── */
.l-ornament-star {
    position: absolute;
    width: 60px;
    height: 60px;
    color: var(--l-dim);
    opacity: 0.25;
    animation: l-spin 40s linear infinite;
}

.l-ornament-circle {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px dashed var(--l-border);
    border-radius: 50%;
    pointer-events: none;
}

.l-ornament-circle::before {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    border: 1px dashed var(--l-border);
}

/* ── PRICING ──────────────────────────────────────── */
.l-pricing {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .l-pricing { grid-template-columns: 1fr; max-width: 420px; }
}

.l-plan {
    position: relative;
    padding: 38px 32px 32px;
    border-radius: 26px;
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    display: flex;
    flex-direction: column;
}

.l-plan:hover {
    transform: translateY(-6px);
    box-shadow: var(--l-shadow);
}

.l-plan-featured {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--l-surface)) 0%,
                                 var(--l-surface) 100%);
    border-color: color-mix(in srgb, var(--accent) 50%, var(--l-border));
    box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 40%, transparent);
    transform: translateY(-8px);
}

.l-plan-featured:hover { transform: translateY(-14px); }

.l-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}

.l-plan-name {
    font-family: var(--serif);
    font-style: italic;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.l-plan-tag {
    font-size: 13px;
    color: var(--l-muted);
    margin-bottom: 24px;
    min-height: 2em;
}

.l-plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 28px;
}

.l-plan-price-num {
    font-family: var(--serif);
    font-size: 64px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
}

.l-plan-price-cur {
    font-size: 26px;
    color: var(--l-dim);
    font-weight: 500;
}

.l-plan-price-per {
    font-size: 14px;
    color: var(--l-muted);
    margin-left: 4px;
}

.l-plan-price-free {
    font-family: var(--serif);
    font-style: italic;
    font-size: 48px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.l-plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    background: var(--l-fg);
    color: var(--bg-body);
    border: 1px solid var(--l-fg);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    margin-bottom: 28px;
}

.l-plan-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px color-mix(in srgb, var(--l-fg) 40%, transparent);
}

.l-plan-featured .l-plan-cta {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.l-plan-featured .l-plan-cta:hover {
    box-shadow: 0 18px 40px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}

.l-plan-outline .l-plan-cta {
    background: transparent;
    color: var(--l-fg);
}

.l-plan-outline .l-plan-cta:hover {
    background: var(--l-fg);
    color: var(--bg-body);
}

.l-plan-divider {
    height: 1px;
    background: var(--l-border);
    margin-bottom: 22px;
}

.l-plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.l-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--l-dim);
}

.l-plan-features li::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-top: 2px;
    background:
        color-mix(in srgb, var(--accent) 14%, transparent)
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007aff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

.l-plan-features li strong {
    color: var(--l-fg);
    font-weight: 600;
}

/* ── SCROLL CURVE ────────────────────────────────── */
.l-curve-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.l-curve-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.l-curve-path {
    fill: none;
    stroke: url(#l-curve-grad);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 60%, transparent));
}

.l-curve-shape {
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.l-curve-shape.visible {
    opacity: 1;
    animation: l-shape-spin 14s linear infinite;
}

@keyframes l-shape-spin {
    to { transform: rotate(360deg); }
}

/* Prevent background scroll while modal open */
.landing.lock { overflow: hidden; }

/* Hide old auth form remnants when landing active */
.landing .auth-screen-legacy { display: none; }
