/* === Variables === */
:root {
    /* Aplomby palette — violet acts, spotlight orange is you, gold is the paid thing */
    --ink: #171526;            /* near-black headlines / text */
    --ink-soft: #5f5c74;       /* muted body text */
    --bg: #faf9fd;             /* cool off-white page */
    --bg-alt: #f2f0f9;         /* slightly deeper section band */
    --dark: #16122b;           /* the stage: near-black plum */
    --dark-2: #241a45;         /* stage gradient partner */

    --violet: #6d4aff;         /* the accent — anything you can act on */
    --violet-dark: #5638d6;
    --violet-tint: #ede8ff;
    --spot: #f5a04a;           /* spotlight orange — this is you */
    --spot-ink: #a2571a;       /* darkened cut, legible as type on light */
    --spot-tint: #fdefdf;
    --gold: #a8842c;           /* the paid thing, and only that */
    --gold-tint: #f5edd8;

    --card: #ffffff;
    --text: #171526;
    --text-muted: #5f5c74;
    --radius: 14px;
    --radius-sm: 10px;
    --line: rgba(23,21,38,0.10);
    --shadow: 0 1px 2px rgba(23,21,38,0.04), 0 6px 20px rgba(23,21,38,0.06);
    --shadow-lg: 0 12px 40px rgba(23,21,38,0.14);
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* === Utilities === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--violet); }

.eyebrow, .section-tag {
    display: inline-block;
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--violet); margin-bottom: 18px;
}

/* === Nav === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: transparent;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}
.navbar.scrolled { background: rgba(250,249,253,0.96); border-bottom-color: var(--line); }
.nav-container {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-back {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    color: var(--ink-soft); transition: all 0.2s;
    margin-right: 4px;
}
.nav-back:hover { background: rgba(23,21,38,0.06); color: var(--ink); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.nav-icon { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 2px 8px rgba(23,21,38,0.12); }
.logo-text { color: var(--ink); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
    padding: 9px 20px; border-radius: 999px;
    background: var(--violet); color: #fff;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--violet-dark); box-shadow: 0 6px 16px rgba(109,74,255,0.35); }

/* Mobile toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 64px; left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--line);
        padding: 16px 24px;
    }
    .nav-links.open a { padding: 12px 0; font-size: 1rem; }
}


/* Over the dark hero the nav is white; it turns dark when it gains a background. */
.navbar .logo-text { color: #fff; transition: color 0.3s; }
.navbar .nav-links a { color: rgba(255,255,255,0.74); }
.navbar .nav-back { color: rgba(255,255,255,0.74); }
.navbar .nav-back:hover { background: rgba(255,255,255,0.12); color: #fff; }
.navbar .mobile-toggle span { background: #fff; }
.navbar.scrolled .logo-text { color: var(--ink); }
.navbar.scrolled .nav-links a { color: var(--ink-soft); }
.navbar.scrolled .nav-links a:hover { color: var(--ink); }
.navbar.scrolled .nav-back { color: var(--ink-soft); }
.navbar.scrolled .nav-back:hover { background: rgba(23,21,38,0.06); color: var(--ink); }
.navbar.scrolled .mobile-toggle span { background: var(--ink); }
/* the open mobile sheet is light on both states */
.navbar .nav-links.open a { color: var(--ink-soft); }

/* === Hero (the stage: dark, lit from above) === */
.hero {
    position: relative; overflow: hidden;
    padding: 168px 0 104px;
    background: linear-gradient(165deg, var(--dark) 0%, var(--dark-2) 58%, #1b1436 100%);
    color: #fff;
}
/* the spot itself — a cone of warm light falling from the top */
.hero::before {
    content: ""; position: absolute; top: -18%; left: 50%;
    width: 900px; height: 900px; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(245,160,74,0.20), rgba(245,160,74,0.06) 42%, transparent 68%);
    pointer-events: none;
}
.hero::after {
    content: ""; position: absolute; bottom: -30%; left: 10%;
    width: 620px; height: 620px; border-radius: 50%;
    background: radial-gradient(circle, rgba(109,74,255,0.30), transparent 62%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero .eyebrow { color: var(--spot); }
.hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 900;
    letter-spacing: -0.035em; line-height: 1.06; margin-bottom: 22px; color: #fff;
    max-width: 12ch;
}
.hero h1 .rule {
    display: block; width: 64px; height: 4px; border-radius: 2px;
    background: var(--spot); margin-top: 22px;
}
.hero-subtitle {
    font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,0.72);
    max-width: 540px; margin-bottom: 30px;
}
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-platforms {
    font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.55);
    margin-bottom: 38px;
}
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-number { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em; color: var(--spot); line-height: 1.1; }
.stat-label {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.13em; color: rgba(255,255,255,0.5);
}
.hero-visual { display: flex; justify-content: center; }
.hero-shot {
    width: 310px; border-radius: 26px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
    .hero { padding: 132px 0 80px; }
    .hero-content { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .hero h1 { max-width: none; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero h1 .rule { margin-left: auto; margin-right: auto; }
    .hero-visual { order: -1; }
    .hero-shot { width: 250px; }
}
@media (max-width: 560px) { .hero-stats { gap: 26px; } }

/* === Section Headers === */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-tag { margin-bottom: 14px; }
.section-header h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900;
    letter-spacing: -0.03em; line-height: 1.04; color: var(--ink);
}
.section-header p.section-lede {
    max-width: 620px; margin: 18px auto 0;
    font-size: 1rem; color: var(--ink-soft); line-height: 1.65;
}
.section-header.light h2 { color: #fff; }
.section-header.light .section-tag { color: var(--spot); }
.section-header.light p.section-lede { color: rgba(255,255,255,0.62); }

/* === Features === */
.features { padding: 104px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: var(--card); border-radius: var(--radius); padding: 30px;
    box-shadow: var(--shadow); border: 1px solid var(--line);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(23,21,38,0.16); }
.feature-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.feature-icon.violet { background: var(--violet-tint); color: var(--violet); }
.feature-icon.gold { background: var(--gold-tint); color: var(--gold); }
.feature-icon.spot { background: var(--spot-tint); color: var(--spot-ink); }
.feature-icon.ink { background: rgba(23,21,38,0.07); color: var(--ink); }
.feature-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

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

/* === Topics === */
.topics { padding: 104px 0; background: var(--bg-alt); }
.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-card {
    background: var(--card); border-radius: var(--radius); padding: 28px 24px;
    box-shadow: var(--shadow); border: 1px solid var(--line);
    transition: transform 0.3s, box-shadow 0.3s;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.topic-card.pack { border-color: rgba(109,74,255,0.28); background: linear-gradient(180deg, #fff, var(--violet-tint)); }
.topic-icon { color: var(--spot-ink); margin-bottom: 14px; }
.topic-icon svg { width: 30px; height: 30px; display: block; }
.topic-card.pack .topic-icon { color: var(--violet); }
.topic-card h4 { font-size: 1.02rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.01em; }
.topic-card p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 900px) { .topics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .topics-grid { grid-template-columns: 1fr; } }

/* === Cantons (dark band) === */
.metrics { padding: 104px 0; background: var(--dark); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.metric-card {
    background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 28px;
    border: 1px solid rgba(255,255,255,0.09);
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.metric-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.16); }
.metric-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; background: var(--violet); color: #fff;
}
.metric-icon.gold { background: var(--gold); }
.metric-icon.spot { background: var(--spot); color: var(--dark); }
.metric-icon.plain { background: #fff; color: var(--ink); }
.metric-card h3 { color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.metric-card p { color: rgba(255,255,255,0.58); font-size: 0.88rem; line-height: 1.55; }

.chip-list {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    max-width: 820px; margin: 0 auto 22px;
}
.chip {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.10);
}
.chip.pack { background: var(--violet); color: #fff; border-color: var(--violet); }
/* the same chip on a light section */
.chip-list.on-light .chip {
    background: #fff; color: var(--ink-soft);
    border-color: var(--line); box-shadow: var(--shadow);
}
.chip-note {
    text-align: center; font-size: 0.84rem; color: rgba(255,255,255,0.45);
    max-width: 620px; margin: 0 auto; line-height: 1.6;
}

@media (max-width: 900px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .metric-grid { grid-template-columns: 1fr; } }

/* === Scoring === */
.rep { padding: 104px 0; }
.rep-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.rep-steps { display: flex; flex-direction: column; gap: 14px; }
.rep-step {
    background: var(--card); border-radius: var(--radius); padding: 22px 24px;
    box-shadow: var(--shadow); border: 1px solid var(--line);
    display: flex; align-items: flex-start; gap: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.rep-step:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.rep-step-num {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
    background: var(--ink); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1rem;
}
.rep-step h4 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.01em; }
.rep-step p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.rep-visual { display: flex; justify-content: center; }
.rep-visual img {
    width: 300px; border-radius: 20px; border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(23,21,38,0.16);
}
.rep-note {
    margin-top: 40px; padding: 28px 32px;
    background: var(--spot-tint); border-left: 4px solid var(--spot-ink);
    border-radius: var(--radius-sm);
    font-size: 1rem; color: var(--ink); line-height: 1.65;
}

@media (max-width: 900px) {
    .rep-layout { grid-template-columns: 1fr; gap: 40px; }
    .rep-visual { order: -1; }
    .rep-visual img { width: 260px; }
}

/* Two routes to a pass — the rule that surprises people, so it gets its own pair of cards */
.tier-cards { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 20px; align-items: stretch; margin-top: 40px; }
.tier-card {
    background: var(--card); border-radius: var(--radius); padding: 30px;
    border: 1px solid var(--line); box-shadow: var(--shadow);
    text-align: center;
}
.tier-card .tier-label {
    display: inline-block; font-size: 0.68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--spot-ink); background: var(--spot-tint);
    padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
.tier-card h4 { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 8px; }
.tier-card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.tier-or {
    align-self: center; font-size: 0.8rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft);
    padding: 10px 4px;
}
@media (max-width: 860px) {
    .tier-cards { grid-template-columns: 1fr; gap: 12px; }
    .tier-or { padding: 2px 0; }
}

/* === Screenshots === */
.screenshots { padding: 104px 0; background: var(--bg-alt); }
.screenshots-wrapper {
    display: flex; align-items: center; gap: 16px;
    max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.screenshots-scroll {
    flex: 1; min-width: 0;
    display: flex; gap: 20px; overflow-x: auto;
    padding: 8px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot-item { flex-shrink: 0; width: 260px; scroll-snap-align: start; }
.screenshot-item img {
    width: 100%; border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 36px rgba(23,21,38,0.12);
    transition: transform 0.3s ease;
}
.screenshot-item img:hover { transform: scale(1.03); }
.screenshot-caption {
    text-align: center; margin-top: 14px;
    font-size: 0.74rem; font-weight: 700; color: var(--ink-soft);
    text-transform: uppercase; letter-spacing: 0.1em;
}
.scroll-btn {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
    background: #fff; border: 1px solid var(--line);
    color: var(--ink-soft); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(23,21,38,0.08);
}
.scroll-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 768px) {
    .scroll-btn { width: 36px; height: 36px; }
    .screenshots-wrapper { gap: 8px; padding: 0 8px; }
}
@media (max-width: 560px) { .screenshot-item { width: 180px; } }

/* === Sources === */
.sources { padding: 104px 0; }
.sources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.source-card {
    background: var(--card); border-radius: var(--radius); padding: 30px;
    box-shadow: var(--shadow); border: 1px solid var(--line);
}
.source-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.source-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.source-card .source-tag {
    display: inline-block; font-size: 0.68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--spot-ink); background: var(--spot-tint);
    padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
.source-refs {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-top: 40px;
}
.source-ref {
    font-size: 0.78rem; font-weight: 600; color: var(--ink-soft);
    padding: 8px 14px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
}
@media (max-width: 900px) { .sources-grid { grid-template-columns: 1fr; } }

/* === Pricing === */
.pricing { padding: 104px 0; background: var(--bg-alt); }
.pricing-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
    max-width: 840px; margin: 0 auto;
}
.price-card {
    background: var(--card); border-radius: var(--radius); padding: 36px 32px;
    box-shadow: var(--shadow); border: 1px solid var(--line);
}
.price-card.full { border-color: rgba(109,74,255,0.32); box-shadow: var(--shadow-lg); }
.price-label {
    display: inline-block; font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--ink-soft); margin-bottom: 12px;
}
.price-card.full .price-label { color: var(--violet); }
.price-card h3 { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 6px; }
.price-card .price-sub { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 24px; }
.price-list { display: flex; flex-direction: column; gap: 11px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.price-list li svg { flex-shrink: 0; width: 17px; height: 17px; margin-top: 3px; color: var(--spot-ink); }
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } }

/* === CTA === */
.cta { padding: 96px 0 112px; }
.cta-card {
    position: relative; overflow: hidden;
    text-align: center; padding: 72px 40px; border-radius: 24px;
    background: var(--dark);
    color: #fff; display: flex; flex-direction: column; align-items: center;
}
.cta-card::before {
    content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
    width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(109,74,255,0.30), transparent 60%);
    pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-icon {
    width: 88px; height: 88px; border-radius: 22px;
    margin: 0 auto 24px; box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}
.cta-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 10px; }
.cta-card p { font-size: 1.05rem; opacity: 0.78; margin-bottom: 32px; }

/* === Footer === */
.footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 2px 6px rgba(23,21,38,0.1); }
.footer-copy { font-size: 0.82rem; color: var(--ink-soft); }
.footer-disclaimer {
    max-width: 1120px; margin: 20px auto 0; padding: 0 24px;
    font-size: 0.76rem; color: var(--ink-soft); opacity: 0.8; line-height: 1.6;
}
@media (max-width: 640px) { .footer-inner { flex-direction: column; text-align: center; } }

/* === Animations === */
[data-animate] {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-animate] { opacity: 1; transform: none; transition: none; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
