:root {
    --ink: #1d2430;
    --paper: #fbf7ef;
    --line: #d8cec1;
    --accent: #0f766e;
    --accent-dark: #115e59;
    --danger: #9f1239;
    --ok: #166534;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--paper); }
a { color: var(--accent-dark); text-decoration: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(18px, 4vw, 56px); border-bottom: 1px solid var(--line); background: rgba(251, 247, 239, 0.96); position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 800; font-size: 22px; color: var(--ink); }
nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.inline { display: inline; }
.link-btn { border: 0; background: transparent; color: var(--accent-dark); cursor: pointer; font: inherit; padding: 0; }
.nav-cta { border: 1px solid var(--accent); padding: 8px 12px; border-radius: 6px; }
main { padding: 28px clamp(18px, 4vw, 56px) 60px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); gap: clamp(28px, 5vw, 72px); align-items: center; min-height: 70vh; }
.eyebrow { color: var(--accent-dark); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(36px, 6vw, 76px); line-height: 0.96; margin: 10px 0 18px; }
.hero h1 { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.18; max-width: 760px; }
h2 { margin: 0 0 14px; }
.lead { font-size: 19px; line-height: 1.6; max-width: 680px; }
.platform-line, .selected-plan { color: #6b6258; font-weight: 700; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 16px; background: white; color: var(--ink); font-weight: 700; cursor: pointer; }
.button.primary { background: var(--accent); color: white; border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.paper-preview { background: #fffdfa; border: 1px solid #1f2937; box-shadow: 10px 12px 0 rgba(15, 118, 110, 0.18); padding: 18px; min-height: 480px; }
.masthead { font-family: Georgia, 'Times New Roman', serif; font-size: 44px; font-weight: 900; text-align: center; border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); padding: 10px 0; }
.edition-date { text-align: center; font-size: 12px; text-transform: uppercase; padding: 10px 0; border-bottom: 1px solid var(--ink); }
.headline { font-family: Georgia, 'Times New Roman', serif; font-size: 30px; line-height: 1.05; padding: 22px 0; border-bottom: 1px solid var(--ink); }
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 18px; }
.columns span { display: block; height: 220px; background: repeating-linear-gradient(to bottom, #2f3744 0 4px, transparent 4px 12px); opacity: 0.55; }
.story-stack { display: grid; gap: 10px; padding-top: 16px; }
.story-stack span { border-bottom: 1px solid var(--line); padding: 12px 0; font-weight: 800; }
.band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid var(--line); padding-top: 22px; }
.band div, .panel, .pricing { background: #fffdfa; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.promo-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-top: 18px; }
.promo-grid > div { background: #fffdfa; border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.plan-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.mini-plan { background: #fffdfa; border: 1px solid var(--line); border-radius: 8px; padding: 14px; color: var(--ink); }
.mini-plan span { display: block; color: var(--accent-dark); margin-top: 6px; }
.narrow, .auth, .dashboard, .plans-page { max-width: 1120px; margin: 0 auto; }
.auth { max-width: 480px; }
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.pricing { position: relative; display: flex; flex-direction: column; gap: 10px; }
.pricing.featured { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12); }
.pricing ul { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; }
.pricing .button { margin-top: auto; width: 100%; }
.price span { font-size: 15px; font-weight: 700; color: #6b6258; }
.badge { position: absolute; right: 14px; top: 14px; background: var(--accent); color: white; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; }
.platform-panel { margin-top: 16px; }
.platform-list { display: flex; flex-wrap: wrap; gap: 10px; }
.platform-list span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; background: white; font-weight: 700; }
.platform-list.compact span { font-size: 13px; }
.panel label { display: grid; gap: 7px; font-weight: 700; margin-bottom: 14px; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; font: inherit; background: white; }
.check { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 10px !important; }
.check input { width: auto; }
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.wide { grid-column: 1 / -1; }
.dash-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 20px; }
.paper-row { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.paper-row span { display: block; color: #6b6258; font-size: 13px; margin-top: 4px; }
.paper-row div:last-child { display: flex; gap: 12px; align-items: center; }
.alert { max-width: 960px; margin: 0 auto 18px; border-radius: 8px; padding: 12px 14px; }
.alert.error { background: #fff1f2; color: var(--danger); border: 1px solid #fecdd3; }
.alert.ok { background: #f0fdf4; color: var(--ok); border: 1px solid #bbf7d0; }
.price { font-size: 28px; font-weight: 800; }
@media (max-width: 780px) {
    .hero, .band, .setup-grid, .plans-grid, .plan-strip, .promo-grid { grid-template-columns: 1fr; }
    .paper-preview { min-height: 360px; }
    .dash-head, .paper-row { flex-direction: column; align-items: stretch; }
    h1 { font-size: 42px; }
}
