/* Shared subpage layout — built on tokens.css + site-chrome.css (retires legacy 2024 styles.css) */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

/* ─── Subpage Editorial Hero ────────────────────────────────────── */

.sub-hero {
    background:
        radial-gradient(60% 80% at 86% 20%, rgba(196, 163, 90, 0.14) 0%, rgba(196, 163, 90, 0) 70%),
        linear-gradient(155deg, #0d2b29 0%, #123c39 62%, #164944 100%);
    color: var(--paper);
    padding: clamp(3.25rem, 6vw, 4.75rem) 1.5rem clamp(3rem, 5.5vw, 4.25rem);
    border-bottom: 1px solid var(--line-dark);
}

.sub-hero-inner {
    max-width: 960px;
    margin: 0 auto;
}

.sub-hero .kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 0.9rem;
}

.sub-hero .kicker::before {
    content: "";
    width: 20px;
    height: 1px;
    background: var(--gold);
}

.sub-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.2vw, 3.35rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--paper);
    max-width: 42rem;
}

.sub-hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-bright);
}

.sub-hero p {
    margin-top: 1rem;
    font-size: 1.04rem;
    line-height: 1.65;
    color: rgba(255, 252, 247, 0.8);
    max-width: 38rem;
}

.sub-hero-meta {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 252, 247, 0.65);
}

/* ─── Containers & Sections ─────────────────────────────────────── */

.sub-section {
    max-width: 1020px;
    margin: 0 auto;
    padding: clamp(2.75rem, 5vw, 4.25rem) 1.5rem;
}

.sub-section + .sub-section {
    border-top: 1px solid var(--line);
}

.sub-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.15rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.sub-section-lead {
    color: var(--muted);
    max-width: 40rem;
    margin-top: -0.85rem;
    margin-bottom: 2rem;
    font-size: 0.98rem;
}

/* ─── Buttons ───────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.82rem 1.55rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.btn-primary:hover {
    background: var(--brand);
    color: var(--paper);
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--gold-bright);
    color: var(--deep);
}

.btn-gold:hover {
    background: #edd07e;
    color: var(--deep);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn-secondary:hover {
    border-color: var(--ink);
    color: var(--ink);
}

/* ─── Quick Links Grid (Help) ───────────────────────────────────── */

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.4rem;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.quick-card:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.quick-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--ink);
    display: grid;
    place-items: center;
    margin-bottom: 0.9rem;
}

.quick-card h3 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.quick-card p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--muted);
}

/* ─── FAQ / Help Cards ──────────────────────────────────────────── */

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.55rem;
}

.faq-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.faq-card p {
    font-size: 0.94rem;
    color: var(--muted);
    line-height: 1.65;
}

.faq-card strong { color: var(--ink); }

.faq-card code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.86em;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    background: var(--wash);
    color: var(--ink);
}

/* ─── Forms & Support Panel ─────────────────────────────────────── */

.support-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 1.75rem;
    align-items: start;
}

.editorial-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.15rem);
    box-shadow: var(--shadow-sm);
}

.editorial-card.warm {
    background: var(--paper-warm);
    border-color: rgba(196, 163, 90, 0.3);
    box-shadow: none;
}

.editorial-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.55rem;
}

.editorial-card p {
    font-size: 0.94rem;
    color: var(--muted);
    line-height: 1.6;
}

.form-stack {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.form-stack input,
.form-stack select,
.form-stack textarea {
    width: 100%;
    padding: 0.82rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.94rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(28, 107, 100, 0.14);
}

/* ─── Early Access / Membership Cards (premium.html) ────────────── */

.access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
}

.tier-badge {
    display: inline-block;
    padding: 0.3rem 0.72rem;
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.tier-badge.gold {
    background: var(--gold-soft);
    color: #7c5e1e;
}

.tier-price {
    font-family: var(--font-display);
    font-size: 2.35rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.1;
    margin: 0.5rem 0 0.85rem;
}

.tier-price span {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
}

.check-list {
    list-style: none;
    display: grid;
    gap: 0.65rem;
    margin: 1.25rem 0 1.75rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.check-list li {
    position: relative;
    padding-left: 1.3rem;
    font-size: 0.93rem;
    color: var(--ink-soft);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

/* ─── Legal Prose (Privacy & Terms) ─────────────────────────────── */

.prose-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(2.75rem, 5vw, 4rem) 1.5rem clamp(3.5rem, 6vw, 5rem);
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.48rem;
    font-weight: 500;
    color: var(--ink);
    margin: 2.4rem 0 0.75rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.prose h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.prose h3 {
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ink);
    margin: 1.35rem 0 0.5rem;
}

.prose p {
    font-size: 0.96rem;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.prose ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0 1.15rem;
    display: grid;
    gap: 0.5rem;
}

.prose li {
    font-size: 0.95rem;
    color: var(--muted);
}

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

.prose-footer {
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ─── Success Confirmation ──────────────────────────────────────── */

.success-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 6rem) 1.5rem;
    text-align: center;
}

.success-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border: 1px solid rgba(28, 107, 100, 0.22);
    display: grid;
    place-items: center;
}

.success-wrap h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.85rem;
}

.success-wrap > p {
    font-size: 1.02rem;
    color: var(--muted);
    max-width: 32rem;
    margin: 0 auto 2rem;
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 2.5rem;
}

/* ─── Clean Optional Updates Strip ──────────────────────────────── */

.updates-strip {
    margin-top: 2.5rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--paper-warm);
    border: 1px solid rgba(196, 163, 90, 0.28);
    text-align: left;
}

.updates-strip h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.updates-strip p {
    font-size: 0.9rem;
    color: var(--muted);
}

.updates-inline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 0.65rem;
    margin-top: 1rem;
}

.updates-inline input {
    padding: 0.72rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

@media (max-width: 860px) {
    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .support-grid,
    .access-grid { grid-template-columns: 1fr; }
    .updates-inline { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
    .quick-grid,
    .form-row-2 { grid-template-columns: 1fr; }
}
