/* ============================================================
   La Pared — landing page styles
   Ported from the original design (Archivo + Manrope, blue/yellow).
   ============================================================ */

/* ------------------------------------------------------------------
   Theme tokens — Atlassian Design System (ADS) contract.

   The official ADS design tokens are vendored in assets/css/vendor/
   (atlassian-light.css / atlassian-dark.css) and activate via the
   html[data-color-mode="light|dark"] + html[data-theme="light:light
   dark:dark"] attributes set in the layout. Per ADS guidance for
   brand-customized apps, La Pared's brand + surface palette is defined
   as custom tokens layered on the same data-color-mode selectors, so
   the brand/look is preserved while staying fully token-driven. Where
   an ADS token's value matches ours exactly we consume it directly
   (e.g. --ds-surface == #FFFFFF), otherwise we keep the brand value.
   Light mode lives in :root so it remains the safe default.
   ------------------------------------------------------------------ */
:root {
  --font-display: 'Archivo', sans-serif;
  --bg: #F4F6FB;
  --bg2: #EAEFF8;
  --surface: var(--ds-surface, #FFFFFF);
  --surface2: #F8FAFE;
  --ink: #0B1220;
  --ink2: #33425B;
  --muted: #6B7888;
  --border: #E4E9F2;
  --brand: #0F6BFF;
  --brand2: #0A4FD0;
  --brandSoft: #E7F0FF;
  --yellow: #FFCE1F;
  --dot: rgba(11, 18, 32, 0.10);
  --shadow: 0 18px 40px -20px rgba(13, 40, 90, 0.28);
  --chip: var(--ds-surface, #FFFFFF);
  --ring: #0F6BFF;
}

html[data-color-mode="dark"] {
  --bg: #070A10;
  --bg2: #0C111B;
  --surface: #101726;
  --surface2: #141D2E;
  --ink: #EAF0FA;
  --ink2: #C3CFE0;
  --muted: #8493AA;
  --border: #212B3D;
  --brand: #0F6BFF;
  --brand2: #0A4FD0;
  --brandSoft: #13233F;
  --yellow: #FFCE1F;
  --dot: rgba(255, 255, 255, 0.07);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --chip: #101726;
  --ring: #0F6BFF;
}

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

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--ink);
}

::selection { background: #0F6BFF; color: #fff; }

a { color: inherit; }

.page {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background .4s ease, color .4s ease;
}

/* Dotted background field */
.page-dots {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1.4px, transparent 1.5px);
  background-size: 26px 26px;
  z-index: 0;
  pointer-events: none;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Animations ---------- */
@keyframes lpScan {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: .95; }
  90% { opacity: .95; }
  100% { transform: translateY(168px); opacity: 0; }
}
@keyframes lpBox {
  0%, 14% { opacity: 0; transform: scale(.82); }
  28%, 82% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.03); }
}
@keyframes lpChip {
  0%, 30% { opacity: 0; transform: translateY(8px) scale(.92); }
  44%, 78% { opacity: 1; transform: translateY(0) scale(1); }
  92%, 100% { opacity: 0; transform: translateY(-6px) scale(.97); }
}
@keyframes lpRec { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes lpFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-16px) rotate(var(--rot, 0deg)); }
}

/* Reveal on scroll */
[data-reveal] { opacity: 0; will-change: opacity; transition: opacity .7s ease; }
[data-reveal].is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transition: none; }
  .scan, .track-box, .chip-detected, .rec-dot, .float { animation: none !important; }
  .page, * { scroll-behavior: auto; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
/* Transparent logo sits directly on the CSS site background in both themes. */
.logo-img {
  height: clamp(44px, 8vw, 64px);
  width: auto;
  display: block;
}
.logo-dark { display: none; }
[data-color-mode="dark"] .logo-light { display: none; }
[data-color-mode="dark"] .logo-dark { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link {
  color: var(--ink2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 9px 12px;
  border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--ink); background: var(--surface2); }

@media (max-width: 560px) {
  .nav-link { display: none; }
}

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  font-family: inherit;
  transition: background .2s, border-color .2s;
}
.lang-btn:hover { background: var(--surface2); border-color: var(--brand); }
.lang-menu {
  position: absolute;
  top: 50px;
  inset-inline-end: 0;
  min-width: 176px;
  max-height: min(70vh, 440px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 90;
}
.lang-menu[hidden] { display: none; }
.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: start;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  font-family: inherit;
  padding: 9px 11px;
  border-radius: 9px;
  transition: background .15s;
}
.lang-item:hover { background: var(--surface2); }
.lang-item .check { opacity: 0; color: var(--brand); flex-shrink: 0; }
.lang-item[aria-current="true"] .check { opacity: 1; }

/* Icon button (theme toggle) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface2); border-color: var(--brand); transform: translateY(-1px); }

.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-color-mode="dark"] .theme-toggle .sun { display: block; }
[data-color-mode="dark"] .theme-toggle .moon { display: none; }

/* Buttons */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 18px;
  border-radius: 12px;
  transition: transform .2s, opacity .2s;
}
.btn-dark:hover { transform: translateY(-1px); opacity: .92; }

/* ============================================================
   Layout helpers
   ============================================================ */
.main { position: relative; z-index: 1; }
.wrap { max-width: 1180px; margin: 0 auto; }
.section { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 40px); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.eyebrow-label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.section-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink2);
  margin: 16px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.grid--features { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 80px);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-shape { position: absolute; clip-path: polygon(50% 0, 0 100%, 100% 100%); animation: lpFloat 8s ease-in-out infinite; }
.hero-shape.s1 { --rot: 0deg; top: 14%; left: 6%; width: 120px; height: 120px; background: var(--brand); opacity: .10; animation-duration: 7s; }
.hero-shape.s2 { --rot: 18deg; top: 62%; left: 2%; width: 74px; height: 74px; background: var(--yellow); opacity: .55; animation-duration: 9s; }
.hero-shape.s3 { --rot: -12deg; top: 8%; right: 8%; width: 90px; height: 90px; background: var(--yellow); opacity: .5; animation-delay: .6s; }
.hero-blob { position: absolute; bottom: 6%; right: 12%; width: 150px; height: 150px; border-radius: 50%; background: var(--brand); opacity: .08; filter: blur(8px); animation: lpFloat 10s ease-in-out infinite; }

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  position: relative;
  z-index: 1;
}
.hero-copy { flex: 1 1 440px; min-width: 300px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brandSoft);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent);
}
.eyebrow-text {
  font-size: 12.5px; font-weight: 800; letter-spacing: .1em;
  color: var(--brand); text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.hl {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  padding: 0 .04em;
  color: var(--ink);
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink2);
  margin: 0 0 32px;
  max-width: 520px;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 15px;
  padding: 13px 22px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.btn-store:hover { transform: translateY(-2px); }
.btn-store.is-light { background: #fff; color: #0B1220; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.store-text { display: flex; flex-direction: column; line-height: 1.12; text-align: start; }
.store-small { font-size: 11px; font-weight: 600; opacity: .82; }
.store-big { font-size: 19px; font-weight: 800; letter-spacing: -.02em; font-family: var(--font-display); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 18px;
  border-radius: 15px;
  border: 1px solid var(--border);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--brand); background: var(--surface2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 13px;
  border-radius: 999px;
}
.chip svg { color: var(--brand); flex-shrink: 0; }

/* Device/compatibility requirements (fine print) */
.req-line {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 540px;
}
.req-line--center {
  margin: 18px auto 0;
  text-align: center;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Phone mockup ---------- */
.phone-col { flex: 1 1 360px; min-width: 300px; display: flex; justify-content: center; }
.phone-wrap { position: relative; }
.phone {
  position: relative;
  width: min(300px, 86vw);
  aspect-ratio: 300 / 608;
  border-radius: 46px;
  background: linear-gradient(150deg, #15192180, #0B0F16);
  padding: 12px;
  box-shadow: 0 50px 90px -34px rgba(11, 18, 32, .55),
              0 0 0 2px rgba(255, 255, 255, .05) inset,
              0 0 0 1px rgba(0, 0, 0, .4);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: linear-gradient(165deg, #1f4f86, #10294b 55%, #0c1f3c);
}
.court-lines { position: absolute; inset: 0; background-image: repeating-linear-gradient(38deg, rgba(255,255,255,.05) 0 2px, transparent 2px 16px); }
.court-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.court-label span { font-family: ui-monospace, Menlo, monospace; font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.42); text-transform: uppercase; }
.court-h { position: absolute; left: 14%; right: 14%; top: 46%; height: 1.5px; background: rgba(255,255,255,.25); }
.court-v { position: absolute; left: 50%; top: 30%; bottom: 30%; width: 1.5px; background: rgba(255,255,255,.18); transform: translateX(-50%); }
.notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 92px; height: 25px; border-radius: 14px; background: #000; z-index: 20; }

.phone-topbar { position: absolute; top: 46px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; z-index: 14; }
.rec { display: flex; align-items: center; gap: 7px; background: rgba(0,0,0,.32); padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF453A; animation: lpRec 1.4s ease-in-out infinite; }
.rec-time { font-size: 12px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.phone-brand { font-family: var(--font-display); font-size: 12px; font-weight: 800; color: rgba(255,255,255,.85); letter-spacing: .02em; }

.scan { position: absolute; left: 0; right: 0; top: 130px; height: 2px; background: linear-gradient(90deg, transparent, var(--brand), transparent); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--brand) 70%, transparent); z-index: 12; animation: lpScan 3.4s ease-in-out infinite; }

.track-box { position: absolute; left: 13%; right: 13%; top: 140px; height: 168px; z-index: 13; animation: lpBox 3.4s ease-in-out infinite; }
.track-box .frame { position: absolute; inset: 0; border: 1.5px solid color-mix(in srgb, var(--brand) 65%, transparent); border-radius: 12px; }
.track-box .corner { position: absolute; width: 22px; height: 22px; }
.track-box .tl { top: -9px; left: -9px; border-top: 3px solid var(--brand); border-left: 3px solid var(--brand); border-radius: 5px 0 0 0; }
.track-box .tr { top: -9px; right: -9px; border-top: 3px solid var(--brand); border-right: 3px solid var(--brand); border-radius: 0 5px 0 0; }
.track-box .bl { bottom: -9px; left: -9px; border-bottom: 3px solid var(--brand); border-left: 3px solid var(--brand); border-radius: 0 0 0 5px; }
.track-box .br { bottom: -9px; right: -9px; border-bottom: 3px solid var(--brand); border-right: 3px solid var(--brand); border-radius: 0 0 5px 0; }
.track-tag { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; }
.track-tag .pip { width: 5px; height: 5px; border-radius: 50%; background: #fff; }

.chip-detected { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); z-index: 16; animation: lpChip 3.4s ease-in-out infinite; }
.chip-detected .inner { display: inline-flex; align-items: center; gap: 8px; background: var(--chip); color: var(--ink); padding: 9px 14px; border-radius: 12px; box-shadow: 0 12px 28px -10px rgba(0,0,0,.5); white-space: nowrap; }
.chip-detected .tick { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); }
.chip-detected .label { font-size: 13px; font-weight: 800; }

.phone-clips { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 14px 18px; background: linear-gradient(transparent, rgba(8,12,20,.78) 38%); z-index: 15; }
.clips-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.clips-title { font-size: 12px; font-weight: 800; color: #fff; font-family: var(--font-display); letter-spacing: .02em; }
.clips-count { display: inline-flex; align-items: center; gap: 6px; background: var(--yellow); color: #0B1220; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.clips-row { display: flex; gap: 8px; }
.clip { flex: 1; height: 50px; border-radius: 9px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.clip.c1 { background: linear-gradient(135deg, #2b5e9e, #163963); }
.clip.c2 { background: linear-gradient(135deg, #3066ad, #1a4271); }
.clip.add { background: linear-gradient(135deg, #2b5e9e, #163963); border: 1.5px solid var(--yellow); display: flex; align-items: center; justify-content: center; }
.clip .grain { position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 1px, transparent 1px 7px); }
.clip .dur { position: absolute; bottom: 4px; left: 5px; font-size: 8.5px; font-weight: 700; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }

.float {
  position: absolute;
  bottom: 150px;
  inset-inline-start: -34px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 13px;
  box-shadow: var(--shadow);
  animation: lpFloat 6s ease-in-out infinite;
  z-index: 30;
}
.float .ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brandSoft); color: var(--brand); }
.float .meta { line-height: 1.15; }
.float .meta .a { font-size: 11px; color: var(--muted); font-weight: 600; }
.float .meta .b { font-size: 14px; color: var(--ink); font-weight: 800; }

/* ============================================================
   How it works
   ============================================================ */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px 26px 28px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s, opacity .65s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
}
.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  color: var(--brandSoft);
  margin-bottom: 14px;
  letter-spacing: -.04em;
}
.step-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--brand); color: #fff;
  margin-bottom: 18px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  margin: 0 0 9px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.card-body { font-size: 15px; line-height: 1.55; color: var(--ink2); margin: 0; }

/* ============================================================
   Privacy band
   ============================================================ */
.band-section { padding: 0 clamp(16px, 4vw, 40px) clamp(20px, 4vw, 40px); }
.band {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  padding: clamp(34px, 5vw, 52px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.band-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1.4px, transparent 1.5px); background-size: 24px 24px; opacity: .5; pointer-events: none; }
.band-tri { position: absolute; top: -40px; right: -20px; width: 130px; height: 130px; background: var(--yellow); opacity: .85; clip-path: polygon(50% 0, 0 100%, 100% 100%); }
.band-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; justify-content: space-between; }
.band-text { flex: 1 1 360px; min-width: 280px; }
.band-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 12px; color: #fff; text-wrap: balance; }
.band-body { font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.88); margin: 0; max-width: 460px; }
.band-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat { text-align: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 20px 22px; min-width: 104px; backdrop-filter: blur(6px); }
.stat-num { font-family: var(--font-display); font-weight: 900; font-size: 38px; line-height: 1; color: #fff; }
.stat-label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.82); margin-top: 6px; letter-spacing: .02em; }

/* ============================================================
   Features
   ============================================================ */
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  transition: transform .3s, box-shadow .3s, border-color .3s, opacity .65s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--brandSoft); color: var(--brand);
  margin-bottom: 18px;
  position: relative;
}
.feature-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; margin: 0 0 8px; color: var(--ink); }
.feature-body { font-size: 14.5px; line-height: 1.55; color: var(--ink2); margin: 0; }
/* Crosshair icon (feature 2) */
.icon-crosshair span { position: absolute; width: 9px; height: 9px; }
.icon-crosshair .c-tl { top: 9px; left: 9px; border-top: 2.4px solid var(--brand); border-left: 2.4px solid var(--brand); }
.icon-crosshair .c-tr { top: 9px; right: 9px; border-top: 2.4px solid var(--brand); border-right: 2.4px solid var(--brand); }
.icon-crosshair .c-bl { bottom: 9px; left: 9px; border-bottom: 2.4px solid var(--brand); border-left: 2.4px solid var(--brand); }
.icon-crosshair .c-br { bottom: 9px; right: 9px; border-bottom: 2.4px solid var(--brand); border-right: 2.4px solid var(--brand); }
.icon-crosshair .c-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ============================================================
   Final CTA
   ============================================================ */
.final-section { padding: 0 clamp(16px, 4vw, 40px) clamp(56px, 8vw, 96px); }
.final-cta {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 30px;
  /* Always-dark card: the contents (title/sub) are white in both themes,
     so the background must stay dark regardless of --ink flipping in dark mode. */
  background: #0B1220;
  border: 1px solid rgba(255, 255, 255, .07);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.final-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1.4px, transparent 1.5px); background-size: 26px 26px; pointer-events: none; }
.final-tri1 { position: absolute; top: -30px; left: 8%; width: 84px; height: 84px; background: var(--brand); opacity: .5; clip-path: polygon(50% 0, 0 100%, 100% 100%); }
.final-tri2 { position: absolute; bottom: -26px; right: 10%; width: 96px; height: 96px; background: var(--yellow); opacity: .8; clip-path: polygon(50% 0, 0 100%, 100% 100%); }
.final-inner { position: relative; }
.final-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 5vw, 60px); line-height: 1.0; letter-spacing: -.025em; margin: 0 auto 16px; color: #fff; max-width: 16ch; text-wrap: balance; }
.cta-yellow { color: var(--yellow); }
.final-sub { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: rgba(255,255,255,.78); margin: 0 auto 30px; max-width: 480px; }
.final-actions { display: flex; justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding: 36px clamp(16px, 4vw, 40px); position: relative; z-index: 1; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-link { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s; }
.footer-link:hover { color: var(--ink); }
.footer-copy { color: var(--muted); font-size: 13.5px; }

/* Smooth in-page scrolling with sticky-header offset */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }

/* ============================================================
   Cookie consent banner
   ============================================================ */
.consent {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  max-width: 760px;
  margin-inline: auto;
  display: none;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  z-index: 200;
}
.consent.is-open { display: flex; }
.consent-text { margin: 0; flex: 1 1 320px; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.consent-link { color: var(--brand); font-weight: 600; text-decoration: none; }
.consent-link:hover { text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-btn { font-family: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 11px; cursor: pointer; border: 1px solid var(--border); transition: background .2s, opacity .2s; }
.consent-decline { background: var(--surface2); color: var(--ink); }
.consent-decline:hover { background: var(--bg2); }
.consent-accept { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.consent-accept:hover { opacity: .92; }

/* ============================================================
   Legal / document pages (e.g. privacy)
   ============================================================ */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) clamp(16px, 4vw, 40px) clamp(56px, 8vw, 96px);
  position: relative;
  z-index: 1;
}
.doc h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 5vw, 46px); letter-spacing: -.02em; margin: 0 0 8px; color: var(--ink); }
.doc-meta { color: var(--muted); font-size: 14px; margin: 0; }
.doc-note { font-size: 13px; line-height: 1.5; color: var(--ink2); background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 20px 0 32px; }
.doc h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -.01em; margin: 38px 0 12px; color: var(--ink); }
.doc h3 { font-weight: 800; font-size: 17px; margin: 22px 0 8px; color: var(--ink); }
.doc p, .doc li { font-size: 15.5px; line-height: 1.65; color: var(--ink2); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-inline-start: 22px; }
.doc li { margin: 0 0 7px; }
.doc a { color: var(--brand); }
.doc strong { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin: 4px 0 18px; font-size: 14px; }
.doc th, .doc td { text-align: start; border: 1px solid var(--border); padding: 9px 11px; vertical-align: top; color: var(--ink2); }
.doc th { background: var(--surface2); color: var(--ink); font-weight: 700; }
.doc-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.doc-back:hover { color: var(--ink); }

/* ============================================================
   Support form
   ============================================================ */
.form-page { max-width: 600px; }
.form-intro { font-size: 16px; line-height: 1.6; color: var(--ink2); margin: 8px 0 28px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.form-submit { margin-top: 6px; border: none; cursor: pointer; font-family: inherit; }

/* ============================================================
   Thank-you page
   ============================================================ */
.thanks {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(56px, 11vh, 130px) clamp(16px, 4vw, 40px) clamp(56px, 8vw, 96px);
  position: relative;
  z-index: 1;
}
.thanks-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--brand); margin-bottom: 24px; box-shadow: var(--shadow);
}
.thanks-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.02em; margin: 0 0 14px; color: var(--ink); }
.thanks-body { font-size: 17px; line-height: 1.6; color: var(--ink2); margin: 0 0 30px; }
