/* ===== MintySlab — shared styles (red brand, dark theme) ===== */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0c0a0a;
  --bg-2: #110d0d;
  --surface: #181111;
  --surface-2: #1f1515;
  --line: rgba(226, 72, 58, 0.12);
  --line-strong: rgba(226, 72, 58, 0.28);
  --ink: #f6efed;
  --ink-dim: #b6a6a3;
  --ink-faint: #82706d;
  --red: #d22f25;
  --red-bright: #e2483a;
  --red-soft: #f06b5e;
  --red-glow: rgba(210, 47, 37, 0.40);
  --gold: #f2c14e;
  --ok: #4ccf8e;
  --radius: 18px;
  --radius-sm: 11px;
  --maxw: 1180px;
  --ff-display: "League Spartan", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(820px 560px at 80% -6%, rgba(210,47,37,0.16), transparent 60%),
    radial-gradient(680px 520px at 8% 6%, rgba(210,47,37,0.07), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(226,72,58,0.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226,72,58,0.030) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 92% 70% at 50% 0%, #000 28%, transparent 78%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ===== logo (real brand assets) ===== */
.brand { display: flex; align-items: center; gap: 11px; flex-wrap: nowrap; white-space: nowrap; width: fit-content; max-width: 100%; }
.brand .logo-icon { width: 38px; height: 38px; border-radius: 9px; flex: 0 0 auto; box-shadow: 0 4px 14px -4px var(--red-glow); }
.brand .logo-word { height: 34px; width: auto; flex: 0 1 auto; min-width: 0; max-width: 100%; object-fit: contain; object-position: left center; display: block; }
/* footer brand: shrink the lockup to its column so it never wraps */
.foot-grid a.brand { display: flex; max-width: 100%; }
.footer .brand .logo-word { flex: 0 1 auto; }
/* footer logo can be a touch larger */
.footer .brand .logo-icon { width: 40px; height: 40px; }
.footer .brand .logo-word { height: 32px; }

/* App Store download badge (official artwork) */
.appstore-badge { display: inline-block; transition: transform .15s, filter .2s; }
.appstore-badge:hover { transform: translateY(-2px); filter: brightness(1.08); }
.appstore-badge img { height: 54px; width: auto; border-radius: 9px; display: block; }
.hero .appstore-badge img { height: 56px; }

/* ===== nav ===== */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(12,10,10,0.78); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: 0.94rem; color: var(--ink-dim); padding: 9px 15px; border-radius: 9px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a.active { color: var(--red-bright); }
.nav-cta { margin-left: 10px; background: var(--red); color: #fff !important; font-weight: 600; padding: 10px 20px !important; border-radius: 10px !important; box-shadow: 0 8px 22px -8px var(--red-glow); }
.nav-cta:hover { background: var(--red-bright); }
.burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 9px; width: 44px; height: 40px; color: var(--ink); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; margin: 3px auto; transition: .3s; }

@media (max-width: 860px) {
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 14px 20px 22px; gap: 4px; transform: translateY(-135%); transition: transform .35s ease; z-index: 40; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .burger { display: block; }
}

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; font-size: 0.97rem; padding: 13px 24px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; font-family: var(--ff-body); transition: transform .15s, box-shadow .25s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 14px 32px -12px var(--red-glow); }
.btn-red:hover { background: var(--red-bright); box-shadow: 0 18px 42px -10px var(--red-glow); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--red-bright); }

/* ===== headings / sections ===== */
.section { padding: 96px 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-size: 0.73rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-bright); padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(210,47,37,0.06); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 8px var(--red-bright); }
h1, h2, h3 { font-family: var(--ff-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
.h-lead { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 22px 0 16px; font-weight: 700; }
.sub { color: var(--ink-dim); font-size: 1.08rem; max-width: 640px; line-height: 1.6; }

/* ===== hero ===== */
.hero { padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); margin: 26px 0 22px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--red-bright); }
.hero .sub { font-size: 1.16rem; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-stats .n { font-family: var(--ff-display); font-size: 1.7rem; font-weight: 700; color: var(--ink); line-height: 1; }
.hero-stats .l { font-size: 0.74rem; color: var(--ink-faint); font-family: var(--ff-mono); letter-spacing: 0.06em; margin-top: 7px; }

/* ===== phone / scanner mock ===== */
.phone { position: relative; width: 290px; aspect-ratio: 9/19; margin: 0 auto; background: linear-gradient(160deg, #241616, #140d0d); border-radius: 42px; border: 1px solid var(--line-strong); padding: 13px; box-shadow: 0 44px 90px -34px #000, 0 0 0 1px rgba(0,0,0,.5), inset 0 0 0 2px rgba(226,72,58,0.05); }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; background: radial-gradient(120% 80% at 50% 0%, #1d1212, #0c0808); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.card-mock { width: 58%; aspect-ratio: 5/7; border-radius: 9px; position: relative; background: linear-gradient(135deg, #34201d, #211413); border: 3px solid #f3ece9; box-shadow: 0 16px 34px -14px #000, 0 0 0 0 var(--red-glow); animation: cardGlow 2.8s ease-in-out infinite; }
@keyframes cardGlow { 0%,100% { box-shadow: 0 16px 34px -14px #000, 0 0 0px 0 rgba(226,72,58,0); } 50% { box-shadow: 0 16px 34px -14px #000, 0 0 30px 2px rgba(226,72,58,0.45); } }
.card-mock .inner { position: absolute; inset: 13% 17% 21% 14%; border-radius: 4px; background: linear-gradient(150deg, var(--red-bright), #7c1c14); }

/* glowing scan beam with trailing gradient */
.scan-line { position: absolute; left: 6%; right: 6%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--red-soft) 18%, #fff 50%, var(--red-soft) 82%, transparent);
  box-shadow: 0 0 18px 3px var(--red-bright), 0 0 40px 6px var(--red-glow);
  animation: scan 2.8s cubic-bezier(.5,0,.5,1) infinite; }
.scan-line::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 46px;
  background: linear-gradient(to top, rgba(226,72,58,0.34), transparent); }
@keyframes scan {
  0%   { top: 10%; opacity: 0; }
  12%  { opacity: 1; }
  50%  { top: 88%; }
  88%  { opacity: 1; }
  100% { top: 10%; opacity: 0; }
}

/* animated corner brackets */
.scan-frame { position: absolute; inset: 8%; pointer-events: none; }
.scan-frame span { position: absolute; width: 22px; height: 22px; border: 2px solid var(--red-bright); opacity: 0.9; animation: bracket 2.8s ease-in-out infinite; }
.scan-frame span.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 5px 0 0 0; }
.scan-frame span.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 5px 0 0; }
.scan-frame span.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 5px; }
.scan-frame span.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 5px 0; }
@keyframes bracket { 0%,100% { opacity: 0.35; filter: drop-shadow(0 0 0 transparent); } 50% { opacity: 1; filter: drop-shadow(0 0 5px var(--red-bright)); } }

.measure { position: absolute; font-family: var(--ff-mono); font-size: 0.6rem; color: var(--ink); background: rgba(12,8,8,0.9); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-strong); white-space: nowrap; opacity: 0; animation: chipIn .5s ease forwards; box-shadow: 0 2px 10px -4px #000; }
.measure b { color: var(--red-bright); font-weight: 700; }
@keyframes chipIn { from { opacity: 0; transform: translate(var(--tx,0), calc(var(--ty,0) + 6px)); } to { opacity: 1; } }
.measure.m-left   { top: 50%; left: 9px;  --ty: -50%; transform: translateY(-50%); animation-delay: 1.0s; }
.measure.m-right  { top: 50%; right: 9px; --ty: -50%; transform: translateY(-50%); animation-delay: 1.25s; }
.measure.m-top    { top: 11px; left: 50%; --tx: -50%; transform: translateX(-50%); animation-delay: 0.6s; }
.measure.m-bottom { bottom: 64px; left: 50%; --tx: -50%; transform: translateX(-50%); animation-delay: 1.5s; }
.grade-badge { animation: chipIn .5s ease 1.9s forwards; opacity: 0; }
.gauge .grade-badge { animation: none; opacity: 1; }
.grade-badge { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--red-bright), var(--red)); color: #fff; font-family: var(--ff-display); font-weight: 700; padding: 10px 18px; border-radius: 12px; font-size: 0.82rem; letter-spacing: 0.02em; box-shadow: 0 0 28px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.15); display: flex; align-items: baseline; gap: 7px; }
.grade-badge strong { font-size: 1.5rem; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.grade-badge small { font-family: var(--ff-mono); font-weight: 600; font-size: 0.62rem; opacity: 0.9; letter-spacing: 0.08em; align-self: center; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ===== feature cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: transform .25s, border-color .25s, box-shadow .25s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 24px 50px -28px var(--red-glow); }
.card .ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px; background: rgba(210,47,37,0.12); border: 1px solid var(--line-strong); color: var(--red-bright); }
.card h3 { font-size: 1.22rem; margin-bottom: 11px; font-weight: 700; }
.card p { color: var(--ink-dim); font-size: 0.97rem; }
.card .tag { position: absolute; top: 20px; right: 20px; font-family: var(--ff-mono); font-size: 0.6rem; color: var(--gold); border: 1px solid rgba(242,193,78,0.3); padding: 3px 8px; border-radius: 6px; letter-spacing: 0.06em; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ===== steps ===== */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 52px; counter-reset: s; }
.step { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); counter-increment: s; position: relative; }
.step::before { content: "0" counter(s); font-family: var(--ff-mono); font-size: 0.82rem; color: var(--red-bright); letter-spacing: 0.08em; font-weight: 600; }
.step h3 { font-size: 1.12rem; margin: 14px 0 9px; font-weight: 700; }
.step p { color: var(--ink-dim); font-size: 0.95rem; }
.step .bar { position: absolute; left: 26px; bottom: -1px; height: 2px; width: 42px; background: var(--red); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ===== centering band ===== */
.band { background: linear-gradient(135deg, var(--surface), var(--bg-2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.gauge { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 32px; }
.gauge-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; font-family: var(--ff-mono); font-size: 0.85rem; }
.gauge-row .name { width: 120px; color: var(--ink-dim); letter-spacing: 0.01em; }
.meter { flex: 1; height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.meter i { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(90deg, var(--red), var(--red-bright)); border-radius: 999px; box-shadow: 0 0 12px -2px var(--red-glow); }
.gauge-row .val { width: 70px; text-align: right; font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; }
.gauge-row .val b { color: var(--red-bright); font-weight: 800; }
.gauge-row .val .slash { color: var(--ink-faint); margin: 0 1px; font-weight: 400; }
.gauge-row .val .dim { color: var(--ink-dim); font-weight: 600; }
.list { margin-top: 24px; display: grid; gap: 15px; }
.list li { list-style: none; display: flex; gap: 12px; color: var(--ink-dim); }
.list li b { color: var(--ink); font-weight: 600; }
.list .ck { color: var(--red-bright); flex-shrink: 0; font-weight: 700; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ===== pricing ===== */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; display: flex; flex-direction: column; position: relative; }
.plan.feat { border-color: var(--red); box-shadow: 0 30px 70px -40px var(--red-glow); background: linear-gradient(180deg, rgba(210,47,37,0.07), var(--surface)); }
.plan .pname { font-family: var(--ff-display); font-size: 1.32rem; font-weight: 700; }
.plan .ptag { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 5px; }
.plan .pop { position: absolute; top: -12px; left: 30px; background: var(--red); color: #fff; font-family: var(--ff-mono); font-size: 0.66rem; font-weight: 600; padding: 6px 13px; border-radius: 8px; letter-spacing: 0.06em; }
.plan .amt { margin: 24px 0 6px; font-family: var(--ff-display); font-size: 2.7rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.plan .amt .cur { font-size: 1.4rem; font-weight: 700; vertical-align: super; margin-right: 1px; }
.plan .amt .unit { font-size: 0.92rem; color: var(--ink-faint); font-family: var(--ff-mono); font-weight: 400; letter-spacing: 0; }
.plan .per { color: var(--ink-faint); font-size: 0.85rem; min-height: 22px; font-family: var(--ff-body); }
.plan ul { list-style: none; margin: 26px 0; display: grid; gap: 14px; flex: 1; }
.plan ul li { display: flex; gap: 11px; color: var(--ink-dim); font-size: 0.95rem; align-items: flex-start; }
.plan ul li .ck { color: var(--red-bright); flex-shrink: 0; font-weight: 700; }
.plan ul li b { color: var(--ink); font-weight: 600; }
.plan ul li.off { color: var(--ink-faint); opacity: 0.55; }
.plan ul li.off .ck { color: var(--ink-faint); }
.plan .btn { width: 100%; }
.bill-toggle { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 5px; margin-top: 28px; }
.bill-toggle button { background: none; border: none; color: var(--ink-dim); font-family: var(--ff-body); font-weight: 600; font-size: 0.9rem; padding: 10px 22px; border-radius: 8px; cursor: pointer; transition: .2s; display: inline-flex; align-items: center; }
.bill-toggle button.on { background: var(--red); color: #fff; }
.bill-toggle .save { font-family: var(--ff-mono); font-size: 0.64rem; color: var(--gold); margin-left: 7px; font-weight: 500; }
.bill-toggle button.on .save { color: #ffe6a8; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

/* ===== faq ===== */
.faq { max-width: 800px; margin: 52px auto 0; display: grid; gap: 14px; }
.q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s; }
.q.open { border-color: var(--line-strong); }
.q button { width: 100%; text-align: left; background: none; border: none; color: var(--ink); font-family: var(--ff-display); font-weight: 600; font-size: 1.08rem; padding: 22px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.q .pm { width: 24px; height: 24px; flex-shrink: 0; color: var(--red-bright); transition: transform .3s; }
.q.open .pm { transform: rotate(45deg); }
.q .ans { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.q .ans p { padding: 0 24px 22px; color: var(--ink-dim); font-size: 0.98rem; }
.q .ans a { color: var(--red-bright); }

/* ===== contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 8px; }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 11px; padding: 13px 15px; color: var(--ink); font-family: var(--ff-body); font-size: 0.97rem; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red-bright); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info { display: grid; gap: 18px; align-content: start; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info-card .ic { color: var(--red-bright); margin-bottom: 12px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; font-weight: 700; }
.info-card p, .info-card a { color: var(--ink-dim); font-size: 0.95rem; }
.info-card a:hover { color: var(--red-bright); }
.form-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 10px; }
.sent { color: var(--ok); font-family: var(--ff-mono); font-size: 0.9rem; margin-top: 14px; display: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== blog / learn ===== */
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 48px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, border-color .25s; display: flex; flex-direction: column; }
.post:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.post .cat { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-bright); }
.post h3 { font-size: 1.12rem; margin: 12px 0 10px; font-weight: 700; }
.post p { color: var(--ink-dim); font-size: 0.92rem; flex: 1; }
.post .more { color: var(--red-bright); font-family: var(--ff-mono); font-size: 0.82rem; margin-top: 16px; display: inline-flex; gap: 6px; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }

/* ===== cta band ===== */
.cta-band { text-align: center; padding: 92px 0; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.cta-band .sub { margin: 16px auto 30px; }
.store-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #140d0d; padding: 13px 24px; border-radius: 13px; font-weight: 600; transition: transform .15s, box-shadow .2s; }
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--red-glow); }
.store-btn small { display: block; font-size: 0.66rem; font-weight: 500; opacity: 0.7; font-family: var(--ff-mono); }
.store-btn b { font-size: 1.05rem; font-family: var(--ff-display); font-weight: 700; }

/* ===== footer ===== */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 62px 0 30px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 38px; }
.foot-grid h4 { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.foot-grid a { display: block; color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 11px; transition: color .2s; }
.foot-grid a:hover { color: var(--red-bright); }
.foot-grid p { color: var(--ink-dim); font-size: 0.92rem; max-width: 270px; margin-top: 16px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 10px; display: grid; place-items: center; color: var(--ink-dim); transition: .2s; margin: 0; }
.socials a:hover { color: var(--red-bright); border-color: var(--red-bright); }
.foot-bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-faint); font-size: 0.82rem; }
.foot-bottom .legal { font-size: 0.76rem; max-width: 540px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer .brand { gap: 9px; }
  .footer .brand .logo-icon { width: 32px; height: 32px; }
  .footer .brand .logo-word { height: 24px; }
}

/* ===== page header ===== */
.page-head { padding: 76px 0 8px; text-align: center; }
.page-head .eyebrow { margin-bottom: 4px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); margin: 22px 0 14px; font-weight: 800; }
.page-head .sub { margin: 0 auto; }

/* ===== legal pages ===== */
.doc { max-width: 780px; margin: 0 auto; }
.doc p { color: var(--ink-dim); margin-bottom: 18px; font-size: 1rem; }
.doc h2 { font-size: 1.35rem; margin: 38px 0 12px; color: var(--ink); font-weight: 700; }
.doc ul { list-style: none; margin: 0 0 18px; display: grid; gap: 10px; }
.doc ul li { color: var(--ink-dim); padding-left: 22px; position: relative; }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--red-bright); }
.doc ul li b { color: var(--ink); }
.doc a { color: var(--red-bright); word-break: break-word; }
.doc a:hover { text-decoration: underline; }
.doc h3 { font-size: 1.08rem; margin: 26px 0 8px; color: var(--ink); font-weight: 700; }
.doc .doc-meta { color: var(--ink); margin-bottom: 24px; }
.doc ol.doc-sub { margin: 0 0 18px 0; padding-left: 26px; display: grid; gap: 10px; }
.doc ol.doc-sub li { color: var(--ink-dim); padding-left: 6px; }
.doc table.doc-table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 0.95rem; }
.doc table.doc-table th,
.doc table.doc-table td { text-align: left; vertical-align: top; padding: 11px 14px; border: 1px solid var(--line-strong); color: var(--ink-dim); }
.doc table.doc-table th { color: var(--ink); font-weight: 700; background: rgba(210,47,37,0.05); }
.doc-note { margin-top: 36px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: rgba(210,47,37,0.05); font-size: 0.88rem !important; color: var(--ink-faint) !important; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== blog article pages ===== */
.article { max-width: 760px; margin: 0 auto; }
.article .kicker { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-bright); }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 14px 0 16px; font-weight: 800; }
.article .lede { font-size: 1.15rem; color: var(--ink-dim); margin-bottom: 8px; }
.article .meta { font-family: var(--ff-mono); font-size: 0.78rem; color: var(--ink-faint); padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 1.5rem; margin: 38px 0 14px; font-weight: 700; }
.article h3 { font-size: 1.18rem; margin: 28px 0 10px; font-weight: 700; color: var(--ink); }
.article p { color: var(--ink-dim); margin-bottom: 18px; font-size: 1.02rem; line-height: 1.7; }
.article ul, .article ol { margin: 0 0 20px; padding-left: 4px; display: grid; gap: 11px; }
.article ul li { list-style: none; color: var(--ink-dim); padding-left: 24px; position: relative; line-height: 1.6; }
.article ul li::before { content: ""; position: absolute; left: 5px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--red-bright); }
.article ol { counter-reset: ol; }
.article ol li { list-style: none; color: var(--ink-dim); padding-left: 36px; position: relative; counter-increment: ol; line-height: 1.6; }
.article ol li::before { content: counter(ol); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 7px; background: rgba(210,47,37,0.12); border: 1px solid var(--line-strong); color: var(--red-bright); font-family: var(--ff-mono); font-size: 0.78rem; font-weight: 600; display: grid; place-items: center; }
.article b, .article strong { color: var(--ink); font-weight: 600; }
.article .ratio-box { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 24px; }
.article .ratio { flex: 1; min-width: 150px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 18px 20px; }
.article .ratio .g { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 800; color: var(--red-bright); }
.article .ratio .r { font-family: var(--ff-mono); font-size: 0.85rem; color: var(--ink-dim); margin-top: 4px; }
.article .callout { background: linear-gradient(135deg, rgba(210,47,37,0.08), var(--surface)); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px 26px; margin: 30px 0; }
.article .callout h3 { margin-top: 0; }
.article .callout p:last-child { margin-bottom: 0; }
.article-cta { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.article-nav { max-width: 760px; margin: 40px auto 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article-nav a { font-family: var(--ff-mono); font-size: 0.85rem; color: var(--red-bright); }
.article-nav a:hover { text-decoration: underline; }
