/* Kalc marketing site — layout adapted from qusto.io · Kalc brand tokens */

:root {
  color-scheme: light dark;

  --teal: #00C4B4;
  --teal-hover: #00a89a;
  --teal-dim: rgba(0, 196, 180, 0.12);
  --teal-border: rgba(0, 196, 180, 0.3);
  --navy: #0B1F3A;
  --navy-light: #122a4a;
  --critical: #D93025;
  --high: #F5A623;
  --medium: #8A95A3;
  --success: #1A8A5A;

  --bg-base: #F4F6F9;
  --bg-surface: #FFFFFF;
  --bg-elevated: #EEF2F7;
  --bg-overlay: #E8ECF2;
  --text-primary: #0B1F3A;
  --text-secondary: #5A6778;
  --text-tertiary: #8A95A3;
  --heading: #0B1F3A;
  --heading-sub: #1a3352;

  --border: rgba(11, 31, 58, 0.1);
  --border-strong: rgba(11, 31, 58, 0.18);
  --card-hover-border: rgba(0, 196, 180, 0.35);

  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.05);
  --shadow: 0 4px 6px -1px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(11, 31, 58, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(11, 31, 58, 0.1);
  --shadow-2xl: 0 24px 48px -8px rgba(11, 31, 58, 0.14);
  --shadow-focus: 0 0 0 4px rgba(0, 196, 180, 0.2);

  --header-bg: rgba(244, 246, 249, 0.9);
  --header-border: rgba(11, 31, 58, 0.08);

  --btn-primary-bg: linear-gradient(135deg, #00C4B4 0%, #00a89a 100%);
  --btn-primary-shadow: 0 4px 12px rgba(0, 196, 180, 0.3);
  --btn-primary-shadow-hover: 0 8px 20px rgba(0, 196, 180, 0.4);

  --cta-bg: linear-gradient(135deg, #E8FAF8 0%, #B8F0EA 40%, #7EE5DA 70%, #00C4B4 100%);
  --cta-text: #0B1F3A;

  --pane-bg: #0B1F3A;
  --journey-step-bg: #FFFFFF;
  --stack-visual-bg: #EEF2F7;

  --font-display: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

:root[data-theme="dark"] {
  --bg-base: #070F1A;
  --bg-surface: #0B1F3A;
  --bg-elevated: #0F1729;
  --bg-overlay: #122a4a;
  --text-primary: #E8EDF4;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;
  --heading: #F1F5F9;
  --heading-sub: #CBD5E1;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --card-hover-border: rgba(0, 196, 180, 0.4);
  --header-bg: rgba(7, 15, 26, 0.92);
  --header-border: rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.35);
  --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.45);
  --cta-bg: linear-gradient(135deg, #0F1729 0%, #0B1F3A 40%, #122a4a 70%, #1a3a5c 100%);
  --cta-text: #F1F5F9;
  --journey-step-bg: #0F1729;
  --stack-visual-bg: #0F1729;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-base: #070F1A;
    --bg-surface: #0B1F3A;
    --bg-elevated: #0F1729;
    --bg-overlay: #122a4a;
    --text-primary: #E8EDF4;
    --text-secondary: #94A3B8;
    --text-tertiary: #64748B;
    --heading: #F1F5F9;
    --heading-sub: #CBD5E1;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --card-hover-border: rgba(0, 196, 180, 0.4);
    --header-bg: rgba(7, 15, 26, 0.92);
    --header-border: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.35);
    --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.45);
    --cta-bg: linear-gradient(135deg, #0F1729 0%, #0B1F3A 40%, #122a4a 70%, #1a3a5c 100%);
    --cta-text: #F1F5F9;
    --journey-step-bg: #0F1729;
    --stack-visual-bg: #0F1729;
  }
}

:root[data-theme="dark"] .section-problem,
:root[data-theme="dark"] .section-privacy,
:root[data-theme="dark"] .section-apply {
  background: var(--bg-elevated);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-problem,
  :root:not([data-theme="light"]) .section-privacy,
  :root:not([data-theme="light"]) .section-apply {
    background: var(--bg-elevated);
  }
}

[data-theme="light"] { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Skip link — fully hidden until keyboard focus */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 20px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--teal);
  color: var(--navy);
  font-weight: 600;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin-bottom: 0;
}

.section-intro {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin: 12px auto 0;
  line-height: 1.65;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  padding: 16px 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-link { flex-shrink: 0; line-height: 0; }
.logo-img { height: 32px; width: auto; }

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 8px 24px;
}

.site-nav { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

.nav-cta { flex-shrink: 0; }

.nav-toggle-input { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-secondary);
  border-radius: 1px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-primary-bg);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: var(--btn-primary-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-primary-shadow-hover);
  color: var(--navy);
}

.btn-primary-lg {
  font-size: 17px;
  padding: 15px 32px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--teal);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1.5px solid var(--teal);
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--teal-dim);
  border-color: var(--teal-hover);
  color: var(--teal-hover);
}

.nav-cta,
.nav-cta:hover { color: var(--navy) !important; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 100px;
  background: var(--bg-base);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.beta-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--heading);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
}
.hero-stat-value.accent { color: var(--teal); }
.hero-stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
  line-height: 1.35;
}

.hero-visual {
  margin: 0;
  line-height: 0;
}
.hero-illustration {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-2xl);
}

/* ── Product mock (dashboard / pane) ──────────────────────────── */
.product-mock {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  max-width: 100%;
}

.product-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.dot-red, .dot-amber, .dot-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red { background: #ff5f57; }
.dot-amber { background: #febc2e; }
.dot-green { background: #28c840; }

.product-mock-url {
  flex: 1;
  background: var(--bg-overlay);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-mock-body {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-row--two { grid-template-columns: 1fr 1fr; }

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.stat-card .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.stat-card .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
}
.stat-card .value.accent { color: var(--teal); }
.stat-card .value.primary { color: var(--navy); }
.stat-card .value.value--sm { font-size: 16px; font-weight: 600; }

.stat-card .delta {
  font-size: 11px;
  color: var(--success);
  font-weight: 600;
  margin-top: 4px;
}
.stat-card .delta--warn { color: var(--critical); }

.finding-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  font-weight: 500;
}
.finding-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading-sub);
  margin-top: 2px;
}

.chart-placeholder {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 72px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 12px;
}

.chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}
.chart-bar--low { background: rgba(138, 149, 163, 0.5); }
.chart-bar--med { background: rgba(138, 149, 163, 0.75); }
.chart-bar--high { background: var(--high); opacity: 0.8; }
.chart-bar--crit { background: var(--critical); opacity: 0.9; }

/* Dark pane variant (beta section) */
.product-mock-body--dark {
  background: var(--pane-bg);
  padding: 18px;
  gap: 10px;
}

.pane-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(138, 149, 163, 0.7);
  margin-bottom: 6px;
}

.pane-score-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.pane-score {
  font-size: 28px;
  font-weight: 700;
  color: #F1F5F9;
  line-height: 1;
}
.pane-band {
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
}

.pane-meter {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.pane-meter span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
}

.pane-sev-bar {
  display: flex;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  gap: 1px;
}
.pane-sev-bar .sev { flex-shrink: 0; }
.sev--crit { background: var(--critical); }
.sev--high { background: var(--high); }
.sev--med { background: var(--medium); }
.sev--low { background: rgba(255, 255, 255, 0.15); }

.pane-finding {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid transparent;
}
.pane-finding code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
}
.pane-finding strong {
  display: block;
  font-size: 13px;
  color: #F1F5F9;
  margin: 4px 0 2px;
}
.pane-finding span {
  font-size: 11px;
  color: rgba(138, 149, 163, 0.8);
  line-height: 1.4;
}
.pane-finding--crit { border-left-color: var(--critical); }
.pane-finding--high { border-left-color: var(--high); }
.pane-finding--med { border-left-color: var(--medium); }

.pane-export {
  text-align: center;
  padding: 10px;
  margin-top: 4px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  border-radius: 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Three stacks ───────────────────────────────────────────── */
.section-stacks {
  padding: 96px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stacks-grid-wrap {
  margin-top: 56px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.stacks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  min-width: 960px;
}

.stack-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.stack-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.stack-card--featured {
  border-color: var(--teal-border);
  box-shadow: var(--shadow-lg);
}

.stack-visual {
  height: 72px;
  border-radius: 12px;
  background: var(--stack-visual-bg, var(--bg-elevated));
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stack-visual-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding: 12px;
  width: 100%;
}
.stack-visual-inner--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
}
.stack-visual-inner--metrics {
  justify-content: flex-start;
  gap: 16px;
}

.stack-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stack-card-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading-sub);
  margin: 0;
}
.stack-visual-inner code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  background: rgba(0, 196, 180, 0.08);
  padding: 6px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}
.stack-check {
  align-self: flex-end;
  color: var(--teal);
  font-weight: 700;
  font-size: 18px;
}
.stack-finding {
  font-size: 10px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}
.stack-finding--crit { background: rgba(217, 48, 37, 0.15); color: var(--critical); }
.stack-finding--high { background: rgba(245, 166, 35, 0.15); color: var(--high); }
.stack-finding--med { background: rgba(138, 149, 163, 0.15); color: var(--medium); }
.stack-score {
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.stack-band {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.stack-export {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 4px;
}

.stack-icon {
  font-size: 22px;
  color: var(--teal);
  line-height: 1;
  flex-shrink: 0;
}
.stack-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── Analysis flow chart ──────────────────────────────────────── */
.section-journey {
  padding: 96px 0;
  background: var(--bg-base);
}

.flow-chart-wrap {
  margin-top: 56px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.flow-chart {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-width: min(100%, 960px);
}

.flow-node {
  flex: 1 1 0;
  min-width: 148px;
  max-width: 200px;
  background: var(--journey-step-bg, var(--bg-surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.flow-node:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-lg);
}
.flow-node--final {
  border-color: var(--teal-border);
  background: var(--teal-dim);
}
.flow-node-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--teal);
}
.flow-node--final .flow-node-icon {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}
.flow-node h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading-sub);
  margin-bottom: 6px;
}
.flow-node p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.flow-connector {
  flex: 0 0 28px;
  align-self: center;
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-border), var(--teal), var(--teal-border));
}
.flow-connector::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--teal);
}


.section-intro--left {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.features-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}
.features-header-copy .section-intro { margin-top: 12px; }

.product-mock--compact {
  max-width: 380px;
  margin-left: auto;
}

.beta-visual {
  margin: 0;
  line-height: 0;
}
.beta-illustration {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-2xl);
}

/* ── Apply form ───────────────────────────────────────────────── */
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.apply-copy .section-heading { margin-bottom: 12px; }
.apply-copy .lead {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
  margin: 16px 0 24px;
}

.apply-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.apply-benefits li {
  font-size: 15px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.apply-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.apply-form-wrap {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

[hidden] {
  display: none !important;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sector-fieldset {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px 14px;
  margin: 0;
}

.sector-fieldset legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading-sub);
  padding: 0 4px;
}

.sector-picker {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.sector-picker label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.sector-picker input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--teal);
}
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading-sub);
}
.form-field label span { color: var(--critical); }

.form-field input,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--shadow-focus);
}
.form-field input::placeholder { color: var(--text-tertiary); }

.beta-form .btn-submit { width: 100%; margin-top: 4px; }

.form-note {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.5;
}
.form-note a { color: var(--teal); font-weight: 600; }

.form-success {
  text-align: center;
  padding: 24px 8px;
}
.form-success-icon { font-size: 40px; margin-bottom: 12px; }
.form-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
}
.form-success p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.form-success a { margin: 0 auto; }

/* ── Sections ───────────────────────────────────────────────── */
.section-privacy {
  padding: 72px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.privacy-item {
  text-align: center;
  padding: 24px 16px;
}
.privacy-item .icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}
.privacy-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--heading-sub);
}
.privacy-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.section-problem {
  padding: 72px 0;
  background: var(--bg-base);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.problem-card {
  text-align: center;
  padding: 28px 20px;
}
.problem-icon {
  font-size: 32px;
  color: var(--teal);
  margin-bottom: 16px;
  line-height: 1;
}
.problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--heading-sub);
}
.problem-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-features {
  padding: 96px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.feature-icon {
  font-size: 28px;
  color: var(--teal);
  margin-bottom: 16px;
  line-height: 1;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--heading-sub);
  transition: color 0.2s;
}
.feature-card:hover h3 { color: var(--teal); }
.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-beta-program {
  padding: 96px 0;
}

.beta-program-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}

.beta-perks {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.beta-perk {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.perk-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--teal);
}

.perk-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading-sub);
  margin-bottom: 4px;
}
.perk-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.section-apply {
  padding: 96px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}


.section-faq {
  padding: 96px 0;
  scroll-margin-top: 80px;
}

.faq-list {
  max-width: 720px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover,
.faq-item[open] {
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  list-style: none;
  font-weight: 600;
  color: var(--heading-sub);
  font-size: 16px;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item:hover summary,
.faq-item[open] summary { color: var(--teal); }
.faq-icon {
  color: var(--text-tertiary);
  font-weight: 400;
  transition: transform 0.25s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.section-cta {
  padding: 96px 0;
  background: var(--cta-bg);
  text-align: center;
}
.section-cta .section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
  color: var(--cta-text);
}
.section-cta p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
:root[data-theme="dark"] .section-cta p,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-cta p { color: var(--text-secondary); }
}
.btn-cta { margin: 0 auto; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--heading-sub);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col ul a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--teal); }

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.5;
  max-width: 260px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── Pricing page (minimal) ─────────────────────────────────── */
.pricing-page {
  padding: 96px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.price-card.featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.price-card h3 { font-size: 16px; margin-bottom: 12px; color: var(--heading); }
.amount { font-size: 28px; font-weight: 700; color: var(--heading); }
.period { font-size: 14px; color: var(--text-tertiary); }
.price-card p.item { font-size: 14px; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }
.badge {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.pricing-note { text-align: center; margin-top: 32px; font-size: 14px; color: var(--text-secondary); }
.pricing-note a { color: var(--teal); font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-illustration { max-width: 100%; margin: 0 auto; }
  .stacks-grid { min-width: 920px; }
  .flow-chart { min-width: 920px; justify-content: flex-start; }
  .features-header { grid-template-columns: 1fr; }
  .product-mock--compact { max-width: 100%; margin: 0 auto; }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .beta-program-inner { grid-template-columns: 1fr; gap: 40px; }
  .apply-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-header-inner { flex-wrap: wrap; row-gap: 10px; }

  .nav-toggle-label { display: flex; order: 1; }

  .nav-cta {
    flex-basis: 100%;
    order: 10;
    justify-content: center;
    text-align: center;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  #nav-toggle:checked ~ .site-nav {
    max-height: 320px;
    padding-top: 8px;
    border-top: 1px solid var(--header-border);
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }

  .features-grid,
  .problem-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .flow-chart { min-width: 860px; }
  .hero-stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat-row,
  .stat-row--two { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px 0 72px; }
  .section-problem,
  .section-privacy { padding: 48px 0; }
  .section-features,
  .section-beta-program,
  .section-apply,
  .section-faq,
  .section-cta { padding: 64px 0; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stat-row,
  .stat-row--two { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-secondary { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beta-badge .dot { animation: none; }
  .feature-card:hover { transform: none; }
  .btn-primary:hover { transform: none; }
}

/* ── Auth portal (/auth) ─────────────────────────────────────── */
.auth-page-body {
  min-height: 100vh;
  background: var(--bg-muted);
}

.auth-page {
  padding: 48px 0 80px;
}

.auth-page-inner {
  max-width: 480px;
  margin: 0 auto;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.auth-lead {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.auth-error {
  font-size: 14px;
  color: var(--critical);
  margin: 0;
}

.auth-key-block {
  margin: 20px 0 16px;
  text-align: left;
}

.auth-key-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading-sub);
  margin-bottom: 8px;
}

.auth-key-row {
  display: flex;
  gap: 8px;
}

.auth-key-input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
}

.auth-copy-btn {
  flex-shrink: 0;
  padding: 10px 16px;
}

.auth-next-steps {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
}

/* ── Agentic section (#agentic) — updated 23 Jul 2026 ── */
.features-grid--two {
  grid-template-columns: repeat(2, 1fr);
}
.section-agentic .agentic-dev {
  width: 100%;
  max-width: none;
  margin: 24px 0 0;
  padding: 1.75rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-sizing: border-box;
}
.agentic-endpoints {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.agentic-endpoints li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.agentic-endpoints code {
  color: var(--teal);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}
.agentic-dev-note {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
@media (max-width: 768px) {
  .features-grid--two { grid-template-columns: 1fr; }
  .section-agentic .agentic-dev { padding: 1.25rem 1.25rem; }
}
