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

/* ── Token system ──────────────────────────────────────────────────────
   Warm paper is the default identity (extends the .pithy-popup-demo
   palette across the whole site). Dark mode is the secondary theme via
   [data-theme="night"]. Section-edge tokens descend from the lightest
   cream at the top to a deeper sand at the page foot — every section
   reads from the same chain so transitions are continuous. */

@property --paper-base { syntax: '<color>'; inherits: true; initial-value: #f8f4ed; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #2d241b; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #8a5e44; }
@property --card-surface { syntax: '<color>'; inherits: true; initial-value: rgba(255, 250, 242, 0.55); }
@property --card-border { syntax: '<color>'; inherits: true; initial-value: rgba(45, 36, 27, 0.10); }
@property --nav-bg { syntax: '<color>'; inherits: true; initial-value: rgba(248, 244, 237, 0.92); }
@property --on-accent { syntax: '<color>'; inherits: true; initial-value: #fffaf3; }

:root {
    color-scheme: light;
    --paper-base: #f8f4ed;
    --paper-warm: #f1ece2;
    --ink: #2d241b;
    /* Slightly deeper than the popup-demo's #9b6d56 so cream-on-accent
       text (CTA buttons) clears WCAG AA 4.5:1. */
    --accent: #8a5e44;
    --accent-strong: #6b4632;
    --accent-soft: rgba(138, 94, 68, 0.18);
    --accent-pale: rgba(138, 94, 68, 0.08);
    --card-surface: rgba(255, 250, 242, 0.55);
    --card-border: rgba(45, 36, 27, 0.10);
    --nav-bg: rgba(248, 244, 237, 0.92);
    --on-accent: #fffaf3;
    /* Continuous warm-paper descent — the chain progresses smoothly so
       no section→section boundary opens a visible band. */
    --section-edge-1: #f8f4ed;
    --section-edge-2: #f1ece2;
    --section-edge-3: #ebe2d2;
    --section-edge-4: #d8cdb8;
    /* Dim-text overrides for AA contrast on cream */
    --ink-dim: #5e4e3d;
    --ink-mute: #6b5a47;
    --ink-tint: #786652;
}

[data-theme="night"] {
    color-scheme: dark;
    --paper-base: #08090F;
    --paper-warm: #111113;
    --ink: #F2F2F3;
    --accent: #B8B4A0;
    --accent-strong: #A8823E;
    --accent-soft: rgba(201, 168, 124, 0.22);
    --accent-pale: rgba(201, 168, 124, 0.08);
    --card-surface: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(8, 9, 15, 0.88);
    --on-accent: #0C0C0D;
    --section-edge-1: #0B0C12;
    --section-edge-2: #07080E;
    --section-edge-3: #05060C;
    --section-edge-4: #010208;
    --ink-dim: rgba(242, 242, 243, 0.78);
    --ink-mute: rgba(242, 242, 243, 0.62);
    --ink-tint: rgba(242, 242, 243, 0.50);
}

/* The hero demo card is a preview of the actual product UI — it stays
   paper-warm regardless of site theme. Re-scope the ink/card tokens to
   their light-mode values inside the card so the text inside reads as
   dark-on-cream in both themes. */
[data-theme="night"] .hero-demo {
    --ink: #2d241b;
    --ink-dim: #5e4e3d;
    --ink-mute: #6b5a47;
    --ink-tint: #786652;
    --card-surface: rgba(255, 250, 242, 0.55);
    --card-border: rgba(45, 36, 27, 0.10);
}


html {
    scroll-padding-top: 96px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--paper-base);
    color: var(--ink);
    line-height: 1.55;
    position: relative;
    /* Single flat warm paper foundation — every section paints over the
       same cream so section→section boundaries do not open color bands. */
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

.home-page section {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

.logo {
    display: inline-block;
    margin-bottom: 24px;
}

.footer-links {
    margin-top: 24px;
    display: flex;
    gap: 24px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--ink-mute);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.privacy-note {
    max-width: 720px;
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--ink-mute);
}

.privacy-note strong {
    color: var(--ink);
    font-weight: 500;
}

footer {
    background: var(--paper-base);
    color: var(--ink-mute);
    padding: 64px 0 56px;
    text-align: left;
    border-top: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
}

body.home-page {
    overflow-x: hidden;
    position: relative;
}

body.home-page::selection {
    background: rgba(138, 94, 68, 0.22);
}

.home-page header {
    padding: 88px 0 120px;
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    column-gap: 64px;
    align-items: center;
}

.hero-copy {
    max-width: 620px;
}

.home-page header .hero-demo {
    width: 100%;
    max-width: 480px;
    justify-self: end;
}

@media (max-width: 900px) {
    .home-page header {
        grid-template-columns: 1fr;
        row-gap: 48px;
        padding: 64px 0 80px;
    }
    .home-page header .hero-demo {
        max-width: 100%;
        justify-self: stretch;
    }
}

.site-nav {
    width: 100%;
    margin: 0;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
    border-radius: 0;
    background: var(--paper-base);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 5;
}

.nav-brand {
    color: var(--ink);
    font-family: 'Newsreader', Georgia, serif;
    font-size: 22px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: -0.015em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-mark {
    flex: 0 0 auto;
    color: var(--ink);
    transform: translateY(-4px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brand > span {
    display: inline-block;
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                letter-spacing 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s ease;
}

.nav-brand:hover .nav-mark {
    transform: translateY(-4px) rotate(-6deg) scale(1.04);
}

.nav-brand:hover > span {
    transform: scale(1.03);
    letter-spacing: 0em;
    color: var(--accent-strong);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--ink-mute);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: color 0.18s ease;
}

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

.home-page h1,
.privacy-page h1 {
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(54px, 7vw, 96px);
    font-weight: 500;
    margin-bottom: 28px;
    letter-spacing: -0.028em;
    line-height: 1.02;
    color: var(--ink);
}

.home-page .tagline,
.privacy-page .tagline {
    font-size: 22px;
    color: var(--ink-dim);
    font-style: normal;
    margin: 0;
    line-height: 1.45;
}

.home-page .tagline {
    max-width: 620px;
}

.home-page section {
    padding: 96px 0;
}

.home-page h2 {
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 500;
    margin-bottom: 32px;
    text-align: left;
    letter-spacing: -0.022em;
    line-height: 1.08;
    color: var(--ink);
}

.home-page h3 {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.012em;
}

.section-lede {
    max-width: 620px;
    margin: -16px 0 40px;
    color: var(--ink-dim);
    font-size: 19px;
    line-height: 1.6;
    text-align: left;
}

.section-kicker {
    margin-bottom: 16px;
    color: var(--accent);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 12px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 100%;
    margin: 0;
}

.plan {
    background-color: transparent;
    padding: 32px 28px;
    border-radius: 4px;
    text-align: left;
    position: relative;
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    transition:
        border-color 0.18s ease,
        transform 0.55s cubic-bezier(0.34, 1.45, 0.64, 1),
        box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
    display: grid;
    grid-template-areas:
        "badge"
        "name"
        "price"
        "period"
        "features";
    grid-template-rows: auto auto auto auto 1fr;
    align-content: start;
    will-change: transform, box-shadow;
}

/* When yearly is active, the cards pop up with a springy stagger.
   Free → Pro → Max so the wave reads left-to-right. */
.pricing-section:has(#billing-yearly:checked) .plan {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 24px 44px -16px rgba(120, 100, 80, 0.22);
}

.pricing-section:has(#billing-yearly:checked) .plan:nth-child(2) {
    transition-delay: 0s, 0.07s, 0.07s;
}

.pricing-section:has(#billing-yearly:checked) .plan:nth-child(3) {
    transition-delay: 0s, 0.14s, 0.14s;
}

@media (prefers-reduced-motion: reduce) {
    .plan {
        transition: border-color 0.18s ease;
    }
    .pricing-section:has(#billing-yearly:checked) .plan {
        transform: none;
    }
}

.plan-badge { grid-area: badge; }
.plan-name { grid-area: name; }
.plan-price { grid-area: price; }
.plan-period { grid-area: period; }
.plan-features { grid-area: features; margin-top: 4px; }

/* Per-card savings badge — pops in when yearly is active. */
.plan-discount {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent);
    transform-origin: 100% 50%;
    transition:
        opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    transform: scale(1) rotate(0deg);
    z-index: 2;
    pointer-events: none;
    will-change: transform, opacity;
}

.pricing-section:has(#billing-monthly:checked) .plan-discount {
    opacity: 0;
    transform: scale(0.4) rotate(-14deg);
    transition:
        opacity 0.18s ease,
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-strike {
    color: var(--ink-tint);
    text-decoration-thickness: 1px;
    text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
    margin-right: 6px;
    font-weight: 400;
}

.plan::before {
    display: none;
}

.plan:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 0 22px 42px rgba(120, 100, 80, 0.14);
}

.pricing-section:has(#billing-yearly:checked) .plan:hover {
    transform: translateY(-14px) scale(1.022);
    box-shadow: 0 30px 52px -14px rgba(120, 100, 80, 0.26);
}

.plan-name {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 16px;
}

.plan-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
    color: var(--accent-strong);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.plan-price {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 8px;
}

.plan-period {
    font-size: 14px;
    color: var(--ink-tint);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.plan-features {
    list-style: none;
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink-dim);
}

.install-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent);
    color: var(--on-accent);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 500;
    padding: 16px 28px;
    border-radius: 4px;
    border: none;
    text-decoration: none;
    transition: background-color 0.18s ease;
    cursor: pointer;
    box-shadow: none;
    letter-spacing: -0.005em;
}

.install-button::after {
    display: none;
}

.install-button:hover {
    background-color: var(--accent-strong);
}

.install-button:disabled {
    background-color: var(--card-surface);
    color: var(--ink-tint);
    cursor: not-allowed;
    animation: none;
    opacity: 0.6;
}

.install-button:disabled::after {
    display: none;
}

.install-button:disabled:hover {
    transform: none;
    box-shadow: none;
    background-color: var(--card-surface);
}

.hero-cta {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--ink-tint);
    font-style: normal;
}

.cta-arrow {
    color: inherit;
}

.hero-note-accent {
    color: var(--accent);
}

.privacy-link-note {
    margin: 0;
    font-size: 15px;
}

.privacy-link-note a {
    color: var(--ink-mute);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
    transition: border-color 0.18s ease, color 0.18s ease;
}

.privacy-link-note a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.hero-demo {
    width: 100%;
    margin: 0;
    padding: 20px;
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    border-radius: 6px;
    background: rgba(255, 250, 242, 0.6);
    box-shadow: 0 24px 54px rgba(120, 100, 80, 0.08);
    overflow: hidden;
    position: relative;
}

.hero-demo::before {
    display: none;
}

.demo-topbar {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-mute);
    font-size: 13px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.demo-dot,
.signal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
}

.demo-dot {
    background: var(--accent);
}

.demo-signal-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.demo-signal {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--card-surface);
    text-align: left;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.demo-signal:hover {
    border-color: color-mix(in srgb, var(--ink) 18%, transparent);
}

.demo-signal strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.demo-signal small {
    display: block;
    color: var(--ink-mute);
    font-size: 13px;
    line-height: 1.35;
    margin-top: 4px;
}

.urgent-signal .signal-dot {
    background: #c47a5a;
}

.later-signal .signal-dot {
    background: #b89668;
}

.ignore-signal .signal-dot {
    background: var(--ink-tint);
}

.demo-output {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.demo-output div {
    padding: 4px 0;
    text-align: left;
}

.demo-output span {
    display: block;
    color: var(--ink-tint);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.demo-output strong {
    display: block;
    margin-top: 4px;
    font-family: 'Newsreader', Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--ink);
}

.waitlist-section {
    padding: 120px 0;
    position: relative;
    background: var(--paper-base);
    color: var(--ink);
}

.waitlist-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    display: grid;
    gap: 32px;
}

.waitlist-copy {
    max-width: 620px;
    margin: 0;
}

.waitlist-section h2 {
    color: var(--ink);
    margin-bottom: 16px;
    text-align: left;
}

.waitlist-section .section-lede {
    max-width: 580px;
    margin: 0;
    color: var(--ink-dim);
    text-align: left;
}

.waitlist-form {
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.waitlist-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 17px;
    text-align: left;
}

.waitlist-feedback {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
}

.waitlist-feedback-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
}

.waitlist-feedback.success {
    border: 1px solid rgba(60, 110, 80, 0.32);
    background: rgba(60, 110, 80, 0.10);
    color: #21512a;
}

.waitlist-feedback.success .waitlist-feedback-icon {
    background: rgba(60, 110, 80, 0.22);
    color: #21512a;
}

.waitlist-feedback.success .waitlist-feedback-icon::before {
    content: "✓";
}

.waitlist-feedback.duplicate {
    border: 1px solid rgba(170, 120, 60, 0.32);
    background: rgba(170, 120, 60, 0.10);
    color: #6b4318;
}

.waitlist-feedback.duplicate .waitlist-feedback-icon {
    background: rgba(170, 120, 60, 0.22);
    color: #6b4318;
}

.waitlist-feedback.duplicate .waitlist-feedback-icon::before {
    content: "!";
}

.waitlist-feedback.error {
    border: 1px solid rgba(180, 60, 55, 0.30);
    background: rgba(180, 60, 55, 0.08);
    color: #7a2424;
}

.waitlist-feedback.error .waitlist-feedback-icon {
    background: rgba(180, 60, 55, 0.20);
    color: #7a2424;
}

.waitlist-feedback.error .waitlist-feedback-icon::before {
    content: "!";
}

.waitlist-feedback.loading {
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    background: color-mix(in srgb, var(--ink) 4%, transparent);
    color: var(--ink-mute);
}

.waitlist-feedback.loading .waitlist-feedback-icon {
    background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.waitlist-feedback.loading .waitlist-feedback-icon::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 2px solid color-mix(in srgb, var(--accent) 22%, transparent);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: waitlistSpin 0.8s linear infinite;
}

@keyframes waitlistSpin {
    to {
        transform: rotate(360deg);
    }
}

.waitlist-form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.waitlist-form input[type="email"] {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--ink);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px;
}

.waitlist-form input[type="email"]::placeholder {
    color: var(--ink-tint);
}

/* Keep the input cream-and-dark-text in night mode for legibility. */
[data-theme="night"] .waitlist-form input[type="email"] {
    background: rgba(255, 250, 242, 0.95);
    color: #2d241b;
    border-color: rgba(45, 36, 27, 0.18);
}

[data-theme="night"] .waitlist-form input[type="email"]::placeholder {
    color: #786652;
}

[data-theme="night"] .waitlist-form input[type="email"]:focus {
    outline-color: var(--accent);
    border-color: var(--accent);
}

.waitlist-form input[type="email"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-color: var(--accent);
}

.waitlist-form button {
    min-height: 56px;
    padding: 0 24px;
    border: none;
    border-radius: 4px;
    background: var(--accent);
    color: var(--on-accent);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.waitlist-form button[disabled] {
    cursor: wait;
    opacity: 0.72;
}

.waitlist-form button:hover {
    background: var(--accent-strong);
}

.waitlist-form p {
    margin-top: 14px;
    color: var(--ink-tint);
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}


.pithy-demo-section {
    padding: 96px 0;
    background: var(--paper-base);
    color: var(--ink);
}

.pithy-demo-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.pithy-demo-kicker {
    margin-bottom: 16px;
    color: var(--accent);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

.pithy-demo-copy h2 {
    margin: 0 0 24px;
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.022em;
    color: var(--ink);
}

.pithy-demo-copy p {
    margin: 0;
    color: var(--ink-dim);
    font-size: 18px;
    line-height: 1.6;
    max-width: 480px;
}

.pithy-demo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.pithy-demo-chips span {
    padding: 6px 12px;
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    border-radius: 4px;
    background: transparent;
    color: var(--ink-mute);
    font-size: 13px;
}

.pithy-demo-chips span:hover {
    border-color: color-mix(in srgb, var(--ink) 24%, transparent);
}

.pithy-popup-demo {
    width: min(100%, 420px);
    justify-self: center;
    padding: 16px;
    border: 1px solid rgba(106, 74, 42, 0.18);
    border-radius: 8px;
    background: linear-gradient(180deg, #f8f4ed 0%, #f1ece2 100%);
    box-shadow: 0 24px 56px rgba(120, 100, 80, 0.16);
}

@media (max-width: 900px) {
    .pithy-demo-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.pithy-popup-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 14px;
}

.pithy-popup-top strong {
    display: block;
    color: #2d241b;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
}

.pithy-popup-top span {
    display: block;
    margin-top: 4px;
    color: #756a5c;
    font-size: 12px;
}

.pithy-popup-top button,
.pithy-demo-actions button {
    border: 1px solid #d0c1ad;
    border-radius: 8px;
    background: linear-gradient(180deg, #fffdf8 0%, #f7f0e5 100%);
    color: #2d241b;
    font-family: Georgia, serif;
    cursor: default;
}

.pithy-popup-top button {
    padding: 8px 11px;
    font-size: 12px;
}

.pithy-brief-card,
.pithy-demo-email,
.pithy-borderline-card {
    border: 1px solid #dfd0bb;
    border-radius: 8px;
    background: linear-gradient(180deg, #fffaf3 0%, #f8f2e8 100%);
    box-shadow: 0 10px 22px rgba(78, 60, 38, 0.08);
}

.pithy-brief-card {
    padding: 14px;
    border-left: 3px solid #9b6d56;
}

.pithy-brief-card span {
    display: block;
    color: #8a6846;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pithy-brief-card p {
    margin: 7px 0 0;
    color: #2d241b;
    font-size: 14px;
    line-height: 1.45;
}

.pithy-demo-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin: 12px 0;
}

.pithy-demo-tabs span {
    padding: 8px 6px;
    border: 1px solid #dfd0bb;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 242, 0.76));
    color: #756a5c;
    font-size: 12px;
    text-align: center;
}

.pithy-demo-tabs .active {
    background: #1a1a18;
    border-color: #1a1a18;
    color: #fafaf8;
}

.pithy-demo-emails {
    display: grid;
    gap: 9px;
}

.pithy-demo-email {
    padding: 12px;
    border-left-width: 3px;
    border-left-style: solid;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pithy-demo-email:hover {
    transform: translateX(4px);
    box-shadow: 0 14px 26px rgba(78, 60, 38, 0.12);
}

.pithy-demo-email.urgent {
    border-left-color: #9b6d56;
}

.pithy-demo-email.later {
    border-left-color: #b89668;
}

.pithy-demo-email.ignore {
    border-left-color: #a8a196;
}

.pithy-email-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pithy-email-head strong {
    color: #2d241b;
    font-size: 14px;
    font-weight: 400;
}

.pithy-email-head span {
    color: #8a8175;
    font-size: 11px;
}

.pithy-demo-email p {
    margin: 6px 0 0;
    color: #2d241b;
    font-size: 14px;
    line-height: 1.35;
}

.pithy-reason {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    color: #756a5c;
    font-size: 12px;
}

.pithy-reason i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.pithy-borderline-card {
    margin-top: 10px;
    padding: 12px;
    border-left: 3px solid #8a6846;
}

.pithy-borderline-card strong {
    display: block;
    color: #2d241b;
    font-size: 14px;
    font-weight: 400;
}

.pithy-borderline-card p {
    margin: 4px 0 0;
    color: #756a5c;
    font-size: 12px;
    line-height: 1.4;
}

.pithy-demo-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.pithy-demo-actions button {
    padding: 9px 8px;
    font-size: 12px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.pithy-demo-actions button:hover {
    transform: translateY(-2px);
    border-color: rgba(138, 104, 70, 0.35);
}

.pricing-section {
    padding: 96px 0;
    background: var(--paper-base);
}

.pricing-section .container > h2 {
    margin-bottom: 16px;
}

.pricing-section .section-lede {
    margin-bottom: 56px;
}

.compact-pricing .plan {
    padding: 32px 28px;
    background: transparent;
    color: var(--ink);
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    border-radius: 4px;
    text-align: left;
}

.compact-pricing .plan::before {
    display: none;
}

.compact-pricing .plan-price {
    font-size: 36px;
}

.compact-pricing .plan-period,
.compact-pricing .plan-features {
    color: var(--ink-dim);
}

.compact-pricing .plan-badge {
    background-color: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
    color: var(--accent-strong);
}

.pricing-intro {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-intro .plan-badge {
    font-size: 14px;
    padding: 8px 16px;
}

.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 48px;
    padding: 4px;
    background: color-mix(in srgb, var(--ink) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
    border-radius: 999px;
}

.billing-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.billing-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-dim);
    cursor: pointer;
    user-select: none;
    transition:
        color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.billing-toggle-input:checked + .billing-toggle-label .billing-savings {
    animation: billingSavingsPing 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes billingSavingsPing {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.10); }
    100% { transform: scale(1); }
}

.billing-toggle-label:hover {
    color: var(--ink);
}

.billing-toggle-input:checked + .billing-toggle-label {
    background: var(--paper-base);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.billing-toggle-input:focus-visible + .billing-toggle-label {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.billing-savings {
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    font-weight: 500;
    text-transform: uppercase;
}

/* Monthly + yearly variants share a grid cell so they can crossfade in
   place. Default state: yearly visible (yearly input is `checked` by
   default in the markup). */
.plan-price-unit {
    font-size: 0.5em;
    color: var(--ink-tint);
}

.plan-price-monthly,
.plan-price-yearly,
.plan-period-monthly,
.plan-period-yearly {
    transition:
        opacity 0.36s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.42s cubic-bezier(0.34, 1.32, 0.64, 1),
        filter 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    transform-origin: 0% 50%;
}

.plan-price-monthly,
.plan-period-monthly {
    opacity: 0;
    transform: translateY(-12px) scale(0.94);
    filter: blur(3px);
    pointer-events: none;
}

.plan-price-yearly,
.plan-period-yearly {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.pricing-section:has(#billing-monthly:checked) .plan-price-monthly,
.pricing-section:has(#billing-monthly:checked) .plan-period-monthly {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
}

.pricing-section:has(#billing-monthly:checked) .plan-price-yearly,
.pricing-section:has(#billing-monthly:checked) .plan-period-yearly {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
    filter: blur(3px);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .plan-price-monthly,
    .plan-price-yearly,
    .plan-period-monthly,
    .plan-period-yearly,
    .plan-discount {
        transition: opacity 0.01s linear;
        transform: none !important;
        filter: none !important;
    }
}

.privacy-page header {
    padding: 80px 0 64px;
    text-align: left;
}

.privacy-page .tagline {
    max-width: 700px;
}

.privacy-page section {
    padding: 0 0 80px;
}

.policy-card {
    max-width: 840px;
    margin: 0 auto;
    background: transparent;
    border: none;
    color: var(--ink);
    border-radius: 0;
    padding: 0;
}

.policy-meta {
    font-size: 15px;
    color: color-mix(in srgb, var(--ink) 48%, transparent);
    margin-bottom: 32px;
}

.policy-section + .policy-section {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--card-border);
}

.policy-section h2 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.policy-section p,
.policy-section li {
    font-size: 18px;
    color: color-mix(in srgb, var(--ink) 65%, transparent);
    line-height: 1.8;
}

.policy-section ul {
    margin-left: 24px;
}

.policy-section strong {
    color: var(--ink);
    font-weight: 400;
}

.policy-section a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
}

.policy-section a:hover {
    border-bottom-color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .benefit,
    .step,
    .plan,
    .brief-column,
    .hero-demo,
    .demo-signal,
    .demo-output div,
    .pithy-popup-demo,
    .hero-trust span {
        opacity: 1 !important;
        transform: none !important;
    }

    .tab-panels::before,
    .hero-demo::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .home-page h1,
    .privacy-page h1 {
        font-size: 42px;
    }

    .home-page .tagline,
    .privacy-page .tagline {
        font-size: 20px;
    }

    .home-page h2 {
        font-size: 32px;
    }

    .benefits {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .site-nav {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .hero-demo {
        padding: 14px;
    }

    .demo-signal-list,
    .demo-output {
        grid-template-columns: 1fr;
    }

    .demo-output {
        gap: 8px;
    }

    .audience-grid,
    .proof-grid,
    .next-steps {
        grid-template-columns: 1fr;
    }

    .proof-section h2,
    .proof-section .section-kicker {
        text-align: center;
    }

    .pithy-demo-wrap {
        grid-template-columns: 1fr;
    }

    .pithy-demo-copy,
    .pithy-demo-copy h2 {
        text-align: center;
    }

    .pithy-demo-chips {
        justify-content: center;
    }

    .brief-preview,
    .comparison-grid,
    .privacy-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .brief-column {
        min-height: auto;
    }

    .section-lede {
        font-size: 18px;
    }

    .waitlist-section {
        min-height: auto;
        padding: 112px 0 88px;
    }

    .waitlist-shell {
        width: min(100%, calc(100% - 32px));
        gap: 22px;
    }

    .waitlist-form {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .waitlist-copy,
    .waitlist-section .section-lede,
    .next-step,
    .waitlist-form p,
    .waitlist-form label {
        text-align: left;
    }

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

    .tab-list a {
        text-align: center;
        font-size: 16px;
        padding: 11px 10px;
    }

    .tab-panels {
        padding: 24px 18px;
    }

    .waitlist-form-row {
        grid-template-columns: 1fr;
    }

    .waitlist-form button {
        width: 100%;
    }

    .tab-panel .faq-grid {
        grid-template-columns: 1fr;
    }

    .policy-card {
        padding: 36px 24px;
    }

    .policy-section h2 {
        font-size: 26px;
    }

    .policy-section p,
    .policy-section li {
        font-size: 17px;
    }
}

.plan:hover {
    border-color: color-mix(in srgb, var(--accent) 42%, transparent);
}

.waitlist-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.waitlist-turnstile {
    margin: 18px 0 4px;
    min-height: 65px;
}

/* ── Theme transitions ─────────────────────────────────────────────────
   Smooth color/border crossfade between light and dark themes.
   Excludes background-image so section gradients (which contain many
   stops) snap rather than thrash through intermediate composites. */
html {
    transition: background-color 0.25s ease, color 0.25s ease;
}

body,
section,
footer {
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

/* ── Theme toggle button ───────────────────────────────────────────────
   Single 32×32 icon button at the end of .nav-links. Sun is shown when
   data-theme=night (clicking takes you to light); moon when light. */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 4px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: color-mix(in srgb, var(--ink) 64%, transparent);
    cursor: pointer;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.theme-toggle:hover {
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    transform: translateY(-1px);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.theme-toggle-icon {
    display: none;
}

/* Light is default — moon icon shown (clicking switches to dark). */
.theme-toggle-moon {
    display: block;
}

[data-theme="night"] .theme-toggle-moon {
    display: none;
}

[data-theme="night"] .theme-toggle-sun {
    display: block;
}
