/* ==========================================================================
   KovraPOS — SaaS brand design system
   Single external stylesheet, mobile-first, CSP-friendly (no inline styles).
   Palette: #ffffff canvas · #f6f8fc soft paper · #0a1220 ink
            #1d4ed8 royal blue · #059669 emerald live · #e4eaf2 hairlines
   ========================================================================== */

/* ------------------------------- 1. Tokens ------------------------------ */
:root {
  --white: #ffffff;
  --paper: #f6f8fc;
  --paper-2: #eef2f9;
  --ink: #0a1220;
  --ink-2: #1b2637;
  --body: #3d4b61;
  --muted: #6b7a90;
  --dim: #93a0b4;
  --line: #e4eaf2;
  --line-strong: #cbd5e4;

  --brand: #1d4ed8;
  --brand-dark: #153aa8;
  --brand-bright: #2f6bff;
  --brand-soft: #eef3ff;
  --brand-line: #c9daff;

  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #e8faf2;
  --emerald-line: #a7f3d0;

  --amber: #b45309;
  --amber-soft: #fffaeb;
  --amber-line: #fde68a;

  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --danger-line: #fecaca;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-xs: 0 1px 2px rgba(10, 18, 32, 0.05);
  --shadow-sm: 0 1px 2px rgba(10, 18, 32, 0.04), 0 10px 24px -20px rgba(10, 18, 32, 0.3);
  --shadow: 0 2px 4px rgba(10, 18, 32, 0.03), 0 26px 52px -38px rgba(10, 18, 32, 0.38);
  --shadow-lg: 0 3px 8px rgba(10, 18, 32, 0.04), 0 44px 84px -48px rgba(10, 18, 32, 0.48);
  --shadow-brand: 0 14px 28px -16px rgba(29, 78, 216, 0.55);

  --header-bg: rgba(255, 255, 255, 0.74);
  --header-bg-stuck: rgba(255, 255, 255, 0.93);

  --footer-bg: #0f172a;
  --footer-bg-deep: #0b1322;
  --footer-line: rgba(148, 163, 184, 0.18);
  --footer-text: #cbd5e1;
  --footer-dim: #94a3b8;
  --footer-white: #f8fafc;

  --max: 1160px;
  --header-h: 68px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ------------------------------- 2. Reset ------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--white);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ------------------------------ 3. Type --------------------------------- */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.08rem, 5.2vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: -0.042em;
}

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  letter-spacing: -0.034em;
}

h3 { font-size: clamp(1.02rem, 1.6vw, 1.16rem); letter-spacing: -0.02em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin: 0.32em 0; }

img, svg, picture { max-width: 100%; }
img { display: block; height: auto; }
strong, b { font-weight: 650; color: var(--ink); }

code, kbd, samp {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }
::selection { background: rgba(29, 78, 216, 0.16); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------- 4. Utilities ------------------------------ */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-brand);
  transition: top 0.18s ease;
}

.skip-link:focus { top: 12px; color: #fff; text-decoration: none; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }

.noscript-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--amber-line);
  border-radius: 12px;
  background: var(--amber-soft);
  color: #78350f;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.noscript-note a { color: #92400e; text-decoration: underline; text-underline-offset: 2px; }

/* ----------------------------- 5. Layout -------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  position: relative;
  padding: clamp(52px, 6.5vw, 88px) 0;
}

.section--alt {
  background: linear-gradient(180deg, #f8faff 0%, #f2f6fc 100%);
}

.section--tight { padding: clamp(34px, 5vw, 54px) 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: minmax(0, 1fr); }

.section-head { max-width: 720px; margin: 0 0 34px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin: 0; color: var(--muted); font-size: 1rem; }
.section-head h2 { margin-bottom: 10px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 12px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--white), var(--brand-soft));
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.lede { margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.6; }

/* ----------------------------- 6. Header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(228, 234, 242, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  transition: background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.site-header.is-stuck {
  background: var(--header-bg-stuck);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 30px -26px rgba(10, 18, 32, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover { color: var(--ink); text-decoration: none; }

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 11px;
  box-shadow: 0 8px 18px -12px rgba(29, 78, 216, 0.85);
}

.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.brand-text strong { color: var(--ink); font-size: 1.04rem; font-weight: 800; letter-spacing: -0.028em; }

.brand-text small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.header-actions .header-cta {
  width: auto;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 0.84rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.nav-toggle[aria-expanded="true"] { box-shadow: 0 10px 20px -16px rgba(29, 78, 216, 0.9); }

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 19px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease, background 0.2s ease;
}

.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile-first drawer: full width, animated, never wraps or crowds */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 10px 20px 22px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -34px rgba(10, 18, 32, 0.5);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s ease;
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

body.is-nav-open { overflow: hidden; }

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li { margin: 0; }

.nav-list a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 0.97rem;
  font-weight: 600;
  white-space: nowrap;
  overflow-wrap: normal;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-list a:hover { background: var(--paper); color: var(--brand); text-decoration: none; }
.nav-list a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.nav .nav-cta { display: none; }

/* ----------------------------- 7. Buttons ------------------------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn--primary {
  border-color: var(--brand-dark);
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  border-color: #0f2f86;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  box-shadow: 0 18px 34px -16px rgba(29, 78, 216, 0.7);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}

.btn--ghost:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.btn--mint {
  border-color: var(--emerald-dark);
  background: linear-gradient(180deg, var(--emerald), var(--emerald-dark));
  color: #ffffff;
  box-shadow: 0 12px 26px -18px rgba(4, 120, 87, 0.8);
}

.btn--mint:hover {
  border-color: #065f46;
  background: linear-gradient(180deg, var(--emerald-dark), #065f46);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn--link {
  width: auto;
  min-height: 0;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--brand);
  font-weight: 650;
}

.btn--link:hover { color: var(--brand-dark); text-decoration: underline; transform: none; }

.btn--sm { min-height: 44px; padding: 10px 18px; border-radius: 10px; font-size: 0.88rem; }
.btn--lg { min-height: 54px; padding: 16px 28px; border-radius: 12px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.is-submitting:disabled { opacity: 1; cursor: progress; }

.btn-spinner {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btn-spinner-rotate 0.7s linear infinite;
}

.btn-spinner[hidden] { display: none !important; }

@keyframes btn-spinner-rotate {
  to { transform: rotate(360deg); }
}

.btn-row { display: grid; gap: 12px; align-items: center; }

/* ------------------------------- 8. Hero -------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 78px) 0 clamp(54px, 7vw, 96px);
  background:
    radial-gradient(900px 520px at 82% -14%, rgba(47, 107, 255, 0.17), transparent 62%),
    radial-gradient(680px 420px at -4% 6%, rgba(5, 150, 105, 0.06), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10, 18, 32, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 18, 32, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(760px 420px at 76% 14%, #000 0%, transparent 76%);
  mask-image: radial-gradient(760px 420px at 76% 14%, #000 0%, transparent 76%);
  opacity: 0.7;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.hero-copy,
.hero-visual { min-width: 0; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--brand); }
.hero .lede { max-width: 56ch; margin-bottom: 0; font-size: 1.06rem; }
.hero-actions { display: grid; gap: 11px; margin: 26px 0 20px; }

.hero-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-points li { display: flex; align-items: flex-start; gap: 9px; margin: 0; }

.hero-points li::before {
  content: "";
  width: 14px;
  height: 8px;
  margin-top: 6px;
  flex: 0 0 auto;
  border-left: 2px solid var(--emerald);
  border-bottom: 2px solid var(--emerald);
  border-radius: 1px;
  transform: rotate(-45deg);
}

.hero-visual { position: relative; }

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% -10% -6%;
  z-index: 0;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(29, 78, 216, 0.18), transparent 74%);
  filter: blur(20px);
  pointer-events: none;
}

/* --------------------------- 9. App preview card ------------------------ */
.mock {
  position: relative;
  z-index: 1;
  padding: 16px;
  border: 1px solid rgba(203, 213, 228, 0.85);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-top {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mock-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--line-strong); }
.mock-dot:nth-child(1) { background: #fca5a5; }
.mock-dot:nth-child(2) { background: #fcd34d; }
.mock-dot:nth-child(3) { background: #6ee7b7; }

.mock-title {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mock-live {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.mock-tile {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(180deg, #f9fbff, #f4f7fd);
}

.mock-tile:last-child { grid-column: 1 / -1; }

.mock-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mock-tile strong {
  display: block;
  margin: 4px 0 1px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mock-tile em { color: var(--muted); font-size: 0.64rem; font-style: normal; }
.mock-tile em.up { color: var(--emerald-dark); font-weight: 650; }

.mock-list { margin: 0; padding: 0; list-style: none; }

.mock-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.76rem;
}

.mock-list li:last-child { border-bottom: 0; padding-bottom: 4px; }
.mock-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mock-name { color: var(--ink-2); font-weight: 550; overflow-wrap: anywhere; }
.mock-meta { color: var(--muted); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.mock-list .amt { color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--ok { background: var(--emerald-soft); color: var(--emerald-dark); }
.tag--wait { background: var(--amber-soft); color: var(--amber); }
.tag--info { background: var(--brand-soft); color: var(--brand-dark); }

.mock-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
}

.mock-foot .sync { display: inline-flex; align-items: center; gap: 5px; color: var(--emerald-dark); font-weight: 650; }
.mock-foot .sync::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--emerald); }

/* ------------------------------- 10. Pills ------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--body);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill--live { border-color: var(--emerald-line); background: var(--emerald-soft); color: var(--emerald-dark); }

.pill--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
  animation: pulse 2.6s ease-in-out infinite;
}

.pill--soft { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-dark); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.82); }
}

/* ------------------------------ 11. Cards ------------------------------- */
.card {
  position: relative;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.card > h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; }

.card--soft {
  border-color: var(--brand-line);
  background: linear-gradient(180deg, #f9fbff, var(--white));
}

.feature-list { margin: 14px 0 0; padding: 0; list-style: none; }

.feature-list li {
  position: relative;
  margin: 0;
  padding: 5px 0 5px 25px;
  color: var(--body);
  font-size: 0.89rem;
  overflow-wrap: anywhere;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--emerald);
  border-bottom: 2px solid var(--emerald);
  border-radius: 1px;
  transform: rotate(-45deg);
}

/* --------------------------- 12. Module grid ---------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.feature {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.feature:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--white), var(--brand-soft));
  color: var(--brand);
}

.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 16px 0 7px; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.89rem; }

/* ------------------------------ 13. Steps ------------------------------- */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: linear-gradient(160deg, var(--brand-bright), var(--brand-dark));
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 20px -14px rgba(29, 78, 216, 0.9);
}

.step h3 { margin: 0 0 7px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.89rem; }

/* ------------------------------ 14. Plans ------------------------------- */
.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.plan--featured {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(460px 260px at 100% 0%, rgba(47, 107, 255, 0.32), transparent 68%),
    linear-gradient(165deg, #0d1a30 0%, #101f3a 100%);
  box-shadow: 0 32px 64px -38px rgba(10, 18, 32, 0.7);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.plan h3 { margin: 0; font-size: 1.04rem; }

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.price small { color: var(--muted); font-size: 0.78rem; font-weight: 500; letter-spacing: 0; }
.price--custom { font-size: clamp(1.3rem, 4.4vw, 1.6rem); }

.plan .plan-sub { margin: 4px 0 16px; color: var(--muted); font-size: 0.86rem; }
.plan .feature-list { flex: 1 1 auto; margin: 0 0 20px; }
.plan > .btn { margin-top: auto; }

.plan--featured h3,
.plan--featured .price { color: #ffffff; }
.plan--featured .price small { color: rgba(203, 217, 240, 0.72); }
.plan--featured .plan-sub,
.plan--featured .feature-list li { color: rgba(222, 234, 252, 0.78); }
.plan--featured .feature-list li::before { border-color: #4ade80; }
.plan--featured .pill { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.07); color: #dbe7fb; }

.plan--featured .pill--soft {
  border-color: rgba(120, 160, 255, 0.36);
  background: rgba(47, 107, 255, 0.18);
  color: #bfd4ff;
}

.plan-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
  text-align: center;
}

.plan-note a { font-weight: 600; }

/* ----------------------------- 15. CTA band ----------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 54px) clamp(22px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(620px 320px at 10% 0%, rgba(90, 150, 255, 0.35), transparent 62%),
    linear-gradient(160deg, #11224a 0%, #0c1730 100%);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cta-band h2 { color: #ffffff; max-width: 24ch; margin-inline: auto; }
.cta-band p { max-width: 58ch; margin-inline: auto; color: rgba(214, 228, 250, 0.78); }
.cta-band .eyebrow { border-color: rgba(120, 160, 255, 0.35); background: rgba(47, 107, 255, 0.16); color: #bfd4ff; }
.cta-band .eyebrow::before { background: #6ea8ff; box-shadow: none; }

.cta-band .btn--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf1ff;
  box-shadow: none;
}

.cta-band .btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.cta-band .btn-row { justify-content: center; margin-top: 26px; }

/* Homepage free-trial band: trial lengths only, no plan comparison cards */
.trial-band .trial-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trial-band .trial-options li {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  padding: 8px 15px;
  border: 1px solid rgba(120, 160, 255, 0.32);
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.16);
  color: #dbeafe;
  font-size: 0.79rem;
  font-weight: 600;
  white-space: nowrap;
}

.trial-band .trial-options strong { color: #ffffff; font-size: 0.88rem; font-weight: 750; }

/* ----------------------------- 16. Footer ------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding: clamp(40px, 5.5vw, 62px) 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(760px 320px at 88% -18%, rgba(47, 107, 255, 0.22), transparent 68%),
    linear-gradient(180deg, #111d33 0%, var(--footer-bg) 40%, var(--footer-bg) 78%, var(--footer-bg-deep) 100%);
  color: var(--footer-text);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(47, 107, 255, 0.7), rgba(56, 189, 248, 0.35), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.footer-brand { min-width: 0; }

.brand--footer { color: var(--footer-white); }
.brand--footer:hover { color: var(--footer-white); text-decoration: none; }

.brand--footer .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 16px 30px -18px rgba(47, 107, 255, 0.95);
}

.brand--footer .brand-text strong { color: var(--footer-white); font-size: 1.12rem; }
.brand--footer .brand-text small { color: var(--footer-dim); }

.footer-tagline {
  max-width: 40ch;
  margin: 16px 0 0;
  color: var(--footer-text);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 20px;
  padding: 9px 16px 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--footer-white);
  font-size: 0.81rem;
  font-weight: 650;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.footer-wa svg { width: 17px; height: 17px; flex: 0 0 auto; color: #34d399; }
.footer-wa__label { color: #dbeafe; }
.footer-wa__handle { color: #ffffff; font-weight: 750; letter-spacing: 0.01em; }

.footer-wa:hover {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(5, 150, 105, 0.18);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -24px rgba(16, 185, 129, 0.95);
}

.footer-nav { min-width: 0; }

.footer-title {
  margin: 0 0 12px;
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0; }

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--footer-text);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.16s ease, transform 0.16s ease;
}

.footer-links a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--brand-bright);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.footer-links a:hover { color: #ffffff; text-decoration: none; transform: translateX(2px); }
.footer-links a:hover::before { opacity: 1; transform: scale(1); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: clamp(26px, 4vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-dim);
  font-size: 0.78rem;
}

.footer-bottom p { margin: 0; }

.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.legal-links a { color: var(--footer-dim); font-size: 0.78rem; white-space: nowrap; }
.legal-links a:hover { color: #ffffff; text-decoration: none; }

/* -------------------------- 17. Download page --------------------------- */
.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--white), #fbfcff);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.platform-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); }

.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--white), var(--brand-soft));
  color: var(--brand);
}

.platform-icon svg { width: 26px; height: 26px; }
.platform-card h3 { margin-bottom: 8px; font-size: 1.22rem; }
.platform-card > p { margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; }
.platform-card .spec-list { margin-bottom: 22px; }
.platform-card .btn { margin-top: auto; }

.spec-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.spec-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}

.spec-list span { flex: 0 0 auto; color: var(--muted); }
.spec-list strong { color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.download-note { min-height: 2.4em; margin: 12px 0 0; color: var(--muted); font-size: 0.76rem; overflow-wrap: anywhere; }

.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.download-steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: step; }

.download-steps li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 40px;
  color: var(--body);
  font-size: 0.9rem;
  counter-increment: step;
  overflow-wrap: anywhere;
}

.download-steps li:last-child { margin-bottom: 0; }
.download-steps li strong { display: block; color: var(--ink); font-size: 0.93rem; }

.download-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

/* --------------------- 17b. Android app download card ------------------- */
.app-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.app-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--brand-line);
  border-radius: 22px;
  background:
    radial-gradient(520px 260px at 100% -10%, rgba(47, 107, 255, 0.16), transparent 66%),
    linear-gradient(180deg, var(--white) 0%, #f7faff 100%);
  box-shadow: 0 2px 4px rgba(10, 18, 32, 0.03), 0 30px 60px -40px rgba(10, 18, 32, 0.42);
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 54%, var(--emerald) 100%);
}

.app-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 17px;
  background: linear-gradient(160deg, var(--brand-bright) 0%, var(--brand) 55%, #0f2f86 100%);
  color: #ffffff;
  box-shadow: 0 16px 30px -18px rgba(29, 78, 216, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.app-icon svg { width: 28px; height: 28px; }
.app-icon--sm { width: 46px; height: 46px; border-radius: 14px; }
.app-icon--sm svg { width: 22px; height: 22px; }

.app-card__id { flex: 1 1 150px; min-width: 0; }
.app-card__name { margin: 0; color: var(--ink); font-size: 1.16rem; letter-spacing: -0.022em; }
.app-card__sub { margin: 3px 0 0; color: var(--muted); font-size: 0.8rem; }

.app-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 5px 12px;
  border: 1px solid var(--emerald-line);
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.app-version-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
  animation: pulse 2.6s ease-in-out infinite;
}

.app-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.app-facts li {
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.app-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.app-facts strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.app-download__btn svg { width: 20px; height: 20px; }
.app-download__hint { margin: 8px 0 0; color: var(--muted); font-size: 0.74rem; }

.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.app-card__meta strong { color: var(--ink-2); font-weight: 650; }

.hq-status { display: inline-flex; align-items: center; gap: 6px; }
.hq-status::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--dim); }
.hq-status[data-state="live"]::before { background: var(--emerald); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12); }
.hq-status[data-state="syncing"]::before { background: var(--brand); }
.hq-status[data-state="cached"]::before { background: #d97706; }
.hq-status[data-state="fallback"]::before { background: var(--line-strong); }

.app-notes { display: grid; gap: 18px; min-width: 0; }

.release-list {
  display: grid;
  gap: 5px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.release-list li {
  position: relative;
  margin: 0;
  padding: 6px 0 6px 26px;
  color: var(--body);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.release-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--emerald);
  border-bottom: 2px solid var(--emerald);
  border-radius: 1px;
  transform: rotate(-45deg);
}

.release-meta {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

/* Homepage Android download strip */
.app-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: clamp(22px, 3.4vw, 30px);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(560px 260px at 100% 0%, rgba(47, 107, 255, 0.14), transparent 66%),
    linear-gradient(180deg, var(--white) 0%, #f5f9ff 100%);
  box-shadow: var(--shadow);
}

.app-cta__head { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.app-cta__head .eyebrow { margin-bottom: 10px; }
.app-cta__head h2 { margin-bottom: 8px; font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.app-cta__body { min-width: 0; }
.app-cta__body p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.app-cta__panel {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.app-cta__panel .app-version-pill { justify-self: start; }
.app-cta__meta { margin: 0; color: var(--muted); font-size: 0.8rem; }
.app-cta__meta strong { color: var(--ink-2); font-weight: 650; }
.app-cta__actions { display: grid; gap: 9px; }
.app-cta__actions .btn { width: 100%; }
.app-cta__actions .hq-status { color: var(--muted); font-size: 0.74rem; }

@media (min-width: 820px) {
  .app-download { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 22px; }
  .app-card { padding: 28px; }
  .app-cta { grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: center; }
  .app-cta__actions .btn { width: auto; }
}

/* ---------------------------- 18. Forms --------------------------------- */
.form-shell {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-head { margin-bottom: 18px; }
.form-head h2,
.form-head h3 { margin-bottom: 5px; }
.form-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label {
  color: var(--ink-2);
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: 0.005em;
}

.req { color: var(--brand); font-weight: 700; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-color: var(--white);
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 19px) calc(50% + 2px),
    calc(100% - 14px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
  cursor: pointer;
}

.field select option { background: var(--white); color: var(--ink); }
.field textarea { min-height: 100px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--dim); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.16);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger-line);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.09);
}

.field input:-webkit-autofill,
.field select:-webkit-autofill,
.field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 60px var(--white) inset;
  caret-color: var(--ink);
}

.hint { margin: 0; color: var(--muted); font-size: 0.76rem; overflow-wrap: anywhere; }
.err { margin: 0; color: var(--danger); font-size: 0.78rem; font-weight: 600; overflow-wrap: anywhere; }
.err:empty { display: none; }
.err[hidden] { display: none !important; }

.form-status {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--body);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.form-status:empty { display: none; }
.form-status[hidden] { display: none !important; }
.form-status[data-state="error"] { border-color: var(--danger-line); background: var(--danger-soft); color: #991b1b; }
.form-status[data-state="ok"] { border-color: var(--emerald-line); background: var(--emerald-soft); color: #065f46; }
.form-status[data-state="info"] { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-dark); }

/* The register page confirms success in the modal, never in this inline box. */
#trial-form-status[data-state="ok"] { display: none; }

.result-panel {
  padding: 18px;
  border: 1px solid var(--emerald-line);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 200px at 90% 0%, rgba(5, 150, 105, 0.1), transparent 70%),
    var(--emerald-soft);
}

.result-panel[hidden] { display: none !important; }
.result-panel h3 { margin-bottom: 7px; color: #064e3b; }
.result-panel p { color: #065f46; font-size: 0.9rem; }
.result-panel .btn-row { margin-top: 14px; }

.result-steps { margin: 12px 0 0; padding-left: 18px; color: #065f46; font-size: 0.87rem; }
.result-steps li { margin: 0.3em 0; }

.form-aside { display: grid; gap: 14px; align-content: start; }
.form-aside .card p { font-size: 0.88rem; }

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.form-note { margin: 0; color: var(--muted); font-size: 0.76rem; }
.card .btn-row { margin-top: 18px; }

/* Custom plan listbox on the registration page */
.plan-picker {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.plan-picker__legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  color: var(--ink-2);
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: 0.005em;
}

.plan-select { position: relative; }

.plan-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.plan-select__trigger:hover { border-color: var(--brand-line); }
.plan-select__trigger:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.plan-select.is-open .plan-select__trigger {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.plan-select__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.plan-select__chevron {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--brand);
  transition: transform 0.18s ease;
}

.plan-select.is-open .plan-select__chevron { transform: rotate(180deg); }

.plan-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 16px 34px -18px rgba(10, 18, 32, 0.32);
}

.plan-select__menu[hidden] { display: none; }

.plan-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.plan-select__option:hover,
.plan-select__option:focus-visible { background: var(--brand-soft); color: var(--brand-dark); outline: none; }
.plan-select__option.is-selected { background: #f6f9ff; color: var(--brand); font-weight: 700; }
.plan-select__option-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.plan-select__check {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.plan-select__check::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -54%);
}

.plan-select__option.is-selected .plan-select__check { border-color: var(--brand); background: var(--brand); }
.plan-select__option.is-selected .plan-select__check::after { opacity: 1; }
.plan-picker .hint { margin-top: 8px; }
.plan-picker .err { margin-top: 6px; }

/* Honeypot — hidden from view and from the accessibility tree */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--body);
  font-size: 0.84rem;
}

.consent input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background-color: var(--white);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.consent input[type="checkbox"]:checked {
  border-color: var(--brand);
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.4l3.2 3.2 6.4-7'/%3E%3C/svg%3E");
}

.consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.16);
}

.consent label { color: var(--body); font-size: 0.84rem; font-weight: 500; cursor: pointer; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }

.submit-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.submit-row .form-note { margin: 0; }

/* ----------------------- 19. Registration card -------------------------- */
.signup {
  padding: clamp(26px, 5vw, 46px) 0 clamp(44px, 6vw, 68px);
  background: linear-gradient(180deg, #f6f9ff 0%, var(--white) 72%);
}

.signup-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 660px;
  margin-inline: auto;
  padding: 24px 20px 22px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 2px 4px rgba(10, 18, 32, 0.03), 0 32px 64px -36px rgba(10, 18, 32, 0.28);
}

.signup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 52%, var(--brand-bright) 100%);
  pointer-events: none;
}

.signup-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.signup-trust li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.71rem;
  font-weight: 650;
  line-height: 1.3;
}

.signup-trust li::before { content: "✓"; color: var(--emerald); font-size: 0.78rem; font-weight: 800; line-height: 1; }

.signup-head { margin-bottom: 20px; }

.signup-head .signup-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 4px 12px 4px 5px;
  border: 1px solid rgba(29, 78, 216, 0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--white), var(--brand-soft));
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.signup-eyebrow__mark { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 6px; }

.signup-head h1 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 4.4vw, 1.95rem);
  letter-spacing: -0.03em;
}

.signup-head h1 .brand-accent { color: var(--brand); }
.signup-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.signup-help { margin: 0; color: var(--muted); font-size: 0.8rem; text-align: center; }
.signup-help a { font-weight: 650; }

@media (max-width: 359px) {
  .signup-head .signup-eyebrow { padding: 4px 10px 4px 4px; font-size: 0.56rem; letter-spacing: 0.08em; }
  .signup-eyebrow__mark { width: 18px; height: 18px; }
}

/* --------------------- 20. Executive success modal ---------------------- */
html.has-modal { overflow: hidden !important; }

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.success-modal[hidden] { display: none !important; }

.success-modal__scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 32, 0.46);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.success-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid rgba(10, 18, 32, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(140% 96% at 50% 0%, rgba(29, 78, 216, 0.06), rgba(5, 150, 105, 0.04) 48%, transparent 74%),
    var(--white);
  box-shadow: 0 26px 64px rgba(10, 18, 32, 0.22);
  text-align: center;
  opacity: 0;
  transform: translateY(16px) scale(0.975);
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.22, 0.68, 0.36, 1);
}

.success-modal.is-visible .success-modal__scrim { opacity: 1; }
.success-modal.is-visible .success-modal__card { opacity: 1; transform: none; }

.success-modal__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  margin: 0 auto 22px;
  padding: 6px 15px 6px 7px;
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--white), var(--brand-soft) 66%, #dbeafe);
  box-shadow: 0 1px 2px rgba(10, 18, 32, 0.05), 0 8px 20px -16px rgba(29, 78, 216, 0.8);
}

.success-modal__brand-mark { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; }

.success-modal__brand-word {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.success-modal__brand-tag {
  padding-left: 10px;
  border-left: 1px solid rgba(29, 78, 216, 0.24);
  color: var(--brand);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.success-modal__badge {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border: 1px solid var(--emerald-line);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #ffffff 0%, var(--emerald-soft) 54%, #d1fae5 100%);
  box-shadow: 0 12px 26px -16px rgba(4, 120, 87, 0.7), 0 0 0 8px rgba(29, 78, 216, 0.06);
  opacity: 0;
  transform: scale(0.72);
}

.success-modal.is-visible .success-modal__badge {
  animation: success-badge-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.15) 0.05s forwards;
}

.success-modal__check { width: 44px; height: 44px; display: block; }

.success-modal__check-ring {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 148;
  stroke-dashoffset: 148;
}

.success-modal__check-mark {
  fill: none;
  stroke: var(--emerald-dark);
  stroke-width: 3.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
}

.success-modal.is-visible .success-modal__check-ring { animation: success-stroke 0.55s ease-out 0.14s forwards; }
.success-modal.is-visible .success-modal__check-mark { animation: success-stroke 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards; }

.success-modal__title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.34rem, 4.6vw, 1.64rem);
  letter-spacing: -0.024em;
}

.success-modal__title:focus { outline: none; }

.success-modal__copy {
  max-width: 44ch;
  margin: 0 auto;
  color: var(--body);
  font-size: 0.93rem;
  line-height: 1.66;
}

.success-modal__copy strong { color: var(--ink); font-weight: 750; }

.success-modal__summary {
  display: grid;
  margin: 20px 0 0;
  padding: 2px 16px;
  border: 1px solid rgba(10, 18, 32, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--paper), var(--white));
  box-shadow: inset 0 1px 0 var(--white);
  font-size: 0.86rem;
  text-align: left;
}

.success-modal__summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 0;
  padding: 10px 0;
}

.success-modal__summary-row + .success-modal__summary-row { border-top: 1px solid var(--line); }

.success-modal__summary-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.success-modal__summary-label::after { content: ":"; }

.success-modal__summary strong {
  margin-left: auto;
  color: var(--ink);
  font-weight: 750;
  text-align: right;
  overflow-wrap: anywhere;
}

.success-modal__actions { display: grid; gap: 12px; margin-top: 24px; }
.success-modal__actions .btn { width: 100%; }
.success-modal__primary { min-height: 54px; }
.success-modal__primary svg { width: 20px; height: 20px; }
.success-modal__secondary { min-height: 48px; font-weight: 700; }
.success-modal__footnote { margin: 16px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }

@keyframes success-badge-in {
  from { opacity: 0; transform: scale(0.72); }
  62% { opacity: 1; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes success-stroke {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 430px) {
  .success-modal { padding: 12px; }
  .success-modal__card { padding: 20px 18px; border-radius: 22px; }
  .success-modal__brand { gap: 7px; margin-bottom: 18px; }
  .success-modal__brand-tag { padding-left: 7px; font-size: 0.54rem; letter-spacing: 0.1em; }
  .success-modal__summary { padding: 2px 14px; }
}

/* ------------------------------- 21. FAQ -------------------------------- */
.faq { display: grid; gap: 10px; max-width: 840px; margin: 0 auto; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq details[open] { border-color: var(--brand-line); box-shadow: var(--shadow); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 15px 18px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .faq-body { padding: 0 18px 18px; }
.faq .faq-body p { margin: 0 0 0.65em; color: var(--muted); font-size: 0.9rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* --------------------------- 22. Page hero ------------------------------ */
.page-hero {
  padding: clamp(28px, 4.5vw, 46px) 0 clamp(30px, 4.5vw, 48px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(680px 340px at 94% -10%, rgba(47, 107, 255, 0.12), transparent 68%),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.page-hero h1 { max-width: 22ch; margin-bottom: 12px; }
.page-hero .lede { max-width: 68ch; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.77rem;
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.79rem;
}

.legal-meta li { margin: 0; }
.legal-meta strong { color: var(--ink-2); }

/* ---------------------------- 23. Legal prose --------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 52px;
}

.toc {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.toc h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc ol { margin: 0; padding-left: 1.15em; }
.toc li { margin: 0.22em 0; font-size: 0.84rem; }
.toc a { color: var(--body); }
.toc a:hover { color: var(--brand); }

.prose { max-width: 82ch; min-width: 0; }

.prose h2 {
  margin: 1.9em 0 0.55em;
  padding-top: 0.3em;
  font-size: clamp(1.18rem, 3vw, 1.42rem);
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 0.45em; font-size: 1rem; }
.prose p,
.prose li { color: var(--body); font-size: 0.93rem; }
.prose ul,
.prose ol { padding-left: 1.25em; }
.prose li { margin: 0.34em 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.prose strong { color: var(--ink); }

.prose blockquote {
  margin: 1.2em 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--brand-line);
  color: var(--muted);
}

.prose table { width: 100%; margin: 1em 0; border-collapse: collapse; font-size: 0.85rem; }
.prose th,
.prose td { padding: 9px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--paper); color: var(--ink-2); font-weight: 650; white-space: nowrap; }
.prose td { color: var(--body); }

.table-wrap {
  margin: 1em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table { min-width: 520px; margin: 0; border: 0; }
.table-wrap th:first-child,
.table-wrap td:first-child { border-left: 0; }
.table-wrap th:last-child,
.table-wrap td:last-child { border-right: 0; }
.table-wrap tr:first-child th { border-top: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }

.callout {
  margin: 1.2em 0;
  padding: 14px 16px;
  border: 1px solid var(--brand-line);
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--brand-soft);
}

.callout p { margin: 0; color: var(--brand-dark); font-size: 0.89rem; }
.callout strong { color: var(--ink); }
.callout a { color: var(--brand-dark); }

/* --------------------------- 24. Motion & reveal ------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible { opacity: 1; transform: none; }
html:not([data-kovra-js="on"]) [data-reveal] { opacity: 1; transform: none; }

/* --------------------------- 25. Responsive ----------------------------- */
@media (min-width: 560px) {
  .mock-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mock-tile:last-child { grid-column: auto; }
  .wrap { padding: 0 24px; }
  .btn { width: auto; }
  .btn--block { width: 100%; }
  .btn-row { display: flex; flex-wrap: wrap; }
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
  .card { padding: 26px; }
  .feature { padding: 28px; }
  .plan { padding: 28px; }
  .form-shell { padding: 26px; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .submit-row .btn { width: 100%; }
}

@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup-card { padding: 30px 32px 28px; }
  .signup { padding-top: 38px; }
}

@media (min-width: 820px) {
  .footer-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; }
  .footer-nav { justify-self: end; min-width: 210px; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (min-width: 900px) {
  .header-inner { position: relative; gap: 18px; }

  .header-actions,
  .nav-toggle { display: none; }

  .nav {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    flex: 1 1 auto;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: none;
  }

  .nav-list {
    grid-column: 2;
    justify-self: center;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    width: auto;
  }

  .nav-list a { width: auto; min-height: 40px; padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; }

  .nav .nav-cta {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
    width: auto;
    min-height: 42px;
    padding: 10px 18px;
  }

  .hero-inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 52px; }
  .hero .lede { font-size: 1.1rem; }
  .hero h1 { max-width: 100%; }
  .hero-actions { margin-top: 30px; }
  .hero-points { grid-template-columns: minmax(0, 1fr); }

  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .install-layout { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 22px; align-items: start; }
  .form-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; }
  .form-shell { padding: 30px; }
  .legal-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 36px; padding-top: 36px; padding-bottom: 64px; }
  .toc { position: sticky; top: calc(var(--header-h) + 18px); }
  .signup { padding-top: 48px; padding-bottom: 76px; }
  .cta-band { padding: 52px 48px; }
}

@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-head { margin-bottom: 40px; }
}

.plans-grid { align-items: stretch; }

@media (max-width: 359px) {
  .wrap { padding: 0 14px; }
  .brand-text small { display: none; }
  h1 { font-size: 1.8rem; }
  .mock { padding: 13px; }
  .mock-grid { grid-template-columns: minmax(0, 1fr); }
  .mock-tile:last-child { grid-column: auto; }
  .hero-actions .btn { font-size: 0.9rem; padding-inline: 14px; }
  .pill { font-size: 0.6rem; }
  .header-actions .header-cta { padding: 9px 12px; font-size: 0.8rem; }
  .nav-toggle { width: 40px; height: 40px; }
  .footer-wa__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] { opacity: 1 !important; transform: none !important; }

  .btn-spinner {
    animation-duration: 1.4s !important;
    animation-iteration-count: infinite !important;
  }
}

@media (prefers-contrast: more) {
  :root { --line: #cbd5e4; --muted: #475569; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header,
  .site-footer,
  .btn,
  .nav,
  .toc { display: none !important; }
  .section { padding: 12pt 0; }
  .prose { max-width: none; }
  .prose p,
  .prose li,
  .prose td { color: #111; }
  a { color: #000; text-decoration: underline; }
}
