/* PixelScan WSI · site styles
   Light theme. Accent gradient runs coral → eosin pink → magenta (no blue). */

:root {
  --bg: #fffbfc;
  --bg-alt: #fdf3f7;
  --surface: #ffffff;
  --surface-2: #fcf1f5;
  --border: #f1dfe8;
  --border-strong: #e6c9d7;
  --text: #2a1629;
  --muted: #6c5468;
  --dim: #9a8494;

  --coral: #ff8a5c;
  --pink: #ec4d86;
  --magenta: #b8338f;
  --accent: #d63f7c;           /* text-safe accent on light backgrounds */
  --grad: linear-gradient(115deg, #ff8a5c 0%, #ec4d86 48%, #b8338f 100%);
  --grad-soft: linear-gradient(115deg, rgba(255, 138, 92, .12), rgba(236, 77, 134, .12) 50%, rgba(184, 51, 143, .12));

  --ok: #13875a;
  --beta: #a8650c;

  --shadow-sm: 0 1px 2px rgba(90, 30, 70, .06), 0 4px 14px -6px rgba(90, 30, 70, .10);
  --shadow-lg: 0 30px 70px -30px rgba(150, 40, 110, .35), 0 8px 24px -12px rgba(90, 30, 70, .15);

  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1180px;
  --gutter: 16px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
b, strong { font-weight: 600; color: var(--text); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.55rem); font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.mono { font-family: var(--font-mono); }
.small { font-size: 0.875rem; color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 820px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.95rem/1 var(--font-body);
  padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
  text-decoration: none !important;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(236, 77, 134, .65); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(236, 77, 134, .8); }
.btn-sm { padding: 9px 16px; font-size: 0.875rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.text-link { display: inline-block; color: var(--accent); font-weight: 500; font-size: 0.95rem; }

.store-badge { display: inline-block; border-radius: 10px; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { height: auto; }

.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 252, .72);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(255, 251, 252, .92); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-head); font-size: 1.1rem; font-weight: 500; text-decoration: none !important; }
.brand b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); padding: 2px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 0.925rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-cta { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 10px; background: #fff; border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(255, 251, 252, .98); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 36px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 50% at 85% 20%, rgba(184, 51, 143, .16), transparent 70%),
    radial-gradient(35% 45% at 62% 60%, rgba(236, 77, 134, .14), transparent 70%),
    radial-gradient(30% 40% at 8% 0%, rgba(255, 138, 92, .16), transparent 70%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 0.95fr 1.05fr; gap: 56px; } .hero { padding: 80px 0 44px; } }

.hero-copy h1 { margin-bottom: 22px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-bottom: 20px; }
.hero-note { display: flex; flex-direction: column; line-height: 1.35; }
.hero-note span { color: var(--dim); font-size: 0.9rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.hero-shot { position: relative; margin: 0; }
.window {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
  transition: transform .5s ease;
}
.hero-shot:hover .window { transform: none; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #efd3df; }
.window-bar i:first-child { background: #ff9c7a; } .window-bar i:nth-child(2) { background: #f47aa6; } .window-bar i:nth-child(3) { background: #cf6ab2; }
.window-bar span { margin-left: 8px; font: 500 0.75rem var(--font-mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window img { width: 100%; height: auto; }
.float-card {
  position: absolute; left: -12px; bottom: -22px; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg);
  font-size: 0.82rem; line-height: 1.35; color: var(--muted);
}
.float-num { font: 700 1.6rem/1 var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 560px) { .float-card { left: 8px; bottom: -28px; } }

.opens-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--border); }
.opens-label { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.pill-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row li { font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; color: var(--muted); padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
@media (min-width: 1000px) { .section { padding: 104px 0; } }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 719px) { .hide-sm { display: none; } }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.step-num { display: inline-block; font-size: 0.8rem; color: #fff; background: var(--grad); border-radius: 8px; padding: 4px 9px; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Product tour */
.tour { display: grid; gap: 20px; }
@media (min-width: 1000px) { .tour { grid-template-columns: 330px 1fr; gap: 28px; align-items: start; } }
.tour-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs button {
  flex: 0 0 auto; text-align: left; cursor: pointer; font: inherit; color: var(--muted);
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.tour-tabs button b { display: block; font-size: 0.92rem; color: var(--text); white-space: nowrap; }
.tour-tabs button span { display: none; font-size: 0.85rem; line-height: 1.45; margin-top: 3px; }
.tour-tabs button:hover { border-color: var(--border-strong); }
.tour-tabs button[aria-selected="true"] {
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: var(--shadow-sm);
}
.tour-tabs button[aria-selected="true"] b { color: var(--accent); }
@media (min-width: 1000px) {
  .tour-tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .tour-tabs button { padding: 12px 16px; }
  .tour-tabs button span { display: none; }
  .tour-tabs button[aria-selected="true"] span { display: block; }
}
.tour-caption { color: var(--muted); font-size: 0.95rem; margin-top: -6px; }
@media (min-width: 1000px) { .tour-caption { display: none; } }
.tour-view {
  position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in;
  background: #16161a; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.tour-view img { width: 100%; height: auto; transition: opacity .25s ease; }
.tour-view img.fading { opacity: 0; }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; font: 500 0.75rem var(--font-mono); color: var(--text);
  background: rgba(255, 255, 255, .9); border-radius: 8px; padding: 6px 10px; opacity: 0; transition: opacity .2s ease;
}
.tour-view:hover .zoom-hint, .tour-view:focus-visible .zoom-hint { opacity: 1; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1920px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(42, 22, 41, .8); backdrop-filter: blur(4px); }
.lightbox img { max-width: 100%; max-height: 94vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--text); font-size: 1.5rem; line-height: 1; box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) { .lightbox-close { top: 6px; right: 6px; } }

/* Real slide (OpenSeadragon) */
.slide-box {
  position: relative; height: min(72vh, 640px); min-height: 380px;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
}
.slide-box::before { /* gradient frame */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 3;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.osd { position: absolute; inset: 0; }
.slide-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 0.95rem; pointer-events: none; transition: opacity .3s ease; }
.slide-loading.done { opacity: 0; }
.slide-controls { position: absolute; left: 14px; top: 14px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.slide-controls button {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .94);
  color: var(--text); font-size: 1.15rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm);
}
.slide-controls button:hover { color: var(--accent); border-color: var(--pink); }
.slide-mag {
  position: absolute; left: 14px; bottom: 14px; z-index: 4; font-size: 0.78rem; color: #fff;
  background: var(--grad); padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow-sm);
}
.slide-note { margin-top: 14px; font-size: 0.85rem; color: var(--dim); }
.slide-box:fullscreen { height: 100vh; border-radius: 0; }

/* Features */
.features { display: grid; gap: 20px; }
@media (min-width: 820px) { .features { grid-template-columns: repeat(2, 1fr); } .feature-wide { grid-column: 1 / -1; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: border-color .2s ease, transform .2s ease; }
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature h3 { margin-bottom: 14px; font-size: 1.25rem; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--grad-soft); border: 1px solid var(--border); }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--magenta); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon svg .accent { stroke: var(--coral); }
.ticks { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 0.95rem; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li + li { margin-top: 9px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px;
  border-left: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: rotate(-45deg);
}
@media (min-width: 820px) { .feature-wide .ticks { columns: 2; column-gap: 36px; } .feature-wide .ticks li { break-inside: avoid; margin: 0 0 12px; } }
.formats { margin: 0 0 14px; display: grid; gap: 10px; }
.formats div { display: grid; gap: 2px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; border-left: 3px solid var(--pink); }
.formats dt { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text); }
.formats dd { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* Cameras */
.cams { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cams { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cams { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1160px) { .cams { grid-template-columns: repeat(4, 1fr); } }
.cam { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); }
.cam-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cam h3 { font-size: 1rem; }
.cam p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.cam .needs { margin-top: auto; font-size: 0.74rem; color: var(--dim); padding-top: 6px; }
.cam-cta { background: var(--grad-soft); border-color: var(--border-strong); text-decoration: none !important; }
.cam-cta:hover { border-color: var(--pink); }
.cam-cta .text-link { margin-top: auto; font-size: 0.9rem; }
.status { flex-shrink: 0; font: 600 0.68rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 5px 8px; border-radius: 6px; }
.status-ok { color: var(--ok); background: #e3f6ec; border: 1px solid #b9e6cd; }
.status-beta { color: var(--beta); background: #fdf1de; border: 1px solid #f3d7a8; }
.section-lead .status { vertical-align: 2px; }

/* Pricing */
.plans { display: grid; gap: 20px; max-width: 920px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan-featured { background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: var(--shadow-lg); }
.plan-name { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 10px; }
.plan-price { font-family: var(--font-head); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; }
.plan-sub { color: var(--dim); font-size: 0.92rem; margin: 4px 0 22px; }
.plan .ticks { margin-bottom: 28px; }
.plan > .btn, .plan > .store-badge { margin-top: auto; align-self: flex-start; }
.plans-note { margin-top: 24px; color: var(--muted); font-size: 0.95rem; max-width: 920px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; box-shadow: var(--shadow-sm); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 1.4rem/1 var(--font-mono); color: var(--pink); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } }
.contact-copy h2 { margin-bottom: 16px; }
.contact-mail { margin-top: 24px; color: var(--muted); }
.contact-mail a { font-weight: 600; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 18px; box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 7px; }
.field[hidden] { display: none; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.opt { color: var(--dim); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236c5468' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(236, 77, 134, .16); }
.field .invalid { border-color: #d9304a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #c62842; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0 48px; background: var(--bg); position: relative; }
.footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--grad); }
.footer-inner { display: grid; gap: 24px; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } .copyright { grid-column: 1 / -1; } }
.disclaimer { margin-top: 14px; font-size: 0.9rem; }
.disclaimer strong { color: var(--beta); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }
.copyright { font-size: 0.85rem; color: var(--dim); padding-top: 20px; border-top: 1px solid var(--border); }

/* Scroll reveal (only when JS runs, so content is never hidden without it) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .window { transform: none; }
  * { transition-duration: 0s !important; }
}
