/* ClipMate landing page
   Palette follows the app itself: warm pink accent (#FF7A93) on a soft dark ground.
   Light and dark are both first-class — the page follows the visitor's system setting. */

:root {
  --accent: #ff7a93;
  --accent-soft: #f8e1df;
  --accent-deep: #f8617f;

  --bg: #fdf7f7;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --bg-solid: #ffffff;
  --text: #1b1417;
  --text-dim: #6d6167;
  --line: rgba(27, 20, 23, 0.10);
  --shadow: 0 14px 44px rgba(40, 20, 28, 0.10);
  --radius: 18px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141013;
    --bg-elev: rgba(38, 30, 35, 0.66);
    --bg-solid: #1d171b;
    --text: #f6eef1;
    --text-dim: #a2949c;
    --line: rgba(255, 255, 255, 0.10);
    --shadow: 0 18px 52px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.06rem; font-weight: 650; }
p  { margin: 0 0 1rem; }
a  { color: inherit; }

code, kbd, pre { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-deep) 60%, #ffb199);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── ambient orbs ─────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
.orb-a { width: 480px; height: 480px; top: -140px; right: -120px; background: rgba(255, 122, 147, 0.42); }
.orb-b { width: 420px; height: 420px; bottom: -160px; left: -140px; background: rgba(255, 177, 153, 0.30); }
@media (prefers-color-scheme: dark) {
  .orb { opacity: 0.32; }
}

/* ── nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.4rem;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 750; letter-spacing: -0.02em; text-decoration: none; font-size: 1.05rem;
}
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 1.35rem; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--text-dim); font-size: 0.92rem; font-weight: 500;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--accent); }

/* ── buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72rem 1.35rem;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--bg-solid);
  color: var(--text);
  font-weight: 600; font-size: 0.94rem; text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(255,122,147,0.5); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 22px rgba(248, 97, 127, 0.34);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(248, 97, 127, 0.44); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.87rem; }

/* ── hero ─────────────────────────────────────────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 1.4rem 3rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.34rem 0.85rem; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 600; color: var(--text-dim);
  margin-bottom: 1.3rem;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lede { font-size: 1.09rem; color: var(--text-dim); max-width: 33rem; }
.cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.7rem; }
.cta.center { justify-content: center; margin-top: 2.2rem; }
.fineprint { margin-top: 1rem; font-size: 0.84rem; color: var(--text-dim); }

/* ── the panel mock-up ────────────────────────────────────── */
.hero-art { display: flex; justify-content: center; }
.panel {
  position: relative;
  width: 320px;
  padding: 11px;
  border-radius: 16px;
  background: var(--bg-elev);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }

.panel-caret {
  position: absolute; top: -7px; left: 50%; width: 14px; height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--bg-elev); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.panel-head {
  display: flex; align-items: center;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-dim); opacity: 0.75; padding: 6px 8px 3px;
}
.panel-head .clear { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 8px; font-size: 0.8rem;
  transition: background 0.18s ease;
}
.row:hover { background: rgba(255, 122, 147, 0.14); }
.row .ico { width: 17px; text-align: center; font-size: 0.78rem; flex: none; opacity: 0.85; }
.row .thumb {
  width: 16px; height: 16px; border-radius: 3px;
  background: linear-gradient(135deg, #63d2e0, #3aa9bd);
}
.row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .lbl.mono { font-family: "JetBrains Mono", monospace; font-size: 0.73rem; }
.row .pinbtn { margin-left: auto; font-size: 0.66rem; opacity: 0.32; flex: none; }
.row .pinbtn.on { opacity: 1; }
.sep { height: 1px; background: var(--line); margin: 6px 4px; }
.panel-foot { display: flex; padding: 6px 8px 2px; font-size: 0.85rem; opacity: 0.6; }
.panel-foot .right { margin-left: auto; }

/* ── sections ─────────────────────────────────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 1.4rem; }
.section-head { max-width: 42rem; margin-bottom: 2.6rem; }
.section-head p { color: var(--text-dim); font-size: 1.02rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 1.1rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,122,147,0.42); }
.card p { color: var(--text-dim); font-size: 0.93rem; margin: 0; }
.card.flat:hover { transform: none; }
.card-ico {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; font-size: 1.15rem; margin-bottom: 0.9rem;
  background: linear-gradient(135deg, rgba(255,122,147,0.22), rgba(255,177,153,0.16));
  border: 1px solid rgba(255,122,147,0.24);
}

/* ── keyboard shortcuts ───────────────────────────────────── */
kbd {
  display: inline-block; min-width: 1.75rem; text-align: center;
  padding: 0.16rem 0.44rem; margin: 0 1px;
  border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px;
  background: var(--bg-solid); font-size: 0.82em; font-weight: 500;
}
kbd.tiny { font-size: 0.72em; min-width: auto; }
/* Keeps a multi-key combo from being split across two lines mid-shortcut. */
.combo { white-space: nowrap; }

.keys { display: grid; gap: 0.85rem; max-width: 46rem; }
.keyrow {
  display: flex; align-items: center; gap: 1.3rem;
  padding: 1.15rem 1.4rem; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--line);
}
.keycombo { display: flex; gap: 3px; flex: none; }
.keycombo kbd { font-size: 0.95rem; padding: 0.4rem 0.6rem; min-width: 2.3rem; }
.keydesc { display: flex; flex-direction: column; }
.keydesc strong { font-weight: 650; }
.keydesc span { color: var(--text-dim); font-size: 0.9rem; }

.note {
  max-width: 46rem; margin-top: 1.6rem; padding: 1.1rem 1.3rem;
  border-radius: 13px; font-size: 0.9rem; color: var(--text-dim);
  background: rgba(255, 122, 147, 0.08);
  border: 1px solid rgba(255, 122, 147, 0.22);
  border-left: 3px solid var(--accent);
}
.note strong { color: var(--text); }

/* ── permissions table ────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); }
.perms { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.92rem; }
.perms th, .perms td { padding: 0.95rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); }
.perms thead th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.perms tbody tr:last-child td { border-bottom: none; }
.perms td:first-child { font-weight: 600; white-space: nowrap; }
.perms td:last-child { color: var(--text-dim); }
.tag {
  display: inline-block; padding: 0.16rem 0.6rem; border-radius: 999px;
  font-size: 0.76rem; font-weight: 650; white-space: nowrap;
}
.tag.no   { background: rgba(120, 200, 150, 0.18); color: #3f9c6b; }
.tag.once { background: rgba(255, 190, 90, 0.20);  color: #b57b16; }
.tag.opt  { background: rgba(255, 122, 147, 0.18); color: var(--accent-deep); }
@media (prefers-color-scheme: dark) {
  .tag.no { color: #7fd3a3; } .tag.once { color: #f0c069; } .tag.opt { color: #ff9aae; }
}

/* ── install steps ────────────────────────────────────────── */
.steps { display: grid; gap: 1rem; max-width: 46rem; }
.step {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.25rem 1.4rem; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--line);
}
.step .num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.86rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}
.step p { margin: 0.2rem 0 0; color: var(--text-dim); font-size: 0.92rem; }

.build { margin-top: 3rem; max-width: 46rem; }
.build p { color: var(--text-dim); }
pre {
  background: #161215; color: #f0e6ea;
  padding: 1.15rem 1.3rem; border-radius: 13px; overflow-x: auto;
  font-size: 0.86rem; line-height: 1.75; border: 1px solid rgba(255,255,255,0.08);
}
pre .cmt { color: #8b7f86; }
.small { font-size: 0.86rem; }
.small code { background: var(--bg-elev); padding: 0.1rem 0.4rem; border-radius: 5px; font-size: 0.92em; }
.card code { background: rgba(255,122,147,0.12); padding: 0.08rem 0.36rem; border-radius: 5px; font-size: 0.9em; }

/* ── footer ───────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); margin-top: 3rem; background: var(--bg-elev); }
.foot-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2.2rem 1.4rem;
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 0.75rem; }
.foot-brand img { border-radius: 8px; }
.foot-brand div { display: flex; flex-direction: column; }
.foot-brand span { font-size: 0.83rem; color: var(--text-dim); }
.foot-links { display: flex; gap: 1.4rem; margin-left: auto; flex-wrap: wrap; }
.foot-links a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: color 0.18s ease; }
.foot-links a:hover { color: var(--accent); }

/* ── 1.5: panel additions ─────────────────────────────────── */
.row.toggle-row .lbl { display: flex; flex-direction: column; line-height: 1.25; }
.row .lbl small { font-size: 0.66rem; color: var(--text-dim); }
.switch {
  position: relative; flex: none; margin-left: auto;
  width: 28px; height: 16px; border-radius: 999px;
  background: rgba(127, 127, 127, 0.32);
  transition: background 0.2s ease;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25); transition: transform 0.2s ease;
}
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(12px); }
.pill {
  margin-left: auto; flex: none; font-size: 0.66rem; font-weight: 600;
  padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-solid);
}
.row .ocrbtn { margin-left: auto; font-size: 0.62rem; font-weight: 700; color: var(--accent); flex: none; }
.row .copied { font-size: 0.62rem; font-weight: 700; color: var(--accent); flex: none; }
.panel-foot .fbtn + .fbtn { margin-left: 12px; }
.panel-foot .fbtn.right { margin-left: auto; }

/* ── 1.5: section bits ─────────────────────────────────────── */
.eyebrow {
  display: inline-block; margin-bottom: 0.7rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-deep);
}
.new {
  display: inline-block; vertical-align: middle; margin-left: 0.3rem;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.1rem 0.45rem; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}
.grid.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
h3.sub { margin: 2.8rem 0 1rem; font-size: 1.25rem; }
kbd.ghost { font-family: "Inter", sans-serif; font-size: 0.8rem; color: var(--text-dim); border-style: dashed; }
.step code { background: var(--bg-solid); padding: 0.08rem 0.36rem; border-radius: 5px; font-size: 0.9em; }

/* spotlight rows */
.spot {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center; margin-bottom: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-elev); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.spot.flip .spot-copy { order: 2; }
.spot h3 { font-size: 1.35rem; }
.spot-copy > p { color: var(--text-dim); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li {
  position: relative; padding-left: 1.6rem; font-size: 0.93rem; color: var(--text-dim);
}
.ticks li strong { color: var(--text); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0.05rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.66rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}
.spot-art { display: flex; justify-content: center; }

/* OCR demo */
.ocr-demo { width: 100%; max-width: 330px; display: grid; gap: 0.7rem; justify-items: center; }
.ocr-screen {
  width: 100%; padding: 1.1rem; border-radius: 14px; display: grid; gap: 0.6rem;
  background: var(--bg-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ocr-line { height: 9px; border-radius: 5px; background: var(--line); }
.ocr-line.w80 { width: 80%; } .ocr-line.w70 { width: 70%; } .ocr-line.w60 { width: 60%; }
.ocr-sel {
  position: relative; display: grid; gap: 0.2rem; padding: 0.6rem 0.7rem;
  border: 2px dashed var(--accent); border-radius: 8px;
  background: rgba(255, 122, 147, 0.08);
  font-family: "JetBrains Mono", monospace; font-size: 0.78rem;
}
.ocr-sel::after {
  content: "✛"; position: absolute; right: -9px; bottom: -13px; font-size: 1.1rem; color: var(--accent);
}
.ocr-arrow { color: var(--accent); font-size: 1.2rem; line-height: 1; }
.ocr-result {
  padding: 0.55rem 1rem; border-radius: 12px; font-size: 0.85rem; font-weight: 600;
  background: var(--bg-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ocr-result .ok { color: var(--accent); margin-right: 0.3rem; }

/* Keep Awake demo */
.awake-demo { width: 100%; max-width: 330px; display: grid; gap: 0.9rem; }
.menubar {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.4rem 0.9rem;
  border-radius: 10px; font-size: 0.78rem; font-weight: 500;
  background: var(--bg-solid); border: 1px solid var(--line);
}
.menubar .mb-spacer { flex: 1; }
.menubar .cup {
  padding: 0.05rem 0.35rem; border-radius: 5px; background: rgba(255,122,147,0.18);
}
.awake-card {
  padding: 0.9rem; border-radius: 14px; display: grid; gap: 0.7rem;
  background: var(--bg-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.awake-row { display: flex; align-items: center; font-size: 0.86rem; font-weight: 600; }
.awake-row.dim { font-weight: 500; color: var(--text-dim); font-size: 0.8rem; }
.durations { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.durations span {
  font-size: 0.74rem; font-weight: 600; padding: 0.22rem 0.55rem; border-radius: 7px;
  border: 1px solid var(--line); color: var(--text-dim);
}
.durations .sel { background: var(--accent); border-color: transparent; color: #fff; }

/* Notification demo */
.notif-demo { width: 100%; max-width: 330px; display: grid; gap: 0.6rem; }
.banner {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.8rem;
  border-radius: 14px; background: var(--bg-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 0.8rem;
}
.banner div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.banner span { color: var(--text-dim); }
.banner.gone { opacity: 0.45; transform: scale(0.97); }
.banner.gone b, .banner.gone div span { text-decoration: line-through; }
.banner .x {
  margin-left: auto; font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  color: var(--accent-deep); text-decoration: none;
}
.app-dot { flex: none; width: 22px; height: 22px; border-radius: 6px; }
.app-dot.ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.app-dot.ms { background: linear-gradient(135deg, #00b2ff, #a033ff 60%, #ff5c87); }
.app-dot.wa { background: #25d366; }
.app-dot.mail { background: linear-gradient(180deg, #4fb6ff, #1676f3); }
.applist {
  margin-top: 0.3rem; padding: 0.4rem 0.8rem; border-radius: 14px;
  background: var(--bg-solid); border: 1px solid var(--line);
}
.app {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0;
  font-size: 0.82rem; font-weight: 500; border-bottom: 1px solid var(--line);
}
.app:last-child { border-bottom: none; }
.app .app-dot { width: 18px; height: 18px; border-radius: 5px; }

/* install path breadcrumb */
.mini-path {
  display: inline-flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  margin: 0.6rem 0 0.5rem; padding: 0.45rem 0.8rem; border-radius: 9px;
  font-size: 0.84rem; font-weight: 500; background: var(--bg-solid); border: 1px solid var(--line);
}
.mini-path span { color: var(--text-dim); }
.mini-path b { color: var(--accent-deep); }

/* FAQ */
.faq { display: grid; gap: 0.7rem; max-width: 50rem; }
.faq details {
  border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--line);
  padding: 0 1.2rem; transition: border-color 0.18s ease;
}
.faq details[open] { border-color: rgba(255,122,147,0.42); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600;
  display: flex; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; flex: none; font-size: 1.2rem; font-weight: 500; color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-dim); font-size: 0.93rem; margin: 0 0 1.1rem; }

@media (max-width: 880px) {
  .spot { grid-template-columns: 1fr; }
  .spot.flip .spot-copy { order: 0; }
}

/* ── reveal on scroll ─────────────────────────────────────── */
/* Deliberately NOT a hide-then-show. Nothing here ever sets a resting opacity of
   0, because an environment that does not run animations — a paused renderer, a
   link-preview crawler, a locked-down webview — would then show a blank page.
   Instead the element is always visible, and `.visible` plays a one-shot entrance
   animation. No fill mode, so before and after it the element uses its normal,
   visible styles. Worst case the animation simply never plays. */
@keyframes revealUp {
  from { transform: translateY(20px); }
  to   { transform: none; }
}

/* Transform only — the animation never touches opacity. An earlier version faded
   in, which meant a renderer that starts an animation but never advances it (a
   backgrounded tab, a crawler, some webviews) would hold frame zero and leave the
   page blank. A slide alone cannot hide anything: worst case the element sits
   20px low and is still perfectly readable. */
.js .reveal.visible { animation: revealUp 0.55s cubic-bezier(0.22, 1, 0.36, 1); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal.visible { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 2.5rem; }
  .lede { margin-inline: auto; }
  .cta { justify-content: center; }
  .nav-links { display: none; }
  .keyrow { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .foot-links { margin-left: 0; }
}
