/* ===== Project Pages — Shared Styles ===== */
/* Each page sets --page-primary, --page-secondary, --page-gradient in an inline <style> */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ===== Navigation ===== */
.page-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-logo {
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 1.4rem;
    color: var(--page-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--page-primary);
}

.nav-links a.nav-active {
    color: var(--page-primary);
}

/* ===== Hero ===== */
.page-hero {
    min-height: min(80vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: var(--page-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
}

.hero-app-icon {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero-screenshot {
    max-width: 900px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.page-hero .tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.5;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero .hook {
    font-size: 1rem;
    opacity: 0.75;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--page-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--page-primary);
    color: var(--page-primary);
}

.btn-outline:hover {
    background: var(--page-primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== Sections ===== */
.page-section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.page-section.alt-bg {
    background: #f8fafc;
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.page-section.alt-bg > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--page-primary);
}

.section-lead {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 700px;
}

.section-lead.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Cards =====
   One treatment for every card: a faint accent-tinted fill, an accent-tinted border and a
   4px accent bar across the top, all from the page's --page-primary. The plain values come
   first as a fallback for browsers without color-mix(). */
.step-card,
.feature-card,
.source-card,
.pricing-card {
    background: #fff;
    background: color-mix(in srgb, var(--page-primary) 9%, white);
    border: 1px solid #e2e8f0;
    border-color: color-mix(in srgb, var(--page-primary) 45%, white);
    border-top: 5px solid var(--page-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--page-primary) 12%, transparent);
}

/* ===== Steps ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
}

.step-number {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--page-gradient);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* ===== Feature Grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 1.75rem;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--page-primary) 18%, transparent);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.feature-card ul li {
    font-size: 0.9rem;
    color: #64748b;
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.feature-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--page-primary);
    font-weight: 700;
}

/* ===== Data Source Cards ===== */
.source-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.source-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 16px;
}

.source-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.source-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.source-card p {
    font-size: 0.85rem;
    color: #64748b;
}

/* ===== Pricing ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 700px;
}

.pricing-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-card {
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.pricing-card.featured {
    border: 2px solid var(--page-primary);
    border-top-width: 4px;
    position: relative;
}

.pricing-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--page-primary);
    margin-bottom: 0.5rem;
}

.pricing-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pricing-card p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* ===== Tech Badges ===== */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
}

/* ===== FAQ ===== */
.faq-list {
    margin-top: 2rem;
    max-width: 750px;
}

.faq-list details {
    border-bottom: 1px solid #e2e8f0;
}

.faq-list summary {
    padding: 1.25rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-list summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
    transform: rotate(45deg);
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list details p {
    padding: 0 0 1.25rem;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* ===== CTA Banner ===== */
.cta-banner {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--page-gradient);
    color: white;
    border-radius: 20px;
    margin: 2rem 0;
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Footer ===== */
.page-footer {
    padding: 3rem 2rem;
    background: #1e293b;
    color: white;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-copy a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copy a:hover {
    color: white;
}

/* ===== Why Section ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.why-card {
    padding: 1.5rem;
}

.why-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--page-primary);
}

.why-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* ===== Hero Art =====
   A decorative, slowly animated SVG layer behind each hero, themed per page. It is
   aria-hidden, ignores the pointer, keeps to the edges so the centred text stays clear,
   and animates only transform, opacity and stroke-dashoffset. Everything stops for
   visitors who ask for reduced motion. */
.page-hero > .hero-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    color: #fff;
}

.hero-art svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-art .spin,
.hero-art .grow,
.hero-art .bob,
.hero-art .pulse,
.hero-art .rise,
.hero-art .drift {
    transform-box: fill-box;
    transform-origin: center;
}

.page-hero .hero-content {
    position: relative;
    z-index: 1;
}

/* Shared motions */
.hero-art .spin { animation: art-spin 16s linear infinite; }
.hero-art .bob { animation: art-bob 7s ease-in-out infinite alternate; }
.hero-art .pulse { animation: art-pulse 3s ease-out infinite; }

@keyframes art-spin { to { transform: rotate(360deg); } }
@keyframes art-bob { from { transform: translateY(-10px); } to { transform: translateY(10px); } }
@keyframes art-pulse {
    0% { transform: scale(0.4); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* PlannerSync: Gantt bars grow into place and settle */
.art-plannersync .grow {
    transform-origin: left center;
    animation: art-grow 9s ease-in-out infinite alternate;
}

@keyframes art-grow {
    0%, 15% { transform: scaleX(0.25); }
    55%, 100% { transform: scaleX(1); }
}

/* Wayfinder: marching route */
.art-wayfinder .route {
    stroke-dasharray: 10 12;
    animation: art-march 1.6s linear infinite;
}

@keyframes art-march { to { stroke-dashoffset: -22; } }

/* Health: an ECG trace that keeps redrawing itself */
.art-health .ecg {
    stroke-dasharray: 260 740;
    animation: art-ecg 5s linear infinite;
}

@keyframes art-ecg {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

/* Squeezy Ghee: breakfast in a pan, wobbling as it sizzles, with steam curling up.
   The art carries its own brand-palette fills, so the layer just sets the strength. */
.page-hero > .hero-art.art-ghee { opacity: 0.5; }

.art-ghee .wobble,
.art-ghee .steam,
.art-ghee .sizzle {
    transform-box: fill-box;
    transform-origin: center;
}

.art-ghee .wobble { animation: art-wobble 3.2s ease-in-out infinite alternate; }
.art-ghee .steam { animation: art-steam 4.2s ease-out infinite; }
.art-ghee .sizzle { animation: art-sizzle 1.8s ease-out infinite; }

@keyframes art-wobble {
    0% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-6px); }
    100% { transform: rotate(-2deg) translateY(2px); }
}

@keyframes art-steam {
    0% { transform: translateY(20px) scaleY(0.6); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(-70px) scaleY(1.1); opacity: 0; }
}

@keyframes art-sizzle {
    0%, 40% { transform: scale(0.4); opacity: 0; }
    55% { opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* FUZB: terminal glyphs drift upwards and fade */
.page-hero > .hero-art.art-fuzb {
    color: #00ff41;
    font-family: 'Fira Code', Consolas, 'Courier New', monospace;
}

.page-hero > .hero-art.art-fuzb { opacity: 0.28; }
.art-fuzb .drift { animation: art-drift 14s linear infinite; }

@keyframes art-drift {
    0% { transform: translateY(60px); opacity: 0; }
    15%, 75% { opacity: 1; }
    100% { transform: translateY(-160px); opacity: 0; }
}

/* SG-Music: a tuning needle hunting along the dial, a record turning, level meters
   bouncing. Like Ghee, the art carries its own amber-and-cream fills. */
.page-hero > .hero-art.art-music { opacity: 0.45; }

.art-music .tune { animation: art-tune 9s ease-in-out infinite alternate; }

.art-music .eq {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: art-eq 1.4s ease-in-out infinite alternate;
}

@keyframes art-tune {
    0% { transform: translateX(0); }
    35% { transform: translateX(130px); }
    60% { transform: translateX(90px); }
    100% { transform: translateX(270px); }
}

@keyframes art-eq {
    from { transform: scaleY(0.35); }
    to { transform: scaleY(1); }
}

/* Phones: a full-width "slice" would crop the scene to its middle, where there is
   deliberately no art. Show the whole scene instead, scaled down as a strip along
   the bottom of the hero. */
@media (max-width: 768px) {
    .page-hero > .hero-art {
        top: auto;
        opacity: 0.18;
    }

    .hero-art svg {
        height: auto;
    }

    .page-hero > .hero-art.art-ghee { opacity: 0.4; }
    .page-hero > .hero-art.art-fuzb { opacity: 0.22; }
    .page-hero > .hero-art.art-music { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-art *,
    .hero-art *::before {
        animation: none !important;
    }

    .hero-art .motion-only {
        display: none;
    }
}

/* ===== Drawing sheet (v1.8.0) =====
   One idea for the whole page: an architect's drawing set, which suits a floor-plan
   product. Plex Sans for reading, Plex Mono for the sheet labels, ink-coloured
   headings, hairline rules instead of boxes, and real screenshots carrying the
   features. The accent is saved for small signals. */
:root {
    --ink: #14211c;
    --ink-2: #4a5a53;
    --ink-3: #7b8a83;
    --rule: #dcd9cf;
    --paper: #f6f5f0;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: #fff;
}

.page-hero h1 { font-weight: 700; letter-spacing: -0.02em; }
.btn { border-radius: 8px; }
.hero-badge { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; letter-spacing: 0.02em; }

.page-section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.page-section.paper { background: var(--paper); max-width: 100%; }
/* Same text column as the white sections (1100px less their 2rem side padding) */
.page-section.paper > * { max-width: calc(1100px - 4rem); margin-left: auto; margin-right: auto; }

.sheet-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sheet-label span { color: var(--page-primary); }

.sheet-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule);
}

h2.sheet-title {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 1rem;
    max-width: 760px;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--ink-2);
    max-width: 680px;
}

h3 { font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

/* Problem: copy beside a pull quote */
.problem {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
}

.problem p + p { margin-top: 1rem; }

.pull {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    padding-left: 1.5rem;
    border-left: 4px solid var(--page-primary);
}

.pull small {
    display: block;
    margin-top: 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* Steps: numbered columns on a rule, no boxes */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.steps li {
    border-top: 2px solid var(--ink);
    padding-top: 1.25rem;
}

.steps .num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--page-primary);
}

.steps h3 { font-size: 1.2rem; margin: 0.5rem 0; }
.steps p { color: var(--ink-2); line-height: 1.6; }

/* Spotlights: big real screenshots, alternating sides */
.spot {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3.5rem 0;
    border-top: 1px solid var(--rule);
}

.spot:first-of-type { border-top: 0; padding-top: 2rem; }
.spot:nth-of-type(even) figure { order: 2; }

.spot figure img {
    display: block;
    width: 100%;
    border: 1px solid var(--rule);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(20, 33, 28, 0.06), 0 12px 32px rgba(20, 33, 28, 0.08);
    cursor: zoom-in;
}

.kicker {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--page-primary);
    margin-bottom: 0.6rem;
}

.spot h3 { font-size: 1.6rem; line-height: 1.25; margin-bottom: 0.9rem; }
.spot p { color: var(--ink-2); line-height: 1.7; }

.ticks {
    list-style: none;
    margin-top: 1.25rem;
    display: grid;
    gap: 0.6rem;
}

.ticks li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--ink);
    font-size: 0.97rem;
}

.ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.6rem;
    height: 0.6rem;
    background: var(--page-primary);
}

/* Feature carousel: the spotlights become slides, screenshot and words side by
   side, browsed by a row of sheet tabs and a 01 / 05 counter */
.sheet-carousel { margin-top: 2rem; }

.sheet-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
    border-bottom: 1px solid var(--rule);
}

.sheet-tab {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 0.75rem 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sheet-tab:hover { color: var(--ink); }

.sheet-tab.active {
    color: var(--ink);
    border-bottom-color: var(--page-primary);
}

.sheet-tab:focus-visible,
.sheet-arrow:focus-visible {
    outline: 2px solid var(--page-primary);
    outline-offset: 3px;
}

.sheet-viewport { overflow: hidden; }

.sheet-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sheet-track .spot {
    flex: 0 0 100%;
    align-self: flex-start;
    min-width: 0;
    border-top: 0;
    padding: 2.5rem 0.25rem 1.5rem;
}

.sheet-track .spot:first-of-type { padding-top: 2.5rem; }
.sheet-track .spot:nth-of-type(even) figure { order: 0; }

/* The active tab already names the slide, so the in-slide kicker would repeat it */
.sheet-track .kicker { display: none; }

.sheet-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
}

.sheet-arrow {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 6px;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.sheet-arrow:hover {
    border-color: var(--page-primary);
    color: var(--page-primary);
}

.sheet-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sheet-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--ink-3);
}

.sheet-count b {
    color: var(--ink);
    font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
    .sheet-track { transition: none; }
}

/* Icon list: the smaller features, no boxes */
.icon-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
    margin-top: 2.5rem;
}

.icon-list li {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-top: 1px solid var(--rule);
}

.ico {
    flex: none;
    width: 26px;
    height: 26px;
    margin-top: 0.1rem;
    fill: none;
    stroke: var(--page-primary);
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-list h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.icon-list p { color: var(--ink-2); line-height: 1.6; font-size: 0.97rem; }

.tag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.45rem;
    border: 1px solid currentColor;
    border-radius: 3px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b45309;
    vertical-align: 0.15em;
}

.section-note { color: var(--ink-3); }

/* Pricing: the one place a box earns its keep */
.pricing-card {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 8px;
    box-shadow: none;
    text-align: left;
    padding: 2rem 2rem 2.25rem;
}

.pricing-card.featured {
    border: 2px solid var(--page-primary);
    border-top-width: 2px;
}

.pricing-label { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.06em; }
.pricing-card h3 { font-weight: 600; letter-spacing: -0.02em; }
.pricing-card p { color: var(--ink-2); }
.pricing-note { border-top: 1px solid var(--rule); padding-top: 1rem; }
.pricing-note h4 { color: var(--ink); font-weight: 600; }

/* Roadmap: a schedule, not a card wall */
.schedule { list-style: none; margin-top: 2rem; }

.schedule li {
    display: grid;
    grid-template-columns: 7rem 16rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.25rem 0;
    border-top: 1px solid var(--rule);
}

.schedule li:last-child { border-bottom: 1px solid var(--rule); }

.schedule .status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.schedule h3 { font-size: 1.05rem; }
.schedule p { color: var(--ink-2); line-height: 1.6; }

/* Why: three statements on a heavy rule */
.why3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.why3 div { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.why3 h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.why3 p { color: var(--ink-2); line-height: 1.65; }

.faq-list { max-width: 820px; margin-top: 0.5rem; }
.faq-list details { border-bottom-color: var(--rule); }
.faq-list summary { font-weight: 600; color: var(--ink); }
.faq-list details p { color: var(--ink-2); }

.stack-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.9;
    color: var(--ink-3);
    max-width: 900px;
}

.stack-line strong { color: var(--ink-2); font-weight: 500; }

@media (max-width: 900px) {
    .problem, .spot { grid-template-columns: 1fr; gap: 2rem; }
    .spot:nth-of-type(even) figure { order: 0; }
    .sheet-tabs { gap: 0.25rem 1.1rem; }
    .sheet-track .spot { padding-top: 1.75rem; gap: 1.5rem; }
    .schedule li { grid-template-columns: 1fr; gap: 0.35rem; }
}

@media (max-width: 768px) {
    h2.sheet-title { font-size: 1.85rem; }
    .steps, .why3, .icon-list { grid-template-columns: 1fr; gap: 0; }
    .steps li, .why3 div { margin-top: 1.5rem; }
    .pull { font-size: 1.6rem; }
    .spot h3 { font-size: 1.35rem; }
}

/* Portrait screenshots (an extension panel, a phone) sit centred rather than
   stretching to the column */
.spot figure { text-align: center; }

.spot figure img {
    width: auto;
    max-width: 100%;
    max-height: 420px;
    margin: 0 auto;
}

/* Pricing supporting points */
.pricing-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.pricing-note h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.pricing-note p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 1024px) {
    .pricing-notes { grid-template-columns: 1fr; }
}

/* Record shelf: a grid of square album covers, each with its title beneath */
.cover-shelf {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.75rem;
    margin-top: 2rem;
}

.cover-shelf img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border: 1px solid var(--rule);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(20, 33, 28, 0.06), 0 12px 32px rgba(20, 33, 28, 0.1);
}

.cover-shelf span {
    display: block;
    margin-top: 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--ink-2);
}

@media (max-width: 768px) {
    .cover-shelf { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
}

/* Screenshot lightbox (built by sheet.js) */
.sheet-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 16, 14, 0.88);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.sheet-lightbox.open { display: flex; }

.sheet-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.sheet-lightbox button {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.sheet-lightbox button:hover { background: rgba(255, 255, 255, 0.3); }

/* Two white sections in a row: the second doesn't need its own top padding */
.page-section:not(.paper) + .page-section.tight-top { padding-top: 0; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .page-hero h1 {
        font-size: 2.75rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .source-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* Stacked two-row nav: brand on top, links below */
@media (max-width: 720px) {
    .page-nav {
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.6rem 1rem 0.5rem;
    }

    .nav-logo {
        font-size: 1.6rem;
        white-space: nowrap;
    }

    .nav-links {
        width: 100%;
        gap: 1.25rem;
        justify-content: center;
        justify-content: safe center;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: auto;
        padding: 7rem 1.5rem 3rem;
    }

    .page-hero h1 {
        font-size: 2.25rem;
    }

    .page-hero .tagline {
        font-size: 1.1rem;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .page-section {
        padding: 3rem 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.85rem;
    }

    .source-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .page-nav {
        padding: 0.6rem 0.75rem 0.5rem;
    }

    .nav-links {
        gap: 0.55rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }
}
