@font-face { font-family: "Montserrat"; src: url(fonts/montserrat.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito.ttf) format("truetype"); font-weight: 400; font-display: swap; }

/* the palette is one of the mod's own themes; app.js swaps these */
:root {
  --top: #0f1713; --bottom: #070a08; --edge: rgba(84, 224, 138, .25); --inset: rgba(84, 224, 138, .08);
  --white: #e6ffe9; --grey: #a9d3b1; --accent: #54e08a; --good: #54e08a; --warn: #f4be4f; --bad: #ff6b6b; --ink: #06140b;
  --r: 10px; --glow: 1;
  --head: "Montserrat", "Segoe UI", sans-serif; --body: "Nunito", "Segoe UI", sans-serif;
  --side: max(24px, calc((100vw - 1240px) / 2));
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bottom); }
body { margin: 0; color: var(--grey); font: 400 1.125rem/1.6 var(--body); overflow-wrap: break-word; overflow-x: clip; }
[data-quiet]:not([data-quiet="box"]) { text-shadow: 0 0 4px var(--bottom), 0 0 14px var(--bottom); }
.btn, .swatch { text-shadow: none; }
#wall { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
h1, h2, h3, b, dt, .btn, .brand, nav, .chip, .k { font-family: var(--head); font-weight: 600; }
h1, h2, h3, dt, b { color: var(--white); }
h1 { font-size: clamp(2.9rem, 7.2vw, 6.6rem); line-height: .98; letter-spacing: -.035em; margin: 0 0 1.5rem; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.06; letter-spacing: -.028em; margin: 0 0 1.25rem; text-wrap: balance; }
h3 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; max-width: 34em; }
a { color: var(--accent); text-underline-offset: .2em; }
code { font: 400 .95em ui-monospace, Consolas, monospace; color: var(--white); background: color-mix(in srgb, var(--bottom) 60%, var(--top)); border: 1px solid var(--edge); padding: .05em .4em; border-radius: 5px; white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.flat .stage { background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; z-index: 30; }
.skip:focus { top: 12px; }
section, footer { padding: 0 var(--side); position: relative; }

.bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 0 24px; justify-content: space-between; align-items: center; padding: 8px var(--side);
  background: linear-gradient(color-mix(in srgb, var(--bottom) 96%, transparent) 70%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-size: 1.1rem; min-height: 44px; }
.brand img { border-radius: 50%; }
nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
nav a { color: var(--white); text-decoration: none; font-size: .95rem; min-height: 44px; display: flex; align-items: center; transition: color .2s; }
nav a:hover { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: var(--r); border: 1px solid var(--edge); color: var(--white);
  background: var(--top); text-decoration: none; font-size: 1.1rem; transition: background-color .2s, border-color .2s, box-shadow .2s; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.main { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.gold { background: var(--warn); border-color: var(--warn); color: var(--goldink, #1c1402); margin-bottom: 2rem; }
.btn.main:hover { box-shadow: 0 0 calc(28px * var(--glow)) color-mix(in srgb, var(--accent) 60%, transparent); }
.btn.gold:hover { box-shadow: 0 0 calc(28px * var(--glow)) color-mix(in srgb, var(--warn) 60%, transparent); }

/* the hero is the wall: the picture fills the screen, the words sit in it */
.hero { min-height: calc(100svh - 60px); display: grid; align-items: center; margin-top: -60px; padding-top: 60px; }
.hero .stage { position: absolute; inset: 9% 2% 3% 34%; }
.pitch { position: relative; max-width: min(760px, 58vw); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); max-width: 27em; color: var(--white); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 1rem; }
.fine { font-size: 1rem; margin: 0; color: var(--white); }

/* the demo */
.try { min-height: 100svh; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: 12vh; padding-bottom: 12vh; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; border-radius: calc(var(--r) + 6px); }
.chest, .panel { border-radius: var(--r); border: 1px solid var(--edge); background: linear-gradient(var(--top), var(--bottom)); box-shadow: 0 0 calc(34px * var(--glow)) color-mix(in srgb, var(--accent) 22%, transparent), 0 18px 40px rgba(0, 0, 0, .35); }
.chest { padding: 16px; display: flex; flex-direction: column; }
.chest-title { color: var(--white); font: 600 1rem/1.4 var(--head); margin: 0 0 12px; min-height: 1.4em; }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.slot { aspect-ratio: 1; min-width: 0; padding: 0; border: 1px solid var(--edge); border-radius: max(2px, calc(var(--r) - 4px)); background: var(--inset); display: grid; place-items: center; position: relative; cursor: default; color: var(--grey); }
.slot svg { width: 58%; height: 58%; opacity: .5; }
.slot.on { cursor: pointer; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); z-index: 1; }
.slot.on svg { opacity: 1; }
.slot.on::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 2px var(--accent), 0 0 calc(20px * var(--glow)) color-mix(in srgb, var(--accent) 75%, transparent); animation: pulse 1.5s ease-in-out infinite; pointer-events: none; }
@keyframes pulse { 50% { opacity: .45; } }
.callout { margin: auto 0 0; padding: 11px 13px; border-left: 3px solid var(--accent); border-radius: 4px; background: var(--inset); color: var(--white); font: 600 .95rem/1.35 var(--head); min-height: 3.5em; }
.slots + .callout { margin-top: 14px; }
.panel { padding: 18px; display: grid; gap: 13px; align-content: start; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.title { color: var(--accent); letter-spacing: .04em; font-size: .9rem; }
.tag-demo { font-size: .85rem; }
.hero-num { justify-content: flex-start; flex-wrap: wrap; gap: 4px 14px; padding-bottom: 13px; border-bottom: 1px solid var(--edge); }
.hero-num b { color: var(--good); font-size: 2.3rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-num.hit b { animation: hit .6s; }
@keyframes hit { 0% { text-shadow: 0 0 calc(22px * var(--glow)) var(--good); } 100% { text-shadow: none; } }
.hero-num i, .hero-num em { display: block; font-style: normal; font-size: .85rem; line-height: 1.35; }
.hero-num em { color: var(--good); }
.meter { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; font-size: .9rem; }
.k { font-size: .8rem; letter-spacing: .04em; }
.track { height: 6px; border-radius: 3px; background: var(--inset); overflow: hidden; margin-top: -6px; }
.track div { height: 100%; border-radius: 3px; background: var(--accent); transform-origin: left; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
#graph { width: 100%; height: 70px; display: block; background: var(--inset); border-radius: max(2px, calc(var(--r) - 4px)); }
#curve { fill: none; stroke: var(--warn); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
#area { fill: color-mix(in srgb, var(--warn) 18%, transparent); }
.next { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 12px; background: var(--inset); border-left: 3px solid var(--tone, var(--accent)); border-radius: 4px max(2px, calc(var(--r) - 4px)) max(2px, calc(var(--r) - 4px)) 4px; min-height: 7.2em; }
.next b { font-size: 1.05rem; line-height: 1.3; display: block; }
.next p { margin: 4px 0 0; font-size: .95rem; line-height: 1.4; }
.chip { flex: none; font-size: .75rem; padding: 3px 9px; border-radius: 99px; color: var(--tone, var(--accent)); background: color-mix(in srgb, var(--tone, var(--accent)) 20%, transparent); }
.hint { color: var(--accent); min-height: 3.2em; font-size: 1.1rem; }

/* looks */
.looks { min-height: 92svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.looks .stage { height: min(74svh, 44vw); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 11px; border-radius: 99px; border: 1px solid var(--edge); background: var(--top); color: var(--white); font: 600 1rem var(--head); cursor: pointer; transition: border-color .2s, color .2s; }
.swatch span { width: 26px; height: 26px; border-radius: 50%; border: 5px solid; }
.swatch:hover, .swatch[aria-pressed="true"] { border-color: var(--accent); }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--accent); }

/* features: words scroll on the left while the wall redraws itself on the right */
.story { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 72px); padding-top: 4vh; }
.story article { min-height: 82svh; display: flex; flex-direction: column; justify-content: center; }
.story article p { font-size: 1.25rem; max-width: 27em; margin: 0; }
.pin { position: relative; }
.pin .stage { position: sticky; top: calc((100svh - min(76svh, 46vw)) / 2 + 20px); height: min(76svh, 46vw); }
.stage.mini { display: none; }

.split { min-height: 100svh; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: 10vh; padding-bottom: 10vh; }
.split.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split .stage { height: min(66svh, 38vw); }
.split ul, .split ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.never li { padding-left: 38px; position: relative; max-width: 36em; }
.never li::before { content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--bad); background: linear-gradient(45deg, transparent calc(50% - 1.5px), var(--bad) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
.never li b { display: block; font-size: 1.15rem; }
.install ol { counter-reset: n; gap: 26px; margin-bottom: 2rem; }
.install li { counter-increment: n; padding-left: 64px; position: relative; }
.install li::before { content: counter(n); position: absolute; left: 0; top: -.06em; color: var(--accent); font: 600 2.9rem/1 var(--head); }
.install li p { margin: 0; }
.support .perks { gap: 10px; margin: .6rem 0 1.2rem; }
.support .perks li { padding-left: 34px; position: relative; color: var(--white); max-width: 32em; }
.support .perks li::before { content: ""; position: absolute; left: 0; top: .24em; width: 21px; height: 21px; background: var(--warn); clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 61%, 81% 98%, 50% 76%, 19% 98%, 30% 61%, 0 38%, 38% 36%); }
.names { color: var(--white); }
.join { min-height: 84svh; }

.faq { padding-top: 8vh; padding-bottom: 8vh; }
.faq dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 80px; }
.faq dt { font-size: 1.25rem; margin-bottom: 6px; }
.faq dd { margin: 0; max-width: 32em; }
.finale { padding-top: 4vh; padding-bottom: 6vh; }
.finale .stage { height: min(62svh, 30vw); min-height: 170px; }
footer { background: var(--bottom); border-top: 1px solid var(--edge); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; padding-top: 28px; padding-bottom: 36px; font-size: 1rem; }
footer p { margin: 0; max-width: none; }
footer a { margin-right: 18px; display: inline-block; padding: 8px 0; }

@media (max-width: 900px) {
  :root { --side: 20px; }
  .bar { position: static; }
  .hero { min-height: 0; align-items: start; padding-bottom: 24px; }
  .hero .stage { position: static; height: 46svh; min-height: 260px; order: 2; margin: 8px 0 0; }
  .pitch { max-width: none; padding-top: 34px; }
  .try, .looks, .story, .split, .split.flip { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .split .stage, .looks .stage { height: 300px; }
  .split.flip .stage, .looks .stage { order: -1; }
  .pin { display: none; }
  .stage.mini { display: block; height: 260px; margin-bottom: 20px; }
  .story article { min-height: 0; padding: 36px 0; }
  .story article p { font-size: 1.125rem; }
  .story { padding-top: 24px; padding-bottom: 24px; }
  .faq dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  nav { gap: 0 15px; }
  nav a { font-size: .9rem; }
  .btn { width: 100%; }
  .next { min-height: 6em; }
  .install li { padding-left: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
