/* =========================================================
   Paralegalku — public pages (frontpage/*)
   Modern legal: ink + brand amber, hairlines, no ornament.
   Loaded only by frontpage/base.html. The logged-in app
   (frontend/payment.html) still uses static/style.css.
========================================================= */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --ink: #0b1220;
  --ink-2: #141c2e;
  --text: #2a3343;
  --muted: #5d6779;
  --faint: #8a93a3;
  --line: #e3e6ec;
  --line-strong: #cdd3dc;

  --accent: #f2b627;          /* brand amber, from the logo */
  --accent-ink: #8a5a00;      /* amber readable on white */
  --accent-soft: #fff5d9;
  --mark: rgba(242, 182, 39, .32);

  --dark: #0b1220;
  --dark-line: rgba(255, 255, 255, .12);
  --dark-muted: rgba(226, 232, 240, .68);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --max: 1200px;

  --shadow-1: 0 1px 2px rgba(11, 18, 32, .05), 0 1px 1px rgba(11, 18, 32, .03);
  --shadow-2: 0 12px 32px -12px rgba(11, 18, 32, .18), 0 2px 6px rgba(11, 18, 32, .05);
  --shadow-3: 0 40px 80px -24px rgba(11, 18, 32, .28), 0 8px 20px -8px rgba(11, 18, 32, .10);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--mark); color: var(--ink); }

.container { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
mark, .mark { background: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%); color: inherit; padding: 0 .12em; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.015em; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
}
.section-heading .eyebrow, .hero-centered .eyebrow { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 250, .78);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .9); border-bottom-color: var(--line); }
.nav-shell { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-logo { width: 28px; height: 28px; object-fit: contain; }
.brand-lockup { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-text { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.brand-meta { color: var(--faint); font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; }

.desktop-nav { display: flex; align-items: center; gap: 4px; }
.desktop-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.desktop-nav a:hover { color: var(--ink); background: rgba(11, 18, 32, .05); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.menu-toggle span { display: block; height: 1.5px; margin: 4px 0; background: var(--ink); border-radius: 2px; }
.mobile-panel { border-top: 1px solid var(--line); background: var(--surface); }
.mobile-nav { width: min(100% - 48px, var(--max)); margin: auto; padding: 12px 0 20px; display: grid; gap: 2px; }
.mobile-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 500; }
.mobile-nav .btn { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn, .btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-primary { color: #fff; background: var(--ink); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: #1c2740; }
.btn-secondary { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { color: var(--text); background: transparent; }
.btn-ghost:hover { color: var(--ink); background: rgba(11, 18, 32, .05); }
.btn-accent { color: var(--ink); background: var(--accent); }
.btn-accent:hover { background: #f7c64a; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.full { width: 100%; }
button.btn-primary { border: 0; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-tight { padding: 72px 0; }
.section-heading { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading.left .eyebrow { justify-content: flex-start; }
.section-heading h2 {
  margin: 16px 0 16px;
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.section-heading p, .lead { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.section-border { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero-section { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 18, 32, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 18, 32, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-copy h1 {
  margin: 22px 0 22px;
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.hero-copy h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 92%, transparent 92%); }
.hero-lead { max-width: 560px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.6; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-actions.center { justify-content: center; }

.hero-proof { margin: 44px 0 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.hero-proof li { display: grid; grid-template-columns: 34px 132px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.hero-proof .idx { color: var(--faint); font-family: var(--font-mono); font-size: 12px; }
.hero-proof strong { color: var(--ink); font-weight: 600; }

/* Product frame */
.product-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-3);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfc;
}
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe3e9; }
.frame-bar .frame-url {
  flex: 1;
  max-width: 300px;
  margin: 0 auto;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame-bar .frame-spacer { width: 42px; }
.product-frame img { width: 100%; height: auto; }

.hero-visual { position: relative; }
.hero-visual .product-frame img { aspect-ratio: 16 / 11; object-fit: cover; object-position: top left; }

.hero-cite {
  position: absolute;
  left: -36px;
  bottom: -28px;
  width: min(330px, 80%);
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.hero-cite-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cite-tag { color: var(--accent-ink); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.cite-ok { display: inline-flex; align-items: center; gap: 5px; color: #0f7a55; font-size: 12px; font-weight: 600; }
.cite-ok svg { width: 14px; height: 14px; }
.hero-cite p { margin: 0; color: var(--text); font-size: 13.5px; line-height: 1.55; }
.hero-cite small { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); color: var(--faint); font-family: var(--font-mono); font-size: 11px; }

.hero-stat {
  position: absolute;
  top: 64px;
  right: -22px;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-2);
}
.hero-stat strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.hero-stat > span { color: var(--dark-muted); font-size: 12px; }
.hero-stat strong::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 3px 0; border-radius: 50%; background: var(--accent); }

/* ---------- Stat strip ---------- */
.logo-strip { padding: 24px 0 8px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat-grid > div { padding: 24px 24px 22px; border-left: 1px solid var(--line); }
.stat-grid > div:first-child { border-left: 0; }
.stat-grid strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.stat-grid span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.stat-grid strong span { display: inline; margin: 0; color: inherit; font-size: inherit; }

/* ---------- Problem (Tantangan) ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.problem-item { padding: 26px 28px 8px 0; }
.problem-item + .problem-item { padding-left: 28px; border-left: 1px solid var(--line); }
.problem-item .idx { display: block; margin-bottom: 36px; color: var(--faint); font-family: var(--font-mono); font-size: 12px; }
.problem-item h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; line-height: 1.25; }
.problem-item p { margin: 0; color: var(--muted); font-size: 15px; }
.problem-item p b { color: var(--ink); font-weight: 600; }

/* ---------- Pillars (Mengapa) bento ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.pillar {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.pillar.wide { grid-column: span 3; }
.pillar.full-row { grid-column: 1 / -1; }
.pillar-kicker { color: var(--faint); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.pillar-kicker b { color: var(--accent-ink); font-weight: 500; }
.pillar h3 { margin: 14px 0 10px; font-size: 22px; font-weight: 600; line-height: 1.22; text-wrap: balance; }
.pillar p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

.pillar-visual { margin: 0 0 24px; }

/* Vignette: chat → norma */
.vg-chat { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.vg-q { justify-self: end; max-width: 85%; padding: 9px 12px; border-radius: 12px 12px 3px 12px; background: var(--ink); color: #fff; font-size: 13px; }
.vg-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.vg-steps span { padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--text); font-family: var(--font-mono); font-size: 11px; }
.vg-steps span.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

/* Vignette: search → pasal */
.vg-search { display: grid; gap: 10px; }
.vg-input { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 14px; box-shadow: var(--shadow-1); }
.vg-input svg { width: 16px; height: 16px; flex: none; color: var(--faint); }
.vg-input kbd { margin-left: auto; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--faint); font-family: var(--font-mono); font-size: 10px; }
.vg-doc { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.vg-doc-src { display: flex; justify-content: space-between; gap: 10px; color: var(--faint); font-family: var(--font-mono); font-size: 11px; }
.vg-doc h4 { margin: 8px 0 4px; font-size: 15px; font-weight: 600; }
.vg-doc p { margin: 0; color: var(--text); font-size: 13.5px; line-height: 1.6; }

/* Vignette: struktur perkara */
.vg-struct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.vg-struct span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 12.5px; }
.vg-struct span::before { content: attr(data-n); color: var(--faint); font-family: var(--font-mono); font-size: 10px; }
.vg-struct .vg-file { grid-column: 1 / -1; justify-content: space-between; border-style: dashed; border-color: var(--line-strong); background: var(--surface); }
.vg-struct .vg-file::before { content: none; }
.vg-struct .vg-file b { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--accent-ink); }

/* Vignette: kutipan + sumber */
.vg-cite { display: grid; gap: 8px; }
.vg-cite blockquote { margin: 0; padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--text); font-size: 13px; }
.vg-cite blockquote b { display: block; margin-bottom: 2px; color: var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.vg-src { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.vg-src span { color: var(--faint); font-family: var(--font-mono); font-size: 11px; }
.vg-src a { color: var(--ink); font-weight: 600; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }

/* Vignette: three engines */
.vg-engines { display: grid; gap: 6px; }
.vg-engines div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.vg-engines i { grid-row: span 2; color: var(--faint); font-family: var(--font-mono); font-size: 11px; font-style: normal; }
.vg-engines strong { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.vg-engines span { color: var(--muted); font-size: 12px; }

/* Dark full-row pillar (06) */
.pillar.dark { background: var(--dark); border-color: var(--dark); color: #e2e8f0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 44px; }
.pillar.dark h3 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); }
.pillar.dark p { color: var(--dark-muted); }
.pillar.dark .pillar-kicker { color: rgba(226, 232, 240, .5); }
.pillar.dark .pillar-kicker b { color: var(--accent); }
.pillar.dark .check-list li { color: #e2e8f0; }
.pillar.dark .check-list li::before { border-color: rgba(242, 182, 39, .6); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23f2b627' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.db-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--dark-line); border-radius: var(--radius); }
.db-figures > div { padding: 24px; }
.db-figures > div + div { border-left: 1px solid var(--dark-line); }
.db-figures strong { display: block; color: #fff; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.db-figures strong::after { content: "+"; color: var(--accent); }
.db-figures span { display: block; margin-top: 8px; color: var(--dark-muted); font-size: 13px; }
.db-figures .db-label { margin: 0 0 10px; color: var(--accent); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.db-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 24px; border-top: 1px solid var(--dark-line); }
.db-chips span { margin: 0; padding: 6px 10px; border: 1px solid var(--dark-line); border-radius: 6px; color: #e2e8f0; font-size: 12px; }

/* ---------- Cara kerja ---------- */
.method-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.method-copy h2 { margin: 16px 0 18px; font-size: clamp(30px, 3.8vw, 44px); font-weight: 600; line-height: 1.12; letter-spacing: -.022em; }
.method-copy .lead { margin-bottom: 18px; }
.method-copy p { color: var(--muted); }
.method-copy p b { color: var(--ink); font-weight: 600; }
.tool-list { border-top: 1px solid var(--ink); }
.tool-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.tool-row .idx { grid-row: span 2; color: var(--faint); font-family: var(--font-mono); font-size: 12px; padding-top: 4px; }
.tool-row h3 { margin: 0; font-size: 22px; font-weight: 600; }
.tool-row ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.tool-row li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 13px; }

/* ---------- Feature tabs ---------- */
.feature-tabs-bar, .feature-rail {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.feature-tabs-wrap { display: flex; justify-content: center; margin-bottom: 32px; }
.feature-leaf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.feature-leaf:hover { color: var(--ink); }
.feature-leaf.active { background: var(--ink); color: #fff; }
.feature-leaf-number { font-family: var(--font-mono); font-size: 11px; font-weight: 500; opacity: .6; }
.feature-leaf-copy small { display: none; }

.feature-panes { position: relative; }
.feature-track { display: grid; }
.feature-pane {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.feature-pane.active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.feature-text h3 { margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }
.feature-text p { margin: 0 0 20px; color: var(--muted); }
.feature-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.feature-mode-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.feature-mode-card strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; font-weight: 600; }
.feature-mode-card span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.quickwin-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.quickwin-strip li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-family: var(--font-mono); font-size: 12px; }
.quickwin-strip li + li::before { content: "→"; color: var(--faint); margin-right: 2px; }
.quickwin-strip li span { padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }

/* ---------- Check list ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--text); font-size: 15px; line-height: 1.5; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230b1220' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check-list.compact { gap: 9px; }
.check-list.compact li { font-size: 14px; }

/* ---------- Audience ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.audience-grid > div { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.audience-grid > div:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.audience-grid .idx { display: block; margin-bottom: 18px; color: var(--faint); font-family: var(--font-mono); font-size: 12px; }
.audience-grid strong { display: block; margin-bottom: 8px; color: var(--ink); font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.audience-grid span:not(.idx) { color: var(--muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing-duration-tabs { display: flex; justify-content: center; margin: 0 auto 40px; width: fit-content; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.feature-tab { padding: 9px 18px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease; }
.feature-tab:hover { color: var(--ink); }
.feature-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.pricing-grid.is-single { grid-template-columns: minmax(0, 380px); justify-content: center; }
.pricing-loading { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.price-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.price-card.popular { background: var(--ink); border-color: var(--ink); color: #e2e8f0; box-shadow: var(--shadow-3); }
.price-card.popular .price-head h3, .price-card.popular .price { color: #fff; }
.price-card.popular .price-head span, .price-card.popular .price small, .price-card.popular .price-old, .price-card.popular .note { color: var(--dark-muted); }
.price-card.popular .check-list li { color: #e2e8f0; }
.price-card.popular .check-list li::before { border-color: rgba(255,255,255,.22); background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23f2b627' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.price-card.popular .btn-secondary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.price-card.popular .price-divider { border-color: var(--dark-line); }
.popular-badge, .pricing-badge { position: absolute; top: 24px; right: 24px; padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.pricing-badge-popular { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.pricing-badge-strategic { border-color: var(--ink); background: var(--ink); color: #fff; }
.pricing-badge-available { color: #0f7a55; border-color: rgba(15, 122, 85, .3); background: rgba(15, 122, 85, .06); }
.price-head { padding-right: 96px; }
.price-head h3 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.price-head span { color: var(--muted); font-size: 14px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 26px 0 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(32px, 3vw, 40px); font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { color: var(--muted); font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.price-old { flex-basis: 100%; color: var(--faint); font-size: .45em; font-weight: 500; letter-spacing: -.01em; text-decoration: line-through; text-decoration-thickness: 1px; }
.price-divider { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.price-card .check-list { flex: 1; align-content: start; }
.price-card .btn { margin-top: 26px; }
.note { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.note em { font-style: normal; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 112px 0; }
.cta-card { position: relative; overflow: hidden; padding: 72px 48px; border-radius: 24px; background: var(--dark); color: #e2e8f0; text-align: center; }
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 20%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, #000 20%, transparent 70%);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card .eyebrow { color: var(--dark-muted); }
.cta-card h2 { max-width: 780px; margin: 18px auto 16px; color: #fff; font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; line-height: 1.14; letter-spacing: -.022em; text-wrap: balance; }
.cta-card p { max-width: 680px; margin: 0 auto; color: var(--dark-muted); font-size: 17px; }
.cta-card .hero-actions { margin-top: 34px; }
.cta-card .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.cta-card .btn-secondary:hover { border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand { margin-bottom: 18px; }
.footer-tagline { max-width: 380px; margin: 0 0 14px; color: var(--text); }
.site-footer .muted { color: var(--faint); font-size: 13px; }
.site-footer h4 { margin: 4px 0 14px; color: var(--faint); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.site-footer a:not(.brand) { display: block; margin: 10px 0; color: var(--text); transition: color .15s ease; }
.site-footer a:not(.brand):hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* =========================================================
   Compatibility: other public pages (about, approach,
   contact, privacy, terms, model-partner, roadmap)
========================================================= */
.hero { padding: 96px 0 40px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; }
.hero p { max-width: 720px; margin-inline: auto; color: var(--muted); }
.hero-simple .hero-lead, .hero-centered .hero-lead { max-width: 760px; margin: 22px auto 0; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; text-align: left; }
.hero-title { margin: 0; font-size: clamp(36px, 5vw, 60px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.hero-title-accent { display: block; margin-top: 10px; color: var(--muted); font-size: .56em; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.hero-desc { color: var(--muted); }
.section.container { padding: 80px 0; }
.section-spacer { height: 24px; }
.section-title { margin: 0 0 18px; text-align: center; font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.section-lead { max-width: 760px; margin-inline: auto; color: var(--muted); font-size: 17px; }
.about-text, .about-justify { color: var(--text); font-size: 17px; line-height: 1.8; }
.about-text.container { max-width: 760px; }
.about-text p { margin: 0 0 1.1em; }
.about-text h2, .about-text h3 { margin: 2em 0 .6em; }
.about-text a, .about-justify a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.grid-2, .grid-3 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.card h3 { margin: 0 0 12px; font-size: 20px; font-weight: 600; line-height: 1.25; }
.card p, .card li { color: var(--muted); font-size: 15px; }
.card.big { padding: 32px; }
.hover-glow { transition: border-color .2s ease, box-shadow .2s ease; }
.hover-glow:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.contact-form { max-width: 640px; margin: 0 auto; display: grid; gap: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 182, 39, .3); }
.contact-form .btn-primary { justify-self: start; }

/* Workflow cards (roadmap) */
.workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.workflow-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.workflow-card span { color: var(--accent-ink); font-family: var(--font-mono); font-size: 12px; }
.workflow-card h3 { margin: 22px 0 8px; font-size: 19px; font-weight: 600; }
.workflow-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Roadmap timeline */
.roadmap-wrap { position: relative; max-width: 960px; margin: 72px auto 0; }
.roadmap-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); background: linear-gradient(to bottom, var(--ink) 0%, var(--ink) 34%, var(--accent) 40%, var(--line-strong) 48%, var(--line-strong) 100%); }
.roadmap-item { position: relative; display: flex; align-items: center; width: 50%; margin: 0 0 28px; }
.roadmap-item:nth-child(even) { left: 0; justify-content: flex-end; padding-right: 44px; }
.roadmap-item:nth-child(odd) { left: 50%; justify-content: flex-start; padding-left: 44px; }
.roadmap-dot { position: absolute; top: 24px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--faint); font-family: var(--font-mono); font-size: 11px; }
.roadmap-item:nth-child(even) .roadmap-dot { right: -16px; }
.roadmap-item:nth-child(odd) .roadmap-dot { left: -16px; }
.roadmap-item.done .roadmap-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.roadmap-item.current .roadmap-dot { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.roadmap-card { width: min(100%, 400px); padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.roadmap-card em { display: inline-block; margin-bottom: 10px; color: var(--faint); font-family: var(--font-mono); font-size: 11px; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.roadmap-item.done .roadmap-card em { color: var(--ink); }
.roadmap-item.current .roadmap-card { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.roadmap-item.current .roadmap-card em { color: var(--accent-ink); }
.roadmap-card strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.35; }
.roadmap-card span { display: block; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .method-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-cite { left: 16px; }
  .hero-stat { right: 16px; }
  .feature-pane { grid-template-columns: 1fr; gap: 32px; }
  .pillar, .pillar.wide { grid-column: span 3; }
  .pillar.dark { grid-template-columns: 1fr; gap: 32px; }
  .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problem-item, .problem-item + .problem-item { padding: 24px 24px 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .problem-item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid > div:nth-child(3) { border-left: 0; }
  .stat-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container, .mobile-nav { width: min(100% - 32px, var(--max)); }
  .nav-actions .btn-small { display: none; }
  .section { padding: 80px 0; }
  .section.container { padding: 64px 0; }
  .section-heading { margin-bottom: 40px; }
  .section-heading p, .lead { font-size: 17px; }
  .hero-section { padding: 48px 0 56px; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 44px); }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn, .hero-actions .btn-primary, .hero-actions .btn-secondary { flex: 1 1 auto; }
  .hero-proof li { grid-template-columns: 28px minmax(0, 1fr); }
  .hero-proof li > span:last-child { grid-column: 2; }
  .hero-cite { position: relative; left: auto; bottom: auto; width: auto; margin: -24px 12px 0; }
  .hero-stat { top: 52px; right: 10px; padding: 10px 12px; }
  .hero-stat strong { font-size: 17px; }
  .pillar, .pillar.wide { grid-column: 1 / -1; padding: 24px; }
  .pillar.dark { padding: 28px 24px; }
  .db-figures { grid-template-columns: 1fr; }
  .db-figures > div + div { border-left: 0; border-top: 1px solid var(--dark-line); }
  .problem-grid, .audience-grid, .grid-2, .grid-3, .workflow-grid, .hero-split { grid-template-columns: 1fr; }
  .problem-item, .problem-item + .problem-item, .problem-item:nth-child(even) { padding: 22px 0 24px; border-left: 0; }
  .problem-item .idx { margin-bottom: 14px; }
  .audience-grid > div, .audience-grid > div:not(:nth-child(3n + 1)) { padding: 24px 0; border-left: 0; }
  .feature-tabs-wrap { justify-content: stretch; }
  .feature-rail { display: flex; width: 100%; }
  .feature-leaf { flex: 1 1 0; justify-content: center; padding: 10px 6px; font-size: 13.5px; }
  .feature-leaf-number { display: none; }
  .stat-grid > div { padding: 18px; }
  .stat-grid strong { font-size: 18px; }
  .tool-row { grid-template-columns: 32px minmax(0, 1fr); gap: 4px 8px; }
  .feature-mode-grid { grid-template-columns: 1fr; }
  .vg-struct { grid-template-columns: 1fr; }
  .pricing-grid, .pricing-grid.is-single { grid-template-columns: 1fr; }
  .price-card { padding: 24px; }
  .cta-card { padding: 52px 24px; border-radius: 18px; }
  .final-cta { padding: 72px 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .roadmap-wrap { margin-top: 48px; }
  .roadmap-line { left: 16px; }
  .roadmap-item, .roadmap-item:nth-child(even), .roadmap-item:nth-child(odd) { left: 0; width: 100%; justify-content: flex-start; padding: 0 0 0 48px; }
  .roadmap-item .roadmap-dot, .roadmap-item:nth-child(even) .roadmap-dot, .roadmap-item:nth-child(odd) .roadmap-dot { left: 0; right: auto; }
  .roadmap-card { width: 100%; }
}
