:root {
    --paper: #f4f1e8;
    --paper-2: #fffdf8;
    --ink: #1c1916;
    --muted: #4a453e;
    --soft: #5e584f;
    --line: rgba(48, 38, 18, 0.1);
    --card: #fffdf8;
    --dark: #1c1b18;
    --dark-2: #2a2824;
    --gold: #e7b325;
    --gold-deep: #8a6410;
    --green: #2f8f49;
    --shadow: 0 18px 44px rgba(72, 52, 12, 0.1);
    --radius: 28px;
    --header-h: 92px;
    color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.pub-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    color: var(--ink);
    background:
        radial-gradient(980px 560px at 108% -8%, rgba(236, 196, 72, 0.55), transparent 58%),
        radial-gradient(720px 480px at -10% 18%, rgba(255, 252, 244, 0.9), transparent 60%),
        linear-gradient(180deg, #f7f4ec 0%, #f3efe4 48%, #f6f1df 100%);
    line-height: 1.55;
}

.pub-body a { color: inherit; }

.pub-body a.pub-btn--dark,
.pub-body a.pub-btn--dark:hover { color: #fff; background: var(--ink); }

.pub-body a.pub-btn--light,
.pub-body a.pub-btn--light:hover { color: var(--ink); background: #fff; }

.pub-body a.pub-btn--ghost,
.pub-body a.pub-btn--ghost:hover { color: var(--ink); }

.pub-body .plan--featured a.pub-btn--light { color: var(--ink); }

.pub-body .pub-nav a[aria-current="page"],
.pub-body .pub-nav a[aria-current="page"]:hover { color: #fff; background: var(--ink); }

.skip-link {
    position: absolute;
    left: 16px;
    top: 12px;
    transform: translateY(-140%);
    background: var(--ink);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    z-index: 80;
}

.skip-link:focus { transform: none; }

.pub-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 12px 20px;
    background: transparent;
    transition: background 180ms ease, box-shadow 180ms ease;
}

.pub-header.is-stuck {
    background: #f3f0e6;
    box-shadow: 0 1px 0 rgba(48, 38, 18, 0.08);
}

.pub-header__bar {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

.pub-logo {
    display: flex;
    align-items: center;
    height: 42px;
}

.pub-logo img {
    height: 32px;
    width: auto;
    max-width: 132px;
    display: block;
}

.pub-nav {
    justify-self: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 6px;
    max-width: 100%;
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.82);
    box-shadow: 0 8px 24px rgba(72, 52, 12, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.pub-nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 560;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 180ms ease, color 180ms ease;
}

.pub-nav a:hover { color: var(--ink); background: rgba(28, 25, 22, 0.05); }

.pub-nav a[aria-current="page"] {
    background: var(--ink);
    color: #fff;
}

.pub-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pub-actions form { margin: 0; }

.pub-login {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    padding: 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.pub-login:hover { background: rgba(28, 25, 22, 0.05); }

.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pub-btn:hover { transform: translateY(-1px); }
.pub-btn:active { transform: translateY(1px) scale(0.99); }

.pub-btn--dark {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 22px rgba(28, 25, 22, 0.16);
}

.pub-btn--dark:hover { background: #2b2824; }

.pub-btn--light {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.pub-btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: rgba(28, 25, 22, 0.16);
}

.pub-btn--ghost:hover { background: rgba(255, 255, 255, 0.55); }

.pub-btn--block { width: 100%; }

.pub-locale {
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.9);
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
}

.pub-main { padding: 28px 20px 72px; }

.pub-wrap {
    max-width: 1180px;
    margin: 0 auto;
}

.pub-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 36px;
    align-items: center;
    padding: 28px 8px 18px;
}

.pub-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.78);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.pub-kicker i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
}

h1, h2, h3 { text-wrap: balance; }

.pub-hero h1 {
    margin: 18px 0 0;
    font-size: clamp(2.5rem, 4.6vw, 4.4rem);
    font-weight: 560;
    letter-spacing: -0.035em;
    line-height: 1.02;
    max-width: 12ch;
}

.pub-hero h1 span {
    display: block;
    font-weight: 480;
    color: #3a342b;
}

.pub-lead {
    margin: 18px 0 0;
    max-width: 62ch;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--muted);
    text-wrap: pretty;
}

.pub-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.pub-note {
    margin: 12px 0 0;
    color: var(--soft);
    font-size: 14px;
}

.pub-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.pub-proof strong {
    display: block;
    font-size: 15px;
    font-weight: 680;
}

.pub-proof span {
    display: block;
    margin-top: 2px;
    color: var(--soft);
    font-size: 13px;
}

.stage {
    background: rgba(255, 253, 248, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.stage-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stage-chip {
    background: #fff;
    border-radius: 18px;
    padding: 14px 12px;
    box-shadow: 0 8px 18px rgba(72, 52, 12, 0.05);
}

.stage-chip p,
.meter p,
.insight p { margin: 0; }

.stage-chip strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
}

.stage-chip span,
.meter-label,
.insight-label {
    color: var(--soft);
    font-size: 12px;
    font-weight: 600;
}

.meter {
    margin-top: 12px;
    background: #fff;
    border-radius: 22px;
    padding: 16px 18px 14px;
}

.meter-head,
.meter-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.meter-foot { margin-top: 8px; color: var(--muted); }

.track {
    margin-top: 10px;
    height: 10px;
    border-radius: 999px;
    background: #efe8d6;
    overflow: hidden;
}

.track span {
    display: block;
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e7b325, #f0d56a);
}

.stage-split {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 10px;
}

.stat {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
}

.stat strong {
    display: block;
    margin-top: 6px;
    font-size: 1.8rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
}

.stat span,
.insight p { color: var(--soft); font-size: 13px; }

.stat--alert strong { color: #9a6414; }

.insight {
    background: var(--dark);
    color: #f6f3ea;
    border-radius: 22px;
    padding: 16px 16px 18px;
}

.insight p { color: #d9d3c6; margin-top: 8px; line-height: 1.45; }

.band {
    margin-top: 28px;
    background: rgba(255, 253, 248, 0.62);
    border-radius: 28px;
    padding: 22px 22px 8px;
    box-shadow: 0 10px 30px rgba(72, 52, 12, 0.05);
}

.band h2,
.section-head h2,
.faq-head h2,
.closing h2,
.price-head h1 {
    letter-spacing: -0.03em;
    font-weight: 560;
    line-height: 1.08;
}

.band-label,
.section-label {
    margin: 0;
    color: var(--gold-deep);
    font-size: 14px;
    font-weight: 650;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 8px;
}

.steps article {
    padding: 16px 18px 22px 0;
}

.steps article + article {
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.steps h3 { margin: 0; font-size: 16px; font-weight: 680; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 36ch; }

.section { padding: 72px 0 10px; }

.section-head,
.faq-head,
.price-head { max-width: 40rem; }

.section-head h2,
.faq-head h2,
.closing h2 {
    margin: 10px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-head p,
.price-head p { color: var(--muted); }

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

.feature-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
}

.feature {
    background: rgba(255, 253, 248, 0.78);
    border-radius: 24px;
    padding: 22px 22px 20px;
    box-shadow: 0 10px 28px rgba(72, 52, 12, 0.05);
}

.feature:nth-child(n + 3) {
    background: transparent;
    box-shadow: none;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding-top: 18px;
}

.feature h3 { margin: 0; font-size: 1.15rem; font-weight: 650; }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 15px; max-width: 58ch; }

.faq { padding: 64px 0 10px; }

.faq-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
}

.faq-grid article {
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--line);
}

.faq-grid h3 { margin: 0; font-size: 1.05rem; font-weight: 670; }
.faq-grid p { margin: 8px 0 0; color: var(--muted); font-size: 15px; max-width: 58ch; }

.closing {
    margin-top: 56px;
    background: var(--dark);
    color: #f7f4ec;
    border-radius: 32px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 24px 50px rgba(28, 25, 22, 0.16);
}

.closing p { color: #d8d2c6; margin-left: auto; margin-right: auto; }
.closing .pub-note { color: #b7b1a6; }

.pub-footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 20px 36px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--soft);
    font-size: 14px;
}

.pub-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.pub-footer a { text-decoration: none; }
.pub-footer a:hover { color: var(--ink); }

.price-head { text-align: left; padding: 18px 8px 8px; }
.price-head h1 {
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    max-width: 14ch;
}

.price-head .pub-lead { margin-top: 14px; }

.plans {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 253, 248, 0.86);
    border-radius: 30px;
    padding: 28px 24px 22px;
    box-shadow: var(--shadow);
    min-height: 100%;
}

.plan--featured {
    background: var(--dark);
    color: #f6f3ea;
    transform: translateY(-10px);
    box-shadow: 0 28px 50px rgba(28, 25, 22, 0.22);
}

.plan-flag {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--gold);
    color: #1c1916;
    font-size: 12px;
    font-weight: 750;
    padding: 7px 10px 8px;
    border-radius: 12px 14px 12px 4px;
}

.plan h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.plan-lead {
    min-height: 3.2em;
    margin: 8px 0 0;
    color: var(--soft);
    font-size: 14px;
    max-width: 28ch;
}

.plan--featured .plan-lead { color: #cfc8bb; }

.plan-price {
    margin: 18px 0 0;
    font-size: 3rem;
    font-weight: 620;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.plan--featured .plan-price { color: var(--gold); }

.plan-price span {
    margin-left: 4px;
    font-size: 0.95rem;
    font-weight: 560;
    letter-spacing: 0;
    color: var(--soft);
}

.plan--featured .plan-price span { color: #e7d7a0; }

.plan ul {
    list-style: none;
    margin: 22px 0 0;
    padding: 16px 0 0;
    border-top: 1px dashed rgba(48, 38, 18, 0.16);
    display: grid;
    gap: 10px;
}

.plan--featured ul { border-top-color: rgba(255, 255, 255, 0.14); }

.plan li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
}

.plan--featured li { color: #eee8dc; }

.plan li svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--green);
}

.plan .pub-btn { margin-top: auto; }

.reassure {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 8px 8px 0;
}

.reassure p { margin: 0; color: var(--muted); max-width: 62ch; }

.pub-doc {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 64px;
    color: var(--muted);
}

.pub-narrow { max-width: 760px; }

.pub-doc h1,
.pub-doc h2,
.pub-doc .text-white { color: var(--ink) !important; }

.pub-doc .text-gray-300,
.pub-doc .text-gray-600,
.pub-doc .text-gray-700 { color: var(--muted) !important; }

.pub-doc .text-gray-400,
.pub-doc .text-gray-500 { color: var(--soft) !important; }

.pub-doc .text-indigo-400,
.pub-doc a.text-indigo-600,
.pub-doc .hover\:text-indigo-600:hover { color: var(--ink) !important; }

.pub-doc .bg-white {
    background: rgba(255, 253, 248, 0.9) !important;
    border-color: transparent !important;
    box-shadow: 0 10px 28px rgba(72, 52, 12, 0.05);
}

.pub-doc .bg-gray-100 { background: #efe8d8 !important; color: var(--ink) !important; }
.pub-doc .bg-indigo-600 { background: var(--ink) !important; }

.pub-doc pre {
    background: var(--dark) !important;
    color: #f3efe4 !important;
}

.doc-locales {
    display: flex;
    gap: 6px;
}

.doc-locales a {
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.9);
    border: 1px solid var(--line);
}

.doc-locales a.is-on {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .pub-header__bar,
    .pub-hero,
    .feature-grid,
    .plans,
    .faq-grid,
    .stage-split,
    .steps,
    .reassure {
        grid-template-columns: 1fr;
        display: grid;
    }

    .pub-header__bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        grid-template-columns: none;
    }
    .pub-logo { flex: 0 0 auto; }
    .pub-actions { margin-left: auto; }
    .pub-nav { flex: 1 0 100%; justify-self: stretch; }
    .pub-hero h1,
    .price-head h1 { max-width: none; }
    .feature:nth-child(1),
    .feature:nth-child(2) { grid-column: auto; min-height: 0; }
    .plan--featured { transform: none; }
    .steps article + article {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--line);
    }
    .stage-top { grid-template-columns: 1fr; }
    .closing { padding: 32px 20px; }
}

.auth-shell {
    width: min(720px, calc(100% - 32px));
    margin: 28px auto 56px;
}

.auth-card {
    background: rgba(255, 253, 248, 0.92);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 32px 28px 28px;
}

.auth-card h1 {
    margin: 0 0 22px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.auth-form { display: grid; gap: 18px; }

.auth-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 650;
}

.auth-label span,
.auth-required { color: #8d2b24; }

.auth-field {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(48, 38, 18, 0.16);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.auth-field::placeholder { color: #5c564c; }

.auth-field:focus {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.auth-field.is-invalid { border-color: #8d2b24; }

.auth-error {
    margin: 8px 0 0;
    color: #8d2b24;
    font-size: 14px;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.auth-check input {
    margin-top: 3px;
    accent-color: var(--ink);
}

.auth-link {
    color: var(--ink);
    font-weight: 650;
    text-underline-offset: 3px;
}

.auth-note {
    margin: 18px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.auth-help { margin: 0; color: var(--soft); font-size: 14px; }

.auth-banner {
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
}

.auth-banner--error { background: #f8e4df; color: #6d241c; }
.auth-banner--info { background: #f4ead0; color: #3d3218; }
.auth-banner--ok { background: #e5f3e9; color: #1c5a30; }

.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pub-body button.pub-btn--dark,
.pub-body button.pub-btn--dark:hover {
    color: #fff;
    background: var(--ink);
}

.unsub {
    width: min(520px, calc(100% - 32px));
    margin: 36px auto 64px;
    background: rgba(255, 253, 248, 0.92);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 28px 24px;
}

.unsub h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 560;
    letter-spacing: -0.03em;
}

.unsub p { color: var(--muted); }

@media (max-width: 720px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-card { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pub-btn, .pub-nav a { transition: none; }
    .pub-btn:hover, .pub-btn:active, .plan--featured { transform: none; }
}
