/* ============================================================
   clai. Marketing Site Stylesheet
   Brand system mirrors the product (REQUIREMENTS.md UI-01..04):
   light background, warm amber accent #D4956A, two-color system,
   monospace for labels/metadata, clean sans for body.
   ============================================================ */

:root {
  --bg: #FAFAF8;
  --bg-alt: #F3F1EC;
  --surface: #FFFFFF;
  --ink: #2B2825;
  --ink-soft: #6B655E;
  --ink-faint: #9B948B;
  --line: #E7E3DC;
  --accent: #D4956A;
  --accent-deep: #B87B4F;
  --accent-soft: #F7EBE1;
  --accent-faint: #FBF4EE;
  --ok: #7BA05B;
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(43, 40, 37, 0.05), 0 1px 6px rgba(43, 40, 37, 0.04);
  --shadow-md: 0 4px 12px rgba(43, 40, 37, 0.07), 0 2px 4px rgba(43, 40, 37, 0.04);
  --shadow-lg: 0 12px 32px rgba(43, 40, 37, 0.1), 0 4px 8px rgba(43, 40, 37, 0.05);
  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- typography ---------- */

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
}

.mono { font-family: var(--font-mono); }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { margin-top: 16px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 12px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav .container { max-width: 1280px; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-mark-svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.logo em { font-style: normal; color: var(--accent-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta .btn { padding: 9px 14px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-faint);
  border: 1px solid var(--accent-soft);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(123, 160, 91, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(123, 160, 91, 0); }
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-deep);
  position: relative;
}

.hero .lead { margin: 24px 0 36px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ---------- kanban mockup ---------- */

.mockup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.72rem;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.mockup-bar .dots { display: flex; gap: 6px; }
.mockup-bar .dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line); display: block;
}
.mockup-bar .dots i:first-child { background: var(--accent); }

.mockup-title {
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-size: 0.68rem;
  margin-left: 6px;
}

.mockup-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ok);
  font-weight: 600;
}
.mockup-live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  animation: pulse 2s infinite;
}

.mockup-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--bg);
  min-height: 300px;
}

.mockup-col {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 10px;
  min-width: 0;
}

.mockup-col-head {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  display: flex;
  gap: 6px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mockup-col-head b { color: var(--accent-deep); }

.deal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.deal-card .name { font-weight: 600; font-size: 0.72rem; }
.deal-card .meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-faint);
  margin-top: 3px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.deal-card .meta span { min-width: 0; }
.deal-card .meta b {
  color: var(--accent-deep);
  font-weight: 600;
  flex: none;
  white-space: nowrap;
}

/* the travelling card is transformed by the FLIP move in js/main.js, so this
   state only carries the highlight, never a competing transform */
.deal-card.is-new {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint), var(--shadow-md);
}

.deal-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--accent-deep);
  background: var(--accent-faint);
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 6px;
}

.mockup-toast {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 9px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.mockup-toast.show { opacity: 1; transform: none; }
.mockup-toast .tick { color: var(--accent); font-weight: 700; }

.hero-visual { position: relative; }

/* ---------- persona strip ---------- */

.personas {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: var(--surface);
}

.personas-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.personas-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.persona-item {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.persona-item::before { content: "→"; color: var(--accent); font-weight: 700; }

/* ---------- problem section ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

/* ---------- pain qualifier ---------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.pain-card .pain-num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
}

.pain-card h3 {
  margin-top: 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.pain-card p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.pain-cause {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 8px 0 20px;
}

@media (max-width: 760px) {
  .pain-grid, .vert-grid { grid-template-columns: 1fr; }
}

.stat-card .num {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-card .label {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.98rem;
}

.stat-card .sub {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.problem-quote {
  margin-top: 48px;
  padding: 32px 36px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 780px;
}
.problem-quote footer {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-weight: 400;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  counter-increment: step;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-faint);
  border: 1px solid var(--accent-soft);
  border-radius: 100px;
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 18px;
}

.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 0.94rem; }

.step-visual {
  margin-top: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.step-visual .hl { color: var(--accent-deep); font-weight: 600; }
.step-visual .ok { color: var(--ok); font-weight: 600; }

/* ---------- features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-faint);
  border: 1px solid var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent-deep);
}

.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- security ---------- */

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.security-list { list-style: none; margin-top: 28px; display: grid; gap: 18px; }

.security-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.security-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-faint);
  border: 1px solid var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

.security-list b { display: block; margin-bottom: 2px; }
.security-list span { color: var(--ink-soft); font-size: 0.92rem; }

.terminal {
  background: #2B2825;
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 2;
  color: #C9C2B8;
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
}

.terminal .prompt { color: var(--accent); }
.terminal .out { color: #837C72; }
.terminal .ok { color: #9CBB7E; }
.terminal-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.terminal-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #4A453F; display: block;
}
.terminal-bar i:first-child { background: var(--accent); }

/* ---------- use cases ---------- */

.vert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.vert-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vert-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.vert-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.vert-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.vert-cost {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.vert-card > p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.vert-list { list-style: none; display: grid; gap: 8px; }

.vert-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--ink);
}

.vert-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- integrations ---------- */

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.integration {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.integration:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.integration.is-live { border-color: var(--accent); background: var(--accent-faint); }
.integration.is-custom { border-style: dashed; }

.integration-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.integration-name { font-weight: 700; font-size: 1.02rem; }

.integration-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-alt);
  color: var(--ink-faint);
  white-space: nowrap;
}

.integration-status.live { background: var(--ok); color: #fff; }
.integration-status.custom { background: var(--accent); color: #fff; }

.integration p { color: var(--ink-soft); font-size: 0.9rem; }
.integration p a { color: var(--accent-deep); font-weight: 600; text-decoration: underline; }

/* ---------- ROI calculator ---------- */

.roi-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.roi-inputs { padding: 40px; }

.roi-inputs h3 { margin-bottom: 28px; }

.roi-field { margin-bottom: 28px; }

.roi-field label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.roi-field output {
  font-family: var(--font-mono);
  color: var(--accent-deep);
  font-weight: 700;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-alt);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.1s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  box-shadow: var(--shadow-md); cursor: pointer;
}

.roi-results {
  background: var(--ink);
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.roi-results .kicker { color: var(--accent); }
.roi-results .kicker::before { background: var(--accent); }

.roi-big {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
  margin: 8px 0 4px;
}

.roi-big-label { color: #B5AEA4; font-size: 0.92rem; margin-bottom: 28px; }

.roi-rows { display: grid; gap: 14px; border-top: 1px solid #4A453F; padding-top: 24px; }

.roi-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  color: #C9C2B8;
}

.roi-row b {
  font-family: var(--font-mono);
  color: #fff;
  font-size: 1.02rem;
}

.roi-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #837C72;
}

/* ---------- pricing ---------- */

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px;
  margin: 0 auto 48px;
}

.billing-toggle button {
  border: none;
  background: transparent;
  padding: 9px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}

.billing-toggle button.active {
  background: var(--accent);
  color: #fff;
}

.billing-toggle .save {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ok);
  font-weight: 700;
  padding-right: 12px;
}

.pricing-center { text-align: center; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.plan-price {
  margin: 18px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price .amount {
  font-family: var(--font-mono);
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan-price .per { color: var(--ink-faint); font-size: 0.85rem; }

.plan-desc { color: var(--ink-soft); font-size: 0.9rem; min-height: 44px; }

.plan-features {
  list-style: none;
  margin: 26px 0 30px;
  display: grid;
  gap: 12px;
  flex: 1;
}

.plan-features li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  align-items: flex-start;
}

.plan-features li::before {
  content: "✓";
  color: var(--accent-deep);
  font-weight: 700;
  flex-shrink: 0;
}

.plan .btn { width: 100%; }

.pricing-foot {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
}

.faq-q .chev {
  flex-shrink: 0;
  font-family: var(--font-mono);
  color: var(--accent-deep);
  transition: transform 0.25s;
  font-size: 1.1rem;
}

.faq-item.open .chev { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- final CTA ---------- */

.cta-panel {
  background: var(--ink);
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212, 149, 106, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-panel h2 { color: #fff; }
.cta-panel p {
  color: #B5AEA4;
  max-width: 540px;
  margin: 18px auto 36px;
  font-size: 1.1rem;
}

.cta-panel .hero-note { color: #837C72; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 14px;
  max-width: 280px;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.footer ul { list-style: none; display: grid; gap: 10px; }

.footer ul a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.footer ul a:hover { color: var(--accent-deep); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .deal-card { transition: none !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .stat-grid, .steps, .feature-grid, .integrations-grid { grid-template-columns: 1fr 1fr; }
  .security-grid { grid-template-columns: 1fr; gap: 40px; }
  .roi-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 1199px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-cta .nav-back { display: inline-flex; }
  .nav-toggle { display: block; }
  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
  }
}

@media (max-width: 520px) {
  .nav .container { padding: 0 16px; }
  .nav-inner { gap: 10px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-primary { padding: 8px 12px; font-size: 0.82rem; }
  .nav-toggle { width: 34px; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { left: 5px; }
  .logo { font-size: 0.95rem; gap: 8px; }
  .logo-mark-svg { width: 26px; height: 26px; }
  .lang-code { display: none; }
  .lang-btn { padding: 8px; }
  .lang-switcher { margin-right: 0; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .stat-grid, .steps, .feature-grid, .integrations-grid { grid-template-columns: 1fr; }
  .mockup-board { grid-template-columns: repeat(3, minmax(140px, 1fr)); overflow-x: auto; }
  .cta-panel { padding: 56px 24px; }
  .roi-inputs, .roi-results { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- legal pages ---------- */

.legal-main { padding: 72px 0 96px; }
.legal-main .container { max-width: 760px; }
.legal-main h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 10px; }
.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 40px;
}
.legal-main h2 { font-size: 1.2rem; margin: 40px 0 12px; }
.legal-main p, .legal-main li { color: var(--ink-soft); }
.legal-main p { margin-bottom: 14px; }
.legal-main ul { padding-left: 22px; margin: 0 0 14px; }
.legal-main li { margin-bottom: 8px; }
.legal-main a { color: var(--accent-deep); text-decoration: underline; }

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}
.lang-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lang-btn:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
  background: var(--surface);
}
.lang-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.lang-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 130px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
  box-shadow: var(--shadow-md);
}
.lang-switcher:hover .lang-menu,
.lang-switcher:focus-within .lang-menu,
.lang-switcher.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.lang-menu a:hover {
  color: var(--ink);
  background: var(--bg-alt);
}
.lang-menu a.active {
  color: var(--accent-deep);
  background: var(--accent-faint);
  font-weight: 600;
}
