/* KOWidget product page — /kowidget */

@font-face {
  font-family: "KW Display";
  src: url("/kowidget/fonts/literata-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KW Display";
  src: url("/kowidget/fonts/literata-semibolditalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --v-950: #12042f;
  --v-900: #1a0547;
  --v-800: #2a0a6e;
  --v-700: #3b0097;
  --v-600: #5300d6;
  --v-500: #6200ee;
  --v-400: #7b2cff;
  --v-300: #a77bff;
  --v-200: #d9c6ff;
  --v-100: #efe6ff;
  --paper: #faf8ff;
  --ink: #150a2e;
  --body: #3a3354;
  --muted: #625a7c;
  --line: #e6def7;
  --amber: #ffc93c;

  --display: "KW Display", "Literata", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --radius: 22px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--v-600); text-underline-offset: 3px; }
a:hover { color: var(--v-400); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 0.6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v-500);
  margin-bottom: 1rem;
}

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.section-head p {
  margin-top: 1.1rem;
  font-size: 1.15rem;
  color: var(--muted);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 5, 71, 0.72);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: #fff; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.topnav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.92rem; }
.topnav a { color: var(--v-200); text-decoration: none; }
.topnav a:hover { color: #fff; }

.btn-small {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--v-700) !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-small:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5); }

@media (max-width: 760px) { .topnav .nav-link { display: none; } }

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

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  margin-top: -64px;
  padding-top: 64px;
  background:
    radial-gradient(ellipse 55% 60% at 80% 30%, rgba(167, 123, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(255, 201, 60, 0.12), transparent 65%),
    linear-gradient(160deg, var(--v-400) 0%, var(--v-600) 38%, var(--v-800) 78%, var(--v-900) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem clamp(4rem, 8vw, 6.5rem);
}

.requires {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.requires b {
  background: var(--amber);
  color: var(--v-950);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 em { color: var(--amber); }

.lead {
  margin-top: 1.5rem;
  max-width: 33rem;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--v-100);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

.play-badge {
  display: inline-block;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.play-badge img { width: 200px; height: auto; }
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6); }

.price-note { font-size: 0.95rem; line-height: 1.45; color: var(--v-200); margin: 0; }
.price-note strong { color: #fff; display: block; font-size: 1.05rem; }

/* ---------- Phone + home screen ---------- */

.phone {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 9 / 18.5;
  margin: 0 auto;
  padding: 10px;
  border-radius: 46px;
  background: #0b0716;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 50px 80px -30px rgba(10, 0, 40, 0.8),
    0 30px 40px -30px rgba(10, 0, 40, 0.6);
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 20% 15%, #ff9bd0 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, #ffc93c 0%, transparent 40%),
    radial-gradient(circle at 70% 85%, #4cc9f0 0%, transparent 45%),
    linear-gradient(160deg, #7b2cff, #3b0097);
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
}
.statusbar .icons { display: inline-flex; gap: 5px; align-items: center; }
.statusbar .icons i {
  display: inline-block;
  width: 14px;
  height: 9px;
  border-radius: 2px;
  background: #fff;
}
.statusbar .icons i:first-child { width: 10px; border-radius: 1px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }

.home-clock {
  text-align: center;
  color: #fff;
  padding: 18px 0 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.home-clock strong { display: block; font-size: 2.6rem; font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.home-clock span { font-size: 0.72rem; opacity: 0.9; }

.screen .kw { margin: 0 12px; }

.dock {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px 22px 26px;
}
.dock span {
  aspect-ratio: 1;
  border-radius: 30%;
  background: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.35);
}
.dock span:nth-child(2) { background: #ffe9a8; }
.dock span:nth-child(3) { background: #c9f1ff; }
.dock span:nth-child(4) { background: #ffd6ec; }
.dock svg { width: 46%; height: 46%; color: var(--v-700); }

/* ---------- The widget (rendered by JS, mirrors the app) ---------- */

.kw {
  --kw-bg: 28, 28, 28;
  --kw-op: 1;
  --kw-fg: #fff;
  --kw-sub: rgba(255, 255, 255, 0.62);
  --kw-track: rgba(255, 255, 255, 0.18);
  --kw-bar: #9ea7ff;
  position: relative;
  border-radius: 22px;
  padding: 12px 12px 14px;
  background: rgba(var(--kw-bg), var(--kw-op));
  color: var(--kw-fg);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, color 0.3s ease;
  font-family: Roboto, var(--sans);
}
.kw.light {
  --kw-bg: 236, 237, 247;
  --kw-fg: #2a2a33;
  --kw-sub: #7b7d8c;
  --kw-track: rgba(60, 70, 120, 0.15);
  --kw-bar: #4a5592;
}

.kw-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--kw-sub);
  margin-bottom: 10px;
  padding: 0 2px;
}
.kw-head svg { width: 13px; height: 13px; }

.kw-covers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 10px;
}
.kw-covers .kw-book { flex: 0 0 calc((100% - 20px) / 3); width: calc((100% - 20px) / 3); min-width: 0; }

.kw-book {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  border-radius: 8px;
  animation: kw-in 0.35s ease both;
}
.kw-book:hover .cover { transform: translateY(-2px); }

@keyframes kw-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.kw-covers .kw-book { text-align: center; }
.kw-covers .cover { position: relative; transition: transform 0.2s ease; }
.kw-covers .kw-title { font-size: 0.66rem; line-height: 1.25; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kw-covers .kw-author { font-size: 0.58rem; color: var(--kw-sub); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kw-covers .kw-bar { margin-top: 5px; }

.kw-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: #fff;
  color: #111;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 0.56rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.kw-list { display: flex; flex-direction: column; gap: 10px; }
.kw-list .kw-book {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
}
.kw-list .cover { width: 30px; }
.kw-list .kw-title { font-size: 0.78rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kw-list .kw-author { font-size: 0.66rem; color: var(--kw-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kw-list .kw-text { min-width: 0; }
.kw-list .kw-bar { margin-top: 4px; }
.kw-list .kw-pct { font-size: 0.68rem; font-weight: 600; color: var(--kw-sub); }

.kw-title, .kw-author, .kw-text { display: block; }

.kw-bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--kw-track);
  overflow: hidden;
}
.kw-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--kw-bar);
  transform-origin: left;
  animation: kw-bar 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes kw-bar { from { transform: scaleX(0); } }

.kw-empty { font-size: 0.75rem; color: var(--kw-sub); text-align: center; padding: 1rem 0; }

.kw-toast {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translate(-50%, 10px);
  background: rgba(20, 10, 40, 0.92);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 5;
}
.kw-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Book covers (pure CSS, public-domain classics) ---------- */

.cover {
  container-type: inline-size;
  width: 100%;
  min-width: 0;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cover b, .cover small { display: block; }

.c-dracula { background: #f1c232; color: #c8341f; box-shadow: inset 0 0 0 3px #f1c232, inset 0 0 0 4px #c8341f, 0 3px 8px rgba(0,0,0,0.35); padding-top: 14%; }
.c-dracula b { font-size: 19cqw; letter-spacing: -0.04em; font-weight: 700; }
.c-dracula small { font-size: 9cqw; margin-top: 5cqw; font-style: italic; }

.c-frank { background: linear-gradient(#f7f5ee 0 36%, #9db384 36% 100%); color: #222; padding-top: 10%; }
.c-frank b { font-size: 11cqw; letter-spacing: 0.02em; }
.c-frank small { font-size: 6.5cqw; margin-top: 3cqw; }
.c-frank::after { content: ""; display: block; width: 52%; aspect-ratio: 1; margin-top: 22cqw; border: 1.5cqw solid #2e3a22; background: radial-gradient(circle at 50% 70%, #2e3a22 18%, transparent 19%), #e9eadf; }

.c-pride {
  background:
    radial-gradient(circle at 50% 120%, transparent 30%, rgba(201, 164, 92, 0.55) 31% 33%, transparent 34%) 0 0 / 22% 14.67%,
    #1d2a44;
  color: #e2c27f;
  justify-content: center;
}
.c-pride b { font-size: 15cqw; font-style: italic; background: #1d2a44; padding: 3cqw 4cqw; border-radius: 3cqw; }
.c-pride small { font-size: 7cqw; margin-top: 2cqw; background: #1d2a44; padding: 1cqw 3cqw; }

.c-alice { background: #e6d9bd; color: #3b2a1a; padding-top: 8%; }
.c-alice b { font-size: 10cqw; letter-spacing: 0.02em; }
.c-alice::after { content: ""; display: block; width: 72%; flex: 1; margin: 6cqw 0 10cqw; background: radial-gradient(circle at 38% 45%, #d9472b 0 20%, transparent 21%), radial-gradient(circle at 66% 52%, #fff 0 15%, transparent 16%), linear-gradient(#7aa35a, #4d7a3a); border: 1.2cqw solid #3b2a1a; }

.c-holmes { background: #2f6fa3; color: #bfe1ff; padding-top: 12%; box-shadow: inset 0 0 0 3px #2f6fa3, inset 0 0 0 4px #9cc8ee, 0 3px 8px rgba(0,0,0,0.35); }
.c-holmes b { font-size: 10cqw; font-style: italic; line-height: 1.1; }
.c-holmes small { font-size: 6.5cqw; margin-top: auto; margin-bottom: 12cqw; letter-spacing: 0.1em; }

.c-time { background: radial-gradient(circle at 50% 62%, transparent 22%, #c9a45c 23% 25%, transparent 26%), #26423a; color: #e8cf8c; padding-top: 14%; }
.c-time b { font-size: 12cqw; line-height: 1.1; }
.c-time small { font-size: 7cqw; margin-top: auto; margin-bottom: 12cqw; }

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

.hero-visual { position: relative; }
.hero-visual .phone { transform: rotate(2deg); }

.hero-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 0.65rem 1rem 0.65rem 0.7rem;
  font-size: 0.82rem;
  line-height: 1.3;
  box-shadow: 0 20px 40px -14px rgba(10, 0, 40, 0.55);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.hero-tag strong { display: block; font-size: 0.9rem; }
.hero-tag span { color: var(--muted); }
.hero-tag .ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--v-100);
  color: var(--v-600);
}
.hero-tag .ico svg { width: 18px; height: 18px; }
.tag-a { left: -10%; top: 7%; }
.tag-b { right: -4%; bottom: 20%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-visual .phone { width: min(320px, 82vw); }
  .tag-a { left: 0; }
  .tag-b { right: 0; }
}

@media (max-width: 480px) {
  .hero-tag { font-size: 0.74rem; padding: 0.5rem 0.75rem 0.5rem 0.55rem; }
  .play-badge img { width: 180px; }
}

/* ---------- Strip ---------- */

.strip { background: var(--v-950); color: var(--v-200); }
.strip ul {
  list-style: none;
  margin: 0;
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.strip li { display: inline-flex; align-items: center; gap: 0.5rem; }
.strip svg { width: 18px; height: 18px; color: var(--amber); }

/* ---------- How it works ---------- */

.how { background: var(--paper); }
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 2rem 4.25rem;
  counter-increment: step;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--v-500);
  color: #fff;
  font-family: var(--display);
  font-size: 1.25rem;
  box-shadow: 0 10px 20px -10px var(--v-500);
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.36rem;
  top: 3.1rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(var(--v-200), transparent);
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--body); }
.steps .optional {
  display: inline-block;
  margin-left: 0.4rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--v-600);
  background: var(--v-100);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.steps li.opt::before { background: #fff; color: var(--v-500); box-shadow: inset 0 0 0 2px var(--v-300); }

.how-visual {
  border-radius: 32px;
  padding: 3rem 2rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(150deg, var(--v-400), var(--v-700));
  display: grid;
  place-items: center;
}
.how-visual img { width: min(300px, 90%); filter: drop-shadow(0 30px 40px rgba(20, 0, 60, 0.5)); }

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ---------- Playground ---------- */

.play {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--v-900), var(--v-800));
  color: #fff;
}
.play .eyebrow { color: var(--amber); }
.play .section-head p { color: var(--v-200); }

.play-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.play-preview {
  position: sticky;
  top: 96px;
}
.play-preview .phone { width: min(330px, 100%); }

.panel {
  background: #fff;
  color: var(--ink);
  border-radius: 26px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}
.panel-title h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
.panel-title span { font-size: 0.8rem; color: var(--muted); }

.ctrl { padding: 0.95rem 0; border-top: 1px solid var(--line); }
.ctrl:first-of-type { border-top: 0; padding-top: 0; }
.ctrl-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.ctrl-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ctrl-row .ctrl-label { margin: 0; }

.seg {
  display: flex;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: block;
  text-align: center;
  padding: 0.55rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg label + label span { border-left: 1.5px solid var(--ink); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--v-400); outline-offset: -3px; }

.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfc8e0;
  transition: background 0.2s ease;
}
.switch i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.switch input:checked + i { background: var(--v-500); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid var(--v-300); outline-offset: 2px; }

input[type="range"] {
  width: 100%;
  accent-color: var(--v-500);
  margin: 0.25rem 0 0;
}
.range-val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; text-transform: none; letter-spacing: 0; }

.panel-note { margin-top: 1.25rem; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 900px) {
  .play-grid { grid-template-columns: 1fr; }
  .play-preview { position: relative; top: 0; }
  .play-preview .phone { width: min(290px, 80vw); aspect-ratio: 9 / 15.5; }
  .play-preview .home-clock { display: none; }
}

/* ---------- Features ---------- */

.features { background: var(--paper); }
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--v-200); box-shadow: 0 24px 40px -28px rgba(59, 0, 151, 0.45); }
.card .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--v-100);
  color: var(--v-600);
  margin-bottom: 1rem;
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.card p { color: var(--body); font-size: 0.95rem; line-height: 1.55; }

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Instant updates ---------- */

.instant { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.mode {
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.mode.fast {
  background: linear-gradient(150deg, var(--v-500), var(--v-700));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 30px 60px -30px rgba(83, 0, 214, 0.7);
}
.mode .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--v-100);
  color: var(--v-600);
  margin-bottom: 1rem;
}
.mode.fast .tag { background: var(--amber); color: var(--v-950); }
.mode h3 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.mode p { color: var(--body); }
.mode.fast p { color: var(--v-100); }

.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 1.75rem 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 6px;
  height: 2px;
  background: currentColor;
  opacity: 0.25;
}
.timeline span { position: relative; padding-top: 1.3rem; text-align: center; flex: 1; }
.timeline span:first-child { text-align: left; }
.timeline span:last-child { text-align: right; }
.timeline span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: currentColor;
}
.timeline span:first-child::before { left: 0; margin-left: 0; }
.timeline span:last-child::before { left: auto; right: 0; margin-left: 0; }
.mode:not(.fast) .timeline { color: var(--muted); }
.mode.fast .timeline { color: var(--amber); }
.mode.fast .timeline::before { opacity: 0.9; }

@media (max-width: 760px) { .compare-cards { grid-template-columns: 1fr; } }

/* ---------- Privacy ---------- */

.privacy {
  background:
    radial-gradient(ellipse 50% 50% at 90% 10%, rgba(123, 44, 255, 0.12), transparent 70%),
    var(--paper);
}
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.privacy-copy h2 { margin-bottom: 1.25rem; }
.privacy-copy p { color: var(--body); font-size: 1.1rem; }
.privacy-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.privacy-list div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
}
.privacy-list svg { width: 24px; height: 24px; color: var(--v-500); margin-bottom: 0.6rem; }
.privacy-list strong { display: block; margin-bottom: 0.25rem; }
.privacy-list p { font-size: 0.92rem; color: var(--body); line-height: 1.5; }

@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .privacy-list { grid-template-columns: 1fr; } }

/* ---------- Screens rail ---------- */

.screens { background: var(--v-100); overflow: hidden; }
.rail {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 1.5rem 1.5rem;
  justify-content: safe center;
  scrollbar-width: thin;
  scrollbar-color: var(--v-300) transparent;
}
.rail figure { flex: 0 0 auto; margin: 0; scroll-snap-align: center; width: 250px; }
.rail figure.wide { width: 330px; }
.rail .shot {
  height: 440px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.rail img { max-height: 100%; width: auto; filter: drop-shadow(0 24px 30px rgba(59, 0, 151, 0.3)); }
.rail figcaption { margin-top: 1rem; text-align: center; font-size: 0.92rem; color: var(--body); }
.rail figcaption strong { display: block; color: var(--ink); }

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

.faq { background: var(--paper); }
.faq .wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--v-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235300d6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 55% no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--v-600); }
.faq .answer { padding: 0 3rem 1.35rem 0; color: var(--body); }

/* ---------- Final CTA ---------- */

.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse 50% 70% at 50% 0%, rgba(167, 123, 255, 0.6), transparent 70%),
    linear-gradient(180deg, var(--v-600), var(--v-900));
}
.final .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin: 0 auto 1.75rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}
.final h2 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); }
.final h2 em { color: var(--amber); }
.final p { color: var(--v-100); font-size: 1.15rem; margin-top: 1rem; }
.final .cta-row { justify-content: center; }

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

.site-footer {
  background: var(--v-950);
  color: var(--v-200);
  font-size: 0.88rem;
  padding: 3rem 0 3.5rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v-300);
  margin-bottom: 0.8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.studio-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff !important;
  text-decoration: none;
  margin-bottom: 0.8rem;
}
.studio-mark svg { width: 18px; height: 18px; }
.disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #a99cc9;
}

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

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

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

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