/* PM Booster public pages, in the viktorcessan.com design language: warm off-white surfaces,
   near-black text, gold accent, DM Serif Display headings, DM Sans body, generous whitespace. */
:root {
    --bg-primary: #ffffff; --bg-secondary: #f6f5f2; --bg-card: #f0efec; --bg-card-hover: #e8e7e3;
    --text-primary: #1a1a1f; --text-secondary: #52514d; --text-muted: #8a8983;
    --accent: #9a7b2e; --accent-dim: rgba(154, 123, 46, 0.08); --accent-glow: rgba(154, 123, 46, 0.05);
    --border: rgba(0, 0, 0, 0.08); --border-strong: rgba(0, 0, 0, 0.16); --border-accent: rgba(154, 123, 46, 0.25);
    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px;
    --font-display: 'DM Serif Display', Georgia, serif; --font-body: 'DM Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --gap: .75rem;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-gutter: stable; }
body { font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }
::selection { background: #000; color: #fff; }
a { color: var(--text-primary); text-decoration-color: var(--border-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.muted { color: var(--text-muted); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container.narrow { max-width: 680px; }
section { padding: 4.25rem 0; }
.section-label { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem; max-width: 18ch; text-wrap: balance; }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 1.2rem; max-width: 26ch; text-wrap: balance; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
p { margin-bottom: 1.1em; }

/* ── top bar ── */
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-family: var(--font-display); font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { color: var(--text-primary); }
.topnav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.topnav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text-secondary); }
.topnav { display: flex; align-items: center; gap: 1.8rem; }
.topnav a { text-decoration: none; font-size: .85rem; letter-spacing: .03em; color: var(--text-secondary); white-space: nowrap; padding-bottom: .2rem; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--text-primary); }
.topnav a[aria-current="page"] { color: var(--text-primary); font-weight: 600; border-bottom-color: var(--accent); }
.topnav a.btn { border-bottom: 1px solid transparent; padding-bottom: .45rem; }

/* ── buttons: never touching ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.8rem; min-height: 44px; font-family: var(--font-body); font-size: .85rem; font-weight: 600; line-height: 1.4; letter-spacing: .02em; text-decoration: none; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .15s; white-space: nowrap; }
.btn-primary { background: #1a1a1a; color: #fff !important; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text-secondary); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-primary); color: var(--text-primary); }
.btn-s { padding: .45rem 1rem; min-height: 36px; font-size: .8rem; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn + .btn { margin-left: var(--gap); }
.hero-ctas > .btn + .btn, .topnav > .btn + .btn { margin-left: 0; }

/* ── hero ── */
.hero { padding: 4rem 0 4.5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 640px; height: 640px; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 5rem; align-items: center; position: relative; }
.hero-sub { font-size: 1.15rem; line-height: 1.7; color: var(--text-secondary); max-width: 54ch; margin-bottom: 2.4rem; }
.hero-ctas { display: flex; gap: var(--gap); flex-wrap: wrap; }

/* the chain of artifacts, drawn once in the hero */
.chain { list-style: none; position: relative; display: grid; gap: .55rem; }
.chain::before { content: ''; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 1px; background: var(--border-accent); }
.chain li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: .8rem 1rem .8rem .8rem; transition: transform .25s, border-color .25s; }
.chain li:hover { transform: translateX(4px); border-color: var(--border-accent); }
.chain-num { width: 28px; height: 28px; margin-left: 8px; display: grid; place-items: center; border-radius: 50%; background: var(--text-primary); color: #fff; font-family: var(--font-display); font-size: 1rem; line-height: 1; }
.chain strong { display: block; font-size: .98rem; line-height: 1.3; }
.chain small { display: block; font-size: .82rem; color: var(--text-secondary); line-height: 1.4; }
.chain-caption { margin: 1.2rem 0 0 .2rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }

/* ── stats ── */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 4.5rem; }
.stat { background: var(--bg-secondary); padding: 1.8rem 1.5rem; text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--text-primary); display: block; margin-bottom: .45rem; }
.stat-label { font-size: .8rem; color: var(--text-secondary); letter-spacing: .02em; }

/* ── modules ── */
.modules { background: var(--bg-secondary); }
.modules-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.modules-head h2 { margin-bottom: 0; }
.modules-intro { max-width: 52ch; color: var(--text-secondary); margin-bottom: 0; }
.module-grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.module-grid li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem 1.2rem 1.2rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; min-width: 0; transition: border-color .25s, transform .25s; }
.module-grid li:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.module-grid li > div { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.module-num { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--accent); margin: 0; min-width: 1.5rem; text-align: center; }
.module-grid strong { font-size: 1.02rem; line-height: 1.3; }
.module-grid span:not(.module-num) { color: var(--text-secondary); font-size: .9rem; line-height: 1.5; }
.module-grid:not(.module-grid-stack) li { align-items: start; }
.module-grid:not(.module-grid-stack) .module-num { margin-top: -.12rem; }
.module-grid-stack { grid-template-columns: 1fr; gap: .6rem; margin: 1.4rem 0 1.6rem; padding: 0; }
.module-grid-stack li { padding: 1rem 1.2rem; }
.module-grid-stack .module-num { min-width: 1.6rem; }

/* ── rhythm ── */
.rhythm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 2.5rem 0 2rem; }
.rhythm-grid > div { border-top: 1px solid var(--border); padding-top: 1.1rem; }
.rhythm-week { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: .4rem; }
.rhythm-grid strong { display: block; font-size: 1.05rem; margin-bottom: .35rem; }
.rhythm-grid p { color: var(--text-secondary); font-size: .95rem; margin: 0; }
.rhythm-foot { max-width: 60ch; }

/* ── request form ── */
.request { background: var(--bg-secondary); }
.request-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.4rem; margin-top: 1.5rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .01em; color: var(--text-secondary); margin-bottom: .35rem; }
input, textarea { font: inherit; width: 100%; padding: .7rem .9rem; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; color: var(--text-primary); transition: border-color .15s, box-shadow .15s; }
input:hover, textarea:hover { border-color: rgba(0, 0, 0, .28); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(154, 123, 46, .15); }
textarea { resize: vertical; line-height: 1.55; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-state { font-size: .9rem; color: var(--text-secondary); margin: 0; }

/* ── footer ── */
.footer { border-top: 1px solid var(--border); padding: 2.2rem 0; font-size: .85rem; color: var(--text-secondary); }
.footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ── read more page ── */
.article { max-width: 720px; }
.article h1 { max-width: 20ch; }
.article h2 { margin-top: 3.5rem; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.article h2::before { content: ''; display: block; width: 2.25rem; height: 2px; background: var(--accent); margin-bottom: 1.1rem; border-radius: 2px; }
.article > h2:first-child { margin-top: 0; }
.article p { text-wrap: pretty; }
.article ul { padding-left: 1.3rem; margin-bottom: 1.3rem; }
.article li { margin-bottom: .5rem; padding-left: .2rem; }
.article li::marker { color: var(--accent); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.8rem 0 2rem; }
.facts div { background: var(--bg-card); border-radius: var(--radius-md); padding: 1.2rem 1.25rem; }
.facts b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; margin-bottom: .3rem; }
.facts span { font-size: .85rem; line-height: 1.45; color: var(--text-secondary); display: block; }
.quote { border-left: 2px solid var(--accent); padding: .3rem 0 .3rem 1.4rem; margin: 2rem 0; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--text-primary); }
.article .btn { margin-top: .5rem; }

/* ── responsive ── */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
    .hero-chain { max-width: 520px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .modules-head { grid-template-columns: 1fr; gap: 1rem; }
    .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rhythm-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 720px) {
    .container { padding: 0 1.25rem; }
    .topbar-inner { padding: 0 1.25rem; }
    .topnav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: .6rem 1rem 1rem; box-shadow: 0 10px 30px rgba(26, 26, 31, .08); }
    .topnav.open { display: flex; }
    .topnav a { padding: .75rem .5rem; font-size: 1rem; border-bottom: 0; }
    .topnav a[aria-current="page"] { color: var(--accent); }
    .topnav a.btn { align-self: flex-start; margin-top: .4rem; padding: .55rem 1.1rem; }
    .topnav-toggle { display: flex; }
    section { padding: 3.25rem 0; }
    .hero { padding: 2.75rem 0 3rem; }
    .hero-sub { font-size: 1.05rem; }
    .hero-ctas .btn { flex: 1 1 auto; }
    .stats-bar { margin-top: 3rem; }
    .stat { padding: 1.3rem 1rem; }
    .module-grid { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr; }
    .request-card { padding: 1.6rem 1.25rem; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer .container { flex-direction: column; }
}
@media (max-width: 420px) { .stats-bar { grid-template-columns: 1fr 1fr; } .facts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .chain li, .module-grid li { transition: none; } }

/* deck figures reused on the public pages */
.hero-visual { margin: 0; }
.hero-visual svg, .fig svg { width: 100%; height: auto; display: block; }
.fig { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem 1.6rem 1.2rem; }
.hero-visual .fig { box-shadow: 0 18px 50px rgba(26, 26, 31, .07); }
.fig figcaption, .hero-visual figcaption { font-size: .82rem; color: var(--text-muted); margin-top: .9rem; line-height: 1.5; }
.article .fig { margin: 1.8rem 0 2rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4rem; align-items: center; }
.split h2 { margin-bottom: .9rem; }
.split p { color: var(--text-secondary); }
.split p:last-of-type { margin-bottom: 0; }
.outcomes { background: var(--bg-primary); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* the public pages are always light; dark mode is a signed in preference in the app */
