/* ============================================================
   BossCheckin — bosscheckin.com
   Design tokens mirror the app's Palette.kt (dark variant)
   so the site and the app read as one ecosystem.
   ============================================================ */

:root {
  /* Surface stack — root → most-elevated (Palette.kt DarkPalette) */
  --bg-root:      #0B0C0F;
  --bg-surface:   #13151B;
  --bg-elevated:  #1B1E25;
  --bg-raised:    #222631;
  --outline:      #2A2E37;
  --outline-soft: #1F232A;

  /* Foreground */
  --fg-high:     #F3F4F7;
  --fg-mid:      #A6ACBA;
  --fg-low:      #6A7080;
  --fg-disabled: #3F4452;

  /* Brand + semantic */
  --mint:        #3DDC97;
  --mint-deep:   #1F4D3C;
  --mint-glow:   rgba(61, 220, 151, 0.20);
  --coral:       #FF6B6B;
  --coral-deep:  #4D2424;
  --coral-glow:  rgba(255, 107, 107, 0.20);
  --amber:       #FFB454;
  --amber-deep:  #4D381F;
  --blue:        #5B8DEF;
  --blue-deep:   #24344D;

  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --maxw: 1160px;
  --nav-h: 72px;
}

/* ---------- Reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-root);
  color: var(--fg-mid);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--mint); color: var(--bg-root); }

h1, h2, h3, h4 {
  color: var(--fg-high);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* Scrollbar tuned to the surface stack */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-root); }
::-webkit-scrollbar-thumb { background: var(--bg-raised); border-radius: 6px; border: 2px solid var(--bg-root); }
::-webkit-scrollbar-thumb:hover { background: var(--fg-disabled); }

/* ---------- Atmosphere: grain + ambient glows ---------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(61,220,151,0.07), transparent 60%),
    radial-gradient(700px 500px at -10% 35%, rgba(91,141,239,0.05), transparent 60%),
    radial-gradient(800px 700px at 50% 115%, rgba(61,220,151,0.04), transparent 60%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Faint blueprint grid behind the hero */
.grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--outline-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--outline-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, rgba(0,0,0,0.55), transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, rgba(0,0,0,0.55), transparent 75%);
}

/* ---------- Layout helpers ---------- */

.wrap {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
}

section { position: relative; padding: 110px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--mint);
  opacity: 0.6;
}

.section-title {
  font-size: clamp(30px, 4.4vw, 50px);
  max-width: 18ch;
}

.section-lede {
  font-size: clamp(17px, 1.6vw, 19.5px);
  max-width: 60ch;
  color: var(--fg-mid);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(11, 12, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--outline-soft);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--fg-high);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--mint); font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 600;
}
.nav-links a { color: var(--fg-mid); transition: color 0.2s; }
.nav-links a:hover { color: var(--fg-high); text-decoration: none; }
.nav-links a.btn-mint, .nav-links a.btn-mint:hover { color: #06231A; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-mint {
  background: var(--mint);
  color: #06231A;
  box-shadow: 0 0 0 rgba(61,220,151,0);
}
.btn-mint:hover { box-shadow: 0 8px 32px var(--mint-glow), 0 0 22px var(--mint-glow); }

.btn-ghost {
  background: transparent;
  color: var(--fg-high);
  border-color: var(--outline);
}
.btn-ghost:hover { border-color: var(--fg-low); background: var(--bg-surface); }

.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 90px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--fg-mid);
  margin-bottom: 30px;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 var(--mint-glow);
  animation: pulse-dot 2.4s ease-out infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(61,220,151,0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(61,220,151,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); }
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 .mint { color: var(--mint); }
.hero h1 .strike {
  position: relative;
  color: var(--fg-low);
  white-space: nowrap;
}
.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  top: 54%;
  height: 4px;
  border-radius: 2px;
  background: var(--coral);
  transform: rotate(-2deg) scaleX(0);
  transform-origin: left center;
  animation: strike-in 0.6s cubic-bezier(0.7, 0, 0.3, 1) 0.9s forwards;
}

@keyframes strike-in { to { transform: rotate(-2deg) scaleX(1); } }

.hero-lede {
  font-size: clamp(17px, 1.7vw, 20px);
  max-width: 54ch;
  margin-bottom: 36px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 36px;
  row-gap: 18px;
}

.fact .num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--fg-high);
}
.fact .num em { color: var(--mint); font-style: normal; }
.fact .lbl {
  font-size: 13px;
  color: var(--fg-low);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Hero topology figure */
.topology {
  position: relative;
  border: 1px solid var(--outline);
  border-radius: var(--radius-l);
  background:
    radial-gradient(420px 320px at 50% 45%, rgba(61,220,151,0.06), transparent 70%),
    var(--bg-surface);
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.topology svg { width: 100%; height: auto; }

.topology-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 8px 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--fg-low);
  text-transform: uppercase;
}
.topology-caption .ok { color: var(--mint); }

/* SVG node + link styling */
.t-link {
  stroke: var(--mint);
  stroke-width: 1.6;
  stroke-dasharray: 5 7;
  opacity: 0.55;
  animation: link-flow 1.6s linear infinite;
}
@keyframes link-flow { to { stroke-dashoffset: -24; } }

.t-link.lan { stroke: var(--blue); opacity: 0.4; animation-duration: 2.2s; }

.t-node-box { fill: var(--bg-elevated); stroke: var(--outline); stroke-width: 1.4; }
.t-node-box.hub { stroke: var(--mint); stroke-width: 1.8; }
.t-label {
  fill: var(--fg-mid);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
}
.t-label.hub-l { fill: var(--mint); font-weight: 700; }
.t-icon { stroke: var(--fg-mid); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.t-icon.mint { stroke: var(--mint); }

.t-ring {
  fill: none;
  stroke: var(--mint);
  opacity: 0;
  animation: ring-out 3.2s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.t-ring.r2 { animation-delay: 1.6s; }
@keyframes ring-out {
  0%   { opacity: 0.55; transform: scale(0.55); }
  100% { opacity: 0;    transform: scale(1.5); }
}

.t-cloud { stroke: var(--fg-disabled); fill: none; stroke-width: 1.6; }
.t-cloud-x { stroke: var(--coral); stroke-width: 2.4; stroke-linecap: round; }
.t-cloud-label { fill: var(--fg-disabled); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; }

/* ---------- Marquee ---------- */

.marquee {
  border-block: 1px solid var(--outline-soft);
  background: var(--bg-surface);
  overflow: hidden;
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-low);
  white-space: nowrap;
  padding-right: 28px;
}
.marquee-track span::after {
  content: "✓";
  color: var(--mint);
  padding-left: 28px;
}

@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ---------- Pillars (offline by design) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}

.pillar {
  position: relative;
  border: 1px solid var(--outline);
  border-radius: var(--radius-l);
  background: var(--bg-surface);
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.pillar:hover { border-color: var(--mint-deep); transform: translateY(-4px); }

.pillar::before {
  content: attr(data-n);
  position: absolute;
  top: 18px; right: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-disabled);
  letter-spacing: 0.15em;
}

.pillar .glyph {
  width: 52px; height: 52px;
  border-radius: 14px;
  border: 1px solid var(--outline);
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.pillar .glyph svg { width: 26px; height: 26px; stroke: var(--mint); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.pillar h3 { font-size: 21px; margin-bottom: 12px; }
.pillar p { font-size: 15.5px; color: var(--fg-mid); margin: 0; }
.pillar p + p { margin-top: 10px; }
.pillar .fine {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--outline);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-low);
}
.pillar .fine b { color: var(--mint); font-weight: 500; }

/* ---------- Check-in section ---------- */

.checkin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 56px;
}

.method {
  border: 1px solid var(--outline);
  border-radius: var(--radius-l);
  background: var(--bg-surface);
  padding: 34px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 26px;
}

.method-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.method-head h3 { font-size: 24px; margin: 0; }
.method-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid var(--mint-deep);
  background: rgba(61,220,151,0.07);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.method-body { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; }

.method ol {
  margin: 0; padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.method ol li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  font-size: 15px;
}
.method ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--mint);
}
.method ol li b { color: var(--fg-high); font-weight: 700; }

/* QR demo */
.qr-demo {
  position: relative;
  width: 150px; height: 150px;
  border-radius: var(--radius-m);
  border: 1px solid var(--outline);
  background: var(--bg-elevated);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.qr-demo svg { width: 96px; height: 96px; }
.qr-demo svg rect { fill: var(--fg-high); }
.qr-scanline {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  box-shadow: 0 0 14px var(--mint);
  animation: scanline 2.6s ease-in-out infinite;
}
@keyframes scanline {
  0%, 100% { top: 14%; }
  50%      { top: 84%; }
}

/* NFC demo */
.nfc-demo {
  position: relative;
  width: 150px; height: 150px;
  border-radius: var(--radius-m);
  border: 1px solid var(--outline);
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.nfc-demo .phone {
  width: 44px; height: 74px;
  border: 2px solid var(--fg-mid);
  border-radius: 9px;
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
  animation: nfc-tap 2.8s ease-in-out infinite;
}
.nfc-demo .phone::after {
  content: "";
  position: absolute;
  bottom: 5px; left: 50%;
  width: 14px; height: 2.5px;
  border-radius: 2px;
  background: var(--fg-low);
  transform: translateX(-50%);
}
@keyframes nfc-tap {
  0%, 100% { transform: translate(-26px, 14px) rotate(-8deg); }
  45%, 65% { transform: translate(0, 0) rotate(0deg); }
}
.nfc-wave {
  position: absolute;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.6px solid var(--mint);
  opacity: 0;
  animation: nfc-wave 2.8s ease-out infinite;
}
.nfc-wave.w2 { animation-delay: 0.35s; }
.nfc-wave.w3 { animation-delay: 0.7s; }
@keyframes nfc-wave {
  0%, 40% { opacity: 0; transform: scale(0.4); }
  55%     { opacity: 0.7; }
  100%    { opacity: 0; transform: scale(3.4); }
}

.method-foot {
  margin: 0;
  padding-top: 16px;
  border-top: 1px dashed var(--outline);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--fg-low);
}
.method-foot b { color: var(--mint); font-weight: 500; }

.checkin-note {
  margin-top: 26px;
  border: 1px dashed var(--outline);
  border-radius: var(--radius-m);
  background: rgba(61,220,151,0.03);
  padding: 20px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 15px;
}
.checkin-note svg { flex: none; width: 22px; height: 22px; stroke: var(--mint); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.checkin-note p { margin: 0; }
.checkin-note b { color: var(--fg-high); }
.checkin-note + .checkin-note { margin-top: 14px; }

/* ---------- Office Web mockup ---------- */

.officeweb-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: center;
  margin-top: 20px;
}

.browser {
  border: 1px solid var(--outline);
  border-radius: var(--radius-m);
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  font-size: 13px;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--outline-soft);
  background: var(--bg-elevated);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--outline);
}
.browser-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-low);
  background: var(--bg-surface);
  border: 1px solid var(--outline-soft);
  border-radius: 7px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}
.browser-url .lock { color: var(--mint); }
.browser-offline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mint);
  border: 1px solid var(--mint-deep);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.browser-body { display: grid; grid-template-columns: 158px 1fr; min-height: 320px; }

.browser-side {
  border-right: 1px solid var(--outline-soft);
  background: var(--bg-elevated);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.browser-side span {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--fg-low);
  font-weight: 600;
  font-size: 12.5px;
}
.browser-side span.active { background: rgba(61,220,151,0.1); color: var(--mint); }

.browser-main { padding: 18px; }
.browser-main h5 {
  margin: 0 0 14px;
  color: var(--fg-high);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.browser-main h5 .csv {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--bg-root);
  background: var(--mint);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.mock-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mock-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-low);
  font-weight: 500;
  padding: 7px 10px;
  border-bottom: 1px solid var(--outline);
}
.mock-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--outline-soft);
  color: var(--fg-mid);
}
.mock-table td:first-child { color: var(--fg-high); font-weight: 600; }
.mock-table .pos { color: var(--mint); font-family: var(--font-mono); font-size: 11.5px; }
.mock-table .chip {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}
.chip.in  { background: rgba(61,220,151,0.12); color: var(--mint); }
.chip.out { background: rgba(255,107,107,0.12); color: var(--coral); }
.chip.leave { background: rgba(91,141,239,0.12); color: var(--blue); }

.officeweb-points { display: grid; gap: 18px; margin-top: 34px; }
.ow-point { display: flex; gap: 16px; align-items: flex-start; }
.ow-point svg { flex: none; width: 21px; height: 21px; stroke: var(--mint); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 4px; }
.ow-point p { margin: 0; font-size: 15.5px; }
.ow-point b { color: var(--fg-high); }

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.feature {
  border: 1px solid var(--outline);
  border-radius: var(--radius-m);
  background: var(--bg-surface);
  padding: 26px 24px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.feature:hover { border-color: var(--fg-disabled); background: var(--bg-elevated); }

.feature svg {
  width: 24px; height: 24px;
  stroke: var(--mint); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 16px;
}
.feature h4 { font-size: 16.5px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--fg-mid); margin: 0; line-height: 1.6; }

/* ---------- Security ---------- */

.security { background: var(--bg-surface); border-block: 1px solid var(--outline-soft); }

.sec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.sec-list { display: grid; gap: 0; margin-top: 10px; }
.sec-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--outline-soft);
}
.sec-item:last-child { border-bottom: none; }
.sec-item svg { width: 24px; height: 24px; stroke: var(--mint); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.sec-item h4 { font-size: 17px; margin-bottom: 6px; }
.sec-item p { font-size: 14.5px; margin: 0; }
.sec-item code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mint);
  background: rgba(61,220,151,0.07);
  border: 1px solid var(--mint-deep);
  padding: 1px 7px;
  border-radius: 6px;
}

/* Cipher card visual */
.cipher-card {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  border: 1px solid var(--outline);
  border-radius: var(--radius-l);
  background: var(--bg-elevated);
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 2;
  overflow: hidden;
}
.cipher-card .row { display: flex; justify-content: space-between; gap: 14px; white-space: nowrap; overflow: hidden; }
.cipher-card .k { color: var(--fg-low); }
.cipher-card .v { color: var(--fg-mid); overflow: hidden; text-overflow: ellipsis; }
.cipher-card .v.mint { color: var(--mint); }
.cipher-card .v.sealed { color: var(--fg-disabled); letter-spacing: 0.5px; }
.cipher-card hr { border: none; border-top: 1px dashed var(--outline); margin: 14px 0; }
.cipher-card .stamp {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--mint-deep);
  color: var(--mint);
  border-radius: 8px;
  padding: 6px 13px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Comparison table ---------- */

.compare-wrap { margin-top: 56px; overflow-x: auto; }

.compare {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--outline);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-surface);
}

.compare th, .compare td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--outline-soft);
  font-size: 15px;
  vertical-align: top;
}
.compare tr:last-child td { border-bottom: none; }

.compare thead th {
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-low);
  border-bottom: 1px solid var(--outline);
}
.compare thead th.col-bc { color: var(--mint); }
.compare thead th.col-others { color: var(--coral); }

.compare td:first-child { color: var(--fg-high); font-weight: 700; width: 30%; }
.compare td.bc { background: rgba(61,220,151,0.035); }
.compare td.bc b { color: var(--mint); font-weight: 700; }
.compare td.others { color: var(--fg-low); }
.compare td.others b { color: var(--coral); font-weight: 700; }
.compare td small { display: block; font-size: 13px; color: var(--fg-low); font-weight: 400; margin-top: 3px; }

/* Pricing math block */
.price-math {
  margin-top: 26px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-l);
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(61,220,151,0.05), transparent 70%),
    var(--bg-surface);
  padding: 30px 32px 26px;
}

.pm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 24px;
}
.pm-title { color: var(--fg-high); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.pm-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-low);
}

.pm-bars { display: grid; gap: 13px; }

.pm-row {
  display: grid;
  grid-template-columns: 168px 1fr 110px;
  align-items: center;
  gap: 16px;
}
.pm-label { font-size: 13.5px; font-weight: 600; color: var(--fg-mid); }
.pm-row:first-child .pm-label { color: var(--mint); font-weight: 800; }

.pm-track {
  height: 14px;
  border-radius: 7px;
  background: var(--bg-elevated);
  border: 1px solid var(--outline-soft);
  overflow: hidden;
}
.pm-bar {
  height: 100%;
  width: var(--w, 0%);
  min-width: 6px;
  border-radius: 7px;
  background: rgba(255, 107, 107, 0.42);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.pm-bar.ours {
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint-glow);
}
html.js .price-math.in .pm-bar, html:not(.js) .pm-bar { transform: scaleX(1); }

.pm-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-mid);
  text-align: right;
  white-space: nowrap;
}
.pm-val.ours-v { color: var(--mint); font-weight: 700; }

.pm-punch {
  margin: 24px 0 14px;
  font-size: 16.5px;
  color: var(--fg-mid);
  max-width: 64ch;
}
.pm-punch b { color: var(--mint); font-weight: 800; }

.pm-fine {
  margin: 0;
  padding-top: 16px;
  border-top: 1px dashed var(--outline);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--fg-low);
  max-width: 100ch;
}

.compare-coda {
  position: relative;
  margin: 24px 0 0;
  padding-left: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: var(--fg-low);
  max-width: 76ch;
}
.compare-coda::before { content: "▸"; color: var(--mint); position: absolute; left: 0; top: 0; }
.compare-coda b { color: var(--mint); font-weight: 500; }

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

.faq-list { margin-top: 50px; display: grid; gap: 12px; max-width: 860px; }

details.faq-item {
  border: 1px solid var(--outline);
  border-radius: var(--radius-m);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
details.faq-item[open] { border-color: var(--mint-deep); }

details.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--fg-high);
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary .plus {
  flex: none;
  width: 26px; height: 26px;
  border: 1px solid var(--outline);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
  transition: transform 0.3s ease, background 0.2s;
}
details.faq-item[open] summary .plus { transform: rotate(45deg); background: rgba(61,220,151,0.1); }

.faq-a { padding: 0 24px 22px; font-size: 15px; max-width: 72ch; }
.faq-a p { margin-bottom: 0.8em; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a b { color: var(--fg-high); }

.faq-cat {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 54px 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq-cat::after { content: ""; flex: 1; height: 1px; background: var(--outline-soft); }
.faq-cat:first-of-type { margin-top: 40px; }

/* ---------- CTA band ---------- */

.cta-band {
  border: 1px solid var(--outline);
  border-radius: var(--radius-l);
  background:
    radial-gradient(600px 280px at 50% 130%, rgba(61,220,151,0.13), transparent 70%),
    var(--bg-surface);
  padding: 76px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 52ch; margin: 0 auto 34px; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--outline-soft);
  padding: 56px 0 40px;
  font-size: 14px;
  color: var(--fg-low);
}

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

.footer-brand p { max-width: 34ch; font-size: 14px; margin-top: 14px; }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-low);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-col a { display: block; color: var(--fg-mid); padding: 5px 0; font-weight: 600; }
.footer-col a:hover { color: var(--fg-high); text-decoration: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--outline-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.footer-bottom .made b { color: var(--mint); font-weight: 500; }

/* ---------- Doc pages (privacy / terms) ---------- */

.doc-hero { padding: calc(var(--nav-h) + 70px) 0 30px; }
.doc-hero h1 { font-size: clamp(32px, 4.6vw, 52px); }
.doc-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--fg-low);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.doc-meta b { color: var(--mint); font-weight: 500; }

.doc-body { padding: 30px 0 110px; }

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  border-left: 1px solid var(--outline);
  padding-left: 22px;
  font-size: 13.5px;
  display: grid;
  gap: 2px;
}
.doc-toc a { color: var(--fg-low); padding: 5px 0; font-weight: 600; }
.doc-toc a:hover { color: var(--mint); text-decoration: none; }

.prose { max-width: 76ch; font-size: 16px; min-width: 0; }
.prose h2 {
  font-size: 24px;
  margin: 2.4em 0 0.7em;
  padding-top: 0.6em;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.prose h2:first-child { margin-top: 0.4em; }
.prose h2 .sec-n {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--mint);
  font-weight: 500;
  display: block;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.prose h3 { font-size: 18px; margin: 1.8em 0 0.6em; }
.prose ul { padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--mint); }
.prose b, .prose strong { color: var(--fg-high); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1.2em 0 1.6em;
  border: 1px solid var(--outline);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.prose th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: left;
  color: var(--fg-low);
  background: var(--bg-elevated);
  padding: 11px 14px;
  border-bottom: 1px solid var(--outline);
}
.prose td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--outline-soft);
  vertical-align: top;
}
.prose tr:last-child td { border-bottom: none; }

.callout {
  border: 1px solid var(--mint-deep);
  border-left: 3px solid var(--mint);
  background: rgba(61,220,151,0.05);
  border-radius: var(--radius-s);
  padding: 18px 22px;
  margin: 1.4em 0;
  font-size: 15px;
}
.callout.coral {
  border-color: var(--coral-deep);
  border-left-color: var(--coral);
  background: rgba(255,107,107,0.05);
}
.callout p { margin: 0; }
.callout p + p { margin-top: 0.7em; }
.callout b { color: var(--fg-high); }

/* ============================================================
   EXPLAINER ANIMATION 1 — "Your cloud, in your pocket"
   ============================================================ */

.pocket-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  margin-top: 56px;
  align-items: stretch;
}

.pocket-card {
  position: relative;
  border: 1px solid var(--outline);
  border-radius: var(--radius-l);
  background: var(--bg-surface);
  padding: 30px 30px 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pocket-card .pc-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pocket-card h3 { font-size: 21px; margin-bottom: 4px; }
.pocket-card .pc-stage { flex: 1; display: grid; place-items: center; min-height: 280px; position: relative; }
.pocket-card .pc-foot { font-size: 14.5px; color: var(--fg-mid); margin: 14px 0 0; text-align: center; }
.pocket-card .pc-foot b { color: var(--fg-high); }

/* --- THEIR CLOUD (cost ticking up, greyed) --- */
.pocket-card.theirs { border-color: var(--coral-deep); }
.pocket-card.theirs .pc-tag { color: var(--coral); }
.pocket-card.theirs h3 { color: var(--fg-mid); }

.dc {
  position: relative;
  width: 150px; height: 150px;
  display: grid;
  place-items: center;
}
.dc svg { width: 96px; height: 96px; stroke: var(--fg-low); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dc .dc-blink { fill: var(--coral); animation: dc-blink 1.4s steps(1) infinite; }
@keyframes dc-blink { 0%, 50% { opacity: 0.9; } 51%, 100% { opacity: 0.2; } }

/* odometer-style bill that never stops climbing */
.bill {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 30px;
  color: var(--coral);
  letter-spacing: 0.02em;
}
.bill .cur { font-size: 22px; opacity: 0.85; }
.bill .reel {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
}
.bill .reel span {
  display: block;
  animation: reel-roll linear infinite;
}
.bill .reel span i { display: block; font-style: normal; height: 1em; }
.bill .reel.r1 span { animation-duration: 0.5s; }
.bill .reel.r2 span { animation-duration: 1.6s; }
.bill .reel.r3 span { animation-duration: 5s; }
@keyframes reel-roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.bill .per { font-size: 14px; color: var(--fg-low); font-weight: 500; letter-spacing: 0.1em; align-self: flex-end; margin-bottom: 3px; }
.bill .arrow { color: var(--coral); animation: bill-arrow 1.4s ease-in-out infinite; }
@keyframes bill-arrow { 0%,100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* --- YOUR POCKET CLOUD (phone with mint halo + orbiting data) --- */
.pocket-card.yours { border-color: var(--mint-deep); }
.pocket-card.yours .pc-tag { color: var(--mint); }

.pocket {
  position: relative;
  width: 240px; height: 240px;
  display: grid;
  place-items: center;
}
/* the "cloud" is now a soft mint halo living around the phone */
.pocket::before {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mint-glow), transparent 65%);
  animation: pocket-breathe 4s ease-in-out infinite;
}
@keyframes pocket-breathe { 0%,100% { transform: scale(0.92); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 1; } }

.pocket .phone-core {
  position: relative;
  z-index: 3;
  width: 60px; height: 104px;
  border: 2px solid var(--mint);
  border-radius: 13px;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-raised));
  box-shadow: 0 0 26px var(--mint-glow);
  display: grid;
  place-items: center;
}
.pocket .phone-core::after {
  content: "";
  width: 16px; height: 3px;
  border-radius: 2px;
  background: var(--mint);
  position: absolute;
  bottom: 8px;
}
.pocket .phone-core svg { width: 26px; height: 26px; stroke: var(--mint); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* orbit ring of data chips, counter-rotated so labels stay upright */
.orbit {
  position: absolute;
  inset: 0;
  z-index: 2;
  animation: orbit-spin 22s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.orbit .chip {
  position: absolute;
  top: 50%; left: 50%;
  --r: 104px;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
  animation: chip-counter 22s linear infinite;
}
@keyframes chip-counter { to { transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)) rotate(-360deg); } }
.orbit .chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-mid);
  background: var(--bg-elevated);
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 5px 11px;
}
.orbit .chip span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); flex: none; }

.pocket .stamp-once {
  position: absolute;
  z-index: 4;
  bottom: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid var(--mint-deep);
  background: rgba(61,220,151,0.08);
  padding: 5px 13px;
  border-radius: 999px;
}

.pocket-punch {
  margin-top: 30px;
  text-align: center;
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 800;
  color: var(--fg-high);
  letter-spacing: -0.01em;
}
.pocket-punch b { color: var(--mint); }

/* ============================================================
   EXPLAINER ANIMATION 2 — "Never lose a thing" (backup + restore loop)
   ============================================================ */

.restore-wrap {
  margin-top: 56px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-l);
  background:
    radial-gradient(600px 320px at 50% 40%, rgba(61,220,151,0.05), transparent 70%),
    var(--bg-surface);
  padding: 20px;
  overflow: hidden;
}
.restore-wrap svg { width: 100%; height: auto; display: block; }

.rs-link { stroke: var(--outline); stroke-width: 1.4; }
.rs-node-box { fill: var(--bg-elevated); stroke: var(--outline); stroke-width: 1.4; }
.rs-node-box.bk { stroke: var(--blue); }
.rs-label { fill: var(--fg-mid); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; }
.rs-ic { stroke: var(--fg-mid); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rs-ic.bk { stroke: var(--blue); }

/* central boss phone — cycles: alive → lost(red) → reborn(blank) → restored(mint) */
.rs-phone { stroke-width: 2.4; fill: var(--bg-elevated); animation: rs-phone-life 13s ease-in-out infinite; }
@keyframes rs-phone-life {
  0%, 26%   { stroke: var(--mint); opacity: 1; }      /* alive, streaming out */
  30%       { stroke: var(--coral); opacity: 1; }     /* breaks */
  34%, 40%  { stroke: var(--coral); opacity: 0.12; }  /* lost */
  46%       { stroke: var(--fg-low); opacity: 1; }     /* fresh blank phone */
  62%       { stroke: var(--fg-low); opacity: 1; }
  80%, 100% { stroke: var(--mint); opacity: 1; }       /* restored */
}
.rs-phone-glow { fill: var(--mint); opacity: 0; animation: rs-glow 13s ease-in-out infinite; }
@keyframes rs-glow { 0%,72% { opacity: 0; } 84% { opacity: 0.18; } 100% { opacity: 0.08; } }

/* red "lost" cross + label flash */
.rs-lost { opacity: 0; animation: rs-lost 13s ease-in-out infinite; }
@keyframes rs-lost { 0%,28% { opacity: 0; } 31%,42% { opacity: 1; } 46%,100% { opacity: 0; } }

/* 12-word phrase chip on rebirth */
.rs-phrase { opacity: 0; animation: rs-phrase 13s ease-in-out infinite; }
@keyframes rs-phrase { 0%,44% { opacity: 0; } 50%,74% { opacity: 1; } 80%,100% { opacity: 0; } }

/* packets: travel OUT during the backup phase, IN during restore. Each link has
   its own packet; offset by --d so they don't move in lockstep. */
.rs-pkt { fill: var(--mint); r: 4; opacity: 0; }
.rs-pkt.out { animation: rs-out 13s linear infinite; animation-delay: var(--d, 0s); }
.rs-pkt.in  { fill: var(--mint); animation: rs-in 13s linear infinite; animation-delay: var(--d, 0s); }
/* out: from phone (cx,cy set inline as start) to node (via translate to --dx,--dy) */
@keyframes rs-out {
  0%      { opacity: 0; transform: translate(0,0); }
  2%      { opacity: 1; }
  24%     { opacity: 1; transform: translate(var(--dx), var(--dy)); }
  26%,100%{ opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
@keyframes rs-in {
  0%,66%  { opacity: 0; transform: translate(var(--dx), var(--dy)); }
  68%     { opacity: 1; transform: translate(var(--dx), var(--dy)); }
  92%     { opacity: 1; transform: translate(0,0); }
  94%,100%{ opacity: 0; transform: translate(0,0); }
}

.rs-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 14px 8px 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--fg-low);
  text-transform: uppercase;
}
.rs-caption .ok { color: var(--mint); }
.restore-punch {
  margin-top: 26px;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 23px);
  color: var(--fg-mid);
  max-width: 60ch;
  margin-inline: auto;
}
.restore-punch b { color: var(--mint); font-weight: 800; }

/* ---------- Reveal-on-scroll ---------- */

/* Gated on html.js so content is never hidden if JS doesn't run */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .topology { max-width: 620px; }
  .pillars { grid-template-columns: 1fr; }
  .checkin-grid { grid-template-columns: 1fr; }
  .officeweb-grid { grid-template-columns: 1fr; gap: 44px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: 1fr; }
  .cipher-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .doc-toc { position: static; border-left: none; padding: 18px 22px; border: 1px solid var(--outline); border-radius: var(--radius-m); background: var(--bg-surface); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 76px 0; }
  .nav-links a:not(.btn) { display: none; }
  .features { grid-template-columns: 1fr; }
  .method-body { grid-template-columns: 1fr; }
  .qr-demo, .nfc-demo { margin-inline: auto; }
  .hero-facts { gap: 0 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .compare th, .compare td { padding: 14px 16px; }
  .cta-band { padding: 56px 24px; }
  .method { min-width: 0; }
  .method-head { flex-wrap: wrap; }
  /* Doc-page tables (privacy/terms): scroll inside the column instead of
     pushing the whole page wider than the viewport on phones. Needs the prose
     column to be allowed to shrink (min-width:0 below + minmax(0,1fr) track). */
  .prose table { display: block; overflow-x: auto; }
  .price-math { padding: 24px 20px 20px; }
  .pm-row { grid-template-columns: 1fr; gap: 6px; }
  .pm-val { text-align: left; }
  .browser-body { grid-template-columns: 96px 1fr; }
  .browser-side span { padding: 7px 8px; font-size: 11px; }
  .browser-main { overflow-x: auto; }
  .browser-url { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
}
