/* Theme layer: matches the Optiq app (Obsidian theme).
   Neutral near-black panels, silver type, one cyan accent. Loaded last. */
:root {
  --ice: #36d6ee;
  --ice-soft: #36d6ee26;
  --bg: #09090a;
  --panel: #111113;
  --panel-2: #171719;
  --hairline: #ffffff14;
  --tile: #111113;
  --tile-edge: #ffffff17;
  --ink: #09090a;
  --type-secondary: #a1a1a8;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); }
::selection { background: #36d6ee; color: #050506; }
.nav { background: #09090ad9; }
.hero { background: radial-gradient(ellipse at 50% 70%, #1a1d21 0%, #0c0c0e 50%, #09090a 80%); }
.hero-fade { background: linear-gradient(transparent, #09090a); }
.btn.light { background: #f3f3f5; color: #09090a; border-color: #f3f3f5; box-shadow: 0 0 0 0 #36d6ee00; transition: background .25s, color .25s, box-shadow .4s var(--ease), transform .25s; }
.btn.light:hover { background: #fff; border-color: #fff; color: #09090a; box-shadow: 0 0 0 4px #36d6ee2e, 0 10px 30px -8px #36d6ee66; }
.text-link:hover { color: var(--ice); }
.wide, .profiles, .foot { background: var(--bg); }

/* ---------- Closing goes dark, like the app ---------- */
.closing {
  background: radial-gradient(ellipse 70% 60% at 85% 20%, #0f1d22 0%, transparent 60%), #0c0c0e;
  color: #f3f3f5;
  border-top: 1px solid var(--hairline);
}
.closing h2 { color: #f3f3f5; }
.closing p, .closing .closing-lede { color: #a1a1a8 !important; }
.closing .platform, .closing .platform .icon { color: var(--ice); }
#closingField { opacity: .35; filter: invert(1) hue-rotate(180deg); }
.closing-mark { filter: invert(1); }
.closing-wordmark { filter: invert(1); opacity: .12 !important; }

.plan {
  background: linear-gradient(180deg, #19191c, #121214);
  border: 1px solid #ffffff1c;
  box-shadow: 0 1px 0 #ffffff12 inset, 0 40px 90px -40px #000, 0 0 80px -30px #36d6ee33;
  color: #f3f3f5;
}
.plan::before { background: conic-gradient(from var(--spin, 0deg), transparent 0 68%, #36d6ee 80%, transparent 92%); }
.plan-top p { color: #8c8c93 !important; }
.price { border-color: #ffffff14; }
.price-amount { color: #fff; }
.price-note { color: #a1a1a8; }
.plan-list li { color: #dcdce0; }
.plan-list li::before { border-color: var(--ice); }
.plan .plan-status { color: #8c8c93 !important; }
.buy-steps { background: #ffffff08; border: 1px solid #ffffff12; color: #dcdce0; }
.buy-steps li::before { background: var(--ice); color: #050506; }
.plan .btn, .closing .btn, .plan .btn.light { background: var(--ice); color: #050506; border-color: var(--ice); font-weight: 600; }
.plan .btn:hover, .closing .btn:hover, .plan .btn.light:hover { background: #7fe6f6; border-color: #7fe6f6; box-shadow: 0 12px 34px -10px #36d6ee99; }
.plan .btn-download { background: transparent !important; color: #f3f3f5 !important; border: 1px solid #ffffff33 !important; font-weight: 550; }
.plan .btn-download:hover { background: #ffffff0d !important; border-color: #ffffff66 !important; box-shadow: none; }
.plan .dl-note { color: #8c8c93 !important; }
.plan .dl-note b { color: #dcdce0; }
.plan .release-links a { color: #cfcfd4; }
.plan .release-links a:hover { color: var(--ice); }

.access-faq h3 { color: #f3f3f5; }
.access-faq details { border-top: 1px solid #ffffff14 !important; }
.access-faq summary { color: #ececef; transition: color .2s; }
.access-faq summary:hover { color: var(--ice); }
.access-faq details > div > p { color: #a1a1a8; }
.access-faq details[open] summary { color: var(--ice); }
.access-faq a { color: #ececef; }

/* Pricing page shares the dark card. */
.pricing-page, body.pricing { background: var(--bg); }

/* ---------- Tabs: one sliding pill ---------- */
.ba-tabs, .tour-tabs { position: relative; isolation: isolate; }
.tab-pill {
  position: absolute; z-index: -1;
  left: 0; top: 0;
  border-radius: 999px;
  background: var(--ice);
  box-shadow: 0 6px 24px -8px #36d6eeaa;
  transition: transform .45s var(--ease), width .45s var(--ease), height .45s var(--ease);
  pointer-events: none;
}
.has-pill [role="tab"][aria-selected="true"] { background: transparent !important; border-color: transparent !important; color: #050506 !important; }
.has-pill [role="tab"] { transition: color .3s, border-color .2s; }

/* Tour autoplay progress inside the active tab */
.tour-tabs [role="tab"] { position: relative; overflow: hidden; }
.tour-tabs [role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: #05050655;
  transform-origin: left;
  transform: scaleX(0);
}
.tour-tabs.autoplay [role="tab"][aria-selected="true"]::after { animation: tab-progress var(--tour-ms, 5000ms) linear forwards; }
@keyframes tab-progress { to { transform: scaleX(1); } }

/* Tour screen change: lift and refocus */
.tour-frame { position: relative; overflow: hidden; }
.tour-frame img { transition: opacity .45s var(--ease), transform .6s var(--ease), filter .5s var(--ease); }
.tour-frame img.swap { opacity: 0; transform: scale(.985) translateY(10px); filter: blur(6px); }

/* Showcase change: a lens wipe across the frame */
.ba::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 35%, #36d6ee30 48%, #ffffff40 50%, #36d6ee30 52%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.ba.wipe::after { animation: wipe .9s var(--ease); }
@keyframes wipe { to { transform: translateX(120%); } }
.ba.loading img { opacity: .2; filter: blur(8px); }
.ba img { transition: opacity .4s var(--ease), filter .5s var(--ease); }
.ba-handle { background: var(--ice); box-shadow: 0 0 18px #36d6ee99; }
.ba-handle::after { border-color: var(--ice); }

/* ---------- Hero feature marquee ---------- */
.hero-points.marquee {
  display: block;
  max-width: min(36rem, 100%);
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 8px; width: max-content; animation: marquee 28s linear infinite; }
.hero-points.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; animation: none !important; }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero-points li { background: #ffffff08; border-color: #ffffff17; color: #cfcfd4; }

/* ---------- Focus pull: the site's signature reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fp-ready .fp-line { display: block; }
  .fp-ready .fp-line > span {
    display: inline-block;
    opacity: 0;
    filter: blur(14px);
    transform: translateY(.35em) scale(1.04);
    letter-spacing: .02em;
    transition: opacity .9s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease), letter-spacing 1.2s var(--ease);
    transition-delay: calc(var(--fp, 0) * 110ms);
  }
  .fp-ready .is-focused .fp-line > span { opacity: 1; filter: blur(0); transform: none; letter-spacing: inherit; }

  /* Hero headline focuses word by word on load */
  .hero h1 .w {
    display: inline-block;
    opacity: 0;
    filter: blur(16px);
    transform: translateY(.3em);
    animation: focus-in 1.1s var(--ease) both;
    animation-delay: calc(.15s + var(--w, 0) * 120ms);
  }
  @keyframes focus-in { to { opacity: 1; filter: blur(0); transform: none; } }

  /* Tiles and panels sharpen as they arrive */
  .js-reveal .rv { filter: blur(10px); transition: opacity .8s var(--ease), translate .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js-reveal .rv.is-in { filter: none; }

  /* Comparison rows come in one by one */
  .compare-table tbody tr { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--r, 0) * 55ms); }
  .compare-table.is-in tbody tr { opacity: 1; transform: none; }
  .compare-table thead .us { position: relative; overflow: hidden; }
  .compare-table thead .us::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 30%, #ffffff8c 50%, transparent 70%);
    transform: translateX(-130%);
  }
  .compare-table.is-in thead .us::after { animation: wipe 1.4s var(--ease) .4s; }
}
.compare-table thead .us { background: var(--ice); color: #050506; border-color: var(--ice); }
.compare-table .us { background: #36d6ee0d; border-inline-color: #36d6ee40; }
.compare-table tbody tr { transition: background .25s; }
.compare-table tbody tr:hover > * { background-color: #ffffff05; }
.compare-table tbody tr:hover > .us { background-color: #36d6ee17; }
.compare-table tbody th { background: var(--tile); }

/* Numbers */
.numbers dd { font-variant-numeric: tabular-nums; }
.numbers > div { position: relative; }
.numbers > div::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px;
  background: var(--ice); transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.numbers > div.is-in::before { transform: scaleX(1); }

/* Section seams: a faint cyan horizon line that draws in */
.sell-head { position: relative; }

/* Scroll progress in accent */
.progress { background: linear-gradient(90deg, #36d6ee, #a8eef8); box-shadow: 0 0 12px #36d6ee88; }

/* Footer */
.foot-word { background: linear-gradient(#36d6ee26, #36d6ee00 75%); -webkit-background-clip: text; background-clip: text; }
.foot nav a:hover, .foot-links a:hover { color: var(--ice); }

@media (max-width: 800px) {
  .hero-points.marquee { max-width: 100%; }
}

/* Hero line two: per-word silver-to-cyan */
.hero h1 > span:not(.w):not(.wl) { background: none; -webkit-text-fill-color: currentColor; color: #bfe9f1; animation: none !important; }
.hero h1 > span:not(.wl) .w, .hero h1 > span:not(.w):not(.wl) {
  background: linear-gradient(100deg, #f3f3f5 0%, #9fe8f4 60%, #36d6ee 120%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .wl .w { -webkit-text-fill-color: currentColor; background: none; color: #f3f3f5; }
.hero h1 .wl, .hero h1 > span:not(.w) { white-space: nowrap; }
.hero h1 > span.wl { background: none; -webkit-text-fill-color: currentColor; color: #f3f3f5; }
.fp-line > span { display: inline; }
.sell-head h2 .fp-line > span { color: #f3f3f5; }
.sell-head h2 .fp-line > span > span { color: #77777e; }
#hero-title br { display: none; }
.intro h2 .fp-line > span { color: #f3f3f5; }
.intro h2 .fp-line > span > span { color: #77777e; }

/* ---------- Why grid v2: night full width, zoom large ---------- */
.why .tile-night   { grid-column: 1 / -1; }
.why .tile-zoom    { grid-column: span 7; }
.why .tile-all     { grid-column: span 5; }
.why .tile-presets { grid-column: span 7; }
.why .tile-keys    { grid-column: span 5; }
.why .tile-safe    { grid-column: 1 / -1; flex-direction: row-reverse; align-items: center; min-height: 0; }
.why .tile-safe .tile-copy { flex: 0 0 38%; }
.why .tile-safe .safe-list { flex-direction: row; flex-wrap: wrap; }
.why .tile-night .night-real img { max-height: 320px; object-fit: cover; }

/* Zoom: two real crops side by side, big enough to see */
.zoom-pair { gap: 10px; align-items: stretch; }
.zoom-pair figure { position: relative; flex: 1; margin: 0; display: block; border-radius: 10px; overflow: hidden; border: 1px solid #ffffff1a; }
.zoom-pair figure img { display: block; width: 100%; height: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.zoom-pair figure span { display: none; }
.zoom-pair figcaption {
  position: absolute; left: 8px; bottom: 8px;
  padding: 5px 9px; border-radius: 999px;
  font-size: .74rem; font-weight: 550;
  background: #09090ad9; color: #ececef; border: 1px solid #ffffff22;
}
.z-sharp { border-color: #36d6ee88 !important; box-shadow: 0 0 0 4px #36d6ee14; }
.z-sharp figcaption { background: var(--ice); color: #050506; border-color: var(--ice); }
.reticle { position: absolute; left: 50%; top: 40%; width: 34px; height: 34px; translate: -50% -50%; pointer-events: none; }
.reticle::before, .reticle::after { content: ""; position: absolute; background: #36d6ee; box-shadow: 0 0 6px #000; }
.reticle::before { left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; -webkit-mask: linear-gradient(#000 0 38%, transparent 38% 62%, #000 62%); mask: linear-gradient(#000 0 38%, transparent 38% 62%, #000 62%); }
.reticle::after { top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px; -webkit-mask: linear-gradient(90deg, #000 0 38%, transparent 38% 62%, #000 62%); mask: linear-gradient(90deg, #000 0 38%, transparent 38% 62%, #000 62%); }
@media (prefers-reduced-motion: no-preference) {
  .zoom-pair figure img { transition: transform 1.2s var(--ease); }
  .tile-zoom:hover .zoom-pair figure img { transform: scale(1.12); }
}
@media (max-width: 1000px) {
  .why .tile-zoom, .why .tile-all, .why .tile-presets, .why .tile-keys { grid-column: span 6; }
}
@media (max-width: 800px) {
  .why .tile-zoom, .why .tile-all, .why .tile-presets, .why .tile-keys, .why .tile-safe { grid-column: 1 / -1; }
  .why .tile-safe { flex-direction: column; align-items: stretch; }
  .zoom-pair { flex-direction: column; }
}

/* ================= Film ================= */
.film { position: relative; padding: clamp(20px, 4vw, 50px) 0 clamp(60px, 8vw, 100px); background: var(--bg); }
.film-stage { --p: 0; width: min(1500px, calc(100% - 32px)); margin: 0 auto; }
.film-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: calc(28px - var(--p) * 14px);
  overflow: hidden;
  background: #050506 url(../../public/video/optiq-night-poster.webp) center / cover;
  border: 1px solid #ffffff17;
  transform: scale(calc(.86 + var(--p) * .14));
  transform-origin: 50% 0;
  box-shadow: 0 0 0 1px #000, 0 60px 140px -50px #000, 0 0 120px -40px #36d6ee44;
  will-change: transform;
}
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-toggle {
  position: absolute; right: 16px; bottom: 18px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid #ffffff33;
  background: #09090acc;
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.film-toggle:hover { background: #36d6ee; border-color: #36d6ee; color: #050506; transform: scale(1.06); }
.film-toggle:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.i-pause { width: 12px; height: 14px; border-inline: 4px solid currentColor; }
.i-play { display: none; width: 0; height: 0; margin-left: 3px; border-block: 7px solid transparent; border-left: 12px solid currentColor; }
.film-toggle[aria-pressed="true"] .i-pause { display: none; }
.film-toggle[aria-pressed="true"] .i-play { display: block; }
.film-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #ffffff14; }
.film-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #36d6ee, #a8eef8); transform-origin: left; transform: scaleX(0); }
.film-cap { margin-top: 14px; text-align: center; font-size: .82rem; color: #77777e; }
@media (max-width: 800px) {
  .film-stage { width: calc(100% - 24px); }
  .film-frame { transform: none; border-radius: 14px; }
  .film-toggle { width: 38px; height: 38px; right: 10px; bottom: 12px; }
}

/* ================= Hero video ================= */
.video-frame { aspect-ratio: 16 / 9; background: #050506 url(../../public/video/optiq-promo-poster.webp) center / cover; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.video-frame .film-toggle { right: 12px; bottom: 14px; width: 40px; height: 40px; z-index: 2; }
.video-frame .film-bar { z-index: 2; }
.capture-video { display: grid; place-items: center; overflow: hidden; background: #000; }
.capture-video video { display: block; width: min(1600px, 92vw); max-height: 80vh; height: auto; }
.foot-discord { margin-top: 6px !important; }
.foot-discord b { color: #ececef; font-weight: 600; }
.product-frame { border-color: #ffffff2e; background: linear-gradient(135deg, #8d9096, #2a2b2f 38%, #1b1c1f 72%, #8d9096); box-shadow: 0 25px 60px -22px #000d, 0 0 50px -18px #36d6ee66; }
.video-frame video { border-radius: 9px; }

/* ================= Maker card ================= */
.maker { padding: clamp(40px, 6vw, 80px) 0; background: var(--bg); }
.maker-card {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 26px 30px;
  border-radius: 18px;
  background: linear-gradient(180deg, #151517, #101012);
  border: 1px solid #ffffff17;
  overflow: hidden;
}
.maker-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 160px at 0% 0%, #36d6ee1f, transparent 70%);
}
.maker-id { display: flex; align-items: center; gap: 18px; position: relative; }
.maker-avatar { position: relative; flex: none; width: 68px; height: 68px; }
.maker-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #ffffff26; box-shadow: 0 0 0 4px #36d6ee14; }
.maker-online { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: #3ba55d; border: 3px solid #121214; }
.maker-name { font-size: 1.35rem !important; font-weight: 600; letter-spacing: -.03em; color: #f3f3f5 !important; line-height: 1.1; }
.maker-handle { font-size: .85rem !important; color: #8c8c93 !important; margin-top: 2px; }
.maker-role { font-size: .92rem !important; color: #cfcfd4 !important; margin-top: 8px; }
.maker-actions { display: grid; justify-items: end; gap: 10px; position: relative; text-align: right; }
.maker-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  background: #5865f2; color: #fff; border: 1px solid #5865f2;
  font-weight: 600;
  transition: background .2s, box-shadow .3s var(--ease), transform .2s;
}
.maker-btn svg { width: 20px; height: 20px; }
.maker-btn:hover { background: #6d78f5; box-shadow: 0 12px 30px -10px #5865f2aa; transform: translateY(-1px); }
.maker-btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.maker-note { font-size: .82rem !important; color: #8c8c93 !important; max-width: 32ch; }
@media (max-width: 700px) {
  .maker-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .maker-actions { justify-items: stretch; text-align: left; width: 100%; }
  .maker-btn { justify-content: center; }
}

/* ================= Kill switch ================= */
.kill {
  position: relative;
  padding: clamp(80px, 10vw, 130px) 0 clamp(70px, 9vw, 110px);
  background: radial-gradient(ellipse 60% 50% at 75% 30%, #2a0f12 0%, transparent 60%), radial-gradient(ellipse 50% 40% at 10% 90%, #0e1a1d 0%, transparent 70%), #08080a;
  border-top: 1px solid var(--hairline);
  overflow: hidden;
  --red: #ff4d5e;
}
.kill .sell-head h2 .fp-line > span { color: #f3f3f5; }
.kill .sell-head h2 .fp-line > span > span, .kill .sell-head h2 > span { color: #ff6b78; }
.kill-stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: stretch; }

/* The mock screen */
.kill-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #ffffff1c;
  background: #000;
  box-shadow: 0 40px 100px -40px #000, 0 0 0 6px #ffffff06;
  isolation: isolate;
}
.kill-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ks-filter { clip-path: inset(0 0 0 0); transition: clip-path .55s cubic-bezier(.7,0,.2,1) .05s, filter .4s; }
.ks-cross { position: absolute; left: 50%; top: 46%; width: 54px; height: 54px; translate: -50% -50%; fill: none; stroke: #36d6ee; stroke-width: 2.4; filter: drop-shadow(0 0 4px #000); transition: opacity .15s .12s, transform .3s .12s; }
.ks-cross circle { fill: #36d6ee; stroke: none; }
.ks-zoom {
  position: absolute; right: 7%; top: 12%;
  width: 23%; aspect-ratio: 1; border-radius: 50%;
  background: url(../../public/showcase/day_vivid_after.webp) 58% 40% / 520% auto no-repeat;
  border: 2px solid #36d6eeaa;
  box-shadow: 0 0 0 5px #36d6ee1f, 0 16px 40px -12px #000;
  transition: transform .35s cubic-bezier(.6,0,.3,1) .18s, opacity .2s .3s;
}
.ks-chip {
  position: absolute; left: 14px;
  padding: 6px 11px; border-radius: 999px;
  font-size: .74rem; font-weight: 550;
  background: #09090ad9; color: #ececef; border: 1px solid #ffffff22;
  backdrop-filter: blur(6px);
  transition: opacity .15s, transform .3s;
}
.ks-gamma { top: 14px; }
.ks-preset { top: 50px; background: #36d6ee; color: #050506; border-color: #36d6ee; }
.ks-taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: #0b0b0dd9; backdrop-filter: blur(10px);
  border-top: 1px solid #ffffff14;
}
.ks-taskbar > i { width: 14px; height: 14px; border-radius: 4px; background: #ffffff2a; }
.ks-taskbar > i:first-child { background: #36a3ee88; }
.ks-tray { margin-left: auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #ffffff12; transition: transform .3s cubic-bezier(.6,0,.3,1) .3s, opacity .2s .35s, width .3s .4s, margin .3s .4s; }
.ks-clock { font: 500 .7rem Inter, system-ui, sans-serif; color: #cfcfd4; }
.ks-status {
  position: absolute; right: 14px; bottom: 42px;
  font-size: .78rem;
}
.ks-status strong { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: #09090ad9; border: 1px solid #ffffff22; font-weight: 600; }
.ks-status strong::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ba55d; box-shadow: 0 0 8px #3ba55d; }
.ks-status-off { display: none !important; }
.ks-status-off::before { background: #a1a1a8 !important; box-shadow: none !important; }
.ks-flash { position: absolute; inset: 0; background: #ff4d5e; mix-blend-mode: screen; opacity: 0; pointer-events: none; }
.ks-scan { position: absolute; left: 0; right: 0; height: 22%; top: -25%; background: linear-gradient(transparent, #ff4d5e33 70%, #ff8a94aa 98%, transparent); pointer-events: none; opacity: 0; }

/* Killed state */
.kill-stage[data-state="off"] .ks-filter { clip-path: inset(0 0 100% 0); }
.kill-stage[data-state="off"] .ks-cross { opacity: 0; transform: scale(.4) rotate(45deg); }
.kill-stage[data-state="off"] .ks-zoom { transform: scale(0); opacity: 0; }
.kill-stage[data-state="off"] .ks-chip { opacity: 0; transform: translateX(-12px); }
.kill-stage[data-state="off"] .ks-tray { transform: translateY(30px); opacity: 0; width: 0; margin-left: auto; }
.kill-stage[data-state="off"] .ks-status-on { display: none !important; }
.kill-stage[data-state="off"] .ks-status-off { display: inline-flex !important; }
.kill-stage.firing .ks-flash { animation: ks-flash .5s ease-out; }
.kill-stage.firing .ks-scan { animation: ks-scan .6s cubic-bezier(.6,0,.3,1); }
.kill-stage.restoring .ks-scan { animation: ks-scan-up .6s cubic-bezier(.6,0,.3,1); background: linear-gradient(transparent, #36d6ee33 70%, #a8eef8aa 98%, transparent); }
@keyframes ks-flash { 0% { opacity: .35; } 100% { opacity: 0; } }
@keyframes ks-scan { 0% { top: -25%; opacity: 1; } 100% { top: 105%; opacity: 1; } }
@keyframes ks-scan-up { 0% { top: 105%; opacity: 1; } 100% { top: -25%; opacity: 1; } }
.kill-stage.firing .kill-screen { animation: ks-shake .35s; }
@keyframes ks-shake { 20% { transform: translate(2px, -1px); } 40% { transform: translate(-2px, 1px); } 60% { transform: translate(1px, 1px); } 80% { transform: translate(-1px, 0); } }

/* Control panel */
.kill-panel {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #151517, #0f0f11);
  border: 1px solid #ffffff17;
}
.kp-label { font-size: .82rem !important; color: #a1a1a8 !important; }
.kp-keys { display: flex; gap: 8px; }
.kp-keys kbd {
  flex: 1;
  font: 600 .9rem Inter, system-ui, sans-serif;
  padding: 12px 8px 15px; text-align: center;
  border-radius: 10px; color: #f3f3f5;
  background: linear-gradient(#1f1f23, #141416);
  border: 1px solid #ffffff1f;
  box-shadow: 0 4px 0 #050506;
  transition: transform .12s, box-shadow .12s, color .2s, border-color .2s;
}
.kill-stage.firing .kp-keys kbd { transform: translateY(3px); box-shadow: 0 1px 0 #050506; color: #ff8a94; border-color: #ff4d5e88; }
.kp-hint { font-size: .76rem !important; color: #77777e !important; margin-top: -6px; }
.kill-btn {
  position: relative;
  display: grid; place-items: center;
  height: 64px; border-radius: 14px;
  border: 1px solid #ff4d5e;
  background: radial-gradient(circle at 50% 0%, #ff6b78, #d6283a);
  color: #fff; font: 700 1rem Inter, system-ui, sans-serif; letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 6px 0 #7a1120, 0 18px 40px -14px #ff4d5eaa, inset 0 1px 0 #ffffff55;
  transition: transform .12s, box-shadow .12s, background .3s, border-color .3s;
  overflow: hidden;
}
.kill-btn:hover { box-shadow: 0 6px 0 #7a1120, 0 22px 50px -12px #ff4d5ecc, inset 0 1px 0 #ffffff55; }
.kill-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #7a1120, 0 10px 24px -12px #ff4d5eaa, inset 0 1px 0 #ffffff55; }
.kill-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.kb-label { grid-area: 1 / 1; }
.kb-on { display: none; }
.kill-btn[aria-pressed="true"] { background: radial-gradient(circle at 50% 0%, #7fe6f6, #1fb6cf); border-color: #36d6ee; color: #050506; box-shadow: 0 6px 0 #0b5a66, 0 18px 40px -14px #36d6eeaa, inset 0 1px 0 #ffffff77; }
.kill-btn[aria-pressed="true"] .kb-on { display: block; }
.kill-btn[aria-pressed="true"] .kb-off { display: none; }
.kb-ring { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.kill-btn:not([aria-pressed="true"]) .kb-ring { animation: kb-pulse 2.4s infinite; }
@keyframes kb-pulse { 0% { box-shadow: 0 0 0 0 #ff4d5e66; } 70%, 100% { box-shadow: 0 0 0 14px #ff4d5e00; } }

.kp-meters { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.kp-meters li { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; font-size: .74rem; color: #a1a1a8; }
.kp-meters i { display: block; height: 6px; border-radius: 6px; background: #ffffff10; overflow: hidden; }
.kp-meters b { display: block; height: 100%; width: var(--w, 30%); border-radius: inherit; background: linear-gradient(90deg, #36d6ee, #a8eef8); transition: width .8s cubic-bezier(.6,0,.2,1), background .3s; }
.kp-meters li:nth-child(1) b { --w: 22%; }
.kp-meters li:nth-child(2) b { --w: 34%; }
.kp-meters li:nth-child(3) b { --w: 27%; }
.kp-meters li:nth-child(2) b { transition-delay: .1s; }
.kp-meters li:nth-child(3) b { transition-delay: .2s; }
.kill-stage[data-state="off"] .kp-meters b { width: 0; }
@media (prefers-reduced-motion: no-preference) {
  .kill-stage[data-state="on"] .kp-meters b { animation: meter 2.6s ease-in-out infinite alternate; }
  .kp-meters li:nth-child(2) b { animation-delay: -.8s !important; }
  .kp-meters li:nth-child(3) b { animation-delay: -1.6s !important; }
  @keyframes meter { from { filter: brightness(.85); transform: scaleX(.85); transform-origin: left; } to { filter: brightness(1.1); transform: scaleX(1.05); transform-origin: left; } }
}
.kp-log { list-style: none; margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid #ffffff10; display: grid; gap: 5px; min-height: 118px; font: 500 .72rem ui-monospace, SFMono-Regular, Consolas, monospace; color: #8c8c93; }
.kp-log li { display: flex; gap: 8px; animation: log-in .25s ease-out both; }
.kp-log li::before { content: "✓"; color: #3ba55d; }
.kp-log li.r::before { content: "↺"; color: #36d6ee; }
@keyframes log-in { from { opacity: 0; transform: translateX(-6px); } }

/* Feature grid */
.kill-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.kill-grid > section { padding: 20px; border-radius: 14px; background: #0f0f11; border: 1px solid #ffffff12; }
.kill-grid h3 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; font-weight: 600; letter-spacing: -.02em; color: #f3f3f5; margin-bottom: 12px; }
.kg-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .75rem; background: #ff4d5e1f; color: #ff8a94; border: 1px solid #ff4d5e55; }
.kill-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kill-grid li { position: relative; padding-left: 18px; font-size: .86rem; color: #cfcfd4; line-height: 1.4; }
.kill-grid li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 7px; height: 7px; border-radius: 2px; background: #36d6ee; box-shadow: 0 0 6px #36d6ee88; }

@media (max-width: 1000px) {
  .kill-stage { grid-template-columns: 1fr; }
  .kill-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .kp-label, .kp-keys, .kp-hint { grid-column: 1; }
  .kill-btn { grid-column: 2; grid-row: 1 / span 3; height: 100%; min-height: 64px; }
  .kp-meters, .kp-log { grid-column: 1 / -1; }
  .kill-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .kill-panel { display: flex; }
  .kill-panel > * { width: 100%; }
  .kill-btn { height: 60px; min-height: 0; }
  .kill-grid { grid-template-columns: 1fr; }
  .ks-chip { font-size: .62rem; padding: 4px 8px; left: 8px; }
  .ks-gamma { top: 8px; } .ks-preset { top: 34px; }
  .ks-cross { width: 36px; height: 36px; }
  .ks-taskbar { height: 22px; }
  .ks-status { bottom: 30px; right: 8px; font-size: .66rem; }
}
.t-closed::before { transform: rotate(-45deg) translateY(-2px) !important; }
.t-closed span { font-weight: 400; color: #77777e; margin-left: 6px; }
.ks-preset { top: 14px; }
@media (max-width: 600px) { .ks-preset { top: 8px; } }

/* ================= Legal pages ================= */
.legal-body { background: var(--bg); color: #ececef; }
.legal { padding: 140px 0 80px; }
.legal article { max-width: 72ch; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.legal-date { margin-top: 12px; color: #77777e; font-size: .9rem; }
.legal-lede { margin-top: 28px; font-size: 1.12rem; color: #cfcfd4; line-height: 1.6; padding: 20px 22px; border-radius: 14px; background: #111113; border: 1px solid #ffffff14; border-left: 3px solid var(--ice); }
.legal h2 { margin-top: 44px; margin-bottom: 12px; font-size: 1.35rem; font-weight: 600; letter-spacing: -.03em; color: #f3f3f5; }
.legal p, .legal li { color: #b4b4ba; line-height: 1.7; font-size: 1rem; }
.legal ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: var(--ice); }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal strong { color: #ececef; font-weight: 600; }
.legal a { color: #ececef; text-decoration: underline; text-decoration-color: #36d6ee88; text-underline-offset: 3px; }
.legal a:hover { color: var(--ice); }
.legal code { font-size: .9em; padding: 2px 6px; border-radius: 5px; background: #ffffff0f; color: #e0e0e4; }
.legal-foot { border-top: 1px solid var(--hairline); padding: 26px 0 34px; background: var(--bg); }
.legal-foot p { color: #77777e; font-size: .85rem; }
.legal-foot a { color: #a1a1a8; }
.legal-foot a:hover { color: var(--ice); }
.foot-base a { color: #9a9aa1; text-decoration: underline; text-underline-offset: 3px; }

/* ================= Social links ================= */
.maker-social { display: flex; gap: 8px; }
.social-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .86rem; font-weight: 550;
  color: #cfcfd4;
  background: #ffffff0a;
  border: 1px solid #ffffff1f;
  overflow: hidden;
  transition: color .25s, border-color .25s, background .25s, transform .2s, box-shadow .3s var(--ease);
}
.social-btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.social-btn:hover { transform: translateY(-1px); }
.social-btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.social-btn.yt:hover { color: #fff; background: #ff00331a; border-color: #ff0033aa; box-shadow: 0 10px 26px -12px #ff0033cc; }
.social-btn.yt:hover svg { color: #ff0033; transform: scale(1.12); }
.social-btn.tt:hover { color: #fff; background: #ffffff10; border-color: #36d6ee; box-shadow: 0 10px 26px -12px #36d6eecc; }
.social-btn.tt:hover svg { color: var(--ice); transform: scale(1.12); }
/* TikTok's split-colour shimmer, kept subtle */
.social-btn.tt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 30%, #36d6ee4d 46%, #ff2e6b4d 56%, transparent 72%);
  transform: translateX(-120%);
  transition: opacity .2s;
}
.social-btn.tt:hover::after { opacity: 1; animation: wipe .8s var(--ease); }

.foot-social { display: grid; gap: 10px; align-content: start; }
.foot-social h2 { font-size: .85rem; letter-spacing: 0; color: #e6eff0; font-weight: 600; margin-bottom: 4px; }
.foot-social a { display: inline-flex; align-items: center; gap: 9px; color: #9aa8ae; font-size: .9rem; transition: color .2s; }
.foot-social svg { width: 17px; height: 17px; flex: none; transition: transform .25s var(--ease); }
.foot-social a:hover { color: var(--ice); }
.foot-social a:hover svg { transform: scale(1.15); }
.foot .shell.foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr auto; }

@media (max-width: 1000px) {
  .foot .shell.foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .foot .shell.foot-grid { grid-template-columns: 1fr 1fr; }
  .maker-social { flex-wrap: wrap; }
  .social-btn { flex: 1; justify-content: center; }
}
