/* RÉGIX — site vitrine. Same colours as the app's Graphite theme. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08090c;
  --bg2: #0b0d12;
  --panel: #10131a;
  --panel2: #151922;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.12);
  --text: #e9edf3;
  --muted: #98a1b2;
  --faint: #677184;
  --accent: #3d8bff;
  --accent2: #6aa6ff;
  --violet: #9b7bff;
  --teal: #22c3b5;
  --green: #3ccf6e;
  --orange: #ff8a1f;
  --yellow: #ffb020;
  --pink: #ff6fa5;
  --red: #ff4d5e;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

*, *::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 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: -0.015em; font-weight: 720; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
kbd {
  display: inline-block; min-width: 1.7em; padding: 0.05em 0.45em; border-radius: 6px;
  border: 1px solid var(--line2); border-bottom-width: 2px; background: var(--panel2);
  font: 600 0.78em/1.5 "JetBrains Mono", ui-monospace, monospace; color: var(--text); text-align: center;
}
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(61, 139, 255, 0.35); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: none; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 32px, 1320px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 48px, 820px); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600; transition: top 0.2s;
}
.skip:focus { top: 16px; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 12px; font-weight: 600; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(180deg, #4b95ff, #2f7cf2); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 8px 24px -8px rgba(61, 139, 255, 0.7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 14px 34px -10px rgba(61, 139, 255, 0.85); }
.btn-ghost { border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.03); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); }
.btn-ghost .ic { transition: transform 0.2s var(--ease); }
.btn-ghost:hover .ic { transform: translateX(3px); }

/* ── header ──────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.top.scrolled {
  background: rgba(8, 9, 12, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.top-row { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { position: relative; display: inline-flex; align-items: center; gap: 11px; }
.brand-logo { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 6px 18px -6px rgba(61, 139, 255, 0.7); }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: 0.09em; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { padding: 8px 13px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s, background 0.2s; }
.menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.menu a.active { color: var(--text); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line2); align-items: center; justify-content: center; }
.menu-toggle .ic { width: 20px; height: 20px; }
.menu-toggle .ic-close { display: none; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 40px; isolation: isolate; }
.hero-bg {
  position: absolute; inset: -68px 0 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(61, 139, 255, 0.22), transparent 70%),
    radial-gradient(45% 45% at 85% 20%, rgba(155, 123, 255, 0.18), transparent 70%),
    radial-gradient(40% 35% at 50% 75%, rgba(34, 195, 181, 0.08), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 25%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 25%, #000 30%, transparent 75%);
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.04);
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(60, 207, 110, 0.15); }
.hero h1 { margin-top: 26px; font-size: clamp(2.6rem, 6.4vw, 5.1rem); font-weight: 780; letter-spacing: -0.028em; max-width: 17ch; }
.grad {
  background: linear-gradient(100deg, #6aa6ff 0%, #9b7bff 55%, #ff6fa5 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 24px; max-width: 640px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.65; }
.lead kbd { font-size: 0.72em; }
.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.facts { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; color: var(--muted); font-size: 14.5px; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts .ic { width: 16px; height: 16px; color: var(--green); }

.hero-shot { margin: 64px auto 0; perspective: 1800px; }
.hero-shot .shot-frame {
  transform: rotateX(var(--tilt, 14deg)) scale(var(--tilt-scale, 0.96));
  transform-origin: 50% 0%;
  transition: transform 0.1s linear;
  will-change: transform;
}
.shot-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), var(--shadow);
}
.shot-frame::before { /* the channel colours, as a thin bar over the window */
  content: ""; position: absolute; inset: 0 0 auto; height: 2px; z-index: 1;
  background: linear-gradient(90deg, var(--orange), var(--red) 20%, var(--green) 40%, var(--accent) 60%, var(--teal) 75%, var(--yellow) 88%, var(--pink));
  opacity: 0.9;
}
.hero-shot::after { /* glow under the window */
  content: ""; display: block; height: 120px; margin: -60px auto 0; width: 80%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(61, 139, 255, 0.35), transparent 70%);
  filter: blur(30px); position: relative; z-index: -1;
}

/* ── sections ────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.022em; }
.section-lead { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; color: var(--accent2);
  font: 700 12.5px/1 "Inter", sans-serif; letter-spacing: 0.18em; text-transform: uppercase;
}

.c-blue { --c: var(--accent); } .c-violet { --c: var(--violet); } .c-orange { --c: var(--orange); }
.c-pink { --c: var(--pink); } .c-teal { --c: var(--teal); } .c-green { --c: var(--green); }
.c-yellow { --c: var(--yellow); } .c-gray { --c: #94a3b8; }
.c-blue-t { color: var(--accent2); } .c-violet-t { color: var(--violet); } .c-orange-t { color: var(--orange); }
.c-pink-t { color: var(--pink); } .c-teal-t { color: var(--teal); } .c-green-t { color: var(--green); }
.c-yellow-t { color: var(--yellow); }

/* cards, with a light that follows the pointer */
.card {
  position: relative; border-radius: var(--radius); padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.card h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(106, 166, 255, 0.10), transparent 45%);
  transition: opacity 0.3s;
}
.spot:hover::before { opacity: 1; }
.spot:hover { border-color: var(--line2); }
.card-ic {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent);
}
.card-ic svg { width: 22px; height: 22px; }

.pages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── feature rows ────────────────────────────────────────────────────── */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(32px, 5vw, 72px); margin-bottom: clamp(80px, 11vw, 140px);
}
.feature-flip .feature-text { order: 2; }
.feature h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; }
.feature-text > p { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.ticks { margin-top: 22px; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; color: #cfd5df; font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(61, 139, 255, 0.14) center / 11px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236aa6ff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
}
.zoom { position: relative; display: block; width: 100%; border-radius: 14px; cursor: zoom-in; }
.feature-shot {
  overflow: hidden; background: var(--panel);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.feature-shot:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(106, 166, 255, 0.35), var(--shadow); }
.zoom-hint {
  position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; color: #fff; opacity: 0; transform: translateY(4px);
  background: rgba(8, 9, 12, 0.7); border: 1px solid var(--line2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.zoom-hint svg { width: 17px; height: 17px; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; transform: none; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card { padding: 32px; display: flex; flex-direction: column; }
.duo-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -0.018em; }
.duo-card > p:not(.eyebrow) { margin-top: 12px; }
.duo-shot {
  margin-top: auto; padding-top: 26px; background: none;
}
.duo-shot img {
  border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s var(--ease);
}
.duo-shot:hover img { transform: translateY(-3px); }

/* ── bento ───────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento-search { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.bento-text { max-width: 460px; }
.bento-img {
  margin-top: 28px; width: 118%; max-width: none; align-self: flex-start;
  border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.lufs {
  display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 10px; row-gap: 10px; margin-bottom: 18px;
}
.lufs-value { font: 750 30px/1 "JetBrains Mono", monospace; color: var(--green); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lufs-unit { font: 700 11px/1 "Inter", sans-serif; letter-spacing: 0.18em; color: var(--faint); padding-bottom: 4px; }
.lufs-bars { grid-column: 1 / -1; display: grid; gap: 4px; }
.lufs-bars i {
  display: block; height: 6px; border-radius: 3px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--green) 0 70%, var(--yellow) 70% 88%, var(--red) 88%);
}
.lufs-bars i::after { /* the unlit part, from the level to the right end */
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: calc(100% - var(--lvl, 62%));
  background: #171b23; transition: width 0.12s linear;
}
.lufs-bars i:nth-child(2)::after { width: calc(100% - var(--lvl2, 58%)); }
.onair {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; margin-bottom: 18px;
  border-radius: 10px; border: 1px solid rgba(255, 77, 94, 0.45); background: rgba(255, 77, 94, 0.12);
  color: var(--red); font: 800 12px/1 "Inter", sans-serif; letter-spacing: 0.1em;
}
.onair-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.6); } 50% { box-shadow: 0 0 0 6px rgba(255, 77, 94, 0); } }

/* ── themes ──────────────────────────────────────────────────────────── */
.themes { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.seg {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; border-radius: 14px;
  border: 1px solid var(--line2); background: var(--panel);
}
.seg-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: 15px; transition: color 0.2s, background 0.2s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-pressed="true"] { background: rgba(255, 255, 255, 0.08); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.sw-graphite { background: linear-gradient(135deg, #10131a 50%, #3d8bff 50%); }
.sw-ardoise { background: linear-gradient(135deg, #1b2230 50%, #5aa0ff 50%); }
.sw-minuit { background: linear-gradient(135deg, #0b0b1a 50%, #8f7bff 50%); }
.sw-clair { background: linear-gradient(135deg, #eef1f6 50%, #2f6fe0 50%); }
.sw-noel { background: linear-gradient(135deg, #161113 50%, #e03c3c 50%); }
.sw-nuit-noel { background: linear-gradient(135deg, #0d1424 50%, #f2c14e 50%); }
.theme-shot { margin: 0; width: 100%; }
.theme-shot img { transition: opacity 0.25s; }
.theme-shot img.fading { opacity: 0.25; }

/* ── install ─────────────────────────────────────────────────────────── */
/* ── phone remote ────────────────────────────────────────────────────── */
.phones {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 3vw, 36px);
  max-width: 880px; margin: 0 auto clamp(48px, 7vw, 80px); align-items: start;
}
.phone-shot {
  overflow: hidden; border-radius: clamp(14px, 3vw, 34px); background: var(--panel);
  border: clamp(3px, 0.6vw, 6px) solid #161a21;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.phone-shot:not(:nth-child(2)) { margin-top: clamp(14px, 4vw, 44px); } /* the middle one a little higher */
.phone-shot img { display: block; width: 100%; height: auto; }
.phone-shot:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(106, 166, 255, 0.35), var(--shadow); }

.install { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.install-needs { padding: 32px; }
.install-needs h3 { font-size: 1.3rem; }
.install-dl { margin-top: 28px; width: 100%; }
.install-both { margin-top: 12px; width: 100%; }
.fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.fine a:hover { color: var(--text); }
.fine { margin-top: 10px; text-align: center; color: var(--faint); font-size: 13.5px; }
.steps { counter-reset: step; display: grid; gap: 14px; min-width: 0; }
.steps li { min-width: 0; }
.steps li {
  counter-increment: step; position: relative; padding: 24px 26px 24px 78px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}
.steps li::before {
  content: counter(step); position: absolute; left: 24px; top: 22px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font: 750 15px/1 "JetBrains Mono", monospace; color: var(--accent2);
  background: rgba(61, 139, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(61, 139, 255, 0.3);
}
.steps h3 { font-size: 1.08rem; line-height: 34px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.code {
  margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px 16px; border-radius: 12px;
  background: #05060a; border: 1px solid var(--line2);
}
.code code {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 10px 0;
  font: 500 14.5px/1.4 "JetBrains Mono", ui-monospace, monospace; color: #dfe6f1;
}
.code code { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
.code code::before { content: "$ "; color: var(--faint); }
.copy {
  flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.copy:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.copy svg { width: 17px; height: 17px; }
.copy.done { color: var(--green); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background 0.2s;
}
.faq details[open] { border-color: var(--line2); background: rgba(255, 255, 255, 0.035); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform 0.25s var(--ease), margin 0.25s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* ── final call ──────────────────────────────────────────────────────── */
.final { border-top: 1px solid var(--line); }
.final-card {
  position: relative; overflow: hidden; text-align: center; border-radius: 28px;
  padding: clamp(56px, 8vw, 96px) 24px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(61, 139, 255, 0.22), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(155, 123, 255, 0.18), transparent 70%),
    var(--panel);
  border: 1px solid var(--line2);
}
.final-card h2 { position: relative; font-size: clamp(2rem, 4.6vw, 3.3rem); max-width: 18ch; margin-inline: auto; letter-spacing: -0.022em; }
.final-card > p { position: relative; margin-top: 14px; color: var(--muted); font-size: 1.12rem; }
.final-card .cta-row { position: relative; }
.ring {
  position: absolute; left: 50%; top: 50%; width: min(620px, 120%); translate: -50% -50%; opacity: 0.55; pointer-events: none;
}
.ring circle { fill: rgba(255, 255, 255, 0.10); transition: fill 0.15s; }
.ring circle.on { fill: rgba(106, 166, 255, 0.55); }

/* ── footer ──────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 32px; }
.foot-brand p { margin-top: 14px; color: var(--muted); font-size: 15px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h2 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.foot-col a { color: var(--muted); font-size: 15px; transition: color 0.2s; width: fit-content; }
.foot-col a:hover { color: var(--text); }
.foot-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; color: var(--faint); font-size: 13.5px; }

/* ── snow (December) ─────────────────────────────────────────────────── */
.snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }
.snow-toggle {
  position: fixed; left: 18px; bottom: 18px; z-index: 61; display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid var(--line2);
  background: rgba(16, 19, 26, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--muted); font-size: 13px; font-weight: 600; transition: color 0.2s, border-color 0.2s;
}
.snow-toggle svg { width: 17px; height: 17px; }
.snow-toggle:hover { color: var(--text); }
.snow-toggle[aria-pressed="true"] { color: #dff0ff; border-color: rgba(170, 215, 255, 0.35); }
.snow-toggle[aria-pressed="false"] svg { opacity: 0.5; }
.snow-toggle[hidden], .snow[hidden] { display: none; }
/* a Santa hat on the logo (32 px), and a little snow on a few buttons and cards */
.brand-hat {
  position: absolute; left: -5.76px; top: calc(50% - 28.8px); width: 47.36px; height: 28.8px;
  overflow: visible; pointer-events: none;
}
.brand-hat[hidden] { display: none; }
.snowy { position: relative; }
.snowcap { position: absolute; z-index: 2; overflow: visible; pointer-events: none; }

/* ── lightbox ────────────────────────────────────────────────────────── */
.lightbox {
  width: min(96vw, 1680px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 16px;
  background: var(--panel); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 120px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 5, 8, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; height: auto; max-height: 94vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(8, 9, 12, 0.75); border: 1px solid var(--line2); color: #fff;
}
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox[open] { animation: pop 0.25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } }

/* ── scroll reveal (only with JavaScript on) ─────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .pages-grid .reveal:nth-child(3n + 2), .js .bento .reveal:nth-child(3n + 2) { transition-delay: 0.06s; }
.js .pages-grid .reveal:nth-child(3n + 3), .js .bento .reveal:nth-child(3n + 3) { transition-delay: 0.12s; }

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .top-row { gap: 16px; } /* six links and the button still fit */
  .menu a { padding: 8px 9px; font-size: 14.5px; }
  .pages-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature-flip { grid-template-columns: minmax(0, 1fr); }
  .feature-flip .feature-text { order: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-search { grid-column: span 2; grid-row: auto; }
  .install { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .menu {
    position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: rgba(8, 9, 12, 0.96); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .menu a { padding: 13px 14px; font-size: 17px; }
  .menu-open .menu { visibility: visible; opacity: 1; transform: none; }
  .menu-open .top { background: rgba(8, 9, 12, 0.96); border-bottom-color: var(--line); }
  .menu-open .menu-toggle .ic-open { display: none; }
  .menu-open .menu-toggle .ic-close { display: block; }
  .menu-toggle { display: inline-flex; }
  .top-cta { margin-left: auto; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .hero { padding-top: 48px; }
  .hero-shot { margin-top: 44px; }
  .pages-grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-search { grid-column: auto; }
  .top-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .btn-lg { width: 100%; }
  .cta-row { width: 100%; }
  .steps li { padding: 70px 20px 22px; }
  .steps li::before { top: 22px; left: 20px; }
  .card, .duo-card, .install-needs { padding: 22px; }
  .code code { white-space: normal; overflow-wrap: anywhere; }
}

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