/* Fianko website. "Toy Board" design system: ink outlines, hard shadows
   straight down, blue leads, yellow rewards, sentence case, no gradients. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url("../fonts/bricolage-500.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("../fonts/bricolage-600.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("../fonts/bricolage-700.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("../fonts/bricolage-800.woff2") format("woff2"); }

:root {
  --ground: #f4f6fb;
  --white: #ffffff;
  --ink: #14172b;
  --ink-soft: #555c78;
  --decor: #e4e8f4;
  --line: #c3cadb;
  --blue: #2747f5;
  --blue-deep: #1830b8;
  --blue-tint: #dce2ff;
  --yellow: #ffc531;
  --yellow-deep: #c98f00;
  --yellow-tint: #fff1c9;
  --tomato: #f0483e;
  --star: #f5a800;
  --success: #0f7a3d;
  --locked: #dde2ee;
  --navy: #1b1f3d;
  --sq-light: #edf0fe;
  --sq-dark: #8f9ff6;
  --sq-hi: #ffd86b;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", "PingFang SC", "Microsoft YaHei", sans-serif;
  --gutter: max(16px, 4.5vw);
  --max: 1140px;
  --radius: 22px;
  --t-xs: 0.875rem;
  --t-s: 1rem;
  --t-m: 1.125rem;
  --t-l: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-xl: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --t-xxl: clamp(2.5rem, 1.6rem + 4.4vw, 4.75rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.i18n-wait body { visibility: hidden; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--t-s);
  line-height: 1.5;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; }
.skip:focus { inset-inline-start: 8px; z-index: 99; background: var(--white); padding: 8px 12px; }

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

/* ---------- Blocks and buttons ---------- */
.block { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: 18px; border: 0;
  font: 800 var(--t-m)/1 var(--font); text-decoration: none; cursor: pointer;
  background: var(--blue); color: var(--white); box-shadow: 0 6px 0 var(--blue-deep);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--blue-deep); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--blue-deep); }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 var(--yellow-deep); }
.btn--yellow:hover { box-shadow: 0 8px 0 var(--yellow-deep); }
.btn--yellow:active { box-shadow: 0 1px 0 var(--yellow-deep); }
.btn--white { background: var(--white); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.btn--white:hover { box-shadow: 0 8px 0 var(--ink); }
.btn--white:active { box-shadow: 0 1px 0 var(--ink); }
.btn--quiet { background: transparent; color: var(--ink-soft); box-shadow: none; padding-inline: 12px; }
.btn--quiet:hover, .btn--quiet:active { box-shadow: none; color: var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }
.play-btn small { display: block; font-size: .72rem; font-weight: 700; opacity: .8; margin-bottom: 3px; }
.play-btn span { text-align: start; line-height: 1.1; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow);
  font-weight: 800; font-size: var(--t-xs); color: var(--ink);
}
.chip--blue { background: var(--blue-tint); }
.label { font-weight: 800; font-size: var(--t-xs); color: var(--blue); letter-spacing: .02em; }
.lead { font-size: var(--t-m); color: var(--ink-soft); max-width: 36rem; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--decor); }
.top__in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.brand img { width: 36px; height: auto; }
.nav { display: none; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 12px; }
.nav a:hover { background: var(--decor); }
.top__end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav + .top__end { margin-inline-start: 8px; }
.lang {
  appearance: none; -webkit-appearance: none; font: 700 var(--t-xs) var(--font); color: var(--ink);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314172b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  border: 2px solid var(--ink); border-radius: 12px; padding: 8px 32px 8px 12px; box-shadow: 0 3px 0 var(--ink); cursor: pointer;
}
[dir="rtl"] .lang { background-position: left 10px center; padding: 8px 12px 8px 32px; }
.top .btn { min-height: 42px; padding: 0 16px; font-size: var(--t-s); box-shadow: 0 4px 0 var(--blue-deep); display: none; }
@media (min-width: 900px) { .nav { display: flex; } .top .btn { display: inline-flex; } .nav + .top__end { margin-inline-start: 8px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 28px 64px; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__text { display: grid; gap: 18px; justify-items: start; position: relative; z-index: 2; }
.hero h1 { font-size: var(--t-xxl); }
.hero h1 .hl { color: var(--blue); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 10px; align-items: center; padding-top: 6px; }
.hero__note { font-size: var(--t-xs); color: var(--ink-soft); display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note span::before { content: "✓"; color: var(--success); font-weight: 800; margin-inline-end: 6px; }
.stage {
  position: relative; height: clamp(440px, 118vw, 640px); perspective: 1400px;
  display: grid; place-items: center; touch-action: pan-y;
}
.stage__tilt { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .25s ease-out; }
.phone {
  --w: clamp(220px, 58vw, 300px);
  position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 780 / 1688;
  margin-left: calc(var(--w) / -2); margin-top: calc(var(--w) * -1.082);
  border-radius: calc(var(--w) * .14); background: var(--ink); padding: calc(var(--w) * .035);
  box-shadow: 0 14px 0 #0b0d1a;
}
.how .phone { transform-style: preserve-3d; }
.phone__screen { width: 100%; height: 100%; border-radius: calc(var(--w) * .11); overflow: hidden; background: var(--ground); position: relative; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__notch { position: absolute; top: calc(var(--w) * .055); left: 50%; width: 26%; height: calc(var(--w) * .05); margin-left: -13%; border-radius: 99px; background: var(--ink); z-index: 2; }
.hero .phone { transform: rotateY(-18deg) rotateX(8deg) rotateZ(3deg); }

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.badge-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--white); border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 0 5px 0 var(--ink); font-weight: 800; white-space: nowrap; font-size: var(--t-s);
  animation: bob 6s ease-in-out infinite;
}
.badge-float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 2px solid var(--ink); flex: none; }
.badge-float small { display: block; font-size: .75rem; color: var(--ink-soft); font-weight: 700; }

@media (min-width: 900px) {
  .hero { padding-block: 40px 96px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 24px; }
  .stage { height: 640px; }
}

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fact { padding: 18px 16px 16px; display: grid; gap: 2px; align-content: start; }
.fact b { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact span { color: var(--ink-soft); font-weight: 700; font-size: var(--t-s); line-height: 1.25; }
.fact:nth-child(1) { background: var(--yellow); }
.fact:nth-child(2) { background: var(--blue); color: var(--white); }
.fact:nth-child(2) span { color: var(--blue-tint); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section__head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 44rem; }
.section__head h2 { font-size: var(--t-xl); }
.section--blue { background: var(--blue); color: var(--white); }
.section--blue .lead { color: var(--blue-tint); }
.section--blue .label { color: var(--yellow); }

/* scrollytelling */
.scrolly { position: relative; }
.scrolly__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }

/* How it works */
.how { height: 520vh; }
.how__grid { display: grid; grid-template-rows: auto 1fr; gap: 12px; height: 100%; padding-block: 76px 18px; }
.how__text { display: grid; gap: 10px; align-content: start; min-height: 0; }
.how__text h2 { font-size: var(--t-xl); }
.how__steps { position: relative; min-height: 8.5rem; }
.how__step { position: absolute; inset: 0 0 auto 0; display: grid; gap: 6px; opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .35s; pointer-events: none; }
.how__step.on { opacity: 1; transform: none; pointer-events: auto; }
.how__step h3 { font-size: var(--t-l); display: flex; gap: 10px; align-items: center; }
.how__step h3 .n { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--yellow); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 1rem; box-shadow: 0 3px 0 var(--ink); }
.how__step p { color: var(--ink-soft); }
.how__dots { display: flex; gap: 8px; }
.how__dots i { width: 28px; height: 8px; border-radius: 99px; background: var(--decor); transition: background .3s, width .3s; }
.how__dots i.on { background: var(--blue); width: 44px; }
.how__stage { position: relative; perspective: 1200px; display: grid; place-items: center; min-height: 0; }
.how .phone { --w: min(56vw, 33svh, 300px); position: relative; left: auto; top: auto; margin: 0; transition: transform .7s cubic-bezier(.3,1.4,.5,1); }
.how .phone__face { position: absolute; inset: calc(var(--w) * .035); backface-visibility: hidden; border-radius: calc(var(--w) * .11); overflow: hidden; background: var(--ground); }
.how .phone__face img { width: 100%; height: 100%; object-fit: cover; }
.how .phone__face--back { transform: rotateY(180deg); }
.how__tile { position: absolute; z-index: -1; width: calc(min(56vw, 33svh, 300px) * 1.15); aspect-ratio: 1; border-radius: 30%; background: var(--yellow); border: 3px solid var(--ink); box-shadow: 0 10px 0 var(--ink); transform: rotate(-8deg); transition: background .5s, transform .7s; }
@media (min-width: 900px) {
  .how__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; align-items: center; padding-block: 64px; }
  .how__steps { min-height: 10rem; }
  .how .phone { --w: min(300px, 30vw, 34vh); }
  .how__tile { width: min(360px, 36vw, 40vh); }
}
@media (max-height: 640px) and (max-width: 899px) { .how__text h2 { display: none; } }

/* London board */
.london { height: 560vh; background: var(--navy); color: var(--white); }
.london__grid { display: grid; grid-template-rows: auto 1fr auto; height: 100%; padding-block: 72px 22px; gap: 8px; }
.london__head { display: grid; gap: 8px; }
.london__head h2 { font-size: var(--t-xl); }
.london__head .label { color: var(--yellow); }
.board-stage { perspective: 1100px; display: grid; place-items: center; min-height: 0; }
.board {
  --size: min(74vw, 44svh, 520px); --sq: calc(var(--size) / 8); --rx: 50deg; --rz: -14deg;
  position: relative; width: var(--size); height: var(--size); transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateZ(var(--rz)); direction: ltr;
}
.board__top { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); border: 4px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--sq-light); transform: translateZ(0); }
.sq { background: var(--sq-light); transition: background .3s; }
.sq.d { background: var(--sq-dark); }
.sq.hi { background: var(--sq-hi); }
.sq.d.hi { background: #ffc531; }
.board__side { position: absolute; background: var(--blue); border: 4px solid var(--ink); }
.board__side--s { left: 0; right: 0; bottom: 0; height: 26px; transform-origin: bottom; transform: rotateX(-90deg); border-radius: 0 0 10px 10px; background: var(--blue-deep); }
.board__side--n { left: 0; right: 0; top: 0; height: 26px; transform-origin: top; transform: rotateX(90deg); }
.board__side--e { top: 0; bottom: 0; right: 0; width: 26px; transform-origin: right; transform: rotateY(-90deg); background: var(--blue); }
.board__side--w { top: 0; bottom: 0; left: 0; width: 26px; transform-origin: left; transform: rotateY(90deg); background: var(--blue); }
.board__shadow { position: absolute; inset: 0; background: #0b0d1a; border-radius: 12px; transform: translateZ(-28px) translate(0, 0); opacity: .9; }
.pc { position: absolute; left: 0; top: 0; width: var(--sq); height: var(--sq); transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3,1.3,.5,1); }
.pc__lift { position: absolute; inset: 0; transform-style: preserve-3d; }
.pc.jump .pc__lift { animation: hop .55s ease; }
@keyframes hop { 45% { transform: translateZ(calc(var(--sq) * .7)); } }
/* a round toy base: four discs stacked */
.pc__shadow { position: absolute; inset: 14% 10% 6% 18%; border-radius: 50%; background: rgba(20,23,43,.32); filter: blur(2px); }
.pc__disc { position: absolute; inset: 16%; border-radius: 50%; border: 2px solid var(--ink); background: #c9d1ee; }
.pc__disc:nth-child(2) { transform: translateZ(2px); }
.pc__disc:nth-child(3) { transform: translateZ(4px); }
.pc__disc:nth-child(4) { transform: translateZ(6px); background: var(--white); }
.pc--b .pc__disc { background: #0b0d1a; }
.pc--b .pc__disc:nth-child(4) { background: #3a3f63; }
/* the piece stands up on its base, with some thickness */
.pc__up { position: absolute; left: 2%; right: 2%; bottom: 50%; height: 118%; transform-origin: 50% 100%; transform: translateZ(6px) rotateX(-90deg); transform-style: preserve-3d; }
.pc__up img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.pc__up img.e { filter: brightness(0) invert(.08); }
.pc__up img.e:nth-child(1) { transform: translateZ(-4px); }
.pc__up img.e:nth-child(2) { transform: translateZ(-3px); }
.pc__up img.e:nth-child(3) { transform: translateZ(-2px); }
.pc__up img.e:nth-child(4) { transform: translateZ(-1px); }
.pc__up img.f { filter: drop-shadow(1.2px 0 0 #14172b) drop-shadow(-1.2px 0 0 #14172b) drop-shadow(0 1.2px 0 #14172b) drop-shadow(0 -1.2px 0 #14172b); }
.pc.gone { transform: scale(0) !important; transition: transform .3s; }
.london__caption { display: grid; gap: 10px; justify-items: start; }
.moves { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; max-width: 100%; direction: ltr; mask-image: linear-gradient(90deg, transparent, #000 12px); }
.move { flex: none; padding: 5px 10px; border-radius: 10px; border: 2px solid var(--line); color: var(--white); font-weight: 800; font-size: var(--t-xs); white-space: nowrap; opacity: .45; transition: all .3s; }
.move.on { opacity: 1; background: var(--blue); border-color: var(--blue); }
.move.done { opacity: .8; }
.say { background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 #000; padding: 12px 16px; max-width: 34rem; display: grid; gap: 2px; }
.say b { color: var(--blue); font-size: var(--t-xs); }
.say p { font-weight: 700; font-size: var(--t-m); line-height: 1.3; }
@media (min-width: 900px) {
  .london__grid { grid-template-columns: 1fr 1.25fr; grid-template-rows: auto auto; grid-template-areas: "head board" "cap board"; align-content: center; padding-block: 64px; gap: 28px 40px; }
  .london__head { grid-area: head; align-self: end; }
  .london__caption { grid-area: cap; align-self: start; }
  .board-stage { grid-area: board; }
  .board { --size: min(520px, 46vw, 64vh); }
}

/* Courses */
.courses__group { margin-top: 40px; }
.courses__group h3 { font-size: var(--t-l); margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.courses__group h3 img { width: 30px; height: 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.course {
  display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--white);
  border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink);
  transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .2s; will-change: transform;
}
.course img { width: 52px; height: 57px; flex: none; transform: translateZ(24px); }
.course div { min-width: 0; display: grid; gap: 2px; }
.course b { font-weight: 800; font-size: var(--t-m); line-height: 1.15; }
.course span { color: var(--ink-soft); font-size: var(--t-xs); line-height: 1.3; }

/* Habit */
.habit__grid { display: grid; gap: 40px; align-items: center; }
.moods { position: relative; height: clamp(360px, 92vw, 460px); perspective: 1200px; }
.mood {
  --i: 0; position: absolute; left: 50%; top: 50%; width: clamp(150px, 42vw, 200px); aspect-ratio: 1;
  margin: calc(clamp(150px, 42vw, 200px) / -2) 0 0 calc(clamp(150px, 42vw, 200px) / -2);
  transform-style: preserve-3d; will-change: transform;
}
.mood img { width: 100%; height: 100%; border-radius: 26%; box-shadow: 0 8px 0 rgba(20,23,43,.9); }
.mood figcaption { color: var(--ink); position: absolute; left: 50%; bottom: -14px; translate: -50% 0; white-space: nowrap; background: var(--white); border: 2px solid var(--ink); border-radius: 99px; padding: 3px 10px; font-weight: 800; font-size: .8rem; box-shadow: 0 3px 0 var(--ink); }
.habit__list { display: grid; gap: 14px; margin-top: 8px; }
.habit__item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.habit__item .ic { width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--ink); display: grid; place-items: center; flex: none; box-shadow: 0 3px 0 var(--ink); }
.habit__item .ic svg { width: 22px; height: 22px; }
.habit__item b { display: block; font-size: var(--t-m); }
.habit__item p { color: var(--ink-soft); font-size: var(--t-s); }
@media (min-width: 900px) { .habit__grid { grid-template-columns: 1fr 1fr; } .moods { height: 520px; } }

/* Review + privacy split */
.split { display: grid; gap: 28px; align-items: center; }
.split__media { display: grid; place-items: center; perspective: 1200px; }
.split__media .phone { position: relative; left: auto; top: auto; margin: 0; --w: min(260px, 64vw); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--flip .split__media { order: 2; } }

.promise { padding: clamp(24px, 4vw, 48px); background: var(--yellow); display: grid; gap: 20px; }
.promise h2 { font-size: var(--t-xl); }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.promise li { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: var(--t-m); }
.promise li::before { content: ""; width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--ink); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7a3d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.promise p { color: var(--ink); max-width: 38rem; }
.promise__grid { display: grid; gap: 24px; align-items: center; }
.promise__art { display: grid; place-items: center; }
.promise__art img { width: min(220px, 60vw); border-radius: 26%; box-shadow: 0 8px 0 var(--ink); transform: rotate(4deg); }
@media (min-width: 900px) { .promise__grid { grid-template-columns: 1.4fr 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 52rem; }
.faq details { background: var(--white); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 800; font-size: var(--t-m); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--blue-tint); display: grid; place-items: center; font-size: 1.3rem; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq details > div { padding: 0 18px 18px; color: var(--ink-soft); }

/* Final CTA */
.final { position: relative; text-align: center; overflow: hidden; }
.final__in { display: grid; gap: 22px; justify-items: center; position: relative; }
.final h2 { font-size: var(--t-xxl); max-width: 14ch; }
.final__knight { width: 120px; filter: drop-shadow(0 8px 0 var(--ink)); animation: bob 4s ease-in-out infinite; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ink); }

/* Footer */
.foot { padding-block: 48px 32px; border-top: 2px solid var(--decor); }
.foot__grid { display: grid; gap: 28px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot__links a { color: var(--ink); font-weight: 700; text-decoration: none; }
.foot__links a:hover { color: var(--blue); }
.foot small { color: var(--ink-soft); display: block; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1fr auto; align-items: start; } }

/* Legal pages */
.doc { padding-block: 40px 88px; }
.doc__head { display: grid; gap: 14px; margin-bottom: 32px; max-width: 46rem; }
.doc__head h1 { font-size: var(--t-xl); }
.doc__body { display: grid; gap: 16px; max-width: 46rem; }
.doc__card { padding: 22px 22px 20px; display: grid; gap: 8px; }
.doc__card h2 { font-size: var(--t-l); }
.doc__card p, .doc__card li { color: var(--ink-soft); }
.doc__card ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; }
.doc__note { font-size: var(--t-xs); color: var(--ink-soft); }
.doc__sub { font-size: var(--t-l); margin-top: 24px; }
.mail { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mail code { font: 800 var(--t-m) var(--font); background: var(--blue-tint); padding: 8px 12px; border-radius: 12px; word-break: break-all; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px) rotateX(10deg); transition: opacity .7s ease, transform .7s cubic-bezier(.2,1,.3,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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