/* ============================================================
   OrgSense — Sections
   ============================================================ */

/* ---- Background grid texture ------------------------------- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 90%);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding .5s var(--ease);
}
.nav.scrolled .nav-inner { padding-block: 12px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.brand-text b { font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15.5px;
  color: var(--text-soft);
  padding: 9px 15px;
  border-radius: 999px;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-links a:hover { color: var(--text); background: color-mix(in oklch, var(--text) 6%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* theme toggle (light / dark) */
.theme-toggle {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-soft);
  transition: color .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-mute); }
.theme-toggle:active { transform: scale(.93); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: block; }

/* mobile menu row holding the toggle */
.mobile-theme {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.mobile-theme > span {
  font-family: var(--font-display); font-size: 30px; font-weight: 500;
  letter-spacing: -.02em; color: var(--text);
}
.mobile-theme .theme-toggle { width: 48px; height: 48px; }
.mobile-theme .theme-toggle svg { width: 21px; height: 21px; }

.nav-actions .login { font-family: var(--font-display); font-weight: 500; font-size: 15.5px; color: var(--text-soft); padding: 9px 6px; transition: color .3s; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.nav-actions .login:hover { color: var(--text); }
/* "Coming soon" affordance for the not-yet-live Log in link */
.login-wrap { position: relative; display: inline-flex; }
.login-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.login-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--accent); opacity: .6; animation: login-pulse 2.4s var(--ease) infinite; }
@keyframes login-pulse { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
[data-motion="off"] .login-dot::after { animation: none; }
.login-tip { position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; width: max-content; max-width: 260px; padding: 11px 14px; border-radius: var(--radius-md, 12px); background: var(--surface-dark, #102a33); color: var(--on-dark, #f4f1e9); box-shadow: 0 12px 34px -12px rgba(16,42,51,.5); border: 1px solid var(--line-strong); opacity: 0; visibility: hidden; transform: translateY(-5px); transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s; pointer-events: none; text-align: left; }
.login-tip .lt-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; }
.login-tip .lt-sub { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--on-dark, #f4f1e9); opacity: .72; }
.login-tip::before { content: ""; position: absolute; bottom: 100%; right: 16px; border: 6px solid transparent; border-bottom-color: var(--surface-dark, #102a33); }
.login-wrap:hover .login-tip, .login-wrap:focus-within .login-tip, .login-wrap.is-open .login-tip { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 1.6px; background: var(--text); transition: .3s var(--ease); }

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--bg); padding: 96px var(--pad) 40px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-100%); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: -.02em; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
}
.hero-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 70% 40%, transparent 30%, var(--hero-fade) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 600px; }
.hero h1 { margin: 22px 0 0; max-width: 13ch; }
.hero h1 .row2 { color: var(--accent); }
.hero .lead { margin-top: 26px; }
.hero-ctas { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-proof { margin-top: 44px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #fff;
}
.avatars span:first-child { margin-left: 0; }
.proof-text { font-size: 14.5px; color: var(--text-mute); max-width: 24ch; line-height: 1.4; }

/* floating data cards in hero */
.hero-stage { position: relative; height: 600px; }
.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  padding: 18px;
  width: 300px;
  backdrop-filter: blur(8px);
}
.fc-health { top: 0; right: 0; }
.fc-alerts { bottom: 0; right: 0; width: 318px; }
.fc-pulse { top: 168px; right: 244px; width: 190px; }

.fc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fc-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.fc-live { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.fc-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.6s var(--ease) infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

.health-row { display: flex; align-items: center; gap: 16px; }
.ring { width: 64px; height: 64px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--accent); stroke-dasharray: 339; stroke-dashoffset: 339; transition: stroke-dashoffset 1.6s var(--ease); }
.health-num { font-family: var(--font-display); font-weight: 600; font-size: 34px; letter-spacing: -.03em; line-height: 1; }
.health-meta { font-size: 12.5px; color: var(--text-soft); margin-top: 4px; }
.health-meta b { color: #2d9d6f; font-weight: 600; }

.alert-row { display: flex; gap: 11px; padding: 9px 0; align-items: flex-start; }
.alert-row + .alert-row { border-top: 1px solid var(--line); }
.a-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; }
.a-red { background: #e0573d; box-shadow: 0 0 0 4px rgba(224,87,61,.16); }
.a-amber { background: #e0a13d; box-shadow: 0 0 0 4px rgba(224,161,61,.16); }
.a-green { background: #2d9d6f; box-shadow: 0 0 0 4px rgba(45,157,111,.16); }
.a-main { font-family: var(--font-display); font-weight: 500; font-size: 14px; }
.a-sub { font-size: 12px; color: var(--text-mute); margin-top: 1px; }

.pulse-mini { height: 46px; width: 100%; }
.pulse-mini path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* scroll cue */
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue .bar { width: 1px; height: 40px; background: linear-gradient(var(--text-mute), transparent); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 12px; background: var(--accent); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0%{transform:translateY(-12px)} 100%{transform:translateY(42px)} }

/* hero treatment variants — pulse/signal handled by canvas + body attr */
[data-hero="signal"] .hero-stage { display: none; }
[data-hero="signal"] .hero-grid { grid-template-columns: 1fr; text-align: center; place-items: center; }
[data-hero="signal"] .hero-copy { max-width: 18ch; }
[data-hero="signal"] .hero h1 { font-size: clamp(54px, 11vw, 150px); }
[data-hero="signal"] .lead { margin-inline: auto; }
[data-hero="signal"] .eyebrow.center::before { display: none; }
[data-hero="signal"] .hero-proof { justify-content: center; }

/* ============================================================
   MARQUEE / TRUST
   ============================================================ */
.marquee-band { padding-block: 30px; border-block: 1px solid var(--line); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 72s linear infinite; }
[data-motion="off"] .marquee { animation: none; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 12px; margin-right: 56px; font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--text-soft); white-space: nowrap; }
.marquee-item svg { width: 18px; height: 18px; color: var(--accent); }

/* ============================================================
   STATS
   ============================================================ */
.stats-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 56px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--surface); padding: 38px 30px; }
.stat-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 4.4vw, 60px); letter-spacing: -.04em; line-height: 1; color: var(--text); }
.stat-num .u { color: var(--accent); }
.stat-lbl { font-size: 14px; color: var(--text-soft); margin-top: 14px; line-height: 1.5; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { max-width: 760px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 { margin: 20px 0 0; }
.sec-head .lead { margin-top: 20px; }
.sec-head.center .lead { margin-inline: auto; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { display: flex; flex-direction: column; gap: clamp(90px, 11vw, 150px); margin-top: 90px; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.feature:nth-child(even) .feature-visual { order: -1; }
.feature-index { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.feature h3 { margin: 16px 0 18px; }
.feature p { color: var(--text-soft); font-size: 17px; max-width: 46ch; }
.feature-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 13px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--text); }
.feature-list .chk { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; margin-top: 1px; }
.feature-list .chk svg { width: 12px; height: 12px; }
.feature-tags { margin-top: 26px; display: flex; gap: 9px; flex-wrap: wrap; }

/* features as grid variant */
[data-features="grid"] .features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
[data-features="grid"] .feature { grid-template-columns: 1fr; gap: 28px; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-card); }
[data-features="grid"] .feature:nth-child(even) .feature-visual { order: 0; }
[data-features="grid"] .feature p { max-width: none; }
[data-features="grid"] .feature-visual .mock { transform: none !important; }

/* ---- built mockups ---------------------------------------- */
.mock {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-bar .mb-title { margin-left: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--text-mute); text-transform: uppercase; }

/* survey mock */
.survey { padding: 26px; }
.survey-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.survey-step { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.progress { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; width: 0; transition: width 1.4s var(--ease); }
.survey-q { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -.02em; margin: 22px 0 20px; line-height: 1.25; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.scale button { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text-soft); transition: .3s var(--ease); }
.scale button.on { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 24px -10px var(--accent); }
.scale-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-mute); margin-top: 12px; }

/* dashboard mock */
.dash { padding: 22px; }
.dash-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: var(--surface); }
.kpi-v { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -.03em; line-height: 1; }
.kpi-v.red { color: #e0573d; }
.kpi-l { font-size: 12px; color: var(--text-mute); margin-top: 7px; }
.dash-chart { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; background: var(--surface); }
.dash-chart .cl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 16px; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 120px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars .b { width: 100%; border-radius: 7px 7px 0 0; height: 0; transition: height 1.2s var(--ease); }
.bars .cl2 { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); }

/* alerts mock */
.alerts-mock { padding: 20px; display: flex; flex-direction: column; gap: 11px; }
.am { display: flex; gap: 13px; padding: 15px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); align-items: flex-start; }
.am.critical { border-left: 3px solid #e0573d; }
.am.warn { border-left: 3px solid #e0a13d; }
.am.pos { border-left: 3px solid #2d9d6f; }
.am-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.am.critical .am-ic { background: rgba(224,87,61,.14); color: #e0573d; }
.am.warn .am-ic { background: rgba(224,161,61,.14); color: #c8881f; }
.am.pos .am-ic { background: rgba(45,157,111,.14); color: #2d9d6f; }
.am-ic svg { width: 16px; height: 16px; }
.am-h { font-family: var(--font-display); font-weight: 500; font-size: 14.5px; }
.am-s { font-size: 12.5px; color: var(--text-mute); margin-top: 2px; line-height: 1.45; }

/* dimensions mock */
.dims { padding: 22px; display: flex; flex-direction: column; gap: 9px; }
.dim { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.dim .n { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent); width: 28px; flex: none; }
.dim .t { font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.dim .d { font-size: 12.5px; color: var(--text-mute); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 72px; position: relative; }
.step-line { position: absolute; top: 30px; left: 8%; right: 8%; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px); z-index: 0; }
.step { position: relative; z-index: 1; }
.step-num { width: 60px; height: 60px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--accent); margin-bottom: 24px; }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 23px; letter-spacing: -.02em; margin-bottom: 12px; }
.step p { color: var(--text-soft); font-size: 15.5px; }

/* ============================================================
   SCIENCE / PROOF BAND  (dark inset)
   ============================================================ */
.proof-band {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-xl);
  padding: clamp(44px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .proof-band { background: var(--surface); border: 1px solid var(--line); }
.proof-band .pb-glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); opacity: .26; top: -160px; right: -120px; filter: blur(20px); }
.proof-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.proof-band .eyebrow { color: rgba(244,241,233,.6); }
.proof-band h2 { color: var(--on-ink); margin: 20px 0 22px; }
.proof-band p { color: rgba(244,241,233,.72); font-size: 17px; max-width: 48ch; }
.proof-band .btn-ghost { color: var(--on-ink); border-color: rgba(244,241,233,.3); margin-top: 30px; }
.proof-band .btn-ghost:hover { background: rgba(244,241,233,.08); border-color: var(--on-ink); }

.founder-card { background: rgba(244,241,233,.05); border: 1px solid rgba(244,241,233,.12); border-radius: var(--radius-lg); padding: 28px; }
.founder-top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.founder-ph { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #b94e28); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: #fff; flex: none; overflow: hidden; }
.founder-ph img { width: 100%; height: 100%; object-fit: cover; }
.founder-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--on-ink); }
.founder-role { font-size: 13px; color: rgba(244,241,233,.6); margin-top: 2px; }
.founder-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(244,241,233,.12); border-radius: var(--radius-md); overflow: hidden; }
.fm { background: var(--ink); padding: 18px; }
[data-theme="dark"] .fm { background: var(--surface); }
.fm-v { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -.03em; color: var(--on-ink); }
.fm-v .u { color: var(--accent); }
.fm-l { font-size: 11.5px; color: rgba(244,241,233,.55); margin-top: 5px; line-height: 1.4; }

/* ============================================================
   PRIVACY STRIP
   ============================================================ */
.privacy-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; }
.priv { text-align: left; }
.priv-ic { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--accent); margin-bottom: 18px; }
.priv-ic svg { width: 22px; height: 22px; }
.priv h4 { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -.01em; margin-bottom: 8px; }
.priv p { font-size: 14px; color: var(--text-soft); line-height: 1.55; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 66px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow-card); transition: transform .5s var(--ease), border-color .4s; }
.plan:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.plan.featured { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
[data-theme="dark"] .plan.featured { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border-color: var(--accent); }
.plan-tier { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.plan.featured .plan-tier { color: var(--on-ink); }
.plan-badge { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: #fff; }
.plan-tagline { font-size: 14px; color: var(--text-soft); margin: 14px 0 22px; line-height: 1.5; min-height: 42px; }
.plan.featured .plan-tagline { color: rgba(244,241,233,.7); }
.plan-line { height: 1px; background: var(--line); margin-bottom: 22px; }
.plan.featured .plan-line { background: rgba(244,241,233,.16); }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.plan-feats li { display: flex; gap: 11px; font-size: 14.5px; align-items: flex-start; }
.plan-feats svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 3px; }
.plan.featured .plan-feats svg { color: var(--accent); }
.plan .btn { width: 100%; justify-content: center; }
.plan.featured .btn-ghost { color: var(--on-ink); border-color: rgba(244,241,233,.3); }
/* On the dark featured card in light mode, the primary CTA must use the accent so it
   stands out (the default ink button matches the card background). Dark mode already
   makes .btn-primary accent globally, so scope this to light mode only. */
:root:not([data-theme="dark"]) .plan.featured .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 16px 36px -16px var(--accent); }
:root:not([data-theme="dark"]) .plan.featured .btn-primary:hover { box-shadow: 0 20px 46px -16px var(--accent); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
  position: relative;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-xl);
  padding: clamp(56px, 8vw, 120px) var(--pad);
  text-align: center;
  overflow: hidden;
}
[data-theme="dark"] .cta { background: var(--surface); border: 1px solid var(--line); }
.cta-canvas { position: absolute; inset: 0; z-index: 0; opacity: .5; }
.cta-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cta h2 { color: var(--on-ink); }
.cta p { color: rgba(244,241,233,.7); font-size: 19px; margin: 22px auto 0; max-width: 46ch; }
.cta-btns { margin-top: 42px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn-primary { background: var(--accent); color: #fff; }
.cta .btn-ghost { color: var(--on-ink); border-color: rgba(244,241,233,.3); }
.cta .btn-ghost:hover { background: rgba(244,241,233,.08); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 72px 36px; margin-top: var(--section); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-tag { color: var(--text-soft); font-size: 15px; max-width: 32ch; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-soft); font-size: 15px; padding: 6px 0; transition: color .3s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-mute); font-family: var(--font-mono); letter-spacing: .03em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { display: none; }
  [data-hero] .hero-grid { text-align: left; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .feature, [data-features="grid"] .features { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-visual { order: 0; }
  .proof-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step-line { display: none; }
  .privacy-row { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .stats-grid, .privacy-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .float-card { display: none; }
}

/* ════════════════════════════════════════════════════════════
   Demo / Contact modal (Formspree)
   ════════════════════════════════════════════════════════════ */
.df-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: color-mix(in oklch, var(--ink) 58%, transparent);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
[data-theme="dark"] .df-overlay { background: color-mix(in oklch, #000 66%, transparent); }
.df-overlay.is-open { opacity: 1; visibility: visible; }

.df-modal {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
  padding: clamp(26px, 4vw, 44px);
  transform: translateY(18px) scale(.98);
  transition: transform .5s var(--ease);
}
.df-overlay.is-open .df-modal { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .df-overlay, .df-modal { transition: none; }
  .df-modal { transform: none; }
}

.df-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-soft);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.df-close:hover { color: var(--text); border-color: var(--text-mute); }
.df-close:active { transform: scale(.92); }
.df-close svg { width: 17px; height: 17px; }

.df-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 9px;
}
.df-eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); }
.df-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3.4vw, 33px); letter-spacing: -.02em; line-height: 1.05;
  color: var(--text); margin-top: 14px;
}
.df-intro {
  color: var(--text-soft); font-size: 15.5px; line-height: 1.6;
  margin-top: 10px; max-width: 42ch; text-wrap: pretty;
}

.df-form { margin-top: 24px; display: grid; gap: 15px; }
.df-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 460px) { .df-row2 { grid-template-columns: 1fr; } }

.df-field { display: grid; gap: 6px; }
.df-field label {
  font-family: var(--font-display); font-weight: 500;
  font-size: 13px; letter-spacing: -.005em; color: var(--text);
}
.df-field label .req { color: var(--accent); }
.df-field input,
.df-field select,
.df-field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.df-field textarea { resize: vertical; min-height: 92px; line-height: 1.55; }
.df-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%237E8A8E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  padding-right: 38px;
}
.df-field input::placeholder,
.df-field textarea::placeholder { color: var(--text-mute); }
.df-field input:focus,
.df-field select:focus,
.df-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.df-field input[aria-invalid="true"],
.df-field textarea[aria-invalid="true"] {
  border-color: #d24b3f;
  box-shadow: 0 0 0 3px color-mix(in oklch, #d24b3f 16%, transparent);
}
.df-fielderr { font-size: 12.5px; color: #d24b3f; min-height: 0; }

.df-submit { width: 100%; justify-content: center; margin-top: 4px; }
.df-submit[disabled] { opacity: .6; pointer-events: none; }
.df-formerr {
  font-size: 13.5px; color: #d24b3f; text-align: center;
  background: color-mix(in oklch, #d24b3f 9%, transparent);
  border: 1px solid color-mix(in oklch, #d24b3f 26%, transparent);
  border-radius: var(--radius-sm); padding: 10px 14px;
  display: none;
}
.df-formerr.show { display: block; }
.df-fine {
  font-size: 12px; color: var(--text-mute); text-align: center;
  line-height: 1.5; margin-top: 2px;
}

/* success state */
.df-success { display: none; text-align: center; padding: 14px 0 4px; }
.df-modal.is-done .df-form,
.df-modal.is-done .df-head { display: none; }
.df-modal.is-done .df-success { display: block; animation: dfPop .55s var(--ease-out); }
.df-checkwrap {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.df-checkwrap svg { width: 30px; height: 30px; }
.df-success h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 26px; letter-spacing: -.02em; color: var(--text);
}
.df-success p { color: var(--text-soft); font-size: 15.5px; line-height: 1.6; margin-top: 10px; max-width: 38ch; margin-inline: auto; }
.df-success .btn { margin-top: 24px; }
@keyframes dfPop {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}

body.df-locked { overflow: hidden; }
