/* ===========================================================
   OpsMind — public site
   Design tokens derived from the product UI
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  /* surfaces — warm paper neutrals */
  --bg:            #FAF8F3;
  --bg-2:          #F2EFE6;
  --bg-tint:       #F0EEFB;
  --surface:       #FFFFFF;
  --inset:         #FBFAF6;
  --border:        #E8E3D8;
  --border-2:      #F0ECE2;

  /* ink — warm near-black */
  --ink:           #1A1813;
  --ink-2:         #58544B;
  --ink-3:         #9C968A;
  --ink-on-dark:   #F6F4EE;

  /* brand accents (from product cards) */
  --indigo:        #4F46E5;
  --indigo-700:    #4338CA;
  --indigo-50:     #EEF1FE;
  --indigo-100:    #E0E5FC;
  --violet:        #7C3AED;
  --blue:          #2563EB;
  --green:         #15A06A;
  --green-600:     #0E8A5A;
  --amber:         #D97706;
  --marigold:      #E8A317;
  --red:           #DC2626;

  /* gradients */
  --grad-indigo: linear-gradient(140deg, #6366F1 0%, #4F46E5 100%);
  --grad-violet: linear-gradient(140deg, #8B5CF6 0%, #7C3AED 100%);
  --grad-blue:   linear-gradient(140deg, #3B82F6 0%, #2563EB 100%);
  --grad-green:  linear-gradient(140deg, #19B377 0%, #0E8A5A 100%);

  /* soft, warm, diffuse shadows */
  --shadow-sm:  0 1px 2px rgba(40,34,20,.04), 0 1px 3px rgba(40,34,20,.05);
  --shadow-md:  0 6px 18px -6px rgba(40,34,20,.10), 0 2px 6px -2px rgba(40,34,20,.06);
  --shadow-lg:  0 30px 70px -28px rgba(40,34,20,.22), 0 10px 30px -16px rgba(40,34,20,.12);
  --shadow-xl:  0 60px 120px -36px rgba(35,30,20,.30), 0 20px 50px -24px rgba(35,30,20,.16);

  --radius:     16px;
  --radius-lg:  24px;
  --radius-sm:  10px;

  --maxw: 1270px;
  --gutter: clamp(20px, 5vw, 56px);

  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--indigo-100); color: var(--indigo-700); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--indigo);
}
.eyebrow.muted { color: var(--ink-3); }

h1, h2, h3 { letter-spacing: -.03em; line-height: 1.04; font-weight: 700; text-wrap: balance; }
.h-display { font-size: clamp(44px, 7vw, 88px); font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.h-section { font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
.kicker-row { display: flex; align-items: center; gap: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  padding: 13px 22px; border-radius: 999px;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: #000; }
.btn-indigo { background: var(--indigo); color: #fff; box-shadow: 0 8px 20px -8px rgba(79,70,229,.6); }
.btn-indigo:hover { transform: translateY(-1px); background: var(--indigo-700); box-shadow: 0 12px 26px -8px rgba(79,70,229,.62); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-1px); border-color: #d8d2c5; box-shadow: var(--shadow-md); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-soft { background: var(--indigo-50); color: var(--indigo-700); }
.btn-soft:hover { background: var(--indigo-100); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad-indigo);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 4px 10px -2px rgba(79,70,229,.45), inset 0 1px 0 rgba(255,255,255,.25);
  letter-spacing: 0;
}
.logo-mark.sm { width: 24px; height: 24px; border-radius: 7px; font-size: 14px; }
.lm-glyph { width: 58%; height: 58%; color: #fff; }
.logo-mark.sm .lm-glyph { width: 60%; height: 60%; }
.logo .ver { font-family: var(--mono); font-size: 11px; color: var(--ink-3); font-weight: 500; margin-left: 2px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .signin { font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 8px 4px; }
.nav-cta .signin:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); position: relative; }
.hero-glow {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.hero-glow::before {
  content: ""; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 680px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,.13), rgba(124,58,237,.06) 42%, transparent 68%);
  filter: blur(8px);
}
.hero-inner { max-width: 880px; margin-inline: auto; text-align: center; }
.hero h1 { margin: 22px 0 0; }
.hero .grad-word { background: linear-gradient(120deg, var(--indigo) 10%, var(--violet) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin: 24px auto 0; max-width: 660px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.pill {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 16px 6px 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.pill .tag { background: var(--ink); color: #fff; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; }

/* ---------- browser window frame ---------- */
.window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-bottom: 1px solid var(--border-2);
  background: var(--inset);
}
.traffic { display: flex; gap: 7px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.traffic i:nth-child(1){ background:#FF5F57; } .traffic i:nth-child(2){ background:#FEBC2E; } .traffic i:nth-child(3){ background:#28C840; }
.window-url {
  flex: 1; margin-left: 8px; display: flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 7px; padding: 5px 12px; max-width: 360px;
}
.window-url svg { width: 11px; height: 11px; opacity: .6; }

.hero-shot { margin-top: clamp(44px, 6vw, 72px); position: relative; padding: clamp(20px, 3.5vw, 44px); padding-bottom: 0; border-radius: calc(var(--radius-lg) + 16px); background: linear-gradient(170deg, #ECEAFB 0%, #F3F0FA 40%, var(--bg) 100%); border: 1px solid var(--border-2); border-bottom: none; }
.hero-shot .window { max-width: 1080px; margin-inline: auto; transform: translateY(1px); }

/* ===========================================================
   Recreated product UI (mockups)
   =========================================================== */
.app {
  display: grid; grid-template-columns: 210px 1fr;
  background: var(--bg); font-size: 13px; min-height: 460px;
}
.app-side { background: var(--surface); border-right: 1px solid var(--border-2); padding: 14px 12px; }
.app-side .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 4px 6px 14px; }
.side-group { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 12px 8px 5px; }
.side-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; color: var(--ink-2); font-weight: 500; font-size: 12.5px; }
.side-item .ic { width: 14px; height: 14px; opacity: .55; }
.side-item.active { background: var(--indigo-50); color: var(--indigo-700); }
.side-item.active .ic { opacity: 1; }
.side-item .badge { margin-left: auto; font-size: 10.5px; color: var(--ink-3); }
.side-item .badge.ai { background: var(--indigo-100); color: var(--indigo-700); border-radius: 5px; padding: 1px 6px; font-family: var(--mono); font-weight:600; }
.app-main { padding: 18px 20px; overflow: hidden; }
.app-topline { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.app-h { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.app-sub { color: var(--ink-3); font-size: 12px; margin-bottom: 16px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.stat-card { border-radius: 13px; padding: 15px 15px 16px; color: #fff; position: relative; overflow: hidden; min-height: 104px; }
.stat-card.indigo { background: var(--grad-indigo); }
.stat-card.violet { background: var(--grad-violet); }
.stat-card.blue   { background: var(--grad-blue); }
.stat-card.green  { background: var(--grad-green); }
.stat-card.plain  { background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
.stat-card .lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.stat-card.plain .lbl { color: var(--ink-3); opacity: 1; }
.stat-card .big { font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
.stat-card .meta { font-size: 11px; opacity: .82; margin-top: 5px; }
.stat-card.plain .meta { color: var(--ink-3); }

.app-grid2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; margin-top: 14px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 15px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-head .t { font-weight: 700; font-size: 13.5px; }
.panel-head .legend { display: flex; gap: 12px; font-size: 11px; color: var(--ink-3); }
.panel-head .legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 4px; vertical-align: middle; }

.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border-2); }
.mini-row:first-child { border-top: none; }
.mini-row .date { font-family: var(--mono); font-size: 10px; color: var(--ink-3); width: 38px; line-height: 1.2; }
.mini-row .nm { flex: 1; font-size: 12px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row .nm small { display: block; color: var(--ink-3); font-size: 10.5px; }
.mini-row .amt { font-weight: 600; font-size: 12px; }

/* bar chart (mock) */
.barchart { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar-pair { display: flex; align-items: flex-end; gap: 4px; height: 130px; width: 100%; justify-content: center; }
.bar { width: 16px; border-radius: 4px 4px 0 0; position: relative; }
.bar.inc { background: #8B8FF5; }
.bar.exp { background: #F4A8C0; }
.bar-col .xl { font-size: 10px; color: var(--ink-3); }

/* ---------- generic content grids ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.rev .split-copy { order: 2; }
@media (max-width: 920px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev .split-copy { order: 0; } }
.split-copy h2 { margin: 16px 0 0; }
.split-copy .lede { margin-top: 18px; }
.feat-list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.feat-list .row { display: flex; gap: 13px; align-items: flex-start; }
.feat-list .row .ck {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; background: var(--indigo-50);
  display: grid; place-items: center; margin-top: 1px;
}
.feat-list .row .ck svg { width: 13px; height: 13px; color: var(--indigo); }
.feat-list .row b { font-weight: 600; font-size: 15.5px; }
.feat-list .row p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head .lede { margin-top: 18px; }

/* ---------- simulator ---------- */
.sim {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
/* banner */
.sim-banner { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; background: linear-gradient(180deg, #F1FAF4, #FFFFFF); border-bottom: 1px solid var(--border-2); }
.sim-banner .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sim-banner .val-green { font-size: clamp(28px,3.4vw,38px); font-weight: 800; letter-spacing: -.02em; color: var(--green-600); margin-top: 4px; }
.sim-banner .val { font-size: clamp(28px,3.4vw,38px); font-weight: 800; letter-spacing: -.02em; color: var(--red); margin-top: 4px; transition: color .3s; }
.sim-banner .val.pos { color: var(--green-600); }
.sim-banner .sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.sim-banner-right { text-align: right; min-width: 0; }

/* stat row */
.sim-statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--border-2); }
.sim-statrow .cell { padding: 14px 18px; border-right: 1px solid var(--border-2); }
.sim-statrow .cell:last-child { border-right: none; }
.sim-statrow .k { font-size: 11px; color: var(--ink-2); }
.sim-statrow .v { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.sim-statrow .v.neg { color: var(--red); }
.sim-statrow .v.pos { color: var(--green-600); }
.sim-statrow .src { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); margin-top: 3px; }
@media (max-width: 720px) { .sim-statrow { grid-template-columns: repeat(2, 1fr); } .sim-statrow .cell:nth-child(2) { border-right: none; } .sim-statrow .cell:nth-child(1), .sim-statrow .cell:nth-child(2) { border-bottom: 1px solid var(--border-2); } }

/* chart */
.sim-chart { padding: 22px 24px 8px; }
.sim-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.sim-chart-head .t { font-weight: 700; font-size: 15px; }
.sim-chart-head .d { font-size: 12px; color: var(--ink-3); margin-top: 3px; max-width: 460px; }
.sim-toggle { display: inline-flex; background: var(--bg-2); border-radius: 9px; padding: 3px; flex-shrink: 0; }
.sim-toggle button { font-size: 12px; font-weight: 500; color: var(--ink-2); padding: 6px 12px; border-radius: 7px; transition: all .15s; }
.sim-toggle button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.svg-chart { width: 100%; height: auto; overflow: visible; }
.sim-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s, stroke-width .25s; }
.sim-line.dim { opacity: .28; }
.sim-evt-bar { margin: 6px 24px 0; height: 22px; border-radius: 6px; background: #E7F6EE; border: 1px solid #C7E9D6; display: flex; align-items: center; padding: 0 10px; font-size: 10.5px; font-weight: 600; color: var(--green-600); }

/* scenario chips */
.sim-chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--border-2); }
.sim-chips .clabel { font-size: 12px; color: var(--ink-3); margin-right: 2px; }
.scenario-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); transition: all .15s; }
.scenario-chip .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.scenario-chip:hover { border-color: #cfcfcb; }
.scenario-chip.active { color: var(--ink); border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }

/* comparison table */
.sim-compare { border-top: 1px solid var(--border-2); }
.sim-compare table { width: 100%; border-collapse: collapse; }
.sim-compare th { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; text-align: right; padding: 12px 16px 8px; }
.sim-compare th:first-child { text-align: left; }
.sim-compare td { font-size: 13px; padding: 12px 16px; border-top: 1px solid var(--border-2); text-align: right; font-weight: 600; }
.sim-compare td:first-child { text-align: left; font-weight: 500; }
.sim-compare tr.active { background: var(--inset); }
.sim-compare .scn { display: inline-flex; align-items: center; gap: 8px; }
.sim-compare .scn .dot { width: 9px; height: 9px; border-radius: 50%; }
.sim-compare .neg { color: var(--red); }
.sim-compare .risk { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.sim-compare .risk.r-amber { background: #FEF3E2; color: var(--amber); }
.sim-compare .risk.r-green { background: #E7F6EE; color: var(--green-600); }
.sim-compare .risk.r-red { background: #FDECEC; color: var(--red); }
@media (max-width: 640px) { .sim-compare .hide-sm { display: none; } }

/* ---------- invoice / AI flow ---------- */
.ai-flow { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.ai-flow-top { padding: 18px 20px; border-bottom: 1px solid var(--border-2); display: flex; align-items: center; gap: 10px; }
.dropzone {
  margin: 18px; border: 1.5px dashed #C8CBE8; border-radius: 14px; background: linear-gradient(180deg, #FAFAFF, #F6F6FB);
  padding: 22px; display: flex; align-items: center; gap: 16px;
}
.dropzone .ico { width: 52px; height: 64px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; position: relative; flex-shrink: 0; }
.dropzone .ico::after { content: "+"; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--indigo); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.dropzone .txt b { font-size: 14.5px; font-weight: 600; }
.dropzone .txt p { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.dropzone .txt .fmt { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-top: 8px; }

.extract-rows { padding: 4px 18px 18px; }
.ex-row { display: grid; grid-template-columns: 28px 1.4fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 12px 12px; border-radius: 11px; border: 1px solid var(--border-2); margin-top: 10px; background: var(--surface); opacity: 0; transform: translateY(8px); }
.ex-row.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.ex-row .fic { width: 28px; height: 28px; border-radius: 7px; background: #FEF3E2; color: var(--amber); display: grid; place-items: center; font-size: 11px; font-weight: 700; font-family: var(--mono); }
.ex-row .nm { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-row .nm small { display: block; color: var(--ink-3); font-weight: 400; font-size: 11px; }
.ex-field .k { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ex-field .val { font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.ex-field .val .pf-mark { background: var(--indigo-50); color: var(--indigo-700); border-radius: 3px; padding: 0 4px; }
.chip { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip.green { background: #E7F6EE; color: var(--green-600); }
.chip.amber { background: #FEF3E2; color: var(--amber); }
.chip.indigo { background: var(--indigo-50); color: var(--indigo-700); }

/* ---------- claims inbox (admin) ---------- */
.claims-inbox { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.claims-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border-2); }
.claims-top .t { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 9px; }
.claims-top .t .ai-chip { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; background: var(--indigo-100); color: var(--indigo-700); padding: 2px 7px; border-radius: 999px; }
.claims-top .count { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); letter-spacing: .03em; }
.claim-list { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.claim { border: 1px solid var(--border-2); border-radius: 13px; padding: 14px; background: var(--surface); transition: border-color .2s; }
.claim.live { border-color: #C8CBE8; background: linear-gradient(180deg, #FAFAFF, #FFFFFF); }
.claim-head { display: flex; align-items: center; gap: 11px; }
.claim .av { width: 32px; height: 32px; border-radius: 9px; background: var(--indigo-50); color: var(--indigo-700); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.claim .who { font-size: 13px; font-weight: 600; line-height: 1.3; min-width: 0; }
.claim .who small { display: block; color: var(--ink-3); font-weight: 400; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claim .amt { margin-left: auto; text-align: right; flex-shrink: 0; }
.claim .amt b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.claim-body { margin-top: 12px; }
.claim .meta { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.claim .cdate { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.claim .ai-tag { font-size: 11px; font-weight: 600; color: var(--indigo); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.claim-actions { display: flex; gap: 9px; margin-top: 13px; }
.claim-btn { flex: 1; justify-content: center; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 9px; border-radius: 9px; transition: transform .12s, background .15s, border-color .15s; }
.claim-btn:hover { transform: translateY(-1px); }
.claim-btn.approve { background: var(--green); color: #fff; }
.claim-btn.approve:hover { background: var(--green-600); }
.claim-btn.reject { background: var(--surface); border: 1px solid var(--border); color: var(--ink-2); }
.claim-btn.reject:hover { border-color: #d7d7d3; color: var(--ink); }
.claim-resolved { width: 100%; text-align: center; font-size: 12.5px; font-weight: 600; padding: 9px; border-radius: 9px; }
.claim-resolved.ok { background: #E7F6EE; color: var(--green-600); }
.claim-resolved.no { background: #FDECEC; color: var(--red); }
.claim-analyzing-bar { display: flex; align-items: center; gap: 9px; background: var(--indigo-50); color: var(--indigo-700); border-radius: 9px; padding: 9px 11px; font-size: 12.5px; font-weight: 600; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--indigo-100); border-top-color: var(--indigo); animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ---------- contract generation ---------- */
.contract-gen { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.cg-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border-2); }
.cg-top .t { font-weight: 700; font-size: 14px; }
.cg-name { padding: 14px 18px 0; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cg-name span:first-of-type { color: var(--ink-3); font-weight: 400; font-family: var(--mono); font-size: 11px; }
.cg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 14px; }
.cg-chip { font-family: var(--mono); font-size: 10.5px; background: var(--indigo-50); color: var(--indigo-700); border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.cg-paper { margin: 0 18px 16px; background: var(--inset); border: 1px solid var(--border-2); border-radius: 11px; padding: 18px 20px; font-size: 13px; line-height: 1.95; color: #3A3A40; }
.cg-paper h6 { font-size: 10.5px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; font-weight: 600; }
.cg-paper p { margin: 0 0 10px; }
.cg-paper p:last-child { margin-bottom: 0; }
.ph { font-family: var(--mono); font-size: .86em; background: var(--indigo-50); color: var(--indigo-700); border-radius: 4px; padding: 0 5px; transition: background .3s ease, color .3s ease; white-space: nowrap; }
.ph.filled { font-family: var(--font); font-size: 1em; background: #E7F6EE; color: var(--green-600); font-weight: 600; }
.cg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--border-2); }
.cg-foot .info { font-size: 12px; color: var(--ink-3); }

/* ---------- secondary feature grid ---------- */
.cards3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 780px) { .cards3 { grid-template-columns: 1fr; } }
.fcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; position: relative; overflow: hidden; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dadad6; }
.fcard .ficon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; }
.fcard .ficon svg { width: 20px; height: 20px; }
.fcard h3 { font-size: 18px; font-weight: 700; }
.fcard p { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }
.fcard .ficon.indigo { background: var(--indigo-50); color: var(--indigo); }
.fcard .ficon.green { background: #E7F6EE; color: var(--green-600); }
.fcard .ficon.blue { background: #E5EEFE; color: var(--blue); }
.fcard .ficon.violet { background: #F1E9FE; color: var(--violet); }
.fcard .tagrow { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- stats band ---------- */
.statband {
  background: var(--ink);
  color: var(--ink-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.statband::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(ellipse at 85% -10%, rgba(124,58,237,.5), transparent 50%),
    radial-gradient(ellipse at 10% 110%, rgba(79,70,229,.45), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(99,102,241,.08), transparent 70%);
}
/* subtle dot-grid texture */
.statband::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image: radial-gradient(circle, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.statband-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 780px) { .statband-inner { grid-template-columns: repeat(2, 1fr); } }

.s-item {
  padding: 0 clamp(16px, 2.2vw, 28px);
  border-right: 1px solid rgba(255,255,255,.08);
}
.s-item:first-child { padding-left: 0; }
.s-item:last-child  { padding-right: 0; border-right: none; }
@media (max-width: 780px) {
  .s-item { padding: 24px 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .s-item:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,.08); }
  .s-item:nth-last-child(-n+2) { border-bottom: none; }
}

.s-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: rgba(200,200,255,.75);
}
.s-icon svg { width: 17px; height: 17px; }

.statband .s-num {
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(120deg, #fff 30%, #C7C5F5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: flex; align-items: baseline; gap: 4px; white-space: nowrap;
}
.s-zero {
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(120deg, #fff 30%, #C7C5F5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.s-word {
  font-size: clamp(18px, 2vw, 26px); font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(120deg, #fff 30%, #C7C5F5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.statband .s-lbl {
  font-size: 14px; font-weight: 600;
  color: rgba(244,244,248,.9);
  margin-top: 10px; line-height: 1.35;
}
.statband .s-proof {
  font-size: 12.5px; color: rgba(244,244,248,.42);
  margin-top: 8px; line-height: 1.55; font-weight: 400;
}

/* ---------- integrations ---------- */
.int-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 48px; }
.int-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.int-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.int-logo { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid var(--border-2); background: var(--inset); }
.int-logo svg, .int-logo img { width: 26px; height: 26px; }
.int-card h4 { font-size: 15.5px; font-weight: 700; }
.int-card p { font-size: 13px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.int-card .status { margin-top: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--green-600); display: inline-flex; align-items: center; gap: 6px; }
.int-card .status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

/* ---------- region section ---------- */
.region { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 820px) { .region-grid { grid-template-columns: 1fr; } }
.region-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.region-card .rc-top { display: flex; align-items: center; gap: 10px; }
.region-card .ccy { font-family: var(--mono); font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 8px; background: var(--inset); border: 1px solid var(--border-2); color: var(--ink-2); }
.region-card h4 { font-size: 16px; font-weight: 700; margin-top: 16px; }
.region-card p { font-size: 13.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.5; }

/* ---------- CTA / form ---------- */
.cta { background: var(--ink); color: var(--ink-on-dark); position: relative; overflow: hidden; }
.cta::before { content:""; position:absolute; inset:0; background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(124,58,237,.4), transparent 60%), radial-gradient(ellipse 50% 50% at 90% 110%, rgba(79,70,229,.35), transparent 55%); }
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 920px) { .cta-grid { grid-template-columns: 1fr; } }
.cta h2 { color: #fff; }
.cta .lede { color: rgba(244,244,248,.7); }
.cta-points { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.cta-points .row { display: flex; gap: 11px; align-items: center; font-size: 14.5px; color: rgba(244,244,248,.86); }
.cta-points .row svg { width: 18px; height: 18px; color: #A5B4FC; flex-shrink: 0; }
.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-xl); color: var(--ink); }
.form-card h3 { font-size: 21px; font-weight: 700; }
.form-card .sub { font-size: 13.5px; color: var(--ink-2); margin-top: 5px; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font-family: inherit; font-size: 14px; color: var(--ink); background: var(--inset); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s, background .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 3px var(--indigo-50); }
.field input.error, .field textarea.error { border-color: var(--red); box-shadow: 0 0 0 3px #FDECEC; }
.field textarea { resize: vertical; min-height: 76px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }
.form-card .btn { width: 100%; justify-content: center; margin-top: 20px; }
.form-card .legal { font-size: 11.5px; color: var(--ink-3); margin-top: 14px; text-align: center; }
.form-success { display: none; text-align: center; padding: 28px 8px; }
.form-success.show { display: block; }
.form-success .ok { width: 56px; height: 56px; border-radius: 50%; background: #E7F6EE; display: grid; place-items: center; margin: 0 auto 16px; }
.form-success .ok svg { width: 28px; height: 28px; color: var(--green-600); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding-block: 56px 0; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 20px; } }
.footer-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-2); padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--ink); }
.footer-about p { font-size: 14px; color: var(--ink-2); margin-top: 14px; max-width: 280px; line-height: 1.55; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 28px 0 36px; margin-top: 44px; border-top: 1px solid var(--border-2); font-size: 13px; color: var(--ink-3); flex-wrap: wrap; gap: 12px; }
.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a { color: var(--ink-3); } .footer-bottom .socials a:hover { color: var(--ink); }

/* ---------- reveal animation ---------- */
/* hidden state only applies once JS confirms it can drive the animation,
   so content is never stuck invisible if JS/IO fails */
body.reveal-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s cubic-bezier(.16,.7,.3,1), transform .75s cubic-bezier(.16,.7,.3,1); }
body.reveal-ready .reveal.from-left  { transform: translateX(-52px); }
body.reveal-ready .reveal.from-right { transform: translateX(52px); }
body.reveal-ready .reveal.scale-in   { transform: scale(.93) translateY(14px); }
body.reveal-ready .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .40s; } .reveal.d6 { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } }

.divider-label { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 28px; }
