/* Sync-o'-Lantern — minorhiccup.com
   Layout: a dark stage. The only light on the page comes from the pumpkins
   and the flame accents; everything else steps back into the night. */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Surfaces, darkest first */
  --void: #07050a;
  --nocturne: #0f0a14;
  --elevated: #1a1224;

  /* Light */
  --flame: #ff8c1a;
  --amber: #ffb25c;
  --ember: #d9381e;
  --candle: #ffd08a;

  /* Text */
  --ivory: #fff4e8;
  --text: #e8e0e9;
  --muted: #ddc1af;
  --faint: #a48c7b;

  /* Lines and glows */
  --line: rgba(255, 178, 92, 0.15);
  --line-strong: rgba(255, 178, 92, 0.3);
  --amber-wash: rgba(255, 178, 92, 0.08);
  --glow: 0 0 20px rgba(255, 140, 26, 0.35), 0 12px 40px rgba(217, 56, 30, 0.2);

  /* Type */
  --font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  /* Shape and space */
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
  --read: 68ch;
  --section: clamp(64px, 10vw, 128px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--void);
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--candle);
}

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(255, 140, 26, 0.35);
  color: var(--ivory);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--flame);
  color: var(--void);
  font-weight: 700;
}
.skip-link:focus {
  top: 16px;
}

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

/* ---------- Type ---------- */

h1,
h2,
h3 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.375rem, 1.6rem + 3.6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0;
  color: var(--flame);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
}

.flame-text {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(100deg, var(--candle) 0%, var(--amber) 35%, var(--flame) 75%, var(--ember) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-inline-end: 0.06em;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}
.section + .section {
  padding-top: 0;
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.section-head .lead {
  max-width: 38rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(15, 10, 20, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ivory);
  text-decoration: none;
}
.brand:hover {
  color: var(--ivory);
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line), 0 4px 18px rgba(255, 140, 26, 0.25);
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ivory);
  background: var(--amber-wash);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--amber-wash);
  color: var(--ivory);
  cursor: pointer;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 860px) {
  .site-header__bar {
    flex-wrap: wrap;
  }
  .js .nav-toggle {
    display: inline-flex;
  }
  .site-header .btn--small {
    display: none;
  }
  .site-nav {
    order: 3;
    flex-basis: 100%;
    padding-bottom: 12px;
  }
  .site-nav ul {
    flex-wrap: wrap;
  }
  .js .site-nav {
    display: none;
  }
  .js .site-header.is-open .site-nav {
    display: block;
  }
  .js .site-header.is-open .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .js .site-header.is-open .site-nav a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn--flame {
  background: linear-gradient(135deg, var(--flame), var(--amber));
  color: var(--void);
  box-shadow: 0 4px 20px rgba(255, 140, 26, 0.4);
}
.btn--flame:hover {
  color: var(--void);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(255, 140, 26, 0.55);
}
.btn--glass {
  background: var(--amber-wash);
  border-color: var(--line-strong);
  color: var(--ivory);
}
.btn--glass:hover {
  color: var(--ivory);
  border-color: var(--amber);
  box-shadow: inset 0 0 18px rgba(255, 178, 92, 0.12);
}
.btn--small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.875rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber);
  font-weight: 700;
  text-decoration: none;
}
.text-link::after {
  content: "\2192";
  transition: transform 0.15s ease;
}
.text-link:hover::after {
  transform: translateX(3px);
}

/* Store buttons. Official badges can replace these; see site.js. */
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 172px;
  min-height: 56px;
  padding: 8px 22px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #000;
  color: var(--ivory);
  text-decoration: none;
  line-height: 1.15;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
a.store-btn[href]:hover {
  color: var(--ivory);
  border-color: var(--amber);
  box-shadow: 0 0 20px rgba(255, 140, 26, 0.3);
  transform: translateY(-1px);
}
.store-btn__small {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.store-btn__big {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.store-btn.is-soon {
  cursor: default;
  border-style: dashed;
}
.store-btn.is-soon .store-btn__small {
  color: var(--amber);
}
.store-btn--badge {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
}
.store-btn--badge img {
  height: 56px;
  width: auto;
}

.store-note {
  color: var(--faint);
  font-size: 0.875rem;
}

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

.hero {
  position: relative;
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(56px, 8vw, 104px);
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  /* the porch light: a warm bloom that sits behind the stage */
  content: "";
  position: absolute;
  inset: -10% -20% auto;
  height: 720px;
  z-index: -1;
  background:
    radial-gradient(50% 45% at 50% 42%, rgba(255, 140, 26, 0.16), transparent 70%),
    radial-gradient(35% 30% at 50% 48%, rgba(217, 56, 30, 0.14), transparent 70%);
  pointer-events: none;
  animation: candle 7s ease-in-out infinite;
}

@keyframes candle {
  0%, 100% { opacity: 1; }
  18% { opacity: 0.86; }
  22% { opacity: 0.97; }
  47% { opacity: 0.9; }
  71% { opacity: 1; }
  76% { opacity: 0.84; }
  81% { opacity: 0.95; }
}

.stage {
  margin: 0;
}
.stage__screen {
  position: relative;
}
.stage__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 30px 80px -20px rgba(217, 56, 30, 0.45), 0 0 60px -10px rgba(255, 140, 26, 0.25);
}
.stage video,
.stage__frame > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 296;
  object-fit: cover;
  background: #000;
}
.stage__controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}
.stage__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 208, 138, 0.25);
  border-radius: 999px;
  background: rgba(26, 18, 36, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ivory);
  font: 600 0.8125rem/1 var(--font-body);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 208, 138, 0.18);
}
.stage__btn:hover {
  border-color: var(--amber);
}
.stage__btn svg {
  width: 16px;
  height: 16px;
}
.stage__btn[hidden] {
  display: none;
}
.stage figcaption {
  margin-top: 14px;
  color: var(--faint);
  font-size: 0.8125rem;
  text-align: center;
}

.hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(36px, 6vw, 64px);
}
.hero__title {
  display: grid;
  gap: 18px;
}
.hero__pitch {
  display: grid;
  gap: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 178, 92, 0.12);
  color: var(--candle);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 8px var(--flame);
}

@media (max-width: 860px) {
  .hero__intro {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 600px) {
  /* let the stage run edge to edge on phones so the faces stay big */
  .hero .stage {
    margin-inline: calc(-1 * var(--gutter));
  }
  .hero .stage__frame {
    border-radius: 0;
    border-inline: 0;
  }
  .stage__controls {
    position: static;
    justify-content: center;
    margin-top: 12px;
  }
}

/* ---------- Feature cards ---------- */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(15, 10, 20, 0.85);
}
.card::before {
  /* rim light: bright along the top edge, fading out toward the bottom */
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 178, 92, 0.25), rgba(255, 255, 255, 0.03));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px 22px 26px;
}
.feature h3 {
  margin-top: 12px;
}
.feature p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 140, 26, 0.1);
  color: var(--amber);
}
.icon-tile svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .feature {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 18px 18px 20px;
  }
  .feature .icon-tile {
    grid-row: span 2;
  }
  .feature h3 {
    margin-top: 0;
  }
}

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

.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.steps {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 20px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 50% 60%, rgba(255, 140, 26, 0.28), rgba(255, 140, 26, 0.04) 70%);
  color: var(--candle);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(255, 140, 26, 0.18);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  align-self: end;
}
.step p {
  color: var(--muted);
  max-width: 34rem;
}

.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}
.modes div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(15, 10, 20, 0.6);
}
.modes dt {
  color: var(--ivory);
  font-size: 0.875rem;
  font-weight: 700;
}
.modes dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.phone {
  position: relative;
  width: min(300px, 78vw);
  margin: 0 auto;
}
.phone__body {
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a2131, #120d17 60%);
  box-shadow:
    0 0 0 1px rgba(255, 208, 138, 0.18),
    inset 0 1px 0 rgba(255, 208, 138, 0.2),
    0 40px 80px -30px rgba(217, 56, 30, 0.55),
    0 0 70px -20px rgba(255, 140, 26, 0.35);
}
.phone__body img {
  width: 100%;
  height: auto;
  border-radius: 34px;
  aspect-ratio: 720 / 1457;
}
.phone figcaption {
  margin-top: 18px;
  color: var(--faint);
  font-size: 0.8125rem;
  text-align: center;
}

@media (max-width: 860px) {
  .how {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .modes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin-inline: auto;
}
.plan {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
}
.plan__name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ivory);
}
.plan__tag {
  color: var(--muted);
  font-size: 0.9375rem;
}
.plan--full {
  background: linear-gradient(180deg, rgba(255, 140, 26, 0.1), rgba(15, 10, 20, 0.9) 55%);
  box-shadow: var(--glow);
}
.plan--full::before {
  background: linear-gradient(180deg, rgba(255, 178, 92, 0.6), rgba(255, 140, 26, 0.12));
}
.plan .chip {
  margin-bottom: -4px;
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 140, 26, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb25c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}
.ticks li.is-limit::before {
  background: rgba(164, 140, 123, 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a48c7b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}
.plans-note {
  margin-top: 22px;
  color: var(--faint);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 720px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.promise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(255, 140, 26, 0.1), transparent 60%),
    var(--nocturne);
  border: 1px solid var(--line);
}
.promise__text {
  display: grid;
  gap: 16px;
}
.promise__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.promise__list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.promise__list strong {
  display: block;
  color: var(--ivory);
}
.promise__list span {
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 800px) {
  .promise {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Download call ---------- */

.finale {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}
.finale img.finale__icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--glow), 0 0 0 1px var(--line);
}
.finale .lead {
  max-width: 34rem;
}
.finale .store-links {
  justify-content: center;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--nocturne);
  padding-block: 48px 40px;
  color: var(--faint);
  font-size: 0.875rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.site-footer h2 {
  margin-bottom: 12px;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--amber);
  text-decoration: underline;
}
.site-footer__about {
  display: grid;
  align-content: start;
  gap: 12px;
  max-width: 26rem;
}
.site-footer__legal {
  display: grid;
  gap: 6px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .site-footer__about {
    grid-column: 1 / -1;
  }
}

/* ---------- Document pages (privacy, terms, support) ---------- */

.doc-hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 40px);
}
.doc-hero .wrap {
  display: grid;
  gap: 16px;
}
.doc-hero .lead {
  max-width: 40rem;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--faint);
  font-size: 0.875rem;
}

.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-bottom: var(--section);
}
.toc {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 96px);
  font-size: 0.875rem;
}
.toc h2 {
  margin-bottom: 12px;
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}
.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
}
.toc a:hover {
  color: var(--ivory);
  border-left-color: var(--flame);
}

.prose {
  max-width: var(--read);
  min-width: 0;
}
.prose > * + * {
  margin-top: 1em;
}
.prose h2 {
  margin-top: 2.4em;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  scroll-margin-top: 96px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: 1.8em;
  font-size: 1.0625rem;
}
.prose h2 + *,
.prose h3 + * {
  margin-top: 0.7em;
}
.prose p,
.prose li {
  color: var(--text);
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.45em;
}
.prose li::marker {
  color: var(--amber);
}
.prose strong {
  color: var(--ivory);
}
.prose code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--elevated);
  color: var(--candle);
  font-family: var(--font-mono);
  font-size: 0.875em;
}
.prose pre {
  overflow-x: auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--nocturne);
  font-size: 0.875rem;
  line-height: 1.7;
}
.prose pre code {
  padding: 0;
  background: none;
}

.summary-box {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(255, 140, 26, 0.1), transparent 60%),
    var(--nocturne);
}
.summary-box > * + * {
  margin-top: 0.8em;
}
.summary-box h2 {
  margin-top: 0;
  font-size: 1.375rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.prose th,
.prose td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose th {
  color: var(--ivory);
  background: var(--nocturne);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.prose td:first-child {
  color: var(--ivory);
  font-weight: 600;
}

.yes,
.no {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.no {
  background: rgba(255, 178, 92, 0.12);
  color: var(--candle);
  border: 1px solid var(--line-strong);
}
.yes {
  background: rgba(217, 56, 30, 0.16);
  color: #ffb4a6;
  border: 1px solid rgba(217, 56, 30, 0.4);
}

@media (max-width: 900px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
  }
  .toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-left: 0;
  }
  .toc a {
    margin-left: 0;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .toc a:hover {
    border-color: var(--flame);
  }
}

/* ---------- Support page ---------- */

.contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: clamp(20px, 3vw, 28px);
}
.contact-card .icon-tile {
  width: 52px;
  height: 52px;
}
.contact-card .icon-tile svg {
  width: 24px;
  height: 24px;
}
.contact-card__body {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.contact-card__email {
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 600;
  overflow-wrap: anywhere;
  user-select: all;
}
.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 520px) {
  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(15, 10, 20, 0.7);
}
.faq details[open] {
  border-color: var(--line-strong);
  background: var(--nocturne);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--ivory);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--amber);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq__body {
  padding: 0 18px 18px;
}
.faq__body > * + * {
  margin-top: 0.8em;
}
.faq__body p,
.faq__body li {
  color: var(--muted);
}
.prose .faq {
  margin-top: 1.2em;
}

.tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 1.2em 0 0;
  padding: 0;
  list-style: none;
}
.tips li {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(15, 10, 20, 0.7);
}
.tips li + li {
  margin-top: 0;
}
.tips strong {
  color: var(--ivory);
}
.tips span {
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 640px) {
  .tips {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Demo song page ---------- */

.doc--single {
  grid-template-columns: minmax(0, 1fr);
}

.btn--big {
  min-height: 56px;
  padding: 14px 30px;
  font-size: 1.0625rem;
}

.song-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: clamp(20px, 3vw, 32px);
}
.song-card .icon-tile {
  width: 52px;
  height: 52px;
}
.song-card .icon-tile svg {
  width: 24px;
  height: 24px;
}
.song-card__body {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.prose .song-card__body > * {
  margin: 0;
}
.prose .song-card__title {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
}
.prose .song-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: -6px;
  padding: 0;
  list-style: none;
}
.prose .song-card__facts li {
  margin: 0;
  color: var(--faint);
  font-size: 0.875rem;
}
.prose .song-card__facts li + li::before {
  content: "\00b7";
  padding-inline: 10px;
}
.song-card audio {
  display: block;
  width: 100%;
  color-scheme: dark;
}
.song-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.platform {
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(15, 10, 20, 0.7);
}
.prose .platform h3 {
  margin-top: 0;
}
.prose .platform ol {
  margin: 10px 0 0;
}
.prose .platform li {
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 640px) {
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .song-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .song-card .btn {
    width: 100%;
  }
}

/* ---------- 404 ---------- */

.lost {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-block: clamp(64px, 14vw, 160px);
  text-align: center;
}
.lost__code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 3rem + 8vw, 8rem);
  font-weight: 700;
  line-height: 1;
}

/* ---------- Motion ---------- */

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

.nobr {
  white-space: nowrap;
}

.prose .tips {
  padding-left: 0;
}
.prose table.table--narrow {
  min-width: 0;
}
