/* Burnfeed — burnfeed.app
   System type, neutral greys, grouped lists. Ember marks only what burns. */

:root {
  color-scheme: light dark;
  --page: #ffffff;
  --panel: #f5f5f7;
  --group: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --line: rgba(0, 0, 0, 0.1);
  --hair: rgba(0, 0, 0, 0.07);
  --fill: rgba(0, 0, 0, 0.05);
  --fill-2: rgba(0, 0, 0, 0.09);
  --knob: #ffffff;
  --ember: #f05a14;
  --ember-text: #d4470a;
  --focus: rgba(240, 90, 20, 0.45);
  --media-1: linear-gradient(160deg, #9cc8f5 0%, #c9b8f0 55%, #f2c3c9 100%);
  --media-2: linear-gradient(160deg, #ffd29a 0%, #f59f8b 60%, #c97b9f 100%);
  --media-3: linear-gradient(160deg, #b9e2c4 0%, #8fc7c9 55%, #6f9fd1 100%);
  --button: #1d1d1f;
  --button-text: #ffffff;
  /* hero background feed */
  --card: #f2f2f5;
  --card-line: rgba(0, 0, 0, 0.07);
  --bar: rgba(0, 0, 0, 0.1);
  --bar-2: rgba(0, 0, 0, 0.065);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wide: 760px;
  --narrow: 600px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --panel: #1c1c1e;
    --group: #2c2c2e;
    --text: #f5f5f7;
    --text-2: #98989d;
    --text-3: #6c6c70;
    --line: rgba(255, 255, 255, 0.14);
    --hair: rgba(255, 255, 255, 0.09);
    --fill: rgba(255, 255, 255, 0.07);
    --fill-2: rgba(255, 255, 255, 0.13);
    --knob: #ffffff;
    --ember: #ff6a2b;
    --ember-text: #ff8a55;
    --focus: rgba(255, 106, 43, 0.5);
    --media-1: linear-gradient(160deg, #2f4f78 0%, #4b3f78 55%, #6b3f55 100%);
    --media-2: linear-gradient(160deg, #7a5321 0%, #7a3d32 60%, #5a2f4a 100%);
    --media-3: linear-gradient(160deg, #2f5a3c 0%, #2c5a5c 55%, #2f4870 100%);
    --button: #f5f5f7;
    --button-text: #1d1d1f;
    --card: #151517;
    --card-line: rgba(255, 255, 255, 0.08);
    --bar: rgba(255, 255, 255, 0.12);
    --bar-2: rgba(255, 255, 255, 0.07);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body > main { flex: 1; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--text);
  font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ember-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wide) + 48px); margin: 0 auto; padding: 0 24px; }

/* ---------- top bar */

.bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.bar nav { display: flex; gap: 22px; font-size: 14px; }
.bar nav a { color: var(--text-2); }
.bar nav a:hover { color: var(--text); text-decoration: none; }
.bar nav a.get { color: var(--ember-text); }

/* ---------- buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 12px;
  background: var(--button); color: var(--button-text);
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  transition: opacity 0.15s;
}
.button:hover { text-decoration: none; opacity: 0.86; }
.button.secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 24%, transparent); }
.cta .buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.text-button {
  appearance: none; border: 0; background: none; padding: 4px 2px; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--ember-text);
}
.text-button:hover { text-decoration: underline; }

/* ---------- hero */

.hero { text-align: center; }

/* The stage: an endless feed falls into a pixel fire behind the headline */
.stage {
  --fire-h: 168px;
  --card-w: 210px;
  --gap: 20px;
  position: relative; overflow: hidden;
  margin-top: -64px; padding: 108px 0 calc(var(--fire-h) - 16px);
  /* The first screen is all hero, so the fire always burns along the bottom of the display */
  box-sizing: border-box; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.stage-bg { position: absolute; inset: 0; pointer-events: none; }
.cards {
  position: absolute; inset: 0; display: flex; justify-content: center; gap: var(--gap);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 120px, #000 calc(100% - var(--fire-h)), transparent calc(100% - 46px));
  mask-image: linear-gradient(to bottom, transparent 0, #000 120px, #000 calc(100% - var(--fire-h)), transparent calc(100% - 46px));
}
.bg-col { flex: none; width: var(--card-w); }
.bg-track { animation: feed-fall var(--dur, 60s) linear infinite; animation-delay: var(--delay, 0s); will-change: transform; }
.stage.is-paused .bg-track { animation-play-state: paused; }
@keyframes feed-fall { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }

.bg-card { margin-bottom: var(--gap); padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--card-line); text-align: left; }
.bg-card header { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.bg-card header i { width: 24px; height: 24px; border-radius: 50%; background: var(--bar); flex: none; }
.bg-card header span { display: grid; gap: 5px; flex: 1; }
.bg-card header span::before { content: ""; width: 46%; height: 7px; border-radius: 4px; background: var(--bar); }
.bg-card header span::after { content: ""; width: 28%; height: 6px; border-radius: 3px; background: var(--bar-2); }
.bg-card b { display: block; height: 7px; border-radius: 4px; background: var(--bar); margin-bottom: 7px; }
.bg-card b.s { width: 62%; }
.bg-card .m { display: block; margin-top: 11px; border-radius: 9px; background: var(--bar-2); }
.bg-card .m.c1 { background: var(--media-1); opacity: 0.55; }
.bg-card .m.c2 { background: var(--media-2); opacity: 0.55; }
.bg-card .m.c3 { background: var(--media-3); opacity: 0.55; }
.bg-card footer { display: flex; gap: 14px; margin-top: 12px; }
.bg-card footer i { width: 26px; height: 6px; border-radius: 3px; background: var(--bar-2); }

.stage-fire {
  position: absolute; left: 0; bottom: 0; width: 100%; height: var(--fire-h);
  image-rendering: pixelated; image-rendering: crisp-edges;
}

/* A soft pool of page colour keeps the words clear of the cards */
.hero-copy { position: relative; z-index: 1; }
.hero-copy::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -40px; bottom: -30px;
  width: min(820px, 150%); transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--page) 58%, transparent);
}
.hero .icon { width: 68px; height: 68px; display: block; margin: 0 auto 22px; }
.hero h1 { font-size: clamp(44px, 9.4vw, 80px); line-height: 1.03; font-weight: 700; letter-spacing: -0.035em; }
.lede { max-width: var(--narrow); margin: 22px auto 0; font-size: 21px; line-height: 1.45; color: var(--text-2); letter-spacing: -0.01em; text-wrap: pretty; }
.lede em { font-style: normal; color: var(--text); }
.cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta p { margin: 0; font-size: 14px; color: var(--text-2); }
.cta .store-link { color: var(--text-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text-2) 40%, transparent); text-underline-offset: 3px; margin-left: 4px; }
.cta .store-link:hover { color: var(--text); }
.cta .team-note { margin-top: -6px; font-size: 13px; color: var(--text-3); }
.cta .team-note a { color: var(--text-2); }

.works { margin-top: 34px; }
.works p { margin: 0 0 14px; font-size: 13px; color: var(--text-2); }
.works ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; }
.works li { color: var(--text); opacity: 0.55; transition: color 0.2s, opacity 0.2s; }
.works li:hover { opacity: 1; color: var(--brand, var(--text)); }
.works svg { display: block; width: 24px; height: 24px; fill: currentColor; }

/* ---------- demo window (hero) */

.demo { margin: 136px auto 0; max-width: calc(980px + 48px); }
.demo-title { text-align: center; font-size: clamp(30px, 5vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 40px; }
/* A YouTube home page in Safari with the Burnfeed menu open; its switch burns the feed */
.yt {
  position: relative; display: flex; flex-direction: column; height: 560px;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--group);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 30px 60px -30px rgba(0, 0, 0, 0.22);
  text-align: left;
}
.titlebar { position: relative; flex: none; height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--panel); border-bottom: 1px solid var(--hair); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--fill-2); }
.tb-ext { position: relative; display: grid; place-items: center; width: 34px; height: 26px; border-radius: 8px; background: var(--fill); color: #3479f7; }
.tb-ext svg { width: 15px; height: 15px; }
.tb-ext::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg); background: var(--panel); border-left: 1px solid var(--line); border-top: 1px solid var(--line); z-index: 4; }
.address {
  position: absolute; left: 50%; transform: translateX(-50%);
  min-width: 38%; height: 26px; padding: 0 14px; border-radius: 8px; background: var(--fill);
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-2);
}
.yt-page { flex: 1; min-height: 0; display: grid; grid-template-columns: 184px 1fr; }
.yt-guide { padding: 14px 10px; border-right: 1px solid var(--hair); }
.yt-logo { display: flex; align-items: center; gap: 6px; margin: 2px 0 16px 10px; font-size: 15px; font-weight: 700; letter-spacing: -0.04em; color: var(--text); }
.yt-logo i { position: relative; width: 24px; height: 17px; border-radius: 5px; background: #ff0033; }
.yt-logo i::after { content: ""; position: absolute; left: 9px; top: 4.5px; border-left: 7px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.yt-nav { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 12px; border-radius: 9px; font-size: 13px; color: var(--text); }
.yt-nav.on { background: var(--fill); font-weight: 600; }
.yt-nav i { width: 16px; height: 16px; border-radius: 4px; background: var(--fill-2); }
.yt-main { display: flex; flex-direction: column; min-width: 0; }
.search {
  margin: 14px 16px 0 300px; height: 34px; border-radius: 17px; background: var(--fill);
  display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 13px; color: var(--text-2);
}
.search svg { width: 13px; height: 13px; flex: none; }
.feedwrap { position: relative; flex: 1; min-height: 0; margin-top: 16px; overflow: hidden; }
.feed { position: absolute; inset: 0; padding: 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; align-content: start; transition: opacity 0.3s; }
.vid i { display: block; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--media-1); margin-bottom: 9px; }
.vid i.t2, .vid i.t6 { background: var(--media-2); }
.vid i.t3, .vid i.t7 { background: var(--media-3); }
.vid i.t4 { background: linear-gradient(160deg, #f7d488, #e98a6a 60%, #a8678f); }
.vid i.t5, .vid i.t9 { background: linear-gradient(160deg, #a7c7e7, #7fa3d6 55%, #6d79c4); }
.vid i.t8 { background: linear-gradient(160deg, #c3e5b5, #88c3a0 55%, #5e9fb0); }
.vid b { display: block; height: 8px; border-radius: 4px; background: var(--fill-2); margin-bottom: 6px; }
.vid b.s { width: 60%; background: var(--fill); }

.quote {
  position: absolute; inset: 0; margin: 0; padding: 0 28px 40px 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  opacity: 0; transform: translateY(6px); transition: opacity 0.7s ease, transform 0.7s ease;
}
.quote p { margin: 0; max-width: 380px; text-wrap: balance; font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.quote cite { margin-top: 10px; font-style: normal; font-size: 14px; color: var(--text-2); }
.fire { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.is-burned .feed { opacity: 0; }
.is-burned .quote { opacity: 1; transform: none; }

/* The Burnfeed menu, hanging from its toolbar button */
.bf-pop {
  position: absolute; z-index: 3; top: 52px; left: 74px; width: 286px; padding: 10px;
  border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.35); font-size: 13px; color: var(--text);
}
.bf-head { display: flex; align-items: center; gap: 7px; padding: 2px 4px 10px; }
.bf-head img { border-radius: 4px; }
.bf-head span { color: var(--text-2); font-size: 12px; }
.bf-card { border-radius: 10px; background: var(--group); border: 1px solid var(--hair); }
.bf-site { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--hair); }
.bf-yt { position: relative; width: 30px; height: 30px; flex: none; border-radius: 8px; background: #ff0033; }
.bf-yt::after { content: ""; position: absolute; left: 12px; top: 9px; border-left: 8px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.bf-name { flex: 1; display: grid; }
.bf-name span { font-size: 12px; color: var(--text-2); }
.is-burned .bf-name span { color: var(--ember-text); }
.bf-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; }
.bf-muted { color: var(--text-2); font-size: 12px; border-bottom: 1px solid var(--hair); }
.bf-seg { display: flex; gap: 2px; padding: 2px; border-radius: 7px; background: var(--fill); }
.bf-seg i { font-style: normal; padding: 3px 7px; color: var(--text); }
.bf-label { padding: 9px 10px 2px; font-size: 11px; font-weight: 600; color: var(--text-2); }

.bsw { position: relative; display: inline-block; flex: none; width: 40px; height: 24px; padding: 0; border: 0; border-radius: 12px; background: var(--fill-2); cursor: pointer; transition: background 0.2s; }
.bsw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.bsw[aria-checked="true"], .bsw.on { background: var(--ember); }
.bsw[aria-checked="true"]::after, .bsw.on::after { transform: translateX(16px); }
.bsw.small { width: 30px; height: 18px; cursor: default; }
.bsw.small::after { width: 14px; height: 14px; }
.bsw.small.on::after { transform: translateX(12px); }
.bsw:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--focus); }
/* Until it's clicked, the switch asks for it */
.bsw.cta { animation: sw-pulse 1.6s ease-in-out infinite; }
@keyframes sw-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 90, 20, 0.55); } 60% { box-shadow: 0 0 0 9px rgba(240, 90, 20, 0); } }
.hint {
  position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); white-space: nowrap;
  padding: 6px 10px; border-radius: 8px; background: var(--ember); color: #fff; font-size: 12px; font-weight: 600;
  pointer-events: none; transition: opacity 0.2s;
}
.hint::before { content: ""; position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; transform: rotate(45deg); background: var(--ember); }
.bsw:not(.cta) .hint { opacity: 0; }

@media (max-width: 760px) {
  .yt { height: 520px; }
  .yt-page { grid-template-columns: 1fr; }
  .yt-guide { display: none; }
  .search { margin-left: 16px; }
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 250px; }
  .quote { padding: 230px 20px 20px; }
  .bf-pop { left: 12px; width: min(286px, calc(100% - 24px)); }
  .bsw .hint { left: auto; right: -6px; top: auto; bottom: calc(100% + 10px); transform: none; }
  .bsw .hint::before { left: auto; right: 16px; top: auto; bottom: -5px; }
}

.demo figcaption { margin-top: 18px; display: flex; justify-content: center; align-items: baseline; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); text-align: center; }

/* ---------- sections */

.section { padding: 128px 0 0; }
.section > .wrap > header { max-width: var(--narrow); }
.section h2 { font-size: clamp(32px, 5.6vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.section header p { margin: 18px 0 0; font-size: 19px; line-height: 1.5; color: var(--text-2); letter-spacing: -0.005em; }
.section header p strong { color: var(--text); font-weight: 600; }

.cite { display: block; font-size: 12px; line-height: 1.4; color: var(--text-3); }
a.cite:hover { color: var(--text-2); }

/* the world, in numbers */

.facts { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 44px 48px; }
.facts li { display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }
.facts b {
  font-family: var(--display); font-size: clamp(40px, 6.4vw, 56px); line-height: 1; font-weight: 700;
  letter-spacing: -0.035em; font-variant-numeric: tabular-nums;
}
.facts li:first-child b { color: var(--ember-text); }
.facts span { font-size: 17px; line-height: 1.45; color: var(--text-2); }
.facts .cite { margin-top: 2px; }

/* calculator */

.calc {
  margin-top: 48px; padding: 32px; border-radius: 18px; background: var(--panel);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start;
}
.field + .field { margin-top: 34px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 15px; font-weight: 500; }
.field-head output { flex: none; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.field small { display: block; margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.field small .text-button { font-size: 13px; padding: 0 2px; }

.calc input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
}
.calc input[type="range"]:focus-visible { outline: none; }
.calc input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--ember) 0 var(--p), var(--fill-2) var(--p) 100%);
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -10px; border: 0; border-radius: 50%;
  background: var(--knob); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.14), 0 2px 5px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.15s;
}
.calc input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--focus), 0 2px 5px rgba(0, 0, 0, 0.22); }
.calc input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--fill-2); }
.calc input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ember); }
.calc input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: var(--knob); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.14), 0 2px 5px rgba(0, 0, 0, 0.22);
}
.calc input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--focus), 0 2px 5px rgba(0, 0, 0, 0.22); }

.results { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.result { display: grid; gap: 4px; align-content: start; }
.result b {
  font-family: var(--display); font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.result > span { font-size: 15px; color: var(--text-2); }
.result.lead { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); }
.result.lead b { font-size: clamp(56px, 9vw, 76px); line-height: 1; color: var(--ember-text); letter-spacing: -0.04em; }
.result.lead > span { font-size: 17px; color: var(--text); font-weight: 500; }
.result-note { grid-column: 1 / -1; margin: -8px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.result-note strong { color: var(--text); font-weight: 600; }
.result-note span, .equiv b span { font-variant-numeric: tabular-nums; }

.equiv { margin-top: 56px; }
.equiv h3 { margin-bottom: 22px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.equiv ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.equiv li { display: grid; gap: 6px; align-content: start; padding-top: 16px; border-top: 1px solid var(--line); }
.equiv b { font-family: var(--display); font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.equiv li > span:not(.cite) { font-size: 15px; line-height: 1.45; color: var(--text-2); }

/* what it does */

.brief { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.features { list-style: none; margin: 0; padding: 0; }
.features li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; color: var(--text-2); }
.features li:last-child { border-bottom: 1px solid var(--line); }
.features strong { color: var(--text); font-weight: 600; }
.toy { margin: 0; }
.toy figcaption { margin-top: 14px; font-size: 13px; color: var(--text-2); text-align: center; }

/* grouped rows and switches (popover) */

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 8px 12px; font-size: 14px; }
.row + .row { box-shadow: inset 0 1px 0 var(--hair); }
.sw { position: relative; width: 32px; height: 19px; border-radius: 10px; background: var(--fill-2); flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--knob); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.sw.on { background: var(--ember); }
.sw.on::after { left: 15px; }

.popover {
  background: var(--group); border-radius: 12px; border: 1px solid var(--hair); padding: 14px; font-size: 13px; text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -24px rgba(0, 0, 0, 0.28);
}
.pop-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 12px; }
.pop-head img { width: 20px; height: 20px; }
.pop-head strong { font-weight: 600; flex: 1; }
.pop-head span { color: var(--ember-text); font-weight: 500; }
.popover .row { padding: 8px 2px; min-height: 36px; font-size: 13px; }
.pop-btn { display: flex; align-items: center; justify-content: center; height: 30px; margin: 4px 0 8px; border-radius: 7px; background: var(--fill); font-weight: 500; }
.seg { display: inline-flex; background: var(--fill); border-radius: 7px; padding: 2px; }
.seg span { padding: 3px 10px; border-radius: 5px; font-size: 12px; font-weight: 500; }
.seg span.on { background: var(--knob); color: #1d1d1f; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.pop-foot { margin: 6px 2px 0; padding-top: 10px; box-shadow: inset 0 1px 0 var(--hair); color: var(--text-2); font-size: 12px; }

/* closing */

/* ---------- team */

.team { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 44px; padding: 32px; border-radius: 22px; background: var(--panel); }
.seats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 64px); gap: 14px; }
.seats li:nth-child(4) { grid-column: 1 / span 1; margin-left: 39px; }
.seats li:nth-child(5) { margin-left: 39px; }
.seats img { width: 64px; height: 64px; display: block; filter: drop-shadow(0 6px 12px rgba(240, 90, 20, 0.22)); }
.team-copy p { margin: 0 0 12px; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.team-copy .team-price { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.015em; }
.team-copy .team-price span { margin-left: 8px; font-size: 17px; font-weight: 600; color: var(--ember-text); }
.team-copy .button { margin-top: 8px; }
@media (max-width: 640px) { .team { grid-template-columns: 1fr; gap: 24px; padding: 24px; } }

.closing { padding: 144px 0 120px; text-align: center; }
.closing img { width: 64px; height: 64px; display: block; margin: 0 auto 24px; }
.closing h2 { font-size: clamp(32px, 5.6vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.closing .cta { margin-top: 32px; }

/* ---------- footer */

.foot { border-top: 1px solid var(--hair); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 40px; font-size: 13px; color: var(--text-2); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--text); }
.foot .credit a { color: var(--text); }

/* ---------- text pages (about, help, privacy) */

.doc { max-width: calc(640px + 48px); padding-top: 56px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(34px, 6vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 28px; }
.doc h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin: 40px 0 8px; }
.doc h3 { font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 10px; }
.doc p { margin: 0 0 16px; color: var(--text); }
.doc .muted { color: var(--text-2); }
.doc .back { display: inline-block; margin-top: 32px; font-size: 15px; }

/* ---------- responsive */

@media (max-width: 760px) {
  .site { grid-template-columns: 48px 1fr; height: 380px; }
  .side { display: none; }
  .calc, .brief { grid-template-columns: 1fr; }
  .calc { gap: 40px; }
  .equiv ul { grid-template-columns: 1fr; gap: 24px; }
  .brief { gap: 40px; }
  .toy { width: 100%; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .demo { margin-top: 96px; }
  .demo-title { margin-bottom: 28px; }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .bar nav { gap: 16px; }
  .bar nav .hide-sm { display: none; }
  .stage { --fire-h: 140px; --card-w: 150px; --gap: 14px; padding-top: 104px; }
  .bg-card { padding: 11px; border-radius: 12px; }
  .hero .icon { width: 60px; height: 60px; margin-bottom: 20px; }
  .lede { font-size: 18px; }
  .works { margin-top: 36px; }
  .works ul { gap: 22px; }
  .works svg { width: 22px; height: 22px; }
  .rail { gap: 12px; }
  .rail i { width: 20px; height: 20px; }
  .media { height: 104px; }
  .quote p { font-size: 20px; }
  .section { padding-top: 96px; }
  .section header p { font-size: 17px; }
  .facts { margin-top: 40px; }
  .calc { margin-top: 36px; padding: 22px 18px; border-radius: 16px; }
  .result b { font-size: 34px; }
  .closing { padding: 112px 0 96px; }
  .foot .wrap { flex-direction: column-reverse; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .feed, .quote, .button { transition: none; }
  .bg-track { animation: none; transform: translate3d(0, -18%, 0); }
}

/* ---------- playground: the popover's controls are clickable */
[data-toggle], .pop-btn, .seg span { cursor: pointer; -webkit-user-select: none; user-select: none; }
[data-toggle]:hover { background: var(--fill); }
[data-toggle]:focus-visible, .pop-btn:focus-visible, .seg span:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 8px; }
.sw { transition: background-color 0.2s; }
.sw::after { transition: left 0.2s cubic-bezier(0.3, 0.7, 0.3, 1); }
.pop-btn { transition: background-color 0.15s, color 0.15s; }
.pop-btn:hover { background: var(--fill-2); }
.pop-btn.primary { background: var(--ember); color: #fff; }
.pop-btn.disabled { opacity: 0.5; cursor: default; }
.pop-head span.paused { color: #b26a00; font-variant-numeric: tabular-nums; }
.pop-head span.off { color: var(--text-2); }
.pop-foot { font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { .pop-head span.paused { color: #ffb340; } }
