/* Spillglow website. Plain CSS, no build step. */
:root {
  --bg: #120A20;
  --panel: #1E1430;
  --panel-2: #271A3E;
  --line: rgba(243, 238, 255, 0.10);
  --text: #F3EEFF;
  --muted: #B5A8CC;
  --amber: #FFB547;
  --magenta: #E84FB5;
  --violet: #8B5CF6;
  --teal: #2DD4BF;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Soft background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 10% -5%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(500px 380px at 95% 10%, rgba(232, 79, 181, 0.16), transparent 70%),
    radial-gradient(700px 500px at 50% 110%, rgba(45, 212, 191, 0.10), transparent 70%);
}

a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #FFD08A; }

img, svg { max-width: 100%; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
code, kbd {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
  background: rgba(243, 238, 255, 0.08);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 10; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(18, 10, 32, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nav li { margin: 0; }
.nav a { display: block; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(243, 238, 255, 0.08); }
@media (max-width: 560px) {
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 6px 8px; font-size: 0.9rem; }
}

/* Sections */
main { display: block; }
section { padding: 56px 0; }
@media (min-width: 700px) { section { padding: 80px 0; } }
.section-head { max-width: 680px; margin-bottom: 32px; }
.eyebrow { color: var(--teal); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Page title band (inner pages) */
.page-head { padding: 48px 0 24px; }
.page-head p { max-width: 680px; }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } .hero { padding: 72px 0 88px; } }
.hero h1 span { background: linear-gradient(90deg, var(--amber), var(--magenta) 55%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 560px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.badges li { margin: 0; font-size: 0.85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: rgba(30, 20, 48, 0.6); }

/* The TV picture with glow spilling into the room */
.room { position: relative; aspect-ratio: 16 / 11; display: grid; place-items: center; }
.room .spill {
  position: absolute;
  inset: 4% 0;
  border-radius: 50%;
  filter: blur(40px);
  background:
    radial-gradient(closest-side at 18% 50%, rgba(255, 181, 71, 0.75), transparent),
    radial-gradient(closest-side at 82% 50%, rgba(45, 212, 191, 0.65), transparent),
    radial-gradient(closest-side at 50% 15%, rgba(232, 79, 181, 0.6), transparent),
    radial-gradient(closest-side at 50% 88%, rgba(139, 92, 246, 0.6), transparent);
  animation: breathe 14s ease-in-out infinite;
}
.room .tv {
  position: relative;
  width: 78%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 6px solid #0B0614;
  box-shadow: 0 0 0 1px rgba(243, 238, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.5);
  background:
    radial-gradient(60% 80% at 15% 60%, #FFB547 0%, transparent 60%),
    radial-gradient(55% 75% at 88% 45%, #2DD4BF 0%, transparent 60%),
    radial-gradient(70% 60% at 50% 0%, #E84FB5 0%, transparent 65%),
    linear-gradient(180deg, #3B1F6E, #1A0F2E);
  overflow: hidden;
}
.room .tv::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(11, 6, 20, 0.85));
  clip-path: polygon(0 60%, 18% 30%, 30% 55%, 46% 10%, 62% 50%, 76% 25%, 100% 55%, 100% 100%, 0 100%);
}
.room .stand { position: absolute; bottom: 4%; width: 30%; height: 6px; border-radius: 6px; background: #0B0614; }
.bulb { position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%; filter: blur(2px); }
.bulb.l { left: 1%; top: 40%; background: radial-gradient(circle, #FFE2B0, var(--amber) 55%, transparent 72%); box-shadow: 0 0 40px 14px rgba(255, 181, 71, 0.55); }
.bulb.r { right: 1%; top: 36%; background: radial-gradient(circle, #C9FFF6, var(--teal) 55%, transparent 72%); box-shadow: 0 0 40px 14px rgba(45, 212, 191, 0.5); }
.bulb.t { top: 0; left: 45.5%; background: radial-gradient(circle, #FFD1EF, var(--magenta) 55%, transparent 72%); box-shadow: 0 0 40px 14px rgba(232, 79, 181, 0.5); }
@keyframes breathe { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .room .spill { animation: none; } html { scroll-behavior: auto; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  color: #1A0F06;
  background: linear-gradient(135deg, var(--amber), #FF8A5B 60%, var(--magenta));
  box-shadow: 0 8px 30px rgba(232, 79, 181, 0.30);
}
.btn:hover { color: #1A0F06; filter: brightness(1.06); }
.btn.secondary { color: var(--text); background: rgba(243, 238, 255, 0.06); border-color: var(--line); box-shadow: none; }
.btn.secondary:hover { color: var(--text); background: rgba(243, 238, 255, 0.12); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }
.btn.block { width: 100%; }

/* Cards and grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 939px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: linear-gradient(180deg, rgba(39, 26, 62, 0.9), rgba(30, 20, 48, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(243, 238, 255, 0.06);
}
.card .icon svg { width: 24px; height: 24px; }
.glow-amber { box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.25), 0 0 24px rgba(255, 181, 71, 0.12); }
.glow-magenta { box-shadow: inset 0 0 0 1px rgba(232, 79, 181, 0.25), 0 0 24px rgba(232, 79, 181, 0.12); }
.glow-violet { box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.3), 0 0 24px rgba(139, 92, 246, 0.14); }
.glow-teal { box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.25), 0 0 24px rgba(45, 212, 191, 0.12); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 14px; }
.steps > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 18px 18px 18px 66px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: #1A0F06;
  background: linear-gradient(135deg, var(--amber), var(--magenta));
}
.steps > li strong:first-child { display: block; margin-bottom: 2px; }
.steps > li p:last-child, .steps > li ul:last-child { margin-bottom: 0; }

/* Screenshots from the TV */
.shot { margin: 20px 0 28px; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); background: var(--panel); }
.shot figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }
.steps > li .shot { margin: 12px 0 0; }
.shots { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 20px 0 28px; }
.shots .shot { margin: 0; }
@media (min-width: 700px) { .shots { grid-template-columns: repeat(3, 1fr); } }

/* Tags */
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.tag.ready { color: #0B2A26; background: var(--teal); }
.tag.beta { color: #2A1A04; background: var(--amber); }
.tag.speed { color: var(--text); background: rgba(139, 92, 246, 0.35); }
.tag.free { color: #2A0B1F; background: var(--magenta); }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

/* Notices */
.notice {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  margin: 0 0 16px;
}
.notice p:last-child { margin-bottom: 0; }
.notice.health { border-color: rgba(255, 181, 71, 0.55); background: linear-gradient(180deg, rgba(255, 181, 71, 0.10), rgba(30, 20, 48, 0.9)); }
.notice.health strong:first-child { color: var(--amber); }
.notice.draft { border-color: rgba(232, 79, 181, 0.6); background: rgba(232, 79, 181, 0.10); }
.notice.info { border-color: rgba(45, 212, 191, 0.45); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); margin-bottom: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 480px; background: var(--panel); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }

/* Pricing */
.price-card { max-width: 560px; }
.price { font-size: clamp(2.4rem, 7vw, 3.2rem); font-weight: 800; line-height: 1; margin: 8px 0 4px; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

/* FAQ */
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 650; padding: 16px 28px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--amber); }
details[open] summary::after { content: "\2212"; }
details > *:not(summary) { margin-top: 0; }
details > :last-child { padding-bottom: 16px; }

/* Guide layout with a contents box */
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 32px; }
.toc ol { margin: 0; columns: 2 200px; }
.toc a { color: var(--text); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; padding-top: 8px; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.4em; scroll-margin-top: 90px; }
.prose section { padding: 0; }

/* Phone pages (buy / restore) */
.phone { max-width: 520px; margin: 0 auto; padding: 32px 16px 48px; }
.phone .card { padding: 24px; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav a { color: var(--muted); margin-right: 16px; display: inline-block; padding: 4px 0; }
.site-footer nav a:hover { color: var(--text); }
.site-footer .disclaimer { color: var(--text); font-weight: 600; }
