/* =================================================================
   MONOLITH — Shared Stylesheet (v3 · Monochrome / Linear)
   Near-black surfaces, greyscale ink, serif-italic accents.
   ================================================================= */

:root {
  /* surface */
  --bg:        #010102;   /* Deep Canvas */
  --surface-1: #0F1011;   /* Panel Surface */
  --surface-2: #16171A;
  --surface-3: #1D1E22;

  /* ink (greyscale) */
  --ink:    #F4F5F8;      /* Mercury White */
  --ink-2:  #C2C6CC;
  --ink-3:  #8A8F98;      /* Nordic Gray */
  --ink-4:  #595E68;
  --line:   rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.05);

  /* high-contrast white for primary actions */
  --accent:      #F4F5F8;
  --accent-soft: rgba(255, 255, 255, 0.06);
  --accent-line: rgba(255, 255, 255, 0.16);

  /* Linear Lavender — minimal chromatic accent only */
  --brand:      #5E6AD2;
  --brand-2:    #7C87E8;
  --brand-soft: rgba(94, 106, 210, 0.14);
  --brand-line: rgba(94, 106, 210, 0.45);
  --teal: var(--accent);            /* legacy alias */

  /* type */
  --sans:  'Space Grotesk', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono:  'IBM Plex Mono', monospace;
  --display: var(--sans);            /* legacy aliases */
  --cond: var(--sans);

  /* radius */
  --r-sm:   9px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-pill: 999px;

  /* shadow */
  --shadow:    0 30px 80px -32px rgba(0, 0, 0, 0.85);
  --shadow-sm: 0 14px 34px -18px rgba(0, 0, 0, 0.75);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background-color: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  background-image: radial-gradient(75% 45% at 50% -8%, rgba(255, 255, 255, 0.05), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ---------- BRAND / LOGO ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px; flex-shrink: 0; display: block;
  object-fit: cover; border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: 0.13em; color: var(--ink); }
.brand-tag { font-family: var(--mono); font-size: 9.5px; font-weight: 400; letter-spacing: 0.02em; color: var(--ink-3); margin-top: 5px; }
.brand-tag .code { color: var(--ink-4); }

/* ---------- NAV (slim, hairline) ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 17px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-2);
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: var(--ink-3);
  padding: 8px 13px; border-radius: var(--r-sm); transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--bg) !important; font-weight: 500;
  padding: 8px 16px; border-radius: var(--r-sm); transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; }

/* ---------- HEADER / HERO ---------- */
header, .hero { background: transparent; padding: 76px 24px 0; position: relative; }
.header-eyebrow, .eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px;
  opacity: 0; animation: upIn 0.6s 0.2s forwards;
}
.header-eyebrow::before, .eyebrow::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.header-h1, .hero-h1 {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(44px, 8.5vw, 88px); line-height: 1.02; letter-spacing: -0.025em;
  color: var(--ink); opacity: 0; animation: upIn 0.6s 0.4s forwards;
}
.header-h1 em, .hero-h1 em, .sec-h2 em, .cta-bar-h em, .confirm-h em, .family-q em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--ink);
}
.header-sub, .hero-sub {
  font-family: var(--sans); font-size: 17px; font-weight: 400; color: var(--ink-3);
  line-height: 1.6; margin-top: 24px; max-width: 460px;
  opacity: 0; animation: upIn 0.6s 0.6s forwards;
}
.header-divider { height: 1px; background: linear-gradient(to right, var(--line), transparent); margin-top: 52px; opacity: 0; animation: fadeIn 1s 0.9s forwards; }

/* ---------- NOTE BANNER ---------- */
.note-banner {
  background: var(--surface-1); border: 1px solid var(--line); border-left: 2px solid var(--brand);
  border-radius: var(--r-md); margin: 36px 24px 0; padding: 20px 22px; box-shadow: var(--shadow-sm);
  opacity: 0; animation: upIn 0.6s 0.8s forwards;
}
.note-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px; }
.note-text { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--ink-2); line-height: 1.6; }
.note-text strong { color: var(--ink); font-weight: 600; }
.note-text a { color: var(--ink); border-bottom: 1px solid var(--accent-line); }

/* ---------- SECTIONS ---------- */
.sec { padding: 84px 24px; }
.sec-dark, .sec-base, .sec-mid { background: transparent; }
.sec-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.sec-tag::before { content: ''; width: 16px; height: 1px; background: var(--ink-3); flex-shrink: 0; }
.sec-h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(32px, 6.5vw, 54px); line-height: 1.05; color: var(--ink); letter-spacing: -0.02em; }
.sec-intro { font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--ink-3); line-height: 1.65; margin-top: 20px; max-width: 560px; }

/* ---------- PACKAGES ---------- */
.packages { margin-top: 44px; display: flex; flex-direction: column; gap: 12px; }
.pkg { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.pkg:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.pkg.featured { border-color: var(--accent-line); background: var(--surface-2); }
.pkg.featured::before {
  content: 'RECOMMENDED'; position: absolute; top: 18px; right: 18px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: #fff;
  background: var(--brand); padding: 5px 11px; border-radius: var(--r-pill); z-index: 2;
}
.pkg-header { padding: 28px 24px 22px; border-bottom: 1px solid var(--line); cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 16px; }
.pkg-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-4); margin-bottom: 9px; }
.pkg.featured .pkg-num { color: var(--ink-3); }
.pkg-name { font-family: var(--sans); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.pkg-tagline { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-3); line-height: 1.5; }
.pkg-price-col { text-align: right; }
.pkg-price { font-family: var(--sans); font-weight: 600; font-size: 30px; color: var(--ink); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.pkg-price-note { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-top: 6px; white-space: nowrap; }
.pkg-expand { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.45s ease, padding 0.3s; }
.pkg.open .pkg-expand { max-height: 780px; padding: 22px 24px 28px; }
.pkg-includes-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 18px; }
.pkg-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.feat { display: flex; align-items: flex-start; gap: 12px; }
.feat-dot { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--ink-3); }
.feat-dot::before { content: '→'; font-family: var(--mono); font-size: 12px; }
.feat-text { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-2); line-height: 1.5; }
.feat-text strong { color: var(--ink); font-weight: 600; }
.pkg-timeline { background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.pkg-timeline-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.pkg-timeline-val { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); }
.pkg-toggle-row { display: flex; align-items: center; justify-content: center; padding: 14px 24px; border-top: 1px solid var(--line); gap: 8px; cursor: pointer; }
.pkg-toggle-text { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); transition: color 0.2s; }
.pkg:hover .pkg-toggle-text { color: var(--ink-2); }
.pkg-toggle-icon { width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-3); font-family: monospace; line-height: 1; transition: transform 0.3s, color 0.2s; }
.pkg:hover .pkg-toggle-icon { color: var(--ink); }
.pkg.open .pkg-toggle-icon { transform: rotate(45deg); }

/* ---------- ADD-ONS ---------- */
.addons { margin-top: 44px; display: flex; flex-direction: column; gap: 10px; }
.addon { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; transition: border-color 0.2s, transform 0.2s; }
.addon:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.addon-name { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 4px; }
.addon-desc { font-family: var(--sans); font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.addon-price { font-family: var(--sans); font-weight: 600; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; text-align: right; }
.addon-price span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--ink-4); margin-top: 3px; font-weight: 400; }

/* ---------- FAMILY / REBUTTAL ---------- */
.family-sec { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); margin: 0 24px; padding: 60px 32px; }
.family-q { font-family: var(--sans); font-weight: 600; font-size: clamp(30px, 7vw, 52px); line-height: 1.06; color: var(--ink); margin: 16px 0 30px; letter-spacing: -0.02em; }
.rebuttals { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.rebuttal { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.rebuttal-num { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink-3); line-height: 1; }
.rebuttal-title { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 6px; }
.rebuttal-text { font-family: var(--sans); font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.rebuttal-text strong { color: var(--ink-2); }

/* ---------- PROCESS ---------- */
.process-strip { background: transparent; padding: 84px 24px; }
.process-rows { margin-top: 40px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-1); border: 1px solid var(--line); }
.p-row { padding: 26px 24px; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; position: relative; border-bottom: 1px solid var(--line); transition: background 0.25s; }
.p-row:last-child { border-bottom: none; }
.p-row:hover { background: var(--surface-2); }
.p-n { font-family: var(--serif); font-style: italic; font-size: 32px; color: var(--ink-4); line-height: 1; transition: color 0.3s; }
.p-row:hover .p-n { color: var(--ink); }
.p-title { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 7px; }
.p-desc { font-family: var(--sans); font-size: 13px; color: var(--ink-3); line-height: 1.7; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0;
  padding: 13px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  border-radius: var(--r-sm); cursor: pointer; line-height: 1; transition: opacity 0.2s, transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent-line); opacity: 1; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- QUOTE BUILDER ---------- */
.qb { margin-top: 44px; display: flex; flex-direction: column; gap: 38px; }
.qb-step-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.qb-step-label .qb-num { font-family: var(--serif); font-style: italic; font-size: 15px; border: 1px solid var(--line); border-radius: 50%; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.qb-cards { display: flex; flex-direction: column; gap: 10px; }
.qb-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.qb-card:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.qb-card.sel { border-color: var(--ink); background: var(--surface-2); }
.qb-check { width: 20px; height: 20px; border: 1px solid var(--ink-4); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 12px; transition: all 0.2s; flex-shrink: 0; }
.qb-card.sel .qb-check { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.qb-card-name { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 3px; }
.qb-card-desc { font-family: var(--sans); font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.qb-card-price { font-family: var(--sans); font-weight: 600; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; text-align: right; }
.qb-card-price small { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; color: var(--ink-4); font-weight: 400; }

.qb-summary { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; box-shadow: var(--shadow-sm); }
.qb-summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.qb-summary-row:last-of-type { border-bottom: none; }
.qb-summary-label { font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.qb-summary-val { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.qb-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--accent-line); }
.qb-total-label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.qb-total-val { font-family: var(--sans); font-weight: 600; font-size: 36px; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.qb-total-val small { display: block; font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.06em; text-align: right; margin-top: 4px; font-weight: 400; }
.qb-recurring { font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin-top: 10px; text-align: right; }
.qb-recurring strong { color: var(--ink); }
.qb-empty { font-family: var(--sans); font-size: 14px; color: var(--ink-4); padding: 6px 0; }
.qb-currency { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); margin-bottom: 10px; overflow: hidden; }
.qb-currency button { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; padding: 7px 14px; background: transparent; color: var(--ink-3); border: none; cursor: pointer; transition: all 0.2s; }
.qb-currency button.on { background: var(--ink); color: var(--bg); }

/* ---------- FORM ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.field label .req { color: var(--ink); }
.field input, .field textarea, .field select { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); font-family: var(--sans); font-size: 14px; padding: 13px 15px; width: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { resize: vertical; min-height: 110px; }
.field-error { font-family: var(--mono); font-size: 10px; color: #E5687A; letter-spacing: 0.02em; display: none; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #E5687A; }
.form-note { font-family: var(--sans); font-size: 12px; color: var(--ink-4); line-height: 1.7; margin-top: 4px; }
.form-note a { color: var(--ink-3); border-bottom: 1px solid var(--line); }

.confirm { display: none; background: var(--surface-1); border: 1px solid var(--accent-line); border-left: 2px solid var(--brand); border-radius: var(--r-lg); padding: 36px 28px; margin-top: 8px; box-shadow: var(--shadow); }
.confirm.show { display: block; animation: upIn 0.5s forwards; }
.confirm-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.confirm-h { font-family: var(--sans); font-weight: 600; font-size: clamp(30px, 7vw, 44px); line-height: 1.05; color: var(--ink); letter-spacing: -0.02em; }
.confirm-text { font-family: var(--sans); font-size: 15px; color: var(--ink-2); line-height: 1.7; margin-top: 14px; max-width: 460px; }
.confirm-ref { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 16px; background: var(--surface-2); }
.confirm-summary { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- PAYMENTS ---------- */
.pay-cols { margin-top: 44px; display: flex; flex-direction: column; gap: 38px; }
.pay-group-title { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 4px; }
.pay-group-sub { font-family: var(--sans); font-size: 13px; color: var(--ink-3); line-height: 1.7; margin-bottom: 22px; max-width: 520px; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; transition: border-color 0.2s; }
.pay-method:hover { border-color: var(--accent-line); }
.pay-method-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.pay-method-name { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.pay-method-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.pay-method-detail { font-family: var(--sans); font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.pay-method-detail strong { color: var(--ink); font-family: var(--mono); font-size: 12px; }
.pay-method-handle { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 13px; }

/* ---------- POLICY ---------- */
.policy { max-width: 740px; }
.policy .meta { font-family: var(--mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.04em; margin: 18px 0 32px; }
.policy h2 { font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 40px 0 12px; display: flex; align-items: center; gap: 12px; }
.policy h2 .h2-num { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-3); }
.policy h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); margin: 22px 0 8px; }
.policy p { font-family: var(--sans); font-size: 14px; color: var(--ink-2); line-height: 1.85; margin-bottom: 14px; }
.policy ul { margin: 0 0 16px 0; padding-left: 0; list-style: none; }
.policy li { font-family: var(--sans); font-size: 14px; color: var(--ink-2); line-height: 1.75; padding-left: 20px; position: relative; margin-bottom: 9px; }
.policy li::before { content: '—'; position: absolute; left: 0; color: var(--ink-4); }
.policy a { color: var(--ink); border-bottom: 1px solid var(--accent-line); }
.policy strong { color: var(--ink); }
.disclaimer { background: var(--surface-2); border: 1px solid var(--line); border-left: 2px solid var(--brand); border-radius: var(--r-md); padding: 16px 18px; margin: 8px 0 28px; font-family: var(--sans); font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.disclaimer strong { color: var(--ink); }

/* ---------- CTA ---------- */
.cta-bar { margin: 0 24px 76px; padding: 56px 36px; border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; position: relative; overflow: hidden; }
.cta-bar::after { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%); top: -160px; right: -80px; pointer-events: none; }
.cta-bar-h { font-family: var(--sans); font-weight: 600; font-size: clamp(32px, 7vw, 54px); line-height: 1.05; color: var(--ink); letter-spacing: -0.025em; position: relative; }
.cta-bar-sub { font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--ink-3); line-height: 1.6; position: relative; }
.cta-bar-contacts { display: flex; flex-direction: column; gap: 8px; position: relative; }
.cta-contact-row { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 16px; transition: border-color 0.2s, background 0.2s; }
.cta-contact-row:hover { border-color: var(--accent-line); background: var(--surface-3); }
.cta-contact-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); width: 44px; flex-shrink: 0; }
.cta-contact-val { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink); }

/* ---------- FOOTER ---------- */
footer { background: transparent; border-top: 1px solid var(--line); margin-top: 8px; padding: 40px 24px; display: flex; flex-direction: column; gap: 18px; }
.brand-foot .brand-name { font-size: 16px; }
.brand-foot .brand-mark { width: 32px; height: 32px; }
.f-links { display: flex; gap: 4px; flex-wrap: wrap; }
.f-links a { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--ink-3); padding: 7px 11px; border-radius: var(--r-sm); transition: color 0.2s; }
.f-links a:hover { color: var(--ink); }
.f-copy { font-family: var(--mono); font-size: 10px; color: var(--ink-4); letter-spacing: 0.03em; }

/* ---------- SHOWCASE (framed screenshots) ---------- */
.folio-grid { margin-top: 44px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.folio-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.folio-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.folio-preview { height: 168px; position: relative; overflow: hidden; display: flex; align-items: flex-start; padding: 16px; border-bottom: 1px solid var(--line); }
.folio-preview .folio-bg,
.folio-preview .folio-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: opacity 0.4s, transform 0.4s; }
.folio-preview .folio-bg-img { z-index: 0; }
.folio-card:hover .folio-preview .folio-bg,
.folio-card:hover .folio-preview .folio-bg-img { opacity: 1; transform: scale(1.03); }
.folio-preview::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(1,1,2,0.08), rgba(1,1,2,0.48)); pointer-events: none; }
.folio-badge { position: relative; z-index: 1; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill); background: rgba(8,9,10,0.55); border: 1px solid rgba(255,255,255,0.18); color: #fff; backdrop-filter: blur(8px); display: inline-flex; align-items: center; gap: 7px; }
.folio-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.folio-badge.live { color: #fff; }
.folio-badge.dev { color: rgba(255,255,255,0.85); }
.folio-badge.shelved { color: rgba(255,255,255,0.6); }
.folio-body { padding: 22px; }
.folio-name { font-family: var(--sans); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); line-height: 1; margin-bottom: 10px; }
.folio-desc { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-3); line-height: 1.6; margin-bottom: 16px; }
.folio-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.folio-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink-3); }
.folio-link { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.folio-link:hover { gap: 10px; }
.folio-link .arrow { display: inline-block; transition: transform 0.2s; }
.folio-link:hover .arrow { transform: translateX(2px); }

/* ---------- REVEAL ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.rv.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }
@keyframes upIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- DESKTOP ---------- */
@media (min-width: 720px) {
  .nav { padding: 18px 48px; }
  header, .hero { padding: 104px 48px 0; }
  .note-banner { margin: 40px 48px 0; }
  .sec { padding: 120px 48px; }
  .family-sec { margin: 0 48px; padding: 88px 48px; }
  .process-strip { padding: 120px 48px; }
  .cta-bar { margin: 0 48px 88px; padding: 72px 56px; flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .cta-bar-left { max-width: 420px; }
  .cta-bar-contacts { min-width: 320px; }
  footer { padding: 48px; flex-direction: row; justify-content: space-between; align-items: center; }
  .folio-grid { grid-template-columns: 1fr 1fr; }
  .rebuttals { grid-template-columns: 1fr 1fr; display: grid; }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .pay-cols.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .qb.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
  .qb.two-col .qb-left { display: flex; flex-direction: column; gap: 38px; }
  .qb.two-col .qb-right { position: sticky; top: 96px; }
}

@media (max-width: 600px) {
  .brand-tag { display: none; }
  .nav-links { gap: 2px; }
  .nav-links a:not(.nav-cta) { display: none; }
}


/* ---------- HERO GRID (one subtle signature texture) ---------- */
header::before, .hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 75% at 50% 0%, #000 25%, transparent 72%);
  mask-image: radial-gradient(120% 75% at 50% 0%, #000 25%, transparent 72%);
  opacity: 0.6;
}

/* ---------- LIVE DEMO (hand-coded state machine) ---------- */
.demo { margin-top: 44px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.demo-steps { display: flex; flex-direction: column; gap: 8px; }
.demo-step { text-align: left; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 3px; align-items: center; position: relative; overflow: hidden; transition: border-color .25s, background .25s; font: inherit; }
.demo-step:hover { border-color: var(--accent-line); }
.demo-step.active { border-color: var(--brand-line); background: var(--surface-2); }
.demo-step.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--brand); }
.demo-step-n { font-family: var(--mono); font-size: 11px; color: var(--ink-4); grid-row: 1 / span 2; }
.demo-step.active .demo-step-n { color: var(--brand-2); }
.demo-step-label { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); }
.demo-step-desc { font-family: var(--sans); font-size: 12px; color: var(--ink-3); grid-column: 2; }

.demo-stage { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.demo-terminal { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.demo-term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); }
.demo-term-title { font-family: var(--mono); font-size: 10px; color: var(--ink-4); margin-left: 8px; letter-spacing: 0.06em; }
.demo-term-body { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); padding: 14px; min-height: 20px; white-space: nowrap; overflow: hidden; }
.demo-prompt { color: var(--brand-2); margin-right: 8px; }
.demo-cmd { color: var(--ink); }
.demo-caret { display: inline-block; width: 7px; height: 14px; background: var(--brand); margin-left: 1px; vertical-align: -2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.demo-pipe { width: 100%; height: 46px; display: block; }
.demo-track { stroke: var(--line); stroke-width: 2; }
.demo-fill { stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 280; stroke-dashoffset: 280; transition: stroke-dashoffset 0.7s cubic-bezier(0.4,0,0.2,1); }
.demo-node { fill: var(--surface-3); stroke: var(--line); stroke-width: 2; transition: fill 0.4s, stroke 0.4s; }
.demo-node.reached { fill: var(--brand); stroke: var(--brand-line); }

.demo-preview { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; min-height: 210px; overflow: hidden; }
.dp-nav, .dp-hero, .dp-grid { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
[data-appear].on { opacity: 1; transform: none; }
.dp-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dp-logo { width: 64px; height: 12px; border-radius: 4px; background: var(--ink); }
.dp-links { display: flex; gap: 8px; }
.dp-links i { width: 24px; height: 8px; border-radius: 4px; background: var(--surface-3); }
.dp-hero { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.dp-h1 { height: 15px; width: 78%; border-radius: 5px; background: var(--ink); }
.dp-h1.short { width: 52%; }
.dp-sub { height: 9px; width: 64%; border-radius: 4px; background: var(--ink-4); margin-top: 3px; }
.dp-btn { height: 26px; width: 92px; border-radius: 8px; background: var(--brand); margin-top: 8px; }
.dp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dp-card { height: 52px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line); }
.dp-live { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink); background: var(--bg); border: 1px solid var(--brand-line); border-radius: var(--r-pill); padding: 6px 11px; opacity: 0; transform: scale(0.92); transition: opacity .4s, transform .4s; }
.dp-live.on { opacity: 1; transform: none; }
.dp-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 9px var(--brand); }

@media (min-width: 720px) {
  .demo { grid-template-columns: 0.85fr 1.15fr; align-items: start; gap: 16px; }
}


/* ---------- STAT STRIP ---------- */
.stats { margin: 36px 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--bg); padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.stat-n { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--ink); display: flex; align-items: baseline; gap: 5px; }
.stat-n span { font-family: var(--mono); font-style: normal; font-size: 13px; color: var(--ink-3); letter-spacing: 0.03em; }
.stat-l { font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* ---------- BENTO ---------- */
.bento { margin-top: 44px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.bento-cell { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px; transition: border-color .25s, transform .25s; }
.bento-cell:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.bento-icon { width: 28px; height: 28px; color: var(--brand-2); margin-bottom: 16px; }
.bento-icon svg { width: 100%; height: 100%; display: block; }
.bento-title { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; }
.bento-desc { font-family: var(--sans); font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.bento-cell.big .bento-title { font-size: 21px; }

/* ---------- VALUE CHART ---------- */
.chart-card { margin-top: 44px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.chart-kpi-n { font-family: var(--serif); font-style: italic; font-size: 52px; line-height: 0.95; color: var(--brand-2); }
.chart-kpi-l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.chart-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.chart-toggle button { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; padding: 9px 16px; background: transparent; color: var(--ink-3); border: none; cursor: pointer; transition: all .2s; }
.chart-toggle button.on { background: var(--ink); color: var(--bg); }
.chart-plot { position: relative; width: 100%; aspect-ratio: 640 / 280; }
.chart-plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.grid { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.area { fill: url(#fillGrad); stroke: none; }
.line-base { fill: none; stroke: var(--ink-4); stroke-width: 1.6; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.line-mono { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tracker { stroke: var(--accent-line); stroke-width: 1; vector-effect: non-scaling-stroke; transition: opacity .15s; }
.track-dot { fill: var(--brand); stroke: var(--bg); stroke-width: 2; transition: opacity .15s; }
.chart-tip { position: absolute; transform: translate(-50%, -135%); background: var(--bg); border: 1px solid var(--brand-line); border-radius: var(--r-sm); padding: 6px 10px; font-family: var(--mono); font-size: 11px; color: var(--ink); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 3; }
.chart-x { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--ink-4); }
.chart-legend { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.lg { font-family: var(--mono); font-size: 11px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.lg::before { content: ''; width: 14px; height: 2px; border-radius: 2px; }
.lg-mono::before { background: var(--brand); }
.lg-base::before { background: var(--ink-4); }
.chart-note { font-family: var(--sans); font-size: 12px; color: var(--ink-4); font-style: italic; }

/* ---------- RESPONSIVE DEMO ---------- */
.rd { margin-top: 44px; }
.rd-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; margin-bottom: 20px; }
.rd-toggle button { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; padding: 9px 16px; background: transparent; color: var(--ink-3); border: none; cursor: pointer; transition: all .2s; }
.rd-toggle button.on { background: var(--ink); color: var(--bg); }
.rd-stage { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 20px; display: flex; justify-content: center; }
.rd-frame { width: 100%; max-width: 100%; container-type: inline-size; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); overflow: hidden; transition: max-width .55s cubic-bezier(0.4,0,0.2,1); }
.rd-frame.is-tablet { max-width: 540px; }
.rd-frame.is-mobile { max-width: 300px; }
.rd-site { padding: 16px; }
.rd-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rd-logo { width: 58px; height: 11px; border-radius: 4px; background: var(--ink); }
.rd-menu { display: flex; gap: 8px; }
.rd-menu i { width: 22px; height: 7px; border-radius: 3px; background: var(--surface-3); transition: width .3s; }
.rd-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.rd-htext { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rd-h1 { height: 13px; width: 85%; border-radius: 4px; background: var(--ink); }
.rd-h1.s { width: 58%; }
.rd-p { height: 8px; width: 70%; border-radius: 3px; background: var(--ink-4); }
.rd-cta { height: 22px; width: 84px; border-radius: 7px; background: var(--brand); margin-top: 6px; }
.rd-art { width: 124px; height: 88px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line); flex-shrink: 0; }
.rd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rd-card { height: 50px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line); }
@container (max-width: 520px) {
  .rd-hero { flex-direction: column; align-items: stretch; }
  .rd-art { width: 100%; height: 70px; }
  .rd-cards { grid-template-columns: repeat(2, 1fr); }
  .rd-menu i:nth-child(n+3) { display: none; }
}
@container (max-width: 340px) {
  .rd-cards { grid-template-columns: 1fr; }
  .rd-menu i:nth-child(n+2) { display: none; }
  .rd-menu i:first-child { width: 16px; }
  .rd-h1 { width: 92%; }
}

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-1); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; text-align: left; background: transparent; border: none; cursor: pointer; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--ink); transition: color .2s; }
.faq-q:hover { color: var(--brand-2); }
.faq-ic { font-family: var(--mono); font-size: 18px; color: var(--ink-3); transition: transform .3s, color .2s; flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-ic { transform: rotate(45deg); color: var(--brand-2); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 360px; }
.faq-a p { font-family: var(--sans); font-size: 14px; color: var(--ink-3); line-height: 1.75; padding: 0 24px 24px; max-width: 660px; }

@media (min-width: 720px) {
  .stats { margin: 44px 48px 0; grid-template-columns: repeat(4, 1fr); }
  .stat-n { font-size: 46px; }
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .bento-cell.big { grid-column: 1 / 3; grid-row: 1 / 3; }
  .bento-cell.wide { grid-column: 2 / 4; }
}