/* ============================================================
   ConCal Landing v2 — drafting-grade reskin
   Dual theme · dark default · 1000px container · 8px grid
   ============================================================ */

:root {
  /* dark surface ladder */
  --bg:        #0f1117;
  --surface:   #1a1d27;
  --surface2:  #22263a;
  --surface3:  #2a2e42;
  --text:      #e2e4f0;
  --text2:     #8b90b0;
  --text3:     #555a7a;
  --border:    #2e3250;
  --border2:   #3a3f5c;
  --accent:    #4f7cff;
  --accent2:   #3a62e0;
  --green:     #2dd4bf;
  --orange:    #f97316;
  --red:       #f43f5e;
  --accent-wash:  rgba(79,124,255,0.10);
  --accent-wash2: rgba(79,124,255,0.18);
  --accent-line:  rgba(79,124,255,0.32);
  --green-wash:   rgba(45,212,191,0.10);
  --green-line:   rgba(45,212,191,0.30);
  --orange-wash:  rgba(249,115,22,0.10);
  --orange-line:  rgba(249,115,22,0.32);
  --red-wash:     rgba(244,63,94,0.10);
  --red-line:     rgba(244,63,94,0.32);
  --grid-line: rgba(139,144,176,0.07);
  --nav-bg:    rgba(15,17,23,0.82);
  --frame-shadow: 0 32px 80px -32px rgba(0,0,0,0.65), 0 8px 24px -12px rgba(0,0,0,0.5);
  --card-shadow: none;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1000px;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg:        #f5f6fa;
  --surface:   #ffffff;
  --surface2:  #f0f1f5;
  --surface3:  #e4e6f0;
  --text:      #1a1d27;
  --text2:     #4a4f6a;
  --text3:     #9096b0;
  --border:    #e0e2ed;
  --border2:   #c8cad8;
  --accent:    #3a62e0;
  --accent2:   #2f50c4;
  --green:     #0f9d8c;
  --accent-wash:  rgba(58,98,224,0.07);
  --accent-wash2: rgba(58,98,224,0.13);
  --accent-line:  rgba(58,98,224,0.26);
  --green-wash:   rgba(15,157,140,0.09);
  --green-line:   rgba(15,157,140,0.28);
  --orange-wash:  rgba(234,88,12,0.08);
  --orange-line:  rgba(234,88,12,0.30);
  --red-wash:     rgba(225,29,72,0.07);
  --red-line:     rgba(225,29,72,0.28);
  --grid-line: rgba(26,29,39,0.05);
  --nav-bg:    rgba(245,246,250,0.85);
  --frame-shadow: 0 32px 72px -28px rgba(22,32,72,0.28), 0 8px 24px -12px rgba(22,32,72,0.14);
  --card-shadow: 0 2px 8px -4px rgba(22,32,72,0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background 0.2s ease, color 0.2s ease;
  /* Belt-and-suspenders against horizontal scroll on small screens — keeps a
     stray wide child (ticker, scaled mock) from stretching the fixed nav. */
  max-width: 100%; overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--accent-wash2); }

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

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow .tick-l { width: 16px; height: 1px; background: var(--accent-line); }
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; font-weight: 600; font-family: var(--font); text-decoration: none;
  cursor: pointer; border: none; white-space: nowrap; font-size: 14px;
  padding: 0 20px; height: 44px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 7px; }

/* ============================================================
   NAV — fixed, 56px
   ============================================================ */
.nav-spacer { height: 56px; }
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 56px;
  background: var(--nav-bg); backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topnav .wrap { display: flex; align-items: center; gap: 24px; height: 100%; }
.wordmark {
  font-weight: 800; letter-spacing: -0.5px; font-size: 18px; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.wordmark .cal { color: var(--accent); }
.wordmark svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: 8px; }
.nav-links a {
  color: var(--text2); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* resources dropdown */
.nav-menu { position: relative; display: flex; align-items: center; }
.nav-menu-trigger {
  display: inline-flex; align-items: center; gap: 5px; padding: 0;
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--text2); font-size: 13.5px; font-weight: 500; transition: color 0.15s;
}
.nav-menu-trigger:hover, .nav-menu.open .nav-menu-trigger { color: var(--text); }
.nav-menu-trigger .chev { display: inline-flex; transition: transform 0.18s ease; }
.nav-menu-trigger .chev svg { width: 13px; height: 13px; }
.nav-menu.open .nav-menu-trigger .chev { transform: rotate(180deg); }
.nav-menu-panel {
  position: absolute; top: calc(100% + 12px); left: -14px; z-index: 60; width: 304px;
  background: var(--surface); border: 1px solid var(--border2); border-radius: 12px;
  padding: 6px; box-shadow: var(--frame-shadow, 0 24px 56px -20px rgba(0,0,0,0.5));
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-menu.open .nav-menu-panel { opacity: 1; visibility: visible; transform: none; }
.nav-menu-panel::before {
  content: ""; position: absolute; top: -5px; left: 30px; width: 10px; height: 10px;
  background: var(--surface); border-left: 1px solid var(--border2); border-top: 1px solid var(--border2);
  transform: rotate(45deg);
}
.nav-menu-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 9px; text-decoration: none; transition: background 0.13s; }
.nav-menu-item:hover { background: var(--surface2); }
.nmi-ic {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  color: var(--accent); background: var(--accent-wash); border: 1px solid var(--accent-line);
}
.nmi-ic svg { width: 17px; height: 17px; }
.nmi-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nmi-t { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.nmi-tag {
  font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: 0.8px;
  color: var(--green); background: var(--green-wash); border: 1px solid var(--green-line);
  border-radius: 5px; padding: 1px 5px;
}
.nmi-s { font-size: 12px; color: var(--text2); line-height: 1.35; }

/* sign-in button */
.nav-signin { gap: 7px; }
.nav-signin svg { width: 14px; height: 14px; }

/* unit segmented pill */
.seg {
  display: inline-flex; align-items: center; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 20px; padding: 2px; gap: 2px;
}
.seg button {
  border: none; background: transparent; color: var(--text2); font-family: var(--font);
  font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
  border-radius: 16px; padding: 4px 10px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.seg button.on { background: var(--accent); color: #fff; }
.seg button:not(.on):hover { color: var(--text); }

/* theme switch */
.theme-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.theme-btn:hover { color: var(--text); border-color: var(--border2); background: var(--surface2); }
.theme-btn svg { width: 15px; height: 15px; }

/* ============================================================
   SECTION FRAME — dashed rules + corner crosshairs
   ============================================================ */
.sec { position: relative; }
.sec-rule { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; height: 0; }
.sec-rule i {
  display: block; border-top: 1px dashed var(--border2); height: 0;
  position: relative;
}
.xh { position: absolute; top: -5.5px; width: 11px; height: 11px; pointer-events: none; color: var(--text3); }
.xh.l { left: 26.5px; }
.xh.r { right: 26.5px; }
.xh::before, .xh::after { content: ''; position: absolute; background: currentColor; }
.xh::before { left: 0; right: 0; top: 5px; height: 1px; }
.xh::after { top: 0; bottom: 0; left: 5px; width: 1px; }
html[data-xh="off"] .xh { display: none; }

/* drafting sheet tag riding the dashed rule */
.sec-rule .tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--text3); background: var(--bg);
  border: 1px dashed var(--border2); border-radius: 4px; padding: 3px 12px;
  white-space: nowrap;
}

.sec-pad { padding: 88px 0; }
.sec-head { max-width: 620px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
h2.sec-title {
  font-size: 36px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.08;
  margin: 16px 0 0; color: var(--text); text-wrap: balance;
}
h2.sec-title .acc { color: var(--accent); }
.sec-sub { font-size: 16px; line-height: 1.6; color: var(--text2); margin: 14px 0 0; text-wrap: pretty; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 80px 0 72px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
}
html[data-grid="off"] .hero-grid-bg { display: none; }
.hero-copy { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
h1.headline {
  font-size: 56px; font-weight: 800; letter-spacing: -2px; line-height: 1.04;
  margin: 20px 0 0; color: var(--text); text-wrap: balance;
}
h1.headline .acc { color: var(--accent); }
.hero-sub {
  font-size: 17px; line-height: 1.6; color: var(--text2);
  max-width: 540px; margin: 20px auto 0; text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-fine {
  display: flex; gap: 20px; justify-content: center; align-items: center;
  margin-top: 20px; font-size: 12.5px; color: var(--text3); font-weight: 500; flex-wrap: wrap;
}
.hero-fine span { display: inline-flex; align-items: center; gap: 6px; }
.hero-fine svg { width: 13px; height: 13px; color: var(--green); }

/* hero mock frame */
.hero-frame-hold { position: relative; margin-top: 56px; }
.hero-frame-hold::before {
  content: ''; position: absolute; inset: -48px -64px -64px; z-index: 0; pointer-events: none;
  background: radial-gradient(52% 56% at 50% 42%, var(--accent-wash2), transparent 72%);
  filter: blur(28px);
}
.hero-frame {
  position: relative; z-index: 1; border: 1px solid var(--border2); border-radius: 12px;
  overflow: hidden; background: #fff; box-shadow: var(--frame-shadow);
  cursor: crosshair;
}
.hero-frame-bar {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.hero-frame-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface3); }
.hero-frame-bar .url {
  margin: 0 auto; font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--text3); background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 12px; display: inline-flex; align-items: center; gap: 6px;
}
.hero-frame-bar .url svg { width: 10px; height: 10px; color: var(--green); }
.hero-frame-bar .live {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.6px;
  color: var(--green); display: inline-flex; align-items: center; gap: 6px;
}
.hero-frame-bar .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* cursor coordinate micro-badge */
.coord-badge {
  position: absolute; z-index: 8; pointer-events: none;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
  color: #4f7cff; background: rgba(13,16,28,0.88); border: 1px solid rgba(79,124,255,0.45);
  border-radius: 6px; padding: 4px 8px; white-space: nowrap;
  transform: translate(14px, 14px); opacity: 0;
  transition: opacity 0.12s ease;
  display: flex; align-items: center; gap: 7px;
}
.coord-badge b { color: #e2e4f0; font-weight: 600; }
.coord-badge.on { opacity: 1; }

/* ============================================================
   SPLIT SLIDER — napkin vs app
   ============================================================ */
.cmp { position: relative; border: 1px solid var(--border2); border-radius: 12px;
  overflow: hidden; box-shadow: var(--frame-shadow); aspect-ratio: 936 / 540;
  user-select: none; touch-action: pan-y; }
.cmp-pane { position: absolute; inset: 0; }
.cmp-old img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-old.cmp-guess svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmp-old::after { content: ''; position: absolute; inset: 0; background: rgba(10,8,4,0.10); }
.cmp-old.cmp-guess::after { display: none; }
html[data-theme="light"] .cmp-old::after { background: rgba(10,8,4,0.02); }

.cmp-new { background:
    linear-gradient(rgba(47,107,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,107,255,0.035) 1px, transparent 1px),
    #eef2f9;
  background-size: 32px 32px, 32px 32px, auto;
  display: flex; align-items: center; justify-content: center; }
.cmp-app {
  width: 86%; border-radius: 8px; overflow: hidden;
  border: 1px solid #d8deea; background: #fff;
  box-shadow: 0 24px 56px -24px rgba(22,32,72,0.4);
}
.cmp-tag {
  position: absolute; top: 16px; z-index: 6;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 6px 12px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 8px;
}
.cmp-tag.old { left: 16px; background: rgba(13,12,8,0.78); color: #e8e2d4; border: 1px solid rgba(232,226,212,0.25); backdrop-filter: blur(4px); }
.cmp-tag.new { right: 16px; background: rgba(13,16,28,0.85); color: #9db4ff; border: 1px solid rgba(79,124,255,0.4); }
.cmp-tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.cmp-handle {
  position: absolute; top: 0; bottom: 0; width: 0; z-index: 7; cursor: ew-resize;
}
.cmp-handle::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
  background: #fff; box-shadow: 0 0 0 1px rgba(13,16,28,0.25), 0 0 16px rgba(0,0,0,0.35);
}
.cmp-knob {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  border: 1px solid #d8deea; box-shadow: 0 8px 20px -6px rgba(13,16,28,0.5);
  display: flex; align-items: center; justify-content: center; color: #1c2536;
}
.cmp-knob svg { width: 16px; height: 16px; }
.cmp:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cmp-hint {
  text-align: center; margin-top: 16px; font-family: var(--mono);
  font-size: 11px; color: var(--text3); letter-spacing: 0.4px;
}

/* ============================================================
   PROFIT LEAKS
   ============================================================ */
.leak-grid { display: grid; grid-template-columns: 0.96fr 1.04fr; gap: 24px; align-items: stretch; }

/* the audit sheet */
.sheet {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--card-shadow); position: relative;
}
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sheet-head .t { font-size: 13px; font-weight: 700; letter-spacing: 0.4px; color: var(--text); }
.sheet-head .n { font-family: var(--mono); font-size: 10.5px; color: var(--text3); }
.sheet-draw {
  position: relative; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); overflow: hidden;
}
.sheet-draw svg { display: block; width: 100%; height: auto; }
.sheet-key { display: flex; gap: 16px; font-size: 11px; font-weight: 600; color: var(--text2); }
.sheet-key span { display: inline-flex; align-items: center; gap: 6px; }
.sheet-key i { width: 14px; height: 0; border-top: 2px solid; display: inline-block; }
.sheet-key .k-bad i { border-color: var(--red); border-top-style: dashed; }
.sheet-key .k-good i { border-color: var(--accent); }

.sheet-rows { display: flex; flex-direction: column; }
.sheet-row {
  display: flex; align-items: baseline; gap: 10px; padding: 10px 0;
  font-size: 13px; border-top: 1px dashed var(--border);
}
.sheet-row .k { color: var(--text2); font-weight: 500; white-space: nowrap; }
.sheet-row .lead { flex: 1; border-bottom: 1px dotted var(--border2); transform: translateY(-3px); }
.sheet-row .v { font-family: var(--mono); font-weight: 600; color: var(--text); font-size: 12.5px; white-space: nowrap; }
.sheet-row .v.bad { color: var(--orange); }
.sheet-total {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--border2); padding-top: 14px; margin-top: 2px;
}
.sheet-total .k { font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text3); }
.sheet-total .v { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; color: var(--green); font-variant-numeric: tabular-nums; }
.sheet-total .v small { font-size: 13px; font-weight: 600; color: var(--text3); letter-spacing: 0; }

/* leak cards */
.leak-cards { display: flex; flex-direction: column; gap: 16px; }
.leak-card {
  flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; display: flex; gap: 16px; box-shadow: var(--card-shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.leak-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.leak-body { flex: 1; min-width: 0; }
.leak-mini {
  flex: 0 0 88px; width: 88px; height: 88px; align-self: center;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg); overflow: hidden;
}
.leak-mini svg { display: block; width: 100%; height: 100%; }
.leak-num {
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent-line); background: var(--accent-wash);
  border-radius: 6px; width: 32px; height: 32px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.leak-card h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.2px; margin: 5px 0 6px; color: var(--text); }
.leak-card p { font-size: 13.5px; line-height: 1.55; color: var(--text2); margin: 0; }
.leak-card .fix {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--green);
}
.leak-card .fix svg { width: 12px; height: 12px; }

/* ============================================================
   SHAPE LIBRARY
   ============================================================ */
.shapes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shape-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 12px 14px; box-shadow: var(--card-shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.shape-tile:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.shape-tile .draw {
  position: relative; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); overflow: hidden; margin-bottom: 12px;
}
.shape-tile .draw svg { display: block; width: 100%; height: auto; }
.shape-tile .idx {
  position: absolute; top: 6px; right: 8px; font-family: var(--mono);
  font-size: 9px; font-weight: 600; letter-spacing: 1px; color: var(--text3);
}
.shape-tile .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px; }
.shape-tile .nm { font-size: 13px; font-weight: 700; letter-spacing: -0.1px; color: var(--text); }
.shape-tile .cy { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--green); white-space: nowrap; }

/* ============================================================
   FEATURES
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; box-shadow: var(--card-shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feat:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.feat-ico {
  width: 36px; height: 36px; border-radius: 8px; background: var(--accent-wash);
  border: 1px solid var(--accent-line); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feat-ico svg { width: 18px; height: 18px; }
.feat h3 { font-size: 14.5px; font-weight: 700; letter-spacing: -0.2px; margin: 0 0 6px; color: var(--text); }
.feat p { font-size: 13px; line-height: 1.55; color: var(--text2); margin: 0; }

/* ============================================================
   CTA + FOOTER
   ============================================================ */
.cta-card {
  position: relative; background: var(--surface); border: 1px solid var(--border2);
  border-radius: 12px; padding: 56px 32px; text-align: center; overflow: hidden;
  box-shadow: var(--card-shadow);
}
.cta-card .corner { position: absolute; width: 11px; height: 11px; color: var(--text3); }
.cta-bp {
  position: absolute; right: -24px; bottom: -36px; width: 380px; height: auto;
  opacity: 0.5; pointer-events: none;
}
html[data-theme="light"] .cta-bp { opacity: 0.35; }
.cta-card .corner::before, .cta-card .corner::after { content: ''; position: absolute; background: currentColor; }
.cta-card .corner::before { left: 0; right: 0; top: 5px; height: 1px; }
.cta-card .corner::after { top: 0; bottom: 0; left: 5px; width: 1px; }
.cta-card .c-tl { top: 10px; left: 10px; } .cta-card .c-tr { top: 10px; right: 10px; }
.cta-card .c-bl { bottom: 10px; left: 10px; } .cta-card .c-br { bottom: 10px; right: 10px; }
.cta-card h2 { font-size: 34px; font-weight: 800; letter-spacing: -1.2px; margin: 0 0 10px; color: var(--text); }
.cta-card h2 .acc { color: var(--accent); }
.cta-card p { font-size: 15px; color: var(--text2); margin: 0 auto 28px; max-width: 440px; line-height: 1.55; }
.cta-card .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-card .fine { margin: 20px 0 0; font-size: 12px; color: var(--text3); }

.footer { border-top: 1px solid var(--border); padding: 32px 0 40px; }
.footer .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .wordmark { font-size: 15px; }
.foot-links { display: flex; gap: 20px; margin-left: auto; }
.foot-links a { font-size: 13px; color: var(--text2); text-decoration: none; transition: color 0.15s; }
.foot-links a:hover { color: var(--text); }
.foot-copy { width: 100%; font-family: var(--mono); font-size: 11px; color: var(--text3); margin-top: 8px; }

/* ---------- reveal: gating removed — .rv always visible ---------- */
.rv { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-signin span, .nav-signin { font-size: 0; }
  .nav-signin svg { width: 16px; height: 16px; }
  .nav-signin { gap: 0; padding: 0 12px; }
  h1.headline { font-size: 42px; letter-spacing: -1.4px; }
  h2.sec-title { font-size: 30px; }
  .leak-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .shapes-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-pad { padding: 64px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  /* footer links: drop to their own full-width row and wrap instead of overflowing */
  .foot-links { margin-left: 0; flex-wrap: wrap; gap: 12px 18px; width: 100%; }
  .xh.l { left: 14.5px; } .xh.r { right: 14.5px; }
  .feat-grid { grid-template-columns: 1fr; }
  .shapes-grid { grid-template-columns: 1fr; }
  .leak-mini { display: none; }
  .cta-bp { display: none; }
  .seg { display: none; }
  h1.headline { font-size: 34px; }
  .cmp { aspect-ratio: 4 / 3; }
}
