:root {
    --blue: #0d6efd;
    --blue-deep: #0b5ed7;
    --navy: #0c2348;
    --navy-mid: #163a6b;
    --ink: #172033;
    --muted: #5c6b80;
    --line: #e6edf5;
    --bg: #f4f7fb;
    --bar: 84px;
    --sans: Inter, Roboto, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 80;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
}
.skip-link:focus { top: 12px; }
body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.6;
    background: var(--bg);
}
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.2; }
img, svg { display: block; }
.site-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

body:not(:has(.hero)) {
    background-color: var(--bg);
    background-image:
        radial-gradient(1100px 420px at 50% 0%, rgba(255,255,255,.2), transparent 55%),
        linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 42%, #08162e 72%, var(--bg) 100%);
    background-repeat: no-repeat;
    background-size: 100% calc(var(--bar) + 168px);
}
body:has(.auth-screen) {
    background-size: 100% 85dvh;
}
.site-bar {
    position: sticky; top: 0; z-index: 40;
    padding: 0; background: transparent;
}
.site-bar-inner {
    width: 100%;
    margin: 0;
    min-height: 84px; padding: 8px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.site-bar.is-scrolled .site-bar-inner,
.site-bar.is-open .site-bar-inner {
    background: rgba(255, 255, 255, .55);
    border-bottom-color: rgba(255, 255, 255, .4);
    box-shadow: 0 10px 28px rgba(12, 35, 72, .1);
    backdrop-filter: blur(18px);
}
.site-brand { display: flex; align-items: center; min-width: 0; justify-self: start; text-decoration: none; }
.site-logo { display: block; color: #fff; }
.site-logo .logo-svg { display: block; width: auto; height: 68px; }
.site-logo .logo-ink { fill: currentColor; stroke: currentColor; }
.site-logo .logo-accent { fill: #d6e8ff; }
.site-logo .logo-soft { fill: rgba(255,255,255,.18); }
.site-logo .logo-cut { stroke: var(--navy); }
.site-logo .logo-stop-from { stop-color: #9ec5fe; }
.site-logo .logo-stop-to { stop-color: #fff; }
.site-bar.is-scrolled .site-logo,
.site-bar.is-open .site-logo { color: var(--ink); }
.site-bar.is-scrolled .site-logo .logo-accent,
.site-bar.is-open .site-logo .logo-accent { fill: var(--blue); }
.site-bar.is-scrolled .site-logo .logo-soft,
.site-bar.is-open .site-logo .logo-soft { fill: rgba(13,110,253,.12); }
.site-bar.is-scrolled .site-logo .logo-cut,
.site-bar.is-open .site-logo .logo-cut { stroke: #fff; }
.site-bar.is-scrolled .site-logo .logo-stop-from,
.site-bar.is-open .site-logo .logo-stop-from { stop-color: #4c94ff; }
.site-bar.is-scrolled .site-logo .logo-stop-to,
.site-bar.is-open .site-logo .logo-stop-to { stop-color: var(--blue); }
.site-dock { display: contents; }
.site-nav { display: flex; align-items: center; gap: 2px; justify-self: center; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
    color: rgba(255, 255, 255, .92); text-decoration: none; font-weight: 600; font-size: 13.5px;
    padding: 8px 12px; border-radius: 4px; white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.site-nav a.is-on { color: #fff; background: rgba(255, 255, 255, .22); }
.site-bar.is-scrolled .site-nav a { color: #3d4d63; }
.site-bar.is-scrolled .site-nav a:hover { color: var(--blue); background: #eef5ff; }
.site-bar.is-scrolled .site-nav a.is-on { color: #fff; background: var(--navy); }
.site-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.site-login, .site-register {
    text-decoration: none; font-weight: 700; font-size: 13.5px;
    border: 1px solid rgba(255, 255, 255, .45); border-radius: 4px; padding: 9px 14px;
}
.site-login { color: #fff; background: transparent; }
.site-login:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.site-bar.is-scrolled .site-login,
.site-bar.is-open .site-login {
    color: var(--ink); background: #fff; border-color: #d7e4f6;
}
.site-bar.is-scrolled .site-login:hover,
.site-bar.is-open .site-login:hover { border-color: #b9d0f2; background: #f7faff; }
.site-register { color: #fff; background: var(--navy); border-color: rgba(255, 255, 255, .35); }
.site-register:hover { background: var(--navy-mid); }
.nav-burger {
    display: none; width: 44px; height: 44px; margin-left: auto; padding: 0;
    border: 1px solid rgba(255, 255, 255, .45); background: transparent; border-radius: 4px;
    cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span {
    display: block; width: 16px; height: 2px; border-radius: 99px; background: #fff;
    transition: transform .2s ease, opacity .2s ease;
}
.site-veil { display: none; }
body.nav-lock { overflow: hidden; }

.hero {
    position: relative; width: 100%;
    margin: calc(-1 * var(--bar)) 0 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; color: #fff; text-align: center;
    background:
        radial-gradient(1200px 640px at 50% 0%, rgba(255,255,255,.12), transparent 55%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 58%, var(--navy) 100%);
    padding: calc(var(--bar) + 28px) 0 64px;
}
.marks { position: absolute; inset: 0; pointer-events: none; }
.marks span {
    position: absolute; color: rgba(255,255,255,.16); font-weight: 700;
    font-size: 42px;
}
.marks span:nth-child(1) { top: 12%; left: 8%; }
.marks span:nth-child(2) { top: 22%; right: 10%; font-size: 54px; }
.marks span:nth-child(3) { bottom: 18%; left: 14%; }
.marks span:nth-child(4) { top: 58%; left: 6%; }
.marks span:nth-child(5) { bottom: 12%; right: 16%; }
.marks span:nth-child(6) { top: 14%; left: 42%; }
.marks span:nth-child(7) { bottom: 28%; right: 8%; }
.marks span:nth-child(8) { top: 48%; right: 28%; }
.hero-copy { position: relative; }
.eyebrow, .kicker {
    margin: 0 0 10px; text-transform: uppercase; letter-spacing: .14em;
    font-size: 12px; font-weight: 700;
}
.hero .eyebrow { color: rgba(255,255,255,.82); }
.hero h1 { margin: 0 auto 14px; max-width: min(18ch, 100%); font-size: clamp(2rem, 4.4vw, 3.35rem); font-weight: 700; }
.hero p { margin: 0 auto; max-width: 46rem; color: rgba(255,255,255,.92); font-size: 1.12rem; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; padding: 12px 18px; font-weight: 700; text-decoration: none;
    border: 1px solid transparent;
}
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #f4f7fb; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.topic-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
    margin-top: 28px; position: relative;
}
.topic {
    display: block; background: #fff; color: inherit; text-decoration: none;
    border-radius: 20px; padding: 22px 22px 20px;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 16px 40px rgba(15, 39, 68, .08);
}
.topic:hover { border-color: #c9dbf5; }
.topic span {
    display: inline-block; margin-bottom: 8px; color: var(--blue);
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.topic h2 { margin: 0 0 8px; font-size: 1.25rem; }
.topic p { margin: 0; color: var(--muted); }
.topic-wide { grid-column: 1 / -1; background: linear-gradient(180deg, #fff, #f5f9ff); }

.live-stats {
    margin-top: -8px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 24px;
    padding: 24px 24px 18px;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 16px 40px rgba(15, 39, 68, .08);
    position: relative;
}
.live-stats header { margin-bottom: 18px; }
.live-stats h2 { margin: 0 0 6px; }
.live-stats header p { margin: 0; color: var(--muted); max-width: 54ch; }
.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.live-stats-grid article {
    background: #f7faff;
    border: 1px solid #e6edf5;
    border-radius: 16px;
    padding: 14px 14px 12px;
    display: grid;
    gap: 4px;
}
.live-stats-grid span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.live-stats-grid strong {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}
.live-stats-grid em { font-style: normal; color: var(--muted); font-size: 13px; }
.live-stats-stamp { margin: 14px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }

.band, .steps, .faq, .sheet { margin-top: 42px; }
.band {
    display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start;
    background: #fff; border-radius: 24px; padding: 28px;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 10px 30px rgba(15, 39, 68, .05);
}
.band h2, .steps h2, .faq h2, .sheet h1 { margin: 0 0 10px; }
.kicker { color: var(--blue); }
.band p, .steps span, .sheet p, .sheet li { color: #3e4c60; }
.steps ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { background: #fff; border-radius: 18px; padding: 18px; border: 1px solid var(--line); }
.steps strong { display: block; margin-bottom: 6px; }
.steps span { display: block; }

.guides { margin: 8px auto 36px; }
.guides header { margin-bottom: 16px; }
.guides header h2 { margin: 0 0 8px; }
.guides header p { margin: 0; color: var(--muted); max-width: 62ch; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.guide-card {
    background: #fff; border-radius: 20px; padding: 22px 24px 20px;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 16px 40px rgba(15, 39, 68, .08);
}
.guide-card span {
    display: inline-block; margin-bottom: 8px; color: var(--blue);
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.guide-card h3 { margin: 0 0 10px; font-size: 1.28rem; }
.guide-card p { margin: 0 0 16px; color: var(--muted); }
.guide-card a { font-weight: 700; text-decoration: none; }
a.guide-card {
    display: block;
    color: inherit;
    text-decoration: none;
}
a.guide-card:hover { border-color: rgba(12, 35, 72, .18); }

.about-teaser {
    margin: 8px auto 40px;
    background: #fff;
    border-radius: 24px;
    padding: 28px 28px 24px;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 16px 40px rgba(15, 39, 68, .08);
}
.about-teaser h2 { margin: 0 0 12px; }
.about-teaser p { margin: 0 0 18px; color: var(--muted); max-width: 72ch; }
.btn-continue {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    padding: 12px 22px;
}
.btn-continue:hover { filter: brightness(1.06); }
.about-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.about-teaser .btn-ghost {
    background: #fff;
    color: var(--navy);
    border-color: rgba(12, 35, 72, .28);
}
.about-teaser .btn-ghost:hover { background: #f4f7fb; }

.faq { margin-bottom: 28px; }
.faq details, .faq-list details { background: #fff; border-radius: 16px; border: 1px solid var(--line); margin-top: 10px; }
.faq summary, .faq-list summary { cursor: pointer; font-weight: 700; padding: 16px 18px; }
.faq details p, .faq-list details p { margin: 0; padding: 0 18px 16px; }
.faq-more { margin: 16px 0 0; font-weight: 700; }
.writing-list { display: grid; gap: 14px; }
.writing-card {
    display: block; background: #fff; color: inherit; text-decoration: none;
    border-radius: 18px; padding: 22px 24px;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 12px 32px rgba(15, 39, 68, .06);
}
.writing-card span { display: block; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.writing-card h2 { margin: 8px 0; font-size: 1.28rem; }
.writing-card p { margin: 0; color: var(--muted); }
.video-shelf { margin: 8px auto 48px; }
.video-shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.video-shelf-head h2 { margin: 0; font-size: 1.45rem; }
.video-shelf-head a, .video-more a { font-weight: 700; text-decoration: none; }
.video-more { margin: 16px 0 0; }
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.video-tile {
    display: flex; flex-direction: column; text-align: left;
    background: #fff; color: inherit; border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px; overflow: hidden; padding: 0; cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 39, 68, .06);
}
.video-tile:hover { border-color: #9bb8e0; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0c2348; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
    position: absolute; inset: auto 10px 10px auto;
    width: 36px; height: 36px; border-radius: 999px;
    display: grid; place-items: center; color: #fff; background: rgba(12, 35, 72, .82);
}
.video-tile-copy { display: grid; gap: 4px; padding: 10px 12px 12px; }
.video-tile-copy strong { font-size: 14px; line-height: 1.35; }
.video-tile-copy span { color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-watch[hidden] { display: none !important; }
.video-watch:not([hidden]) {
    display: grid;
    position: fixed; inset: 0; z-index: 80;
    place-items: center;
    padding: 24px 16px;
    background: rgba(8, 18, 38, .72);
}
.video-watch-panel {
    width: min(1100px, 100%);
    background: #0c2348; color: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.video-watch-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; background: #08162c;
}
.video-watch-bar strong { font-size: 15px; }
.video-watch-close {
    border: 0; background: #fff; color: #0c2348; font-weight: 700;
    border-radius: 8px; padding: 8px 12px; cursor: pointer;
}
.video-watch-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-watch-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.video-lock { overflow: hidden; }

.sheet { background: #fff; border-radius: 24px; padding: 34px 36px 40px; margin-bottom: 36px; border: 1px solid rgba(15, 23, 42, .05); }
.sheet h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 20ch; }
.lead { font-size: 1.12rem; color: #3e4c60; }
.sheet h2 { margin: 28px 0 8px; font-size: 1.25rem; }
.crumb { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.crumb a { text-decoration: none; font-weight: 600; }
.sheet table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.sheet th, .sheet td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.sheet th { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

.hep {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 0;
    border: 1px solid #d7e0ec; border-radius: 18px; overflow: hidden; background: #fff;
    position: relative;
}
.hep-entry { border-right: 1px solid #d7e0ec; }
.hep-row {
    display: grid; grid-template-columns: 150px 12px minmax(0, 1fr); gap: 8px;
    align-items: center; padding: 14px 16px; border-bottom: 1px solid #e6edf5;
}
.hep-row span, .hep-row label { font-weight: 700; }
.hep-row input, .hep-row select {
    width: 100%; min-width: 0; font: inherit; font-weight: 700; font-size: 1.05rem;
    padding: 10px 12px; border: 1px solid #ced4da; border-radius: 10px; background: #fff;
}
.hep-row input:focus, .hep-row select:focus { outline: 3px solid rgba(13, 110, 253, .25); border-color: var(--blue); }
.hep-hint { margin: 0; padding: 12px 16px 0; color: var(--muted); font-size: 13px; }
.hep-actions { display: flex; gap: 10px; padding: 16px; }
.hep-actions .btn-primary { background: var(--blue); color: #fff; }
.hep-actions .btn-primary:hover { background: #0b5ed7; }
.hep-actions .btn-ghost { background: #fff; color: #1e293b; border-color: #ced4da; }
.hep-actions .btn-ghost:hover { background: #f4f7fb; }
.hep .hep-download {
    margin: 12px; display: inline-flex; background: #fff; color: #1e293b;
    border: 1px solid #ced4da;
}
.hep .hep-download:hover { background: #f4f7fb; }
.calc-loading {
    position: fixed; inset: 0; z-index: 30;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: rgba(255, 255, 255, .9); font-weight: 700; font-size: 1.05rem;
}
.calc-loading[hidden] { display: none !important; }
.calc-loading p { margin: 0; background: #fff; padding: 8px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
.calc-spin {
    width: 36px; height: 36px; border-radius: 50%;
    border: 3px solid #d7e3f5; border-top-color: var(--blue);
    animation: calc-spin .7s linear infinite;
}
@keyframes calc-spin { to { transform: rotate(360deg); } }
.hep-result { padding: 8px 8px 12px; background: #f7f9fc; }
.hep-result h2 { margin: 10px 12px 6px; font-size: 1rem; }
.hep-result table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.hep-result th, .hep-result td { padding: 9px 12px; border-bottom: 1px solid #e6edf5; text-align: left; }
.hep-result th { color: #5c6b80; font-weight: 600; width: 58%; text-transform: none; letter-spacing: 0; font-size: 14px; }
.hep-result td { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.hep-result tr.net th, .hep-result tr.net td { color: var(--blue); font-size: 1.05rem; background: #eef5ff; }
.hep-result caption { caption-side: bottom; text-align: left; color: var(--muted); padding: 8px 12px; font-size: 13px; }
.saved-calcs { margin-top: 22px; }
.saved-calcs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.saved-calcs a {
    display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
    text-decoration: none; background: #f6f9fd; border-radius: 12px; padding: 12px 14px; font-weight: 700;
}
.saved-calcs a span { color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.calc-fields { display: grid; gap: 12px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.calc input[type="number"] {
    font: inherit; font-weight: 700; font-size: 1.3rem; padding: 12px 14px;
    border: 1px solid #ced4da; border-radius: 12px; width: 100%;
}
.calc input:focus { outline: 3px solid rgba(13, 110, 253, .25); border-color: var(--blue); }
.calc-page .calc { margin: 8px 0 8px; }
.calc-page details { background: #f6f9fd; border-radius: 16px; margin-top: 10px; }
.calc-page summary { cursor: pointer; font-weight: 700; padding: 16px 18px; }
.calc-page details p { margin: 0; padding: 0 18px 16px; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; margin: 16px 0 0; }
.calc-out div { background: #f6f9fd; border-radius: 12px; padding: 10px 12px; }
.calc-out .calc-note { grid-column: 1 / -1; margin: 0; }
.calc-out dt { color: var(--muted); font-size: 12px; }
.calc-out dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.doc { margin-bottom: 8px; }
.doc-hero {
    color: #fff;
    width: 100%;
    margin-top: calc(-1 * var(--bar));
    background:
        radial-gradient(900px 280px at 15% 0%, rgba(255,255,255,.12), transparent 55%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 58%, var(--navy) 100%);
    padding: calc(var(--bar) + 28px) 0 56px;
}
.doc-hero .crumb, .doc-hero .crumb a { color: rgba(255,255,255,.82); }
.doc-hero .eyebrow { color: rgba(255,255,255,.82); }
.doc-hero h1 { margin: 0 0 12px; max-width: 22ch; color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.doc-hero .lead { margin: 0; max-width: 42rem; color: rgba(255,255,255,.94); }
.doc-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px;
    margin-top: -28px; align-items: start;
}
.doc-card {
    background: #fff; border-radius: 18px; padding: 22px 24px; margin-bottom: 14px;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 12px 32px rgba(15, 39, 68, .06);
}
.doc-card h2 { margin: 0 0 10px; font-size: 1.22rem; }
.doc-card p:last-child, .doc-card ul:last-child { margin-bottom: 0; }
.doc-card ul { margin: 0; padding-left: 18px; }
.doc-card ol { margin: 0 0 12px; padding-left: 20px; }
.doc-card ol:last-child { margin-bottom: 0; }
.doc-card li { margin: 0 0 6px; }
.doc-card li + li { margin-top: 6px; }
.doc-card table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.doc-card th, .doc-card td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.doc-card th { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.doc-aside { display: grid; gap: 12px; align-content: start; }
.output-list { display: grid; gap: 18px; }
.output-shot {
    margin: 0;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 12px 32px rgba(15, 39, 68, .06);
    overflow: hidden;
}
.output-shot .shot { display: block; overflow-x: auto; background: #f4f7fb; }
.output-shot img { width: 100%; height: auto; display: block; }
.output-shot figcaption { padding: 16px 18px 18px; }
.output-shot h2 { margin: 0 0 6px; font-size: 1.2rem; }
.output-shot p { margin: 0; color: var(--muted); }
.fact-card, .related-card {
    background: #fff; border-radius: 16px; padding: 16px 16px 14px;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 10px 24px rgba(15, 39, 68, .05);
}
.fact-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fact-card strong { display: block; margin-top: 4px; font-size: 1.2rem; letter-spacing: -.02em; }
.related-card strong { display: block; margin-bottom: 4px; }
.related-card a { display: block; font-weight: 700; text-decoration: none; padding: 8px 0; border-top: 1px solid var(--line); }
.signup-wrap { margin-top: 32px; margin-bottom: 36px; }
.auth-screen {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100dvh - var(--bar));
    padding: 10vh 20px 12vh;
}
.auth-shell {
    width: min(820px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 28px 64px rgba(12, 35, 72, .16);
}
.auth-shell.auth-wide { width: min(980px, 100%); }
.auth-aside {
    padding: 40px 36px;
    color: #fff;
    background:
        radial-gradient(520px 280px at 0% 0%, rgba(255,255,255,.12), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 58%, var(--navy) 100%);
}
.auth-logo { display: block; color: #fff; margin-bottom: 28px; }
.auth-logo .logo-svg { display: block; width: min(100%, 280px); height: auto; }
.auth-logo .logo-ink { fill: currentColor; stroke: currentColor; }
.auth-logo .logo-accent { fill: #d6e8ff; }
.auth-logo .logo-soft { fill: rgba(255,255,255,.18); }
.auth-logo .logo-cut { stroke: var(--navy); }
.auth-logo .logo-stop-from { stop-color: #9ec5fe; }
.auth-logo .logo-stop-to { stop-color: #fff; }
.auth-kicker {
    margin: 0 0 8px;
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.auth-aside h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.auth-aside p { margin: 0; color: rgba(255,255,255,.9); max-width: 28ch; }
.auth-lead { margin: 0; color: var(--muted); }
.signup-card {
    background: #fff; border-radius: 22px; padding: 26px;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 18px 44px rgba(15, 39, 68, .08);
}
.auth-card {
    display: grid; gap: 16px; width: auto; align-content: start;
    padding: 40px 36px 32px; background: #fff;
    border: 0; border-radius: 0; box-shadow: none;
}
.signup-card h2, .auth-card h2 { margin: 0 0 14px; font-size: 1.15rem; }
.signup-card label, .auth-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.signup-grid section { display: grid; gap: 14px; align-content: start; }
.signup-card input, .signup-card select, .auth-card input, .auth-card select {
    font: inherit; font-weight: 600; padding: 12px 14px;
    border: 1px solid #ced4da; border-radius: 12px; background: #fff; width: 100%;
}
.auth-card input[name="kurum_kodu"] { letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.signup-card input:focus, .signup-card select:focus, .auth-card input:focus, .auth-card select:focus { outline: 3px solid rgba(13, 110, 253, .25); border-color: var(--blue); }
.signup-card select:disabled, .signup-card input:disabled { background: #f4f7fb; color: var(--muted); }
.pw-meter {
    display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
    margin: -6px 0 0;
}
.pw-meter[hidden] { display: none !important; }
.pw-track { height: 6px; border-radius: 99px; background: #e7eef6; overflow: hidden; }
.pw-fill { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .2s ease, background .2s ease; }
.pw-meter[data-level="1"] .pw-fill { width: 25%; background: #dc3545; }
.pw-meter[data-level="2"] .pw-fill { width: 50%; background: #fd7e14; }
.pw-meter[data-level="3"] .pw-fill { width: 75%; background: #f0b429; }
.pw-meter[data-level="4"] .pw-fill { width: 100%; background: #198754; }
.pw-meter [data-pw-text] { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 3.2em; text-align: right; }
.signup-actions { display: grid; gap: 12px; margin-top: 8px; }
.signup-actions .btn-primary, .auth-card .btn-primary {
    background: var(--blue); color: #fff; border: 0; cursor: pointer;
}
.signup-actions .btn-primary:hover, .auth-card .btn-primary:hover { background: var(--blue-deep); }
.auth-card .btn-primary, .signup-actions .btn-primary { width: 100%; margin-top: 4px; padding: 13px 18px; }
.signup-actions a, .auth-switch a { font-weight: 700; }
.auth-switch { margin: 2px 0 0; text-align: center; color: var(--muted); }
.alert { border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-ok { background: #d1e7dd; color: #0f5132; }
.alert-warn { background: #fff3cd; color: #664d03; }
.alert-bad { background: #f8d7da; color: #842029; }

.site-foot { background: #0c2348; color: #d5e2f2; margin-top: auto; padding: 36px 0 18px; }
.foot-grid { display: grid; grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); gap: 28px 32px; align-items: start; }
.foot-brand p { max-width: 36ch; color: #9eb0c8; }
.foot-cta { margin-top: 12px; }
.site-foot strong { display: block; color: #fff; margin-bottom: 10px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.foot-brand strong { font-size: 15px; letter-spacing: 0; text-transform: none; }
.site-foot p { margin: 0; }
.site-foot a { color: #d5e2f2; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li + li { margin-top: 6px; }
.foot-params {
    margin: 22px 0 0;
    color: #9eb0c8;
    font-size: 13px;
    max-width: 92ch;
}
.foot-end {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12);
    color: #9eb0c8; font-size: 14px;
}
.foot-end a { color: inherit; }

@media (max-width: 1100px) {
    :root { --bar: 72px; }
    .site-bar-inner {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 72px;
        padding: 8px 14px;
    }
    .site-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 56px);
        overflow: hidden;
    }
    .site-logo { max-width: 100%; }
    .site-logo .logo-svg { height: 40px; width: auto; max-width: 100%; }
    .site-brand, .nav-burger { position: relative; z-index: 60; }
    .nav-burger { display: inline-flex; flex: 0 0 44px; margin-left: auto; }
    .site-bar.is-scrolled .nav-burger,
    .site-bar.is-open .nav-burger { border-color: #e2eaf4; background: #fff; }
    .site-bar.is-scrolled .nav-burger span,
    .site-bar.is-open .nav-burger span { background: var(--ink); }
    .site-veil {
        position: fixed; inset: 0; z-index: 45;
        background: rgba(8, 18, 36, .46);
    }
    .site-bar.is-open .site-veil { display: block; }
    .site-dock {
        display: flex;
        position: fixed; z-index: 50; top: 0; right: 0; bottom: 0;
        width: min(360px, 88vw); margin: 0; padding: 88px 18px 24px;
        flex-direction: column; align-items: stretch; gap: 18px;
        background: #fff; border-radius: 0;
        box-shadow: -18px 0 40px rgba(12, 35, 72, .16);
        transform: translateX(108%);
        transition: transform .22s ease;
    }
    .site-bar.is-open .site-dock { transform: none; }
    .site-nav { flex-direction: column; align-items: stretch; overflow: visible; gap: 6px; justify-self: auto; }
    .site-nav a { padding: 12px 14px; font-size: 16px; border-radius: 4px; color: #3d4d63; }
    .site-nav a:hover { color: var(--blue); background: #eef5ff; }
    .site-nav a.is-on { color: #fff; background: var(--navy); }
    .site-actions { margin: auto 0 0; flex-direction: column; align-items: stretch; justify-self: auto; }
    .site-login, .site-register { text-align: center; padding: 12px 16px; }
    .site-login { color: var(--ink); background: #fff; border-color: #d7e4f6; }
    .site-bar.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .site-bar.is-open .nav-burger span:nth-child(2) { opacity: 0; }
    .site-bar.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
    :root { --bar: 64px; }
    .site-bar { padding: 0; }
    .site-bar-inner { min-height: 64px; padding: 6px 12px; border-radius: 0; }
    .site-logo .logo-svg { height: 34px; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { padding: 28px 24px 22px; }
    .auth-card { padding: 24px 22px 22px; }
    .auth-logo .logo-svg { width: min(100%, 220px); }
    .live-stats-grid { grid-template-columns: 1fr; }
    .guide-grid { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
    .signup-grid, .doc-layout, .auth-shell { grid-template-columns: 1fr; }
    .topic-grid, .band, .steps ol, .foot-grid, .calc-out, .live-stats-grid, .guide-grid { grid-template-columns: 1fr 1fr; }
    .hep, .saved-calcs ul { grid-template-columns: 1fr; }
    .hep-entry { border-right: 0; border-bottom: 1px solid #d7e0ec; }
    .sheet { padding: 22px 18px 28px; }
    .hero { min-height: 100dvh; padding: calc(var(--bar) + 20px) 0 48px; }
}
@media (max-width: 560px) {
    .guide-grid, .foot-grid, .live-stats-grid { grid-template-columns: 1fr; }
}
.topic-grid > *,
.guide-grid > *,
.writing-list > * { min-width: 0; }
.topic h2, .topic p, .guide-card h3, .guide-card p, .writing-card h2, .writing-card p { overflow-wrap: anywhere; }
