/* Destie — destie.dev. The app's own colours: system greys, its warm orange, and the rating
   colours (Again, Hard, Good, Easy). No web fonts: the system's rounded face, like the app. */

:root {
  --accent: #ff5a1f;
  --accent-deep: #e5450d;
  --accent-ink: #c43a08;
  --accent-soft: #fff0e8;
  --glow: #ffe6d9;
  --bg: #fffaf6;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --ink: #0b0b0c;
  --ink-2: #57575c;
  --ink-3: #8e8e93;
  --line: #ece7e3;
  --again: #ff3b30;
  --hard: #ff9500;
  --good: #007aff;
  --easy: #34c759;
  --shadow: 0 1px 2px rgb(60 20 0 / 6%), 0 12px 32px -12px rgb(122 30 0 / 18%);
  --shadow-lg: 0 30px 80px -30px rgb(122 30 0 / 45%);
  --radius: 26px;
  --radius-s: 16px;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff6a33;
    --accent-deep: #ff7d4d;
    --accent-ink: #ff8a5c;
    --accent-soft: #2b150c;
    --glow: #2b150c;
    --bg: #0d0b0a;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --ink: #ffffff;
    --ink-2: #b4b4b9;
    --ink-3: #8e8e93;
    --line: #2c2c2e;
    --again: #ff453a;
    --hard: #ff9f0a;
    --good: #0a84ff;
    --easy: #30d158;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px -12px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--round); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— Bar ——— */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.bar.is-scrolled { border-color: var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 900 26px/1 var(--round);
  letter-spacing: -0.03em;
  color: var(--accent);
  text-decoration: none;
}
.wordmark img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgb(122 30 0 / 25%); }

.bar nav { display: flex; gap: 4px; margin-left: auto; }
.bar nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}
.bar nav a:hover { color: var(--ink); background: var(--surface-2); }

@media (max-width: 760px) {
  .bar nav { display: none; }
  .bar .wrap { justify-content: space-between; }
}

/* ——— Buttons ——— */

.badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  transition: transform .15s ease;
}
.badge:hover { transform: translateY(-2px); }
.badge img { width: auto; height: 54px; }
.badge.small img { height: 40px; }

.button-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: rgb(255 255 255 / 16%);
  border: 1px solid rgb(255 255 255 / 35%);
  transition: background .15s;
}
.button-ghost:hover { background: rgb(255 255 255 / 26%); }

.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font: 700 12px/1.6 var(--text);
  letter-spacing: .02em;
  background: rgb(255 255 255 / 22%);
  color: #fff;
}

/* ——— A phone, drawn around a screenshot (the App Store shots' phone, in proportion) ——— */

.device { container-type: inline-size; }
.device-frame {
  position: relative;
  padding: 2.45cqw;
  border-radius: 14.9cqw;
  background: #111113;
  box-shadow: inset 0 0 0 .55cqw #6e6e73, 0 30px 60px -24px rgb(122 30 0 / 50%), 0 10px 20px -10px rgb(0 0 0 / 30%);
}
.device-frame img { width: 100%; border-radius: 12.4cqw; }
.device-frame::after {
  content: "";
  position: absolute;
  top: 5cqw;
  left: 50%;
  width: 27.2cqw;
  height: 8.1cqw;
  translate: -50% 0;
  border-radius: 99px;
  background: #000;
}

/* ——— Hero ——— */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 85% -10%, #ff9a6b 0%, transparent 60%),
    radial-gradient(900px 700px at 0% 110%, #ffb08a 0%, transparent 55%),
    linear-gradient(160deg, #ff7a45 0%, #ff5a1f 45%, #f24c12 100%);
  border-radius: 0 0 44px 44px;
  margin-top: -64px;
  padding-top: 64px;
}
@media (prefers-color-scheme: dark) {
  .hero {
    background:
      radial-gradient(1200px 600px at 85% -10%, #ff7a45 0%, transparent 60%),
      radial-gradient(900px 700px at 0% 110%, #a8340c 0%, transparent 55%),
      linear-gradient(160deg, #e5521a 0%, #c9400e 50%, #7a2306 100%);
  }
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  min-height: min(860px, 100svh);
  padding-block: 56px 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 13px/1 var(--round);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 18%);
  border: 1px solid rgb(255 255 255 / 28%);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(44px, 5.6vw, 78px);
  font-weight: 900;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgb(122 30 0 / 25%);
}
.hero .lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: rgb(255 255 255 / 92%);
  text-wrap: pretty;
}
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.hero .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-size: 15px;
  color: rgb(255 255 255 / 88%);
}
.hero .facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero .facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .8; }

.stage { position: relative; justify-self: center; width: min(380px, 100%); }
.stage .phone { animation: float 7s ease-in-out infinite; }
.stage .destie {
  position: absolute;
  width: 40%;
  left: -16%;
  bottom: 4%;
  animation: hop 3.6s ease-in-out infinite;
  transform-origin: 50% 100%;
}

.flying {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.flying .card {
  position: absolute;
  width: 132px;
  aspect-ratio: 230 / 300;
  border-radius: 18px;
  background: #fff;
  color: #1c1c1e;
  display: grid;
  place-items: center;
  padding: 12px 10px;
  text-align: center;
  font: 600 14px/1.2 var(--text);
  hyphens: auto;
  overflow-wrap: break-word;
  box-shadow: 0 20px 40px -14px rgb(122 30 0 / 45%);
  rotate: var(--tilt, 0deg);
  animation: drift 9s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.flying .card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
}
.flying .card.colored { color: #fff; background: var(--fill); }
.flying .card.colored::before { background: rgb(255 255 255 / 70%); }
.flying .card.blur { filter: blur(3px); opacity: .55; }
.sparkle {
  position: absolute;
  width: 22px;
  height: 22px;
  color: #fff;
  opacity: .85;
  animation: twinkle 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes hop { 0%, 70%, 100% { transform: translateY(0) scale(1); } 78% { transform: translateY(0) scale(1.06, .94); } 86% { transform: translateY(-16px) scale(.97, 1.04); } }
@keyframes drift { 50% { transform: translate(0, -14px); } }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.7) rotate(20deg); } }

@media (max-width: 900px) {
  .flying .wide-only { display: none; }
  .flying .card { width: 96px; font-size: 13px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-block: 40px 56px; gap: 48px; }
  .hero .lede { margin-inline: auto; }
  .hero .actions, .hero .facts { justify-content: center; }
  .stage { width: min(340px, 82%); }
}

/* ——— Sections ——— */

section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker {
  display: inline-block;
  font: 800 13px/1 var(--round);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 900; text-wrap: balance; }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 19px; text-wrap: pretty; }

/* ——— Try it ——— */

.try { background: linear-gradient(var(--bg), var(--glow) 55%, var(--bg)); }
.try-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 56px; max-width: 880px; margin-inline: auto; }

.deck { position: relative; width: min(400px, 100%); margin-inline: auto; }
.deck-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-weight: 700; color: var(--ink-2); font-size: 15px; }
.deck-top .list { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.deck-top .list::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--accent)); }
.progress { height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 26px; }
.progress span { display: block; height: 100%; width: 25%; border-radius: inherit; background: var(--accent); transition: width .4s ease; }

.pile { position: relative; aspect-ratio: 1 / 1.25; perspective: 1400px; }
.pile .under {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: .9;
}
.pile .under:nth-child(1) { transform: translate(-6px, 12px) rotate(-3.2deg) scale(.97); opacity: .7; }
.pile .under:nth-child(2) { transform: translate(7px, 20px) rotate(2.8deg) scale(.94); opacity: .5; }

.flashcard {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.3, 1.35, .5, 1), opacity .3s ease;
  font: inherit;
  color: inherit;
}
.flashcard.is-flipped { transform: rotateY(180deg); }
.flashcard:disabled { cursor: default; }
.flashcard.leaving { transition: transform .45s cubic-bezier(.5, 0, .75, 0), opacity .45s; opacity: 0; }
.flashcard.leaving.to-left { transform: rotateY(180deg) translateX(120%) rotate(-12deg); }
.flashcard.leaving.to-right { transform: rotateY(180deg) translateX(-120%) rotate(12deg); }
.flashcard.arriving { transition: none; transform: translateY(24px) scale(.96); opacity: 0; }

.face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-align: center;
}
.face.back { transform: rotateY(180deg); }
.face .label { position: absolute; top: 22px; left: 26px; text-align: left; font-weight: 700; font-size: 15px; color: var(--accent); }
.face .label small { display: block; font-weight: 500; color: var(--ink-3); }
.face .words { font-size: clamp(26px, 3.4vw, 34px); font-weight: 500; line-height: 1.2; text-wrap: balance; }
.face .hint { position: absolute; bottom: 20px; left: 0; right: 0; font-size: 14px; font-weight: 600; color: var(--ink-3); }

.ratings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 30px; min-height: 64px; }
.ratings button {
  border: 0;
  border-radius: 14px;
  padding: 10px 4px;
  font: 700 16px/1.2 var(--text);
  cursor: pointer;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  transition: transform .12s ease, background .12s;
  opacity: 0;
  translate: 0 8px;
  pointer-events: none;
}
.ratings button small { display: block; font-weight: 600; font-size: 13px; opacity: .8; margin-top: 2px; }
.ratings button:hover { background: color-mix(in srgb, var(--c) 24%, transparent); }
.ratings button:active { transform: scale(.96); }
.ratings.is-shown button { opacity: 1; translate: 0 0; pointer-events: auto; transition: opacity .25s, translate .25s, transform .12s; }
.ratings.is-shown button:nth-child(2) { transition-delay: .03s; }
.ratings.is-shown button:nth-child(3) { transition-delay: .06s; }
.ratings.is-shown button:nth-child(4) { transition-delay: .09s; }
.ratings .again { --c: var(--again); }
.ratings .hard { --c: var(--hard); }
.ratings .good { --c: var(--good); }
.ratings .easy { --c: var(--easy); }

.coach { width: 220px; text-align: center; }
.coach img { width: 200px; margin-inline: auto; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.coach img.bounce { transform: translateY(-14px) scale(1.04); }
.bubble {
  position: relative;
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  min-height: 76px;
  display: grid;
  place-items: center;
}
.bubble::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: var(--surface);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 3px;
}
.restart {
  margin-top: 14px;
  border: 0;
  background: none;
  color: var(--accent-ink);
  font: 700 15px/1 var(--text);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 760px) {
  .try-grid { grid-template-columns: 1fr; gap: 28px; }
  .coach { order: -1; width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; max-width: 400px; margin-inline: auto; }
  .coach img { width: 92px; flex: none; margin: 0; }
  .bubble { flex: 1; margin: 0; min-height: 0; place-items: start; }
  .bubble::before { top: 50%; left: -7px; transform: translateY(-50%) rotate(45deg); }
  .coach { flex-wrap: wrap; }
  .coach .restart { width: 100%; margin-top: 0; }
}

/* ——— Features ——— */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  padding: 30px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; }
.tile h3 { font-size: 24px; font-weight: 800; }
.tile p { color: var(--ink-2); text-wrap: pretty; }
.tile .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.tile .icon svg { width: 24px; height: 24px; }
.tile .art { margin-top: auto; padding-top: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 9px 14px;
  border-radius: 14px;
  font: 700 15px/1.15 var(--text);
  color: var(--c, var(--ink));
  background: color-mix(in srgb, var(--c, var(--ink-3)) 14%, transparent);
}
.chip small { font-weight: 600; font-size: 12px; opacity: .85; }

.ring {
  --p: 36;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin-inline: auto;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(closest-side, var(--surface) 78%, transparent 79%),
    conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0);
  font: 900 30px/1 var(--round);
}
.ring small { display: block; margin-top: 2px; font: 700 13px/1.3 var(--text); color: var(--ink-3); }

.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; font-weight: 700; font-size: 13px; color: var(--ink-3); }
.streak span::after {
  content: "";
  display: block;
  margin: 8px auto 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
}
.streak span.today::after { background: none; border: 3px solid var(--accent); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 20px var(--accent); }
.streak-count { font: 900 34px/1 var(--round); display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.streak-count small { font: 600 15px/1 var(--text); color: var(--ink-3); }

.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.widget { border-radius: 22%; box-shadow: var(--shadow); }

.clock { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.clock span {
  padding: 10px 0;
  border-radius: 12px;
  text-align: center;
  font: 800 15px/1 var(--round);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.clock-night { margin-top: 10px; display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-weight: 600; font-size: 14px; }

.tile.private { background: #111113; color: #fff; box-shadow: none; }
.tile.private p { color: #c7c7cc; }
.tile.private .icon { background: rgb(255 106 51 / 18%); }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; font-weight: 600; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--easy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.wide { grid-column: span 1; }
  .tile.full { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.full { grid-column: span 1; padding: 24px; }
}

/* ——— Screens ——— */

.screens { overflow: hidden; }
.reel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px max(16px, calc((100vw - var(--wrap)) / 2)) 30px;
  scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }
.reel figure { flex: none; width: clamp(220px, 26vw, 300px); margin: 0; scroll-snap-align: center; text-align: center; }
.reel figure:nth-child(odd) .device { rotate: -1.5deg; }
.reel figure:nth-child(even) .device { rotate: 1.5deg; translate: 0 24px; }
.reel .device { padding: 18px 14px 34px; }
.reel figcaption { margin-top: 6px; font-weight: 700; color: var(--ink-2); }
.reel figure:nth-child(even) figcaption { margin-top: 30px; }

/* ——— Steps ——— */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  padding: 30px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font: 900 22px/1 var(--round);
  rotate: -6deg;
}
.steps h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.steps p { color: var(--ink-2); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ——— Privacy band ——— */

.band {
  position: relative;
  overflow: hidden;
  border-radius: 44px;
  padding: clamp(40px, 7vw, 88px);
  background: radial-gradient(700px 400px at 100% 0%, rgb(255 90 31 / 35%), transparent 60%), #111113;
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: center;
}
.band h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 900; text-wrap: balance; }
.band p { margin-top: 18px; color: #c7c7cc; font-size: 19px; max-width: 32em; }
.band .ticks { margin-top: 26px; }
.band a { color: #ff8a5c; font-weight: 700; }
.band img { width: min(260px, 100%); justify-self: center; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; } .band img { width: 160px; order: -1; } }

/* ——— FAQ ——— */

.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 60px 22px 26px;
  font: 800 19px/1.3 var(--round);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a1f' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: rotate .2s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 26px 24px; color: var(--ink-2); }
.faq details > div p + p { margin-top: 10px; }

/* ——— Closing ——— */

.closing { text-align: center; }
.closing img { width: 180px; margin: 0 auto 10px; animation: hop 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
.closing h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; text-wrap: balance; }
.closing p { margin: 16px auto 30px; color: var(--ink-2); font-size: 19px; max-width: 30em; }

/* ——— Footer ——— */

footer { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--ink-3); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
footer a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--accent-ink); }
footer .wordmark { font-size: 22px; }

/* ——— Legal and support pages ——— */

.page-head {
  color: #fff;
  background: linear-gradient(160deg, #ff7a45 0%, #ff5a1f 50%, #f24c12 100%);
  border-radius: 0 0 40px 40px;
  margin-top: -64px;
  padding: 120px 0 56px;
}
.page-head h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 900; }
.page-head p { margin-top: 12px; color: rgb(255 255 255 / 88%); font-size: 18px; }

.prose { max-width: 720px; margin-inline: auto; padding-block: 56px 96px; }
.prose h2 { font-size: 26px; font-weight: 800; margin: 44px 0 12px; }
.prose h3 { font-size: 19px; font-weight: 800; margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose .summary {
  margin-bottom: 36px;
  padding: 24px 28px;
  border-radius: 22px;
  background: var(--accent-soft);
  color: var(--ink);
}
.prose .summary p { color: var(--ink); margin: 0; }
.prose .summary ul { margin: 10px 0 0; color: var(--ink); }

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  margin-bottom: 40px;
}
.contact-card img { width: 96px; }
.contact-card div { flex: 1; min-width: 220px; }
.contact-card h2 { margin: 0 0 6px; font-size: 24px; }
.contact-card p { margin: 0; }
.mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.mail:hover { background: var(--accent-deep); }

/* ——— Reveal on scroll ——— */

.reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; translate: 0 0; }

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