/* ============================================================
   Zitro — zitro.spot
   Warm paper · one citrus accent · calm, rounded, quiet
   ============================================================ */

:root {
    /* Palette — warm paper + graphite + citrus, soft sage/sky tints */
    --paper: #f4efe6;
    --paper-deep: #ece5d8;
    --card: #fbf8f1;
    --ink: #2b2721;
    --ink-soft: #6b6459;
    --line: rgba(43, 39, 33, 0.12);

    --citrus: #f2b705;
    --citrus-soft: #fbedc2;
    --citrus-deep: #b98a00;

    --sage: #e3e8da;
    --sky: #e0e8ec;

    /* Shape & motion */
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-pill: 999px;
    --shadow-soft: 0 1px 2px rgba(43, 39, 33, 0.05), 0 12px 32px -16px rgba(43, 39, 33, 0.18);
    --shadow-lift: 0 2px 4px rgba(43, 39, 33, 0.06), 0 20px 44px -18px rgba(43, 39, 33, 0.26);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* Type */
    --font-display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
    --font-body: "Instrument Sans", "Helvetica Neue", sans-serif;
    --font-mono: "Fragment Mono", "SF Mono", monospace;
}

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

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 84px;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    /* faint paper grain */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

p a {
    color: var(--citrus-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}

.small {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 8px;
}

.hidden {
    display: none !important;
}

/* ---------- Type scale ---------- */

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.6rem, 7vw, 4.6rem);
}

.section-title {
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    text-align: center;
    margin-bottom: 48px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--citrus-deep);
    margin-bottom: 20px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--citrus);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: #f7c62a;
    box-shadow: var(--shadow-lift);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover {
    background: var(--card);
    border-color: rgba(43, 39, 33, 0.24);
}

.btn-outline {
    background: var(--card);
    color: var(--ink);
    border-color: var(--line);
}

.btn-outline:hover {
    border-color: var(--citrus);
    background: var(--citrus-soft);
}

.btn-small {
    padding: 9px 20px;
    font-size: 0.92rem;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 239, 230, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
}

.wordmark {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.wordmark-dot {
    color: var(--citrus);
}

.wordmark-tld {
    color: var(--ink-soft);
    font-weight: 400;
}

.site-nav {
    display: flex;
    gap: 28px;
}

.site-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--ink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
    padding: 96px 0 48px;
    text-align: center;
}

.hero .tagline {
    max-width: 560px;
    margin: 24px auto 0;
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.download-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 460px;
    width: 100%;
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.panel-note {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-top: 4px;
}

.device-question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.device-question-header h3 {
    font-size: 1.2rem;
}

.device-thumbnail {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--paper);
    padding: 6px;
    flex-shrink: 0;
}

.device-buttons {
    display: flex;
    gap: 10px;
}

.device-buttons .btn {
    flex: 1;
}

.platform-toggle {
    display: inline-flex;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 4px;
    margin-bottom: 16px;
}

.platform-btn {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.platform-btn.active {
    background: var(--citrus);
    color: var(--ink);
}

.email-form form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.email-form input[type="email"],
.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 13px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-form input[type="email"]:focus,
.newsletter-form input[type="email"]:focus {
    border-color: var(--citrus);
    box-shadow: 0 0 0 3px var(--citrus-soft);
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-top: 14px;
    line-height: 1.5;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.success-message svg {
    color: var(--citrus-deep);
    flex-shrink: 0;
}

/* Hero figure */

.hero-figure-wrap {
    margin-top: 56px;
}

.hero-figure {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
    background: radial-gradient(120% 90% at 50% 10%, var(--citrus-soft) 0%, var(--paper-deep) 65%);
}

.hero-figure img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.hero-figure figcaption {
    position: absolute;
    left: 20px;
    bottom: 16px;
    background: rgba(251, 248, 241, 0.88);
    backdrop-filter: blur(6px);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    color: var(--ink);
}

/* ---------- Proof strip ---------- */

.proof-strip {
    padding: 88px 0 72px;
    text-align: center;
}

.proof-numbers {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4.2vw, 2.6rem);
    font-weight: 500;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5em;
}

.proof-dot {
    color: var(--citrus);
}

.proof-sub {
    margin-top: 14px;
}

/* ---------- How it works ---------- */

.how-section {
    padding: 24px 0 88px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px 20px;
}

.how-step {
    background:
        radial-gradient(120% 100% at 12% -8%, rgba(242, 183, 5, 0.09) 0%, transparent 55%),
        radial-gradient(110% 95% at 110% 110%, rgba(141, 163, 123, 0.10) 0%, transparent 55%),
        var(--card);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}

.how-num {
    display: inline-block;
    color: var(--citrus-deep);
    margin-bottom: 16px;
}

.how-step h3 {
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.how-step p {
    color: var(--ink-soft);
    font-size: 0.98rem;
}

/* ---------- Features ---------- */

.features-section {
    padding: 48px 0 72px;
}

/* Bento grid: 7 columns; cards span 3, 2, or 1 (and 7 for banners),
   packed densely so mixed sizes stack into full rows. */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-flow: dense;
    gap: 44px 20px;
}

.feature-card {
    grid-column: span 2;
    background:
        radial-gradient(120% 100% at 15% -5%, rgba(242, 183, 5, 0.08) 0%, transparent 55%),
        radial-gradient(110% 95% at 108% 108%, rgba(129, 156, 169, 0.09) 0%, transparent 55%),
        var(--card);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.feature-card:hover {
    box-shadow: var(--shadow-soft);
}

.feature-card.w-3 {
    grid-column: span 3;
}

.feature-card.w-1 {
    grid-column: span 1;
    padding: 24px 18px;
}

.feature-card.w-1 h3 {
    font-size: 1.02rem;
}

.feature-card.w-1 p {
    font-size: 0.85rem;
}

.feature-card.w-1 .card-icon {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* Staggered columns — alternate columns sit half a card lower.
   Uses relative `top` (not transform/margin) so grid rows and the
   .reveal transform animation are unaffected. */
@media (min-width: 561px) {
    .feature-card,
    .how-step,
    .testimonial-card,
    .edge-card,
    .device-card {
        position: relative;
    }

    .how-grid,
    .testimonials-grid,
    .edge-grid,
    .device-grid {
        padding-bottom: 52px;
    }
}

@media (min-width: 901px) {
    .how-grid .how-step:nth-child(2),
    .testimonials-grid .testimonial-card:nth-child(2) {
        top: 52px;
    }
}

@media (min-width: 561px) {
    .edge-grid .edge-card:nth-child(2n),
    .device-grid .device-card:nth-child(2n) {
        top: 52px;
    }
}

@media (min-width: 561px) and (max-width: 900px) {
    .how-grid .how-step:nth-child(2n),
    .testimonials-grid .testimonial-card:nth-child(2n) {
        top: 52px;
    }
}

.feature-card.tint-lemon {
    background:
        radial-gradient(120% 100% at 15% -5%, rgba(242, 183, 5, 0.24) 0%, transparent 60%),
        radial-gradient(110% 95% at 105% 112%, rgba(255, 214, 90, 0.28) 0%, transparent 58%),
        radial-gradient(65% 55% at 85% 12%, rgba(141, 163, 123, 0.07) 0%, transparent 60%),
        var(--card);
}
.feature-card.tint-sage {
    background:
        radial-gradient(120% 100% at 12% -8%, rgba(141, 163, 123, 0.20) 0%, transparent 60%),
        radial-gradient(110% 95% at 108% 112%, rgba(196, 209, 182, 0.34) 0%, transparent 60%),
        radial-gradient(60% 50% at 90% 8%, rgba(242, 183, 5, 0.08) 0%, transparent 60%),
        var(--card);
}
.feature-card.tint-sky {
    background:
        radial-gradient(120% 100% at 14% -6%, rgba(126, 156, 178, 0.18) 0%, transparent 60%),
        radial-gradient(110% 95% at 106% 112%, rgba(188, 208, 220, 0.36) 0%, transparent 60%),
        radial-gradient(60% 50% at 88% 8%, rgba(242, 183, 5, 0.07) 0%, transparent 60%),
        var(--card);
}

.card-icon {
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--ink-soft);
}

/* ---------- Edges (who it's for) ---------- */

.edges-section {
    padding: 24px 0 88px;
}

.edge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 20px;
}

.edge-card {
    display: block;
    text-decoration: none;
    background:
        radial-gradient(120% 100% at 15% -5%, rgba(242, 183, 5, 0.08) 0%, transparent 55%),
        radial-gradient(110% 95% at 108% 108%, rgba(129, 156, 169, 0.09) 0%, transparent 55%),
        var(--card);
    border-radius: var(--radius-lg);
    padding: 38px 34px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.edge-card:hover {
    box-shadow: var(--shadow-soft);
}

.edge-card.tint-lemon {
    background:
        radial-gradient(120% 100% at 15% -5%, rgba(242, 183, 5, 0.24) 0%, transparent 60%),
        radial-gradient(110% 95% at 105% 112%, rgba(255, 214, 90, 0.28) 0%, transparent 58%),
        radial-gradient(65% 55% at 85% 12%, rgba(141, 163, 123, 0.07) 0%, transparent 60%),
        var(--card);
}
.edge-card.tint-sage {
    background:
        radial-gradient(120% 100% at 12% -8%, rgba(141, 163, 123, 0.20) 0%, transparent 60%),
        radial-gradient(110% 95% at 108% 112%, rgba(196, 209, 182, 0.34) 0%, transparent 60%),
        radial-gradient(60% 50% at 90% 8%, rgba(242, 183, 5, 0.08) 0%, transparent 60%),
        var(--card);
}
.edge-card.tint-sky {
    background:
        radial-gradient(120% 100% at 14% -6%, rgba(126, 156, 178, 0.18) 0%, transparent 60%),
        radial-gradient(110% 95% at 106% 112%, rgba(188, 208, 220, 0.36) 0%, transparent 60%),
        radial-gradient(60% 50% at 88% 8%, rgba(242, 183, 5, 0.07) 0%, transparent 60%),
        var(--card);
}

.edge-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--citrus-deep);
    margin-bottom: 14px;
}

.edge-card h3 {
    font-size: clamp(1.4rem, 2.6vw, 1.75rem);
    margin-bottom: 12px;
}

.edge-card p {
    color: var(--ink-soft);
    font-size: 1rem;
    margin-bottom: 20px;
}

.edge-more {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}

.edge-more::after {
    content: " →";
    color: var(--citrus-deep);
    transition: margin-left 0.25s var(--ease);
}

.edge-card:hover .edge-more::after {
    margin-left: 4px;
}

/* ---------- Subpage hero & story blocks ---------- */

.page-hero {
    padding: 88px 0 56px;
    text-align: center;
}

.page-hero .tagline {
    max-width: 580px;
    margin: 22px auto 0;
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.prose-section {
    padding: 8px 0 72px;
}

.prose-narrow {
    max-width: 640px;
    margin: 0 auto;
}

.prose-narrow p {
    color: var(--ink-soft);
    margin-bottom: 16px;
    font-size: 1.08rem;
}

.prose-narrow p strong {
    color: var(--ink);
}

.story-panel {
    background: var(--sage);
    border-radius: var(--radius-lg);
    padding: 48px 44px;
    max-width: 760px;
    margin: 0 auto;
}

.story-panel.tint-lemon { background: var(--citrus-soft); }
.story-panel.tint-sky   { background: var(--sky); }

.story-panel .story-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--citrus-deep);
    margin-bottom: 14px;
}

.story-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.story-panel p {
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.story-panel p:last-child {
    margin-bottom: 0;
}

.story-panel .story-moral {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.12rem;
    color: var(--ink);
    border-left: 3px solid var(--citrus);
    padding-left: 16px;
    margin-top: 18px;
}

/* ---------- CTA band ---------- */

.cta-band {
    padding: 24px 0 96px;
}

.cta-band-card {
    background: var(--citrus-soft);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
}

.cta-band-card h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.3rem);
    margin-bottom: 10px;
}

.cta-band-card p {
    color: var(--ink-soft);
    max-width: 460px;
    margin: 0 auto 26px;
}

.cta-band-card .cta-row {
    justify-content: center;
}

/* ---------- Device pro/con cards (compare page) ---------- */

.device-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 20px;
    margin-top: 8px;
}

.device-card {
    background:
        radial-gradient(120% 100% at 15% -5%, rgba(242, 183, 5, 0.07) 0%, transparent 55%),
        radial-gradient(110% 95% at 108% 110%, rgba(129, 156, 169, 0.09) 0%, transparent 55%),
        var(--card);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
}

.device-card.highlight {
    background:
        radial-gradient(120% 100% at 15% -5%, rgba(242, 183, 5, 0.24) 0%, transparent 60%),
        radial-gradient(110% 95% at 105% 112%, rgba(255, 214, 90, 0.28) 0%, transparent 58%),
        radial-gradient(65% 55% at 85% 12%, rgba(141, 163, 123, 0.07) 0%, transparent 60%),
        var(--card);
}

.device-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.device-card h3 {
    font-size: 1.45rem;
    margin-bottom: 6px;
}

.device-sub {
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin-bottom: 20px;
}

.pro-con {
    display: grid;
    gap: 6px;
    list-style: none;
    font-size: 0.95rem;
}

.pro-con + .pro-con {
    margin-top: 14px;
}

.pro-con li {
    position: relative;
    padding-left: 26px;
    color: var(--ink-soft);
}

.pro-con li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-mono);
    font-weight: 700;
}

.pro-con.pros li::before {
    content: "+";
    color: #5d7a4e;
}

.pro-con.cons li::before {
    content: "–";
    color: #b0563b;
}

.device-verdict {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
    color: var(--ink);
}

.device-verdict strong {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--citrus-deep);
    display: block;
    margin-bottom: 4px;
}

/* ---------- Compare teaser (landing) ---------- */

.compare-teaser {
    padding: 24px 0 88px;
}

.compare-teaser-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.compare-teaser-card h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.3rem);
    margin-bottom: 10px;
}

.compare-teaser-card p {
    color: var(--ink-soft);
    max-width: 520px;
    margin: 0 auto 26px;
}

/* ---------- Stat band ---------- */

.stat-band {
    padding: 24px 0 88px;
}

.stat-band-card {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
    box-shadow: var(--shadow-lift);
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 500;
    color: var(--citrus);
    line-height: 1.1;
}

.stat-label {
    display: block;
    margin-top: 10px;
    color: rgba(244, 239, 230, 0.65);
}

/* ---------- Compare ---------- */

.compare-section {
    padding: 48px 0 88px;
}

.toggle-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.compare-wrap {
    overflow-x: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    -webkit-overflow-scrolling: touch;
}

table.compare {
    border-collapse: collapse;
    width: 100%;
    min-width: 860px;
    font-size: 0.88rem;
}

table.compare th,
table.compare td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

table.compare thead th {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: var(--paper-deep);
    position: sticky;
    top: 0;
}

table.compare tbody th {
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td {
    border-bottom: none;
}

table.compare .highlight-col {
    background: var(--citrus-soft);
    font-weight: 500;
}

table.compare thead .highlight-col {
    color: var(--ink);
    background: var(--citrus);
}

table.compare .extra-col {
    display: none;
}

/* ---------- Testimonials ---------- */

.testimonials-section {
    padding: 48px 0 88px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px 20px;
}

.testimonial-card {
    background:
        radial-gradient(120% 100% at 18% -6%, rgba(242, 183, 5, 0.07) 0%, transparent 55%),
        radial-gradient(110% 95% at 105% 112%, rgba(126, 156, 178, 0.09) 0%, transparent 55%),
        var(--card);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.testimonial-card .quote {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.45;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .author strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial-card .author span {
    font-size: 0.82rem;
    color: var(--ink-soft);
}

/* ---------- About ---------- */

.about-section {
    padding: 24px 0 88px;
}

.about-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: center;
    background: var(--sage);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.about-text h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    margin-bottom: 18px;
}

.about-text p {
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ---------- GitHub ---------- */

.github-section {
    padding: 24px 0 88px;
}

.github-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}

.github-icon {
    color: var(--ink);
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.github-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.github-card p {
    color: var(--ink-soft);
    max-width: 420px;
    margin: 0 auto 24px;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    background: var(--ink);
    color: var(--paper);
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.github-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lift);
}

.github-link .stars {
    color: var(--citrus);
    font-size: 0.9rem;
}

/* ---------- Newsletter ---------- */

.newsletter-section {
    padding: 24px 0 96px;
}

.newsletter-card {
    background: var(--citrus-soft);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
}

.newsletter-card h3 {
    font-size: 1.7rem;
    margin-bottom: 8px;
}

.newsletter-card p {
    color: var(--ink-soft);
    max-width: 440px;
    margin: 0 auto 24px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    background: var(--card);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 48px 0 32px;
    background: var(--paper-deep);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-brand h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.footer-brand p {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.footer-cols {
    display: flex;
    gap: 72px;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col-head {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
    margin-bottom: 6px;
}

a.footer-col-head:hover {
    color: var(--citrus-deep);
}

.footer-col a:not(.footer-col-head) {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--ink-soft);
    transition: color 0.2s ease;
}

.footer-col a:not(.footer-col-head):hover {
    color: var(--ink);
}

.device-card[id] {
    scroll-margin-top: 96px;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.footer-bottom a {
    color: var(--ink-soft);
}

/* ---------- Shop ---------- */

.shop-section {
    padding: 72px 0 88px;
}

.shop-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.product-showcase {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.product-image {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 28px;
    border-radius: var(--radius-md);
    background: radial-gradient(100% 100% at 50% 0%, var(--citrus-soft) 0%, var(--paper) 70%);
    padding: 24px;
}

.product-info h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 4px;
}

.product-subtitle {
    color: var(--ink-soft);
    margin-bottom: 18px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 22px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 500;
}

.price-note {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.product-features {
    list-style: none;
}

.product-features li {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.product-features li:last-child {
    border-bottom: none;
}

.order-form-container {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.order-form-container h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.form-section {
    margin-bottom: 28px;
}

.form-section h3 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 14px;
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--citrus);
    box-shadow: 0 0 0 3px var(--citrus-soft);
}

.form-row {
    display: flex;
    gap: 14px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.summary-line.total {
    border-top: 1px solid var(--line);
    margin-top: 6px;
    padding-top: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ink);
}

.checkout-btn {
    width: 100%;
}

.us-shipping-message {
    background: var(--citrus-soft);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    font-size: 0.92rem;
    margin-top: 8px;
}

.payment-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .btn,
    .feature-card,
    .github-link {
        transition: none;
    }
}

/* ---------- Responsive ---------- */

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

    /* Bento collapses to 4 tracks: normal cards half-width,
       wide cards full-width, minis become normal. */
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .feature-card,
    .feature-card.w-1 {
        grid-column: span 2;
        padding: 30px 26px;
    }

    .feature-card.w-1 h3 {
        font-size: 1.25rem;
    }

    .feature-card.w-1 p {
        font-size: 0.95rem;
    }

    .feature-card.w-3 {
        grid-column: span 4;
    }

    .stat-band-card {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 28px;
    }

    .shop-content {
        grid-template-columns: 1fr;
    }

    .about-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px;
    }

    .about-image img {
        max-width: 220px;
    }
}

@media (max-width: 720px) {
    .site-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--card);
        border-bottom: 1px solid var(--line);
        padding: 8px 24px 16px;
        display: none;
        box-shadow: var(--shadow-soft);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--line);
    }

    .site-nav a:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 64px 0 32px;
    }

    .hero-figure img {
        max-height: 380px;
    }

    .proof-strip {
        padding: 64px 0 48px;
    }
}

@media (max-width: 560px) {
    .feature-grid,
    .how-grid,
    .testimonials-grid,
    .edge-grid,
    .device-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .feature-card.w-1,
    .feature-card.w-3 {
        grid-column: auto;
    }

    .story-panel {
        padding: 32px 26px;
    }

    .stat-band-card {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .cta-row {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .cta-row .btn {
        width: 100%;
    }

    .device-buttons {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .panel {
        padding: 22px;
    }

    .product-showcase,
    .order-form-container {
        padding: 26px;
    }

    .footer-content {
        flex-direction: column;
    }
}
