/* Darban website. Tokens follow docs/61-brand-identity.md: Ajrak Indigo #1F2A5A, Madder Crimson #B3263E,
   Cloth Sand #E9E1CF, Open-door Teal #2BA6A0. The lattice stays at 8% or less and the border band edges
   sections the way a block print edges the cloth. The accent is Madder Crimson (Settings > Accent > Crimson): #B3263E on light, #F0647A on dark, as in the app. */

@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-display: swap; src: url("../fonts/AtkinsonHyperlegibleNext-Regular.ttf") format("truetype"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 500 600; font-display: swap; src: url("../fonts/AtkinsonHyperlegibleNext-Medium.ttf") format("truetype"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-display: swap; src: url("../fonts/AtkinsonHyperlegibleNext-Bold.ttf") format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/JetBrainsMono-Regular.ttf") format("truetype"); }

:root {
  --indigo: #1f2a5a;
  --crimson: #b3263e;
  --sand: #e9e1cf;
  --teal: #2ba6a0;

  --ui: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #f3efe4;
  --bg-rail: #ece5d4;
  --surface: #fbf9f3;
  --surface-2: #ffffff;
  --surface-3: #f3eedf;
  --border: #e0d8c3;
  --border-strong: #c9bfa3;
  --text: #171a22;
  --text-muted: #4b5266;
  --text-faint: #737989;
  --accent: #b3263e;          /* Madder Crimson: fills and text on sand */
  --accent-bright: #c93550;   /* hover */
  --accent-soft: rgba(179, 38, 62, 0.10);
  --on-accent: #ffffff;
  --glow: rgba(179, 38, 62, 0.26);
  --cloth-btn: #f0647a;       /* the download button on the cloth, in both themes */
  --on-cloth-btn: #2a0710;
  --shadow: 0 1px 2px rgba(60, 45, 20, 0.06), 0 14px 32px -12px rgba(60, 45, 20, 0.18);
  --shadow-big: 0 2px 4px rgba(31, 42, 90, 0.08), 0 40px 80px -24px rgba(31, 42, 90, 0.45);
  --lattice-ink: #1f2a5a;
  --lattice-alpha: 0.06;

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Original lattice and band (assets/brand/ajrak-*.svg), inlined so they can be tinted with a mask. */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M20 6 L34 20 L20 34 L6 20 Z'/%3E%3Cpath d='M20 13 L27 20 L20 27 L13 20 Z'/%3E%3C/g%3E%3Cg fill='%23000'%3E%3Cpath d='M0 0 L4 0 L0 4 Z M40 0 L36 0 L40 4 Z M0 40 L4 40 L0 36 Z M40 40 L36 40 L40 36 Z'/%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3Ccircle cx='20' cy='1.5' r='1.2'/%3E%3Ccircle cx='20' cy='38.5' r='1.2'/%3E%3Ccircle cx='1.5' cy='20' r='1.2'/%3E%3Ccircle cx='38.5' cy='20' r='1.2'/%3E%3C/g%3E%3C/svg%3E");
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cg fill='%23000'%3E%3Crect x='0' y='0' width='24' height='1.2'/%3E%3Cpath d='M6 2.4 L9.6 5.4 L6 8.4 L2.4 5.4 Z M18 2.4 L21.6 5.4 L18 8.4 L14.4 5.4 Z'/%3E%3Ccircle cx='0' cy='5.4' r='1'/%3E%3Ccircle cx='12' cy='5.4' r='1'/%3E%3Ccircle cx='24' cy='5.4' r='1'/%3E%3Cpath d='M0 12 L3 9.6 L6 12 Z M6 12 L9 9.6 L12 12 Z M12 12 L15 9.6 L18 12 Z M18 12 L21 9.6 L24 12 Z'/%3E%3C/g%3E%3C/svg%3E");
}

:root[data-theme="dark"] {
  --bg: #0a0c11;
  --bg-rail: #0d1015;
  --surface: #12151c;
  --surface-2: #181c25;
  --surface-3: #1f2430;
  --border: #232937;
  --border-strong: #343c50;
  --text: #e8eaf0;
  --text-muted: #a0a7b8;
  --text-faint: #737a8f;
  --accent: #f0647a;
  --accent-bright: #f58497;
  --accent-soft: rgba(240, 100, 122, 0.14);
  --on-accent: #2a0710;
  --glow: rgba(240, 100, 122, 0.30);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-big: 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 90px -24px rgba(0, 0, 0, 0.8);
  --lattice-ink: #8c9bff;
  --lattice-alpha: 0.05;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
code, kbd, .mono { font-family: var(--mono); }
::selection { background: rgba(80, 100, 220, 0.3); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface-2); color: var(--text); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border-strong); }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Ajrak textures ---------- */
.lattice, .band { position: absolute; pointer-events: none; }
.lattice { inset: 0; background: var(--lattice-ink); opacity: var(--lattice-alpha);
  -webkit-mask: var(--lattice) 0 0 / 40px 40px repeat; mask: var(--lattice) 0 0 / 40px 40px repeat; }
.cloth .lattice { background: #fff; opacity: 0.08; }
.band { left: 0; right: 0; height: 24px; background: var(--sand);
  -webkit-mask: var(--band) 0 0 / 48px 24px repeat-x; mask: var(--band) 0 0 / 48px 24px repeat-x; }
.band.foot { bottom: 0; }
.band.head { top: 0; transform: scaleY(-1); }
.divider { height: 24px; background: var(--text-faint); opacity: 0.35;
  -webkit-mask: var(--band) 0 0 / 48px 24px repeat-x; mask: var(--band) 0 0 / 48px 24px repeat-x; }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15.5px/1 var(--ui); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.14s var(--ease), background 0.14s, box-shadow 0.14s, border-color 0.14s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-cloth { background: var(--cloth-btn); color: var(--on-cloth-btn); box-shadow: 0 0 0 1px rgba(255,255,255,0.28), 0 12px 34px -8px rgba(240,100,122,0.7), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-cloth:hover { background: #f58497; transform: translateY(-1px); }
.btn-ghost-cloth { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost-cloth:hover { background: rgba(255,255,255,0.16); }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.3px; }
.brand svg { width: 28px; height: 28px; color: var(--accent); }
.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--text); background: var(--surface-3); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--surface-3); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }

/* ---------- Hero (the cloth) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; padding: 88px 0 150px;
  background:
    radial-gradient(60% 70% at 88% 0%, rgba(240, 100, 122, 0.30), transparent 60%),
    radial-gradient(50% 60% at 6% 100%, rgba(31, 42, 90, 0.9), transparent 70%),
    linear-gradient(150deg, #1f2a5a 0%, #34275f 48%, #9b2748 112%); }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; justify-items: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 99px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.92); }
.eyebrow b { background: var(--sand); color: #171a22; border-radius: 99px; padding: 2px 9px; font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; margin: 22px auto 0; max-width: 15ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--sand); }
.hero .lede { margin: 22px auto 0; max-width: 56ch; font-size: clamp(17px, 2.2vw, 20px); color: rgba(255,255,255,0.84); text-wrap: pretty; }
.cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-meta { font-size: 14px; color: rgba(255,255,255,0.7); min-height: 22px; }
.cta-meta a { color: #fff; text-underline-offset: 3px; }
.mark-hero { width: 72px; height: 72px; color: #f58497; margin: 0 auto 6px; }
.mark-hero { animation: rise 0.9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(0.94); } to { opacity: 1; transform: none; } }

.shot { position: relative; width: min(1040px, 100%); margin-top: 8px; }
.window { border-radius: 14px; overflow: hidden; background: #0a0c11; border: 1px solid rgba(255,255,255,0.14); box-shadow: var(--shadow-big), 0 0 0 1px rgba(0,0,0,0.3); }
.window img { width: 100%; height: auto; }
.shot .glow { position: absolute; inset: 8% 6% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(240,100,122,0.38), transparent); filter: blur(40px); }
.hero .band.foot { opacity: 0.9; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: var(--accent); }
.h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin-top: 12px; max-width: 20ch; text-wrap: balance; }
.sub { margin-top: 16px; font-size: 18px; color: var(--text-muted); max-width: 58ch; text-wrap: pretty; }
.center { text-align: center; } .center .h2, .center .sub { margin-inline: auto; }

/* Why strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow); margin-top: -64px; position: relative; z-index: 3; overflow: hidden; }
.fact { padding: 26px 26px 24px; }
.fact + .fact { border-left: 1px solid var(--border); }
.fact strong { display: block; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.fact span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--text-muted); line-height: 1.45; }

/* Feature cards */
.features { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform 0.24s var(--ease), border-color 0.24s; }
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); }
.tile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18.5px; letter-spacing: -0.01em; margin-top: 18px; line-height: 1.25; }
.card p { margin-top: 8px; font-size: 15.5px; color: var(--text-muted); line-height: 1.55; }
.card.wide { grid-column: span 2; }
.also { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted); font-size: 14px; }
kbd { display: inline-block; padding: 1px 7px; border-radius: 5px; background: var(--surface-3); border: 1px solid var(--border-strong); border-bottom-width: 2px; font-size: 0.82em; color: var(--text); }

/* Showcase rows */
.show { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.show + .show { margin-top: clamp(72px, 9vw, 120px); }
.show.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.show.flip .copy { order: 2; }
.show h3 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -0.028em; margin-top: 12px; text-wrap: balance; }
.show p { margin-top: 16px; color: var(--text-muted); font-size: 17.5px; text-wrap: pretty; }
.show .kicker { margin-top: 0; color: var(--accent); font-size: 12.5px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(40deg) scale(0.8); transform-origin: 60% 60%; }
.frame { position: relative; }
.frame .window { border-color: var(--border-strong); box-shadow: var(--shadow-big); }
.frame::before { content: ""; position: absolute; inset: 10% -4% -8%; z-index: -1; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(30px); }
.theme-img-light { display: none; }
:root:not([data-theme="dark"]) .theme-img-dark { display: none; }
:root:not([data-theme="dark"]) .theme-img-light { display: block; }

/* Security (cloth panel) */
.cloth { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(60% 80% at 100% 0%, rgba(240,100,122,0.26), transparent 60%), linear-gradient(150deg, #1f2a5a 0%, #34275f 55%, #9b2748 125%); }
.security, .final { border-radius: 28px; }
.security { padding: clamp(40px, 6vw, 72px); }
.security .band.foot { opacity: 0.85; }
.security .inner { position: relative; z-index: 2; padding-bottom: 20px; }
.security .kicker { color: var(--sand); }
.security .h2 { color: #fff; }
.security .sub { color: rgba(255,255,255,0.8); }
.sec-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.sec-shot img { width: 100%; height: auto; border-radius: 3.9% / 6.6%; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.16); }
.guards { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.guard { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(6px); }
.guard h3 { font-size: 17.5px; line-height: 1.3; }
.guard p { margin-top: 8px; font-size: 15px; color: rgba(255,255,255,0.78); line-height: 1.55; }
.guard code { font-size: 0.86em; background: rgba(0,0,0,0.25); padding: 1px 6px; border-radius: 5px; }

/* Downloads */
.dl-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; }
.dl { position: relative; display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); transition: border-color 0.2s, box-shadow 0.2s; }
.dl.is-yours { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.dl .badge { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 4px 10px; border-radius: 99px; display: none; }
.dl.is-yours .badge { display: block; }
.os-tile { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.os-tile svg { width: 28px; height: 28px; fill: currentColor; }
.os-mac { background: linear-gradient(160deg, #5d6577, #2c313d); }
.os-win { background: linear-gradient(160deg, #3b8cf5, #1c58c4); }
.os-lin { background: linear-gradient(160deg, #f5a53b, #d4521f); }
.dl h3 { font-size: 22px; margin-top: 18px; letter-spacing: -0.015em; }
.dl .req { margin-top: 4px; font-size: 14.5px; color: var(--text-muted); }
.dl .btn { margin-top: 22px; width: 100%; }
.dl .size { margin-top: 12px; font-size: 13.5px; color: var(--text-faint); text-align: center; }
.dl .alt { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--text-muted); }
.dl .alt a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.dl-note { margin-top: 28px; display: grid; gap: 12px; text-align: left; }
details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--text-faint); transition: transform 0.2s var(--ease); }
details[open] > summary::after { transform: rotate(45deg); }
details > div, details > p { padding: 0 20px 18px; color: var(--text-muted); font-size: 15.5px; }
details code { background: var(--surface-3); padding: 1px 6px; border-radius: 5px; font-size: 0.88em; word-break: break-all; }
.keybox { margin: 10px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border); overflow-x: auto; font-size: 13px; line-height: 1.55; color: var(--text); }
.keybox code { background: none; padding: 0; word-break: normal; white-space: pre; }
.steps { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 12px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.sums { display: grid; gap: 8px; margin-top: 8px; }
.sums div { font-size: 13.5px; }
.sums b { display: block; color: var(--text); font-family: var(--ui); font-weight: 600; }

/* Next */
.next { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.next .card { box-shadow: none; background: var(--surface); }
.soon { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-faint); border: 1px solid var(--border-strong); border-radius: 99px; padding: 2px 10px; }

/* FAQ */
.faq { margin-top: 44px; display: grid; gap: 12px; max-width: 820px; margin-inline: auto; text-align: left; }

/* Final CTA + footer */
.final { text-align: center; padding: clamp(56px, 8vw, 96px) 24px clamp(64px, 9vw, 110px); }
.final h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.035em; max-width: 16ch; margin-inline: auto; position: relative; z-index: 2; text-wrap: balance; }
.final p { margin: 16px auto 0; max-width: 46ch; color: rgba(255,255,255,0.82); position: relative; z-index: 2; }
.final .cta-row { margin-top: 30px; position: relative; z-index: 2; }
.site-footer { padding: 56px 0 44px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { margin: 0 0 12px; font-size: 12.5px; letter-spacing: 0.7px; text-transform: uppercase; color: var(--text-faint); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--text-muted); font-size: 15px; }
.foot-grid a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-note { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; color: var(--text-faint); }
.foot-brand p { margin-top: 12px; color: var(--text-muted); font-size: 15px; max-width: 34ch; }
.dar { font-style: italic; color: var(--text); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.wide { grid-column: span 2; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--border); }
  .dl-grid, .guards, .next { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .show, .show.flip { grid-template-columns: 1fr; }
  .sec-top { grid-template-columns: 1fr; }
  .sec-shot { max-width: 520px; }
  .show.flip .copy { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .nav-links { display: none; }
  .hero { padding: 56px 0 120px; }
  .features { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .facts { margin-top: -56px; }
  .fact { padding: 20px; } .fact strong { font-size: 22px; }
  .security, .final { border-radius: 22px; }
  .btn-lg { width: 100%; }
  .cta-row { width: 100%; }
  .nav-end .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
