/* SEO Ramper — public site styles
   Palette (brand-fixed): bg #0B1220, surface #17243B, accent #A3E635,
   text #FFFFFF / #CBD5E1 / #94A3B8, border #243247, light #F8FAFC. */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0B1220;
  --surface: #17243B;
  --surface-2: #1d2c47;
  --accent: #A3E635;
  --accent-ink: #0B1220;
  --text: #FFFFFF;
  --text-2: #CBD5E1;
  --text-3: #94A3B8;
  --border: #243247;
  --light: #F8FAFC;
  --ink: #0B1220;
  --ink-2: #334155;
  --ink-3: #475569;
  --danger: #F87171;
  --warning: #FBBF24;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.4rem + 2vw, 2.625rem);
  --step-4: clamp(2.375rem, 1.6rem + 3.6vw, 4.125rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text-2);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.022em; font-weight: 700; }
h1 { font-size: var(--step-4); letter-spacing: -0.035em; font-weight: 750; }
h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
h3 { font-size: var(--step-1); letter-spacing: -0.012em; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
small, .small { font-size: var(--step--1); }
.muted { color: var(--text-3); }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 780px; }
.prose-width { max-width: 68ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 1.125rem; }
.brand svg { width: 30px; height: 30px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .main-nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); display: none; margin: 0; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .main-nav a { padding: 12px 8px; font-size: 1.0625rem; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .header-actions { order: 3; }
  .header-actions .btn-login { display: none; }
  .main-nav .nav-login { display: block; }
}
@media (min-width: 1021px) { .main-nav .nav-login { display: none; } }
@media (max-width: 420px) { .header-actions .btn { padding: 9px 12px; font-size: .875rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 12px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .9875rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #b5ef55; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-3); }
.btn-sm { padding: 8px 14px; font-size: .875rem; }
.btn-lg { padding: 15px 26px; font-size: 1.0625rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.section-light .btn-ghost { color: var(--ink); border-color: #cbd5e1; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-light { background: var(--light); color: var(--ink-2); }
.section-light h1, .section-light h2, .section-light h3, .section-light h4 { color: var(--ink); }
.section-light a { color: #3f6212; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { font-size: var(--step-1); color: var(--text-3); line-height: 1.5; }
.section-light .section-head p { color: var(--ink-3); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--text-2); max-width: 62ch; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 62%);
  pointer-events: none;
}
.hero-grid > *, .split > *, .with-aside > *, .editor-grid > *, .article-layout > * { min-width: 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .4em; font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4rem); }
.hero h1 span { display: block; }
.hero .lead { margin-bottom: 1.75em; }
.hero-note { margin-top: 22px; font-size: var(--step--1); color: var(--text-3); display: flex; gap: 8px; align-items: flex-start; max-width: 52ch; }
.hero-note .icon { color: var(--accent); margin-top: 2px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Publication tracker (hero illustration) */
.tracker {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; color: var(--text-2); font-size: .9375rem;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
}
.tracker-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.tracker-id { color: var(--text-3); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.chip-accent { color: var(--accent); border-color: rgba(163, 230, 53, .4); background: rgba(163, 230, 53, .08); }
.chip-warn { color: var(--warning); border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); }
.chip-muted { color: var(--text-3); }
.tracker-article { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 0; }
.tracker-thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); }
.tracker-thumb .icon { width: 28px; height: 28px; }
.tracker-title { color: var(--text); font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.tracker-meta { color: var(--text-3); font-size: .8125rem; }
.tracker-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tracker-steps li { position: relative; padding-top: 18px; font-size: .78rem; color: var(--text-3); line-height: 1.3; }
.tracker-steps li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--border); }
.tracker-steps li.done::before { background: var(--accent); }
.tracker-steps li.done { color: var(--text-2); }
.tracker-steps li.current::before { background: linear-gradient(90deg, var(--accent) 50%, var(--border) 50%); }
.tracker-steps li.current { color: var(--text); font-weight: 600; }
.tracker-code {
  margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .8125rem; color: var(--text-2);
  overflow-x: auto; white-space: nowrap;
}
.tracker-code .t { color: #7dd3fc; } .tracker-code .a { color: var(--text-3); } .tracker-code .v { color: var(--accent); }
.tracker-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .tracker-steps li::before { transform-origin: left; animation: fill .6s var(--ease) both; }
  .tracker-steps li:nth-child(2)::before { animation-delay: .35s; }
  .tracker-steps li:nth-child(3)::before { animation-delay: .7s; }
  .tracker-steps li:nth-child(4)::before { animation-delay: 1.05s; }
  .tracker-code { animation: rise .5s var(--ease) .9s both; }
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .tracker-steps { grid-template-columns: repeat(2, 1fr); row-gap: 14px; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .18s var(--ease); }
.card-link:hover { border-color: var(--text-3); }
.card-link .more { margin-top: auto; padding-top: 16px; color: var(--accent); font-weight: 600; font-size: .9375rem; }
.card-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(163, 230, 53, .1); color: var(--accent); margin-bottom: 16px; }
.card-icon .icon { width: 22px; height: 22px; }
.section-light .card { background: #fff; border-color: #e2e8f0; color: var(--ink-2); }

/* Problem → consequence → solution band */
.pcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.pcs > div { padding: clamp(22px, 3vw, 34px); background: var(--surface); }
.pcs > div + div { border-left: 1px solid var(--border); }
.pcs h3 { display: flex; align-items: center; gap: 10px; }
.pcs .k-problem .icon { color: var(--warning); }
.pcs .k-consequence .icon { color: var(--danger); }
.pcs .k-solution { background: linear-gradient(180deg, rgba(163,230,53,.07), rgba(163,230,53,0) 70%), var(--surface); }
.pcs .k-solution .icon { color: var(--accent); }
.pcs ul { margin: 0; padding-left: 1.1em; }
.pcs li { margin-bottom: .5em; }
@media (max-width: 860px) { .pcs { grid-template-columns: 1fr; } .pcs > div + div { border-left: 0; border-top: 1px solid var(--border); } }

/* Numbered process (true sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); }
.steps > li:last-child { border-bottom: 1px solid var(--border); }
.steps > li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--text-3); }
.steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.steps-row > li { grid-template-columns: 1fr; gap: 12px; align-content: start; }
.steps h3 a { color: var(--text); text-decoration: none; }
.steps h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
@media (max-width: 860px) { .steps-row { grid-template-columns: 1fr; } .steps-row > li { grid-template-columns: 48px 1fr; } }

/* Detailed how-it-works stages */
.stage { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--border); }
.stage-num { font-size: var(--step-4); font-weight: 750; color: var(--accent); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stage-label { color: var(--text-3); font-size: var(--step--1); margin-top: 8px; }
.stage h2 { font-size: var(--step-2); }
.stage-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.stage-cols h3 { font-size: 1rem; color: var(--text); }
.stage-cols ul { margin: 0; padding-left: 1.1em; color: var(--text-3); }
@media (max-width: 760px) { .stage { grid-template-columns: 1fr; } .stage-cols { grid-template-columns: 1fr; } }

/* Feature list */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.section-light .checklist li::before { border-color: #4d7c0f; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.price-card.featured { border-color: var(--accent); }
.price-card h3 { margin-bottom: .25em; }
.price-service { color: var(--text-3); font-size: var(--step--1); margin-bottom: 14px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; color: var(--text); }
.price strong { font-size: 2.25rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--text-3); font-size: .9375rem; }
.price-card .checklist { margin: 18px 0 22px; font-size: .9375rem; }
.price-card .btn { margin-top: auto; }
.demo-banner { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.07); color: var(--text-2); margin-bottom: 28px; }
.demo-banner .icon { color: var(--warning); margin-top: 3px; }
.conditions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.conditions dt { color: var(--text); font-weight: 600; }
.conditions dd { margin: 4px 0 0; color: var(--text-3); }
@media (max-width: 700px) { .conditions { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; color: var(--text); font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--text-3); max-width: 72ch; }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; background: radial-gradient(circle at 100% 0%, rgba(163,230,53,.12), transparent 50%), var(--surface); }
.cta-band h2 { font-size: var(--step-3); margin-bottom: .3em; }
.cta-band p { margin: 0; color: var(--text-3); max-width: 60ch; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 18px; font-size: var(--step--1); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--text-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.breadcrumbs a { color: var(--text-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--text-2); }

/* ---------- Page header ---------- */
.page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem); max-width: 22ch; }
.page-head .lead { margin-bottom: 0; }
.page-head .btn-row { margin-top: 26px; }

/* ---------- Two column with aside ---------- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.aside-sticky { position: sticky; top: 92px; }
@media (max-width: 960px) { .with-aside { grid-template-columns: 1fr; } .aside-sticky { position: static; } }
.toc { font-size: .9375rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--text-3); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }

/* Long-form copy on dark */
.copy h2 { font-size: var(--step-2); margin-top: 1.6em; }
.copy h3 { margin-top: 1.4em; }
.copy > :first-child { margin-top: 0; }
.copy p, .copy li { max-width: 70ch; }
.copy li { margin-bottom: .4em; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; color: var(--text); margin-bottom: 6px; font-size: .9375rem; }
.field .hint { font-size: .8125rem; color: var(--text-3); margin-top: 6px; }
.field .req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; transition: border-color .15s;
}
.section-alt .input, .section-alt .select, .section-alt .textarea, .card .input, .card .select, .card .textarea { background: var(--bg); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(163,230,53,.18); }
.textarea { min-height: 150px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .875rem; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 20px; display: flex; gap: 10px; }
.alert-success { border-color: rgba(163,230,53,.45); background: rgba(163,230,53,.08); color: var(--text); }
.alert-error { border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.08); color: var(--text); }
.alert-info { border-color: rgba(125,211,252,.4); background: rgba(125,211,252,.07); color: var(--text); }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card .cover { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); margin-bottom: 14px; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { color: var(--text); font-size: 1.1875rem; margin-bottom: .35em; }
.post-card:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.post-card p { color: var(--text-3); font-size: .9375rem; margin-bottom: .6em; }
.post-meta { font-size: .8125rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cat-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; }
.cat-list a { display: inline-block; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: .875rem; }
.cat-list a:hover, .cat-list a[aria-current] { border-color: var(--accent); color: var(--text); }
.search-form { display: flex; gap: 8px; max-width: 460px; }
.search-form .input { flex: 1; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; padding: 9px 13px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--text-2); font-size: .9375rem; }
.pagination [aria-current] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.empty-state { border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 48px); text-align: left; }
.empty-state h2, .empty-state h3 { font-size: var(--step-1); }

/* Article (light reading surface) */
.article-head { padding: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 40px); }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); max-width: 24ch; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-top: 28px; }
.article-cover img { width: 100%; height: auto; }
.article-body { background: var(--light); color: var(--ink-2); padding: clamp(40px, 6vw, 72px) 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: clamp(28px, 5vw, 72px); }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } }
.prose { font-size: 1.125rem; line-height: 1.72; color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: 1.75rem; margin: 1.8em 0 .55em; letter-spacing: -0.025em; }
.prose h3 { color: var(--ink); font-size: 1.3125rem; margin: 1.6em 0 .5em; }
.prose a { color: #3f6212; text-decoration-color: #84cc16; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid #84cc16; color: var(--ink); }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose code { font-size: .9em; background: #e2e8f0; padding: 1px 6px; border-radius: 5px; color: var(--ink); }
.prose pre { background: var(--ink); color: #e2e8f0; padding: 16px 18px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .9rem; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid #e2e8f0; padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { color: var(--ink); background: #f1f5f9; }
.prose li { margin-bottom: .45em; }
.prose hr { border: 0; border-top: 1px solid #e2e8f0; margin: 2.4em 0; }
.disclosure { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: #fefce8; border: 1px solid #fde68a; color: #713f12; margin-bottom: 28px; font-size: .9875rem; }
.article-aside .card { background: #fff; border-color: #e2e8f0; color: var(--ink-2); margin-bottom: 18px; }
.article-aside h2, .article-aside h3 { color: var(--ink); font-size: 1.0625rem; }
.article-aside .btn-primary { width: 100%; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 24px; border-top: 1px solid #e2e8f0; align-items: center; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font: inherit; font-size: .875rem; background: #fff; cursor: pointer; }
.author-box { display: flex; gap: 16px; margin-top: 36px; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid #e2e8f0; }
.author-box h2 { font-size: 1.0625rem; margin: 0 0 4px; color: var(--ink); }
.author-box p { margin: 0; font-size: .9375rem; }

/* ---------- Legal ---------- */
.legal-pending { border: 1px solid rgba(251,191,36,.45); background: rgba(251,191,36,.08); padding: 14px 16px; border-radius: var(--radius-sm); color: var(--text); margin-bottom: 28px; font-size: .9375rem; }
.section-light .legal-pending { background: #fffbeb; border-color: #fcd34d; color: #78350f; }

/* ---------- Tables (account) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { color: var(--text-3); font-weight: 600; font-size: .8125rem; background: var(--surface); }
.table tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: clamp(48px, 6vw, 72px) 0 32px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid h2 { font-size: .9375rem; color: var(--text); margin-bottom: 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--text-3); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--text-3); max-width: 34ch; margin-top: 14px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--text-3); font-size: .8125rem; }
.footer-bottom button { background: none; border: 0; color: var(--text-3); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-about { grid-column: 1 / -1; } }

/* ---------- Consent banner ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); font-size: .9375rem; }
.consent[hidden] { display: none; }
.consent p { margin-bottom: 12px; color: var(--text-2); }
.consent .btn-row { gap: 8px; }

/* ---------- Misc ---------- */
.kicker-line { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: .9375rem; margin-bottom: 14px; }
.kicker-line .icon { color: var(--accent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 16px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 48px; }
.related-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related-links a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.related-links a:hover { border-color: var(--text-3); }
.related-links span { color: var(--text-3); font-size: .875rem; }
.notice-page { min-height: 50vh; }
.error-code { font-size: var(--step-4); font-weight: 750; color: var(--accent); line-height: 1; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow .node { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: .9375rem; }
.flow .arrow { color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .consent, .share { display: none; } body { background: #fff; color: #000; } }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-1); letter-spacing: -0.012em; }
ol.flow, ul.flow { list-style: none; padding: 0; margin: 0; }
.toc .flow a.node { text-decoration: none; }
.toc .flow a.node:hover { border-color: var(--accent); }
.form-card .h2 { margin-bottom: .6em; }
.page-head code, .hero-note code { font-size: .9em; color: var(--text); }
.price-card .chip { align-self: flex-start; }
.article-body a:not(.btn), .article-aside a:not(.btn) { color: #3f6212; }
