/* ==========================================================================
   PreAbs Website — Design System
   Brand palette derived from PreAbs ThemeColors (maroon #800000, dark #DC2626)
   ========================================================================== */

:root {
  /* Brand */
  --maroon: #800000;
  --maroon-700: #570000;
  --accent: #dc2626;
  --accent-hover: #ef4444;
  --accent-dark: #b91c1c;

  /* Warm light surfaces (from ThemeColors.light) */
  --bg: #f5f1ec;
  --bg-alt: #faf7f2;
  --surface: #ffffff;
  --surface-elev: #fdfbf8;

  /* Text */
  --text: #191c1d;
  --text-2: #5a413d;
  --text-3: #8e706c;

  /* Lines */
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.05);
  --line-brand: rgba(128, 0, 0, 0.22);

  /* Status */
  --ok: #1e8e3e;
  --info: #1976d2;
  --warn: #f9ab00;
  --bad: #d93025;

  /* Dark section tokens */
  --dark-bg: #05080d;
  --dark-bg-2: #0a0f15;
  --dark-surface: #0d131a;
  --dark-text: #f5f5f5;
  --dark-text-2: #a1a1aa;
  --dark-line: rgba(255, 255, 255, 0.09);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 10px 30px -12px rgba(64, 0, 0, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(64, 0, 0, 0.32);
  --glow: 0 0 0 1px rgba(220, 38, 38, 0.12), 0 18px 40px -18px rgba(220, 38, 38, 0.35);

  /* Radii */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* Layout */
  --wrap: 1180px;
  --header-h: 72px;

  /* Type */
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

p { color: var(--text-2); }

::selection { background: rgba(128, 0, 0, 0.16); }

:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.section { padding-block: clamp(56px, 9vw, 110px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  background: rgba(128, 0, 0, 0.07);
  border: 1px solid var(--line-brand);
  padding: 7px 14px;
  border-radius: 999px;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  margin-top: 16px;
}
.section-head p {
  margin-top: 14px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--text-2);
}
.section-head.center { margin-inline: auto; text-align: center; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-py: 14px;
  --btn-px: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(220, 38, 38, 0.7);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  box-shadow: 0 18px 34px -12px rgba(220, 38, 38, 0.8);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--line-brand);
  box-shadow: var(--shadow);
}

.btn--dark {
  background: var(--dark-text);
  color: var(--dark-bg);
}
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--lg { --btn-py: 17px; --btn-px: 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(245, 241, 236, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(64, 0, 0, 0.4);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}
.nav-links a {
  padding: 9px 14px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--maroon); background: rgba(128, 0, 0, 0.06); }
.nav-links a[aria-current="page"] { color: var(--maroon); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { --btn-py: 11px; --btn-px: 20px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 9vw, 110px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(60% 60% at 20% 10%, rgba(128, 0, 0, 0.10), transparent 70%),
    radial-gradient(50% 50% at 85% 0%, rgba(220, 38, 38, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  margin-top: 20px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--maroon), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 20px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-2);
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--text-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 17px; height: 17px; color: var(--ok); }

/* Hero visual — app window mock */
.hero-visual { position: relative; }
.window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
}
.hero-visual:hover .window { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-elev);
  border-bottom: 1px solid var(--line);
}
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.window-bar .dot.r { background: #ff5f57; }
.window-bar .dot.y { background: #febc2e; }
.window-bar .dot.g { background: #28c840; }
.window-bar .title {
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
}
.window-body { display: grid; grid-template-columns: 132px 1fr; min-height: 320px; }
.window-side {
  background: var(--bg-alt);
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.window-side .side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-2);
}
.window-side .side-item.active {
  background: rgba(128, 0, 0, 0.08);
  color: var(--maroon);
  font-weight: 600;
}
.window-side .side-item svg { width: 15px; height: 15px; }
.window-main { padding: 16px; }
.window-main .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi {
  background: var(--surface-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
}
.kpi .k-label { font-size: 0.66rem; color: var(--text-3); font-weight: 600; }
.kpi .k-val { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; margin-top: 2px; }
.kpi .k-val.red { color: var(--accent-dark); }
.kpi .k-val.green { color: var(--ok); }
.kpi .k-val.blue { color: var(--info); }
.window-main .rows { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.row-line {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-alt);
  font-size: 0.72rem;
  color: var(--text-2);
}
.row-line .pill {
  justify-self: start;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.pill.ok { background: rgba(30, 142, 62, 0.12); color: var(--ok); }
.pill.late { background: rgba(249, 171, 0, 0.16); color: #b37400; }
.pill.abs { background: rgba(217, 48, 37, 0.12); color: var(--bad); }

/* Floating badge on hero visual */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.float-badge svg { width: 18px; height: 18px; color: var(--ok); }
.float-badge.one { top: -18px; right: 8px; }
.float-badge.two { bottom: -20px; left: -14px; }
.float-badge.two svg { color: var(--info); }

/* --------------------------------------------------------------------------
   Logo / trust strip
   -------------------------------------------------------------------------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px;
  border-right: 1px solid var(--line-2);
}
.trust-item:last-child { border-right: 0; }
.trust-item .t-ico {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(128, 0, 0, 0.07);
  color: var(--maroon);
}
.trust-item .t-ico svg { width: 21px; height: 21px; }
.trust-item .t-val { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.trust-item .t-lbl { font-size: 0.8rem; color: var(--text-3); }

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-brand);
}
.card .c-ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.12), rgba(128, 0, 0, 0.08));
  color: var(--maroon);
  border: 1px solid var(--line-brand);
}
.card .c-ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; }
.card p { margin-top: 10px; font-size: 0.95rem; color: var(--text-2); }
.card .c-list { margin-top: 16px; padding: 0; list-style: none; display: grid; gap: 9px; }
.card .c-list li {
  display: flex;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text-2);
}
.card .c-list svg { width: 17px; height: 17px; flex: none; color: var(--ok); margin-top: 2px; }

/* --------------------------------------------------------------------------
   Alternating feature rows
   -------------------------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(48px, 7vw, 88px); }
.feature-row.rev .fr-media { order: -1; }
.fr-text h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.fr-text p { margin-top: 14px; font-size: 1rem; }
.fr-text .c-list { margin-top: 20px; display: grid; gap: 12px; padding: 0; list-style: none; }
.fr-text .c-list li { display: flex; gap: 11px; font-size: 0.95rem; color: var(--text-2); }
.fr-text .c-list .chk {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(30, 142, 62, 0.12);
  color: var(--ok);
}
.fr-text .c-list svg { width: 15px; height: 15px; }

.fr-media {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.5vw, 24px);
}
.fr-media .screen {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.fr-media .screen-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 600; color: var(--text-2);
}
.fr-media .screen-body { padding: 16px; display: grid; gap: 10px; }

/* mini calendar grid */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal .cell {
  aspect-ratio: 1;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--line-2);
}
.cal .cell.present { background: rgba(30, 142, 62, 0.14); color: var(--ok); border-color: transparent; }
.cal .cell.late { background: rgba(249, 171, 0, 0.18); color: #b37400; border-color: transparent; }
.cal .cell.absent { background: rgba(217, 48, 37, 0.14); color: var(--bad); border-color: transparent; }
.cal .cell.holiday { background: rgba(25, 118, 210, 0.14); color: var(--info); border-color: transparent; }
.cal .cell.today { box-shadow: 0 0 0 2px var(--maroon) inset; }

/* payroll rows */
.pay-row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 0.8rem;
  color: var(--text-2);
}
.pay-row.head { font-weight: 700; color: var(--text-3); background: transparent; border: 0; }
.pay-row .amt { text-align: right; font-variant-numeric: tabular-nums; }
.pay-row .amt.pos { color: var(--ok); font-weight: 600; }

/* --------------------------------------------------------------------------
   Values / pillars (dark section)
   -------------------------------------------------------------------------- */
.dark {
  background:
    radial-gradient(70% 80% at 80% 0%, rgba(220, 38, 38, 0.16), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(128, 0, 0, 0.28), transparent 60%),
    var(--dark-bg);
  color: var(--dark-text);
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--dark-text); }
.dark p { color: var(--dark-text-2); }
.dark .eyebrow {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.3);
}
.dark .section-head p { color: var(--dark-text-2); }

.pillar {
  background: var(--dark-surface);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 24px 50px -30px rgba(220, 38, 38, 0.6);
}
.pillar .c-ico {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(220, 38, 38, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.3);
}
.pillar .c-ico svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.15rem; }
.pillar p { margin-top: 10px; font-size: 0.94rem; color: var(--dark-text-2); }

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: clamp(16px, 2.4vw, 22px); grid-template-columns: repeat(3, 1fr); }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}
.step .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  background: linear-gradient(180deg, var(--accent), var(--maroon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { margin-top: 8px; font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Download section
   -------------------------------------------------------------------------- */
.download-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.dl-main { padding: clamp(28px, 4vw, 48px); }
.dl-main h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 14px; }
.dl-main p { margin-top: 14px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; font-size: 0.88rem; color: var(--text-3); }
.dl-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dl-meta svg { width: 16px; height: 16px; color: var(--maroon); }
.dl-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.dl-side {
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(220, 38, 38, 0.12), transparent 60%),
    var(--bg-alt);
  border-left: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dl-side h3 { font-size: 1.1rem; }
.dl-side .platform {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.dl-side .platform:last-child { border-bottom: 0; }
.dl-side .platform .p-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.dl-side .platform .p-name svg { width: 18px; height: 18px; color: var(--text-2); }
.badge-soon {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(249, 171, 0, 0.16); color: #b37400;
}
.badge-live {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(30, 142, 62, 0.14); color: var(--ok);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease;
}
.faq details[open] { border-color: var(--line-brand); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(128, 0, 0, 0.07); color: var(--maroon);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq summary .ic svg { width: 16px; height: 16px; }
.faq .a { padding-bottom: 20px; font-size: 0.95rem; color: var(--text-2); }
.faq .a a { color: var(--maroon); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--maroon), var(--accent-dark));
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin-top: 10px; max-width: 52ch; }
.cta-band .btn--ghost { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.2); }
.cta-band .btn--dark { background: #fff; color: var(--maroon); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-text-2);
  padding-top: clamp(48px, 7vw, 80px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
.footer-brand .brand { color: var(--dark-text); }
.footer-brand .brand small { color: var(--dark-text-2); }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; color: var(--dark-text-2); max-width: 34ch; }
.footer-col h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--dark-text); margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a { font-size: 0.92rem; color: var(--dark-text-2); transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--dark-line);
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--dark-text-2);
}
.footer-bottom .fb-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Legal / prose pages
   -------------------------------------------------------------------------- */
.legal-hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 48px);
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(220, 38, 38, 0.10), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 16px; }
.legal-hero .updated { margin-top: 14px; font-size: 0.9rem; color: var(--text-3); }

.legal-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(40px, 6vw, 72px);
}
.legal-nav {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.legal-nav h4 {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-3); margin-bottom: 12px;
}
.legal-nav ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.legal-nav a {
  display: block; padding: 7px 10px; border-radius: 8px;
  font-size: 0.88rem; color: var(--text-2); transition: background-color 0.2s ease, color 0.2s ease;
}
.legal-nav a:hover { background: rgba(128, 0, 0, 0.06); color: var(--maroon); }

.prose { max-width: 760px; }
.prose section { margin-bottom: clamp(30px, 4vw, 44px); scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.prose h3 { font-size: 1.05rem; margin-top: 20px; margin-bottom: 8px; }
.prose p { margin-bottom: 12px; font-size: 0.97rem; }
.prose ul, .prose ol { margin-bottom: 14px; padding-left: 22px; display: grid; gap: 8px; }
.prose li { font-size: 0.95rem; color: var(--text-2); }
.prose a { color: var(--maroon); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--text); }
.callout {
  background: var(--surface-elev);
  border: 1px solid var(--line-brand);
  border-left: 4px solid var(--maroon);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  margin-bottom: 16px;
  font-size: 0.94rem;
  color: var(--text-2);
}
.callout strong { color: var(--maroon); }

/* Support page */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 24px); }
.support-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.support-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-brand); }
.support-card .c-ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 16px; background: rgba(128, 0, 0, 0.07); color: var(--maroon); border: 1px solid var(--line-brand);
}
.support-card .c-ico svg { width: 24px; height: 24px; }
.support-card h3 { font-size: 1.12rem; }
.support-card p { margin-top: 8px; font-size: 0.92rem; }
.support-card a.inline { color: var(--maroon); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   Reveal-on-scroll animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .window { transform: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .trust-items { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line-2); }
  .grid--3, .steps, .support-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .download-card { grid-template-columns: 1fr; }
  .dl-side { border-left: 0; border-top: 1px solid var(--line); }
  .legal-body { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px clamp(18px, 4vw, 32px) 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .grid--3, .grid--2, .steps, .support-grid, .trust-items { grid-template-columns: 1fr; }
  .trust-item { border-right: 0 !important; border-bottom: 1px solid var(--line-2); }
  .trust-item:last-child { border-bottom: 0; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.rev .fr-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .float-badge.one { right: 0; }
  .float-badge.two { left: 0; }
  .window-body { grid-template-columns: 1fr; }
  .window-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand small { display: none; }
  .hero-actions .btn { width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr !important; }
}