/* FlashBackup: dark navy + cream, orange actions, wide uppercase display headings */
@font-face { font-family: 'Unbounded'; src: url('/static/fonts/unbounded-latin.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/static/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #141823;
  --navy-deep: #0b1321;
  --navy-card: #1d233a;
  --navy-line: rgba(255, 255, 255, .12);
  --navy-grad: radial-gradient(100% 100% at 50% 0%, #2b3660 0%, #181c2d 100%);
  --cream: #fde0c7;
  --cream-bg: #fef5ee;
  --peach: #ffd4af;
  --peach-soft: #ffe7d2;
  --peach-line: #f3d6bd;
  --orange: #de3c0d;
  --orange-hover: #c4330c;
  --gold: #f6a44d;
  --ink: #0c323c;
  --text: #3d342d;
  --muted: #7a6d63;
  --on-dark: #fde0c7;
  --on-dark-muted: #becae8;
  --on-dark-dim: #7a8399;
  --ok: #138a52; --ok-soft: #e3f4ea;
  --warn: #b26a00; --warn-soft: #fff1d6;
  --bad: #c62f12; --bad-soft: #fde4dc;
  --info: #2b3660; --info-soft: #e7ebf7;
  --radius: 16px;
  --card-radius: 24px;
  --btn-radius: 6px;
  --shadow: 0 8px 20px rgba(255, 206, 163, .55);
  --shadow-soft: 0 2px 10px rgba(20, 24, 35, .06);
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); background: var(--cream-bg); color: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; text-transform: uppercase; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--peach-soft); color: #6b2a12; padding: .12em .4em; border-radius: 5px; }
pre { background: var(--navy-deep); color: #e8ecf5; padding: 16px 18px; border-radius: 12px; overflow-x: auto; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; }
hr { border: 0; border-top: 1px solid var(--peach-line); margin: 24px 0; }
kbd { font-family: var(--mono); font-size: .85em; border: 1px solid var(--peach-line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: #fff; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 36px; } .mb-0 { margin-bottom: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--orange); }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--orange); border-radius: var(--btn-radius);
  padding: 11px 20px; font: 600 .86rem/1.2 var(--body); letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  background: var(--orange); color: #fff; text-decoration: none; transition: background .2s, transform .15s, color .2s;
}
.btn:hover { background: var(--orange-hover); border-color: var(--orange-hover); text-decoration: none; transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--orange); border-color: transparent; padding-left: 8px; padding-right: 8px; }
.btn.ghost:hover { background: var(--peach-soft); transform: none; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.small { padding: 7px 12px; font-size: .74rem; }
.btn.big { padding: 15px 28px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.on-dark .btn.secondary, .btn.cream { color: var(--cream); border-color: var(--cream); background: transparent; }
.on-dark .btn.secondary:hover, .btn.cream:hover { background: var(--cream); color: var(--navy); }
form.inline { display: inline; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; color: var(--ink); }
.field { margin-bottom: 18px; }
.hint { font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--peach-line); border-radius: 8px; background: #fff; color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: -1px; border-color: var(--orange); }
input[disabled], select[disabled], textarea[disabled] { background: var(--cream-bg); color: var(--muted); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.check input { margin-top: 5px; accent-color: var(--orange); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }

/* ---------- cards, badges, tables ---------- */
.card { background: #fff; border: 1px solid var(--peach-line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); margin-bottom: 20px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .card-head { padding: 20px 24px 0; }
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat { background: var(--navy-grad); color: var(--on-dark); border-radius: var(--radius); padding: 20px 22px; }
.stat .label { color: var(--on-dark-muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.stat .value { font-family: var(--display); font-size: 1.6rem; font-weight: 700; margin-top: 6px; color: var(--cream); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  background: var(--peach-soft); color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid #f6e6d8; vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--cream-bg); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td .sub { display: block; color: var(--muted); font-size: .82rem; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }

/* ---------- alerts ---------- */
.alert { border-radius: 10px; padding: 13px 16px; margin-bottom: 16px; border: 1px solid transparent; }
.alert.success { background: var(--ok-soft); color: #0d5c37; border-color: #bfe5cf; }
.alert.error { background: var(--bad-soft); color: #8a210c; border-color: #f6c3b4; }
.alert.info { background: var(--info-soft); color: var(--info); border-color: #cdd5ee; }
.alert.warn { background: var(--warn-soft); color: #6b4100; border-color: #f3d7a3; }
.alert a { font-weight: 700; }
.alert .btn { margin-left: 8px; }
.alert ul { margin: 6px 0; }

/* ---------- public site ---------- */
.promo { background: var(--orange); color: #fff; text-align: center; padding: 9px 16px; font-size: .88rem; font-weight: 600; }
.promo a { color: #fff; text-decoration: underline; margin-left: 6px; }
.site-header { background: var(--cream-bg); border-bottom: 1px solid var(--peach-line); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--ink); text-transform: uppercase; letter-spacing: .02em; }
.logo:hover { text-decoration: none; }
.logo .bolt { width: 34px; height: 34px; border-radius: 9px; background: var(--navy); display: grid; place-items: center; }
.site-nav { display: flex; gap: 26px; flex: 1; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.site-nav a.active, .site-nav a:hover { color: var(--orange); text-decoration: none; }

.dark { background: var(--navy); color: var(--on-dark-muted); }
.dark h1, .dark h2, .dark h3 { color: var(--cream); }
.dark .muted { color: var(--on-dark-dim); }
.deep { background: var(--navy-deep); color: var(--on-dark-muted); }
.deep h1, .deep h2, .deep h3 { color: var(--cream); }
.cream-sec { background: var(--cream); }
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.kicker { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.display { font-family: var(--display); text-transform: uppercase; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.display .two { display: block; color: var(--orange); }
.section-title { text-align: center; margin: 0 auto 48px; max-width: 760px; }
.section-title h2 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); text-transform: uppercase; }
.section-title p { font-size: 1.08rem; color: var(--muted); margin: 0; }
.dark .section-title p { color: var(--on-dark-muted); }

.hero { padding: 90px 0 100px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -40% 30%; height: 70%; background: radial-gradient(closest-side, rgba(222, 60, 13, .28), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); color: var(--cream); margin-bottom: 22px; }
.hero p.lead { font-size: 1.15rem; color: var(--on-dark-muted); max-width: 560px; margin-bottom: 30px; }
.hero .fine { color: var(--on-dark-dim); font-size: .88rem; margin-top: 18px; }
.hero-art { background: var(--navy-grad); border: 1px solid var(--navy-line); border-radius: var(--card-radius); padding: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.mock-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4366; }
.mock-health { display: flex; gap: 12px; align-items: center; background: rgba(19, 138, 82, .16); border: 1px solid rgba(60, 207, 130, .35); border-radius: 12px; padding: 12px 14px; color: #c7f3dc; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.mock-health b { width: 28px; height: 28px; border-radius: 50%; background: #23b26b; color: #fff; display: grid; place-items: center; flex: none; }
.mock-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--navy-line); color: var(--cream); font-size: .9rem; }
.mock-row:last-child { border-bottom: 0; }
.mock-row .ic { width: 26px; height: 26px; border-radius: 7px; background: rgba(253, 224, 199, .1); display: grid; place-items: center; font-size: .8rem; }
.mock-row small { display: block; color: var(--on-dark-dim); font-size: .76rem; }
.mock-pill { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; background: rgba(35, 178, 107, .2); color: #7ee2ad; }
.mock-pill.run { background: rgba(246, 164, 77, .2); color: var(--gold); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.tile { background: #fff; border: 1px solid var(--peach-line); border-radius: var(--radius); padding: 22px 14px; text-align: center; box-shadow: var(--shadow); transition: transform .2s; }
.tile:hover { transform: translateY(-3px); }
.tile .ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; background: var(--navy); color: var(--cream); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .9rem; }
.tile .logo-ic { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 16px; background: var(--cream-bg); border: 1px solid var(--peach-line); display: grid; place-items: center; }
.tile .logo-ic img { width: 40px; height: 40px; display: block; }
.tile b { display: block; color: var(--ink); font-size: .92rem; }
.tile span { display: block; color: var(--muted); font-size: .8rem; }

.dcard { background: var(--navy-grad); border: 1px solid var(--navy-line); border-radius: var(--card-radius); padding: 30px; color: var(--on-dark-muted); }
.dcard h3 { color: var(--cream); font-size: 1rem; text-transform: uppercase; margin-bottom: 10px; }
.dcard p { margin: 0; }
.dcard .num { font-family: var(--display); font-size: 2.2rem; font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: 16px; }
.dcard .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(222, 60, 13, .16); color: var(--orange); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 18px; }
.dcard .link { display: inline-block; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--navy-line); width: 100%; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.pcard { background: var(--peach); border-radius: var(--card-radius); padding: 30px; box-shadow: var(--shadow); }
.pcard h3 { text-transform: uppercase; }
.pcard p { margin: 0; color: #5a4436; }
.pcard .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--cream); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 18px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); text-transform: uppercase; }
.lines { list-style: none; padding: 0; margin: 24px 0 0; }
.lines li { padding: 16px 0 16px 46px; border-top: 1px solid var(--navy-line); position: relative; }
.lines li:last-child { border-bottom: 1px solid var(--navy-line); }
.lines li::before { content: "✓"; position: absolute; left: 0; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.lines b { display: block; color: var(--cream); font-family: var(--display); font-size: .88rem; text-transform: uppercase; letter-spacing: .02em; }
.cream-sec .lines li, .light .lines li { border-color: var(--peach-line); }
.cream-sec .lines b { color: var(--ink); }

.flowline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; margin-top: 10px; }
.flowline::before { content: ""; position: absolute; top: 27px; left: 16%; right: 16%; border-top: 2px dashed rgba(222, 60, 13, .6); }
.flowline .st { text-align: center; padding: 0 18px; position: relative; }
.flowline .dot { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px; background: var(--orange); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 0 8px rgba(222, 60, 13, .18); }
.flowline h3 { color: var(--cream); text-transform: uppercase; font-size: .95rem; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--peach-line); border-radius: var(--card-radius); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.price-card h3 { text-transform: uppercase; font-size: 1.05rem; }
.price-card .best { color: var(--muted); font-size: .9rem; min-height: 2.8em; }
.price-card .price { font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: var(--ink); margin: 14px 0 0; line-height: 1; }
.price-card .price small { font-family: var(--body); font-size: .9rem; color: var(--muted); font-weight: 600; }
.price-card .per { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }
.price-card ul { list-style: none; padding: 20px 0 0; margin: 20px 0 26px; flex: 1; border-top: 1px solid var(--peach-line); }
.price-card li { padding: 6px 0 6px 28px; position: relative; color: var(--text); }
.price-card li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--peach-soft); color: var(--orange); font-weight: 800; font-size: .7rem; display: grid; place-items: center; }
.price-card .btn { width: 100%; }
.price-card.highlight { background: var(--navy-grad); border-color: transparent; color: var(--on-dark-muted); box-shadow: 0 24px 50px rgba(20, 24, 35, .3); }
.price-card.highlight h3, .price-card.highlight .price { color: var(--cream); }
.price-card.highlight .best, .price-card.highlight .per, .price-card.highlight .price small { color: var(--on-dark-dim); }
.price-card.highlight ul { border-color: var(--navy-line); }
.price-card.highlight li { color: var(--on-dark-muted); }
.price-card.highlight li::before { background: rgba(222, 60, 13, .2); }
.price-card.highlight::before { content: "Most popular"; position: absolute; top: -13px; left: 30px; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; }
.dark .price-card:not(.highlight) { box-shadow: none; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.timeline .t { border-top: 3px solid var(--orange); padding-top: 18px; }
.timeline .t b { font-family: var(--display); text-transform: uppercase; font-size: .78rem; color: var(--orange); letter-spacing: .06em; }
.timeline .t h3 { margin: 8px 0 6px; font-size: .95rem; text-transform: uppercase; }
.timeline .t p { color: var(--muted); margin: 0; font-size: .95rem; }

.faq details { background: #fff; border: 1px solid var(--peach-line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.cta-band { background: var(--navy-grad); border-radius: var(--card-radius); padding: 64px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(222, 60, 13, .3), transparent); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.5rem, 3.4vw, 2.5rem); text-transform: uppercase; color: var(--cream); }
.cta-band p { color: var(--on-dark-muted); max-width: 600px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-band .row { justify-content: center; }

.site-footer { background: var(--navy-deep); color: var(--on-dark-dim); padding: 64px 0 28px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer .logo { color: var(--cream); }
.site-footer .logo .bolt { background: var(--orange); }
.site-footer h4 { color: var(--cream); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer a { color: var(--on-dark-muted); display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--cream); }
.site-footer .bottom { border-top: 1px solid var(--navy-line); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.announcement { background: var(--orange); color: #fff; text-align: center; padding: 9px 16px; font-weight: 600; font-size: .9rem; }

/* ---------- light content pages (pricing, legal, auth, docs, errors) ---------- */
.page-hero { background: var(--navy); padding: 70px 0 64px; text-align: center; }
.page-hero h1 { color: var(--cream); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.page-hero h1 .two { color: var(--orange); }
.page-hero p { color: var(--on-dark-muted); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 56px 16px; background: var(--navy); position: relative; overflow: hidden; }
.auth-wrap::before { content: ""; position: absolute; inset: auto -20% -50% 40%; height: 90%; background: radial-gradient(closest-side, rgba(222, 60, 13, .25), transparent); }
.auth-card { width: 100%; max-width: 460px; position: relative; }
.auth-card .card { padding: 34px; border: 0; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.auth-card h1 { font-size: 1.35rem; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--on-dark-muted); }
.auth-foot a { color: var(--cream); font-weight: 600; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-top: 44px; padding-bottom: 40px; }
.docs-nav { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; background: #fff; border: 1px solid var(--peach-line); border-radius: var(--radius); padding: 10px 12px 16px; }
.docs-nav .group { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); font-weight: 800; margin: 16px 10px 6px; }
.docs-nav a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: .92rem; }
.docs-nav a.active { background: var(--navy); color: var(--cream); font-weight: 600; }
.docs-nav a:hover { text-decoration: none; background: var(--peach-soft); }
.docs-nav a.active:hover { background: var(--navy); }
.prose { max-width: 780px; }
.prose h1 { font-size: 1.9rem; }
.prose h2 { margin-top: 2.2em; font-size: 1.15rem; text-transform: uppercase; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose table { margin: 0 0 1.2em; border: 1px solid var(--peach-line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; background: #fff; }
.prose .lead { font-size: 1.12rem; color: var(--muted); }
.callout { border-left: 4px solid var(--orange); background: var(--peach-soft); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 0 0 1.2em; }
.callout.warn { border-color: var(--gold); background: var(--warn-soft); }
.callout.bad { border-color: var(--bad); background: var(--bad-soft); }
.docs-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 52px; border-top: 1px solid var(--peach-line); padding-top: 22px; font-weight: 600; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy-deep); color: var(--on-dark-muted); padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo { padding: 2px 8px 18px; color: var(--cream); }
.sidebar .logo .bolt { background: var(--orange); }
.sidebar .org-name { padding: 0 12px 8px; color: var(--on-dark-dim); font-size: .85rem; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--on-dark-muted); font-weight: 500; font-size: .93rem; }
.sidebar nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.sidebar nav a:hover { background: rgba(253, 224, 199, .07); color: var(--cream); text-decoration: none; }
.sidebar nav a.active { background: var(--orange); color: #fff; }
.sidebar nav .sep { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--on-dark-dim); font-weight: 700; padding: 18px 12px 6px; }
.sidebar .org-switch select { background: var(--navy-card); color: var(--cream); border-color: var(--navy-line); font-size: .9rem; padding: 9px 10px; margin-bottom: 6px; }
.sidebar .bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--navy-line); font-size: .86rem; }
.sidebar .bottom strong { color: var(--cream); }
.sidebar .bottom a { color: var(--on-dark-muted); }
.sidebar .bottom .btn.ghost { color: var(--gold); }
.sidebar .bottom .btn.ghost:hover { background: rgba(253, 224, 199, .07); }
.main { padding: 32px 40px 64px; max-width: 1240px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { margin-bottom: 6px; font-size: 1.55rem; }
.page-head p { margin: 0; color: var(--muted); }
.health { display: flex; gap: 18px; align-items: center; padding: 22px 26px; border-radius: var(--radius); margin-bottom: 22px; background: var(--navy-grad); color: var(--on-dark-muted); }
.health .dot { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: #fff; flex: none; font-weight: 800; }
.health.good .dot { background: #23b26b; box-shadow: 0 0 0 8px rgba(35, 178, 107, .18); }
.health.warn .dot { background: var(--gold); box-shadow: 0 0 0 8px rgba(246, 164, 77, .18); }
.health.bad .dot { background: var(--orange); box-shadow: 0 0 0 8px rgba(222, 60, 13, .2); }
.health h2 { margin: 0 0 3px; color: var(--cream); text-transform: uppercase; font-size: 1.05rem; }
.health p { margin: 0; color: var(--on-dark-muted); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f6e6d8; }
.checklist li:last-child { border-bottom: 0; }
.checklist .tick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--peach-line); display: grid; place-items: center; font-weight: 800; flex: none; color: #fff; }
.checklist li.done .tick { background: var(--ok); border-color: var(--ok); }
.checklist li.done span { color: var(--muted); text-decoration: line-through; }
.meter { height: 8px; background: var(--peach-soft); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.meter > i { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.meter.full > i { background: var(--bad); }
.cmd { position: relative; }
.cmd pre { padding-right: 96px; white-space: pre-wrap; word-break: break-all; }
.cmd .copy { position: absolute; top: 11px; right: 11px; color: var(--cream); border-color: var(--cream); }
.cmd .copy:hover { background: var(--cream); color: var(--navy); }
.toggle-btn { min-width: 70px; }
.waiting { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.spinner { width: 20px; height: 20px; border: 3px solid var(--peach); border-top-color: var(--orange); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.menu-toggle { display: none; }
.danger-zone { border-color: #f6c3b4; }
.keyval { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0; }
.keyval dt { color: var(--muted); font-weight: 600; font-size: .92rem; }
.keyval dd { margin: 0; word-break: break-word; }
.log { max-height: 380px; overflow: auto; font-size: .8rem; }
.pagination { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .flowline { grid-template-columns: 1fr; gap: 28px; }
  .flowline::before { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display: none; }
  .shell.open .sidebar { display: flex; }
  .menu-toggle { display: inline-flex; margin: 14px 16px 0; }
  .main { padding: 20px 16px 56px; }
  .docs { grid-template-columns: 1fr; padding-top: 24px; gap: 24px; }
  .docs-nav { position: static; max-height: none; }
  .site-nav { display: none; }
  .keyval { grid-template-columns: 1fr; gap: 2px 0; }
  .keyval dd { margin-bottom: 10px; }
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .site-header .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .timeline, .site-footer .cols { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 22px; }
}

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.checkout-summary { position: sticky; top: 20px; }
.checkout-feats { list-style: none; padding: 14px 0 0; margin: 16px 0; border-top: 1px solid var(--peach-line); }
.checkout-feats li { padding: 4px 0 4px 22px; position: relative; font-size: .92rem; }
.checkout-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--peach-line); padding-top: 14px; margin-bottom: 6px; }
.checkout-total strong { font-size: 1.4rem; color: var(--ink); }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .checkout-summary { position: static; order: -1; } }
