/* ==========================================================================
   X-Typer — styles.css
   Self-hosted: no CDN, no external fonts.
   Fonts: Fredoka (headings, same as x-shooter.com and safergames.com) and
   Andika (body text, made by SIL for new readers). SIL Open Font License.
   Colours come from the X-Typer logo: navy outline, yellow X, blue ring,
   green circle, and the wooden desk the bunny types on.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/fredoka-600.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/fredoka-700.woff2') format('woff2'); }
@font-face { font-family: 'Andika'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/andika-400.woff2') format('woff2'); }
@font-face { font-family: 'Andika'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/andika-700.woff2') format('woff2'); }

/* --- Colours and type (change the look here) ------------------------------ */
:root {
  --ink:        #14284B;   /* navy: headings, outlines */
  --ink-2:      #3A4A66;   /* body text */
  --blue:       #1C64C8;   /* links, focus */
  --yellow:     #FFC42E;   /* the X: seal, highlights */
  --yellow-2:   #FFF1C4;   /* typed letters */
  --green:      #2E9E48;   /* correct answer */
  --go:         #23803A;   /* "go / free" buttons */
  --go-deep:    #175C28;
  --red:        #D9452B;   /* wrong letter */
  --paper:      #FFFDF7;   /* page */
  --sky:        #E7F2FD;   /* alternate bands */
  --sky-2:      #CFE5FB;   /* top of the hero */
  --wood:       #C2864F;   /* the desk */
  --wood-dark:  #8E5A2E;

  --f-display: 'Fredoka', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --f-body:    'Andika', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --t-h1:   clamp(2.5rem, 1.5rem + 3.4vw, 4.25rem);
  --t-h2:   clamp(2rem, 1.45rem + 2.1vw, 3rem);
  --t-h3:   1.375rem;
  --t-lead: clamp(1.125rem, 1rem + .45vw, 1.3125rem);
  --t-body: 1.125rem;

  --line: 3px solid var(--ink);                       /* the logo's chunky outline */
  --shadow: 0 18px 36px -18px rgba(20, 40, 75, .5);
  --gutter: clamp(16px, 4vw, 32px);
  --desk: 64px;
}

/* --- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; overflow-x: hidden;
  font-family: var(--f-body); font-size: var(--t-body); line-height: 1.6;
  color: var(--ink-2); background: var(--paper);
}
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 1.08; }
h3 { font-size: var(--t-h3); line-height: 1.2; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
b { color: var(--ink); }
.nowrap { white-space: nowrap; }   /* keeps "X-Typer" from breaking at the hyphen */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: clamp(64px, 9vw, 112px) 0; }
.band--sky { background: var(--sky); }
.anchor { display: block; position: relative; top: -84px; }
.head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 52px); }
.head p { margin-top: 14px; font-size: var(--t-lead); line-height: 1.5; }
.head-center { margin-left: auto; margin-right: auto; text-align: center; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--ink); color: #fff; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* --- Buttons: chunky keys with a navy edge -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 11px 22px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.15;
  text-align: center; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--go);
  border: var(--line); border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .1s ease, box-shadow .1s ease, background-color .15s ease;
}
.btn:hover { background: #1c6e31; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn--big { min-height: 56px; padding: 14px 26px; font-size: 1.1875rem; }
.btn--small { min-height: 40px; padding: 7px 16px; font-size: .9375rem; }
.btn--line { color: var(--ink); background: #fff; }
.btn--line:hover { background: var(--yellow-2); }

/* --- Offer bar ------------------------------------------------------------- */
.offer { background: var(--ink); color: #fff; font-size: .9375rem; }
.offer__inner { display: flex; align-items: center; justify-content: center; gap: 6px 18px; flex-wrap: wrap; min-height: 42px; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.offer b { color: var(--yellow); }
.offer__star { color: var(--yellow); }
.offer__link { color: var(--yellow); font-family: var(--f-display); font-weight: 600; white-space: nowrap; }
.offer__link:hover { color: #fff; }
@media (max-width: 560px) {
  .offer { font-size: .875rem; }
  .offer__more { display: none; }
  .offer__inner { flex-wrap: nowrap; justify-content: space-between; text-align: left; }
}

/* --- Header ---------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 247, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 3px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--ink); box-shadow: 0 8px 20px -16px rgba(20, 40, 75, .7); }
.nav__bar { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.nav__logo { flex: 0 0 auto; display: block; border-radius: 8px; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; white-space: nowrap;
  color: var(--ink); text-decoration: none;
}
.nav__links a:hover { background: var(--sky); }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; margin-left: 4px; padding: 10px;
  background: transparent; border: 0; border-radius: 10px; color: var(--ink); cursor: pointer;
}
.nav__toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.nav__toggle .ic-close, .nav.is-open .nav__toggle .ic-menu { display: none; }
.nav.is-open .nav__toggle .ic-close { display: block; }

@media (max-width: 860px) {
  .nav__logo img { height: 38px; }
  .nav__cta { margin-left: auto; }
  .js .nav__toggle { display: block; }
  .js .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px; margin: 0; padding: 8px var(--gutter) 16px;
    background: var(--paper); border-bottom: var(--line);
    box-shadow: 0 16px 24px -18px rgba(20, 40, 75, .6);
  }
  .js .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 12px 10px; font-size: 1.1875rem; }
  html:not(.js) .nav__bar { flex-wrap: wrap; }
  html:not(.js) .nav__links { order: 3; width: 100%; overflow-x: auto; margin: 0 0 8px; }
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(36px, 5vw, 72px);
  background:
    radial-gradient(50% 60% at 78% 40%, rgba(255, 196, 46, .22), rgba(255, 196, 46, 0) 70%),
    linear-gradient(180deg, var(--sky-2) 0%, #EAF4FE 55%, var(--paper) 100%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero__text { padding-bottom: calc(var(--desk) + 28px); }
.hero__title { font-size: var(--t-h1); line-height: 1.03; max-width: 13ch; }
.hero__lead { margin-top: 20px; font-size: var(--t-lead); line-height: 1.5; max-width: 32rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 30px; }
.hero__note { margin-top: 16px; font-size: 1rem; }

/* the wooden desk along the bottom of the hero */
.desk {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--desk); z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .28) 0 3px, transparent 3px 11px, rgba(0, 0, 0, .08) 11px 12px, transparent 12px),
    repeating-linear-gradient(180deg, transparent 0 9px, rgba(110, 62, 24, .10) 9px 10px, transparent 10px 17px, rgba(255, 230, 190, .10) 17px 18px),
    repeating-linear-gradient(90deg, transparent 0 310px, rgba(110, 62, 24, .16) 310px 312px, transparent 312px 520px),
    linear-gradient(180deg, #D49A62 0%, var(--wood) 30%, #A86F3D 100%);
  border-top: 3px solid var(--wood-dark);
  box-shadow: inset 0 -10px 18px -10px rgba(60, 30, 10, .45);
}

/* the scene on the desk: picture card, bunny and seal */
.stage { position: relative; display: flex; justify-content: center; padding-bottom: calc(var(--desk) - 14px); }
.stage__scene { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding-top: 34px; }
.stage__bunny { display: block; flex: 0 0 auto; width: clamp(150px, 15vw, 210px); margin: 0 -18px 4px 0; position: relative; z-index: 1; }
.stage__bunny img { width: 100%; filter: drop-shadow(0 14px 10px rgba(60, 30, 10, .28)); }

/* --- The typing card ------------------------------------------------------- */
.typecard {
  position: relative; z-index: 2; flex: 0 0 auto;
  width: clamp(268px, 26vw, 320px);
  padding: 16px 16px 14px;
  background: #fff; border: var(--line); border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink), 0 24px 30px -12px rgba(60, 30, 10, .45);
  cursor: text; text-align: center;
  transition: box-shadow .15s ease;
}
.typecard.is-focused { box-shadow: 0 6px 0 var(--ink), 0 0 0 5px rgba(28, 100, 200, .35), 0 24px 30px -12px rgba(60, 30, 10, .45); }
.typecard__face { position: relative; border-radius: 14px; overflow: hidden; background: #fff; transition: transform .23s ease, opacity .23s ease; }
.typecard.is-turning .typecard__face { transform: perspective(600px) rotateY(80deg); opacity: .2; }
.typecard__pic { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.typecard__sound {
  position: absolute; right: 6px; bottom: 6px; width: 46px; height: 46px; padding: 9px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--yellow); color: var(--ink);
  border: var(--line); border-radius: 50%;
  box-shadow: 0 3px 0 var(--ink);
}
.typecard__sound:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.typecard__sound svg { width: 24px; height: 24px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.typecard__sound .w { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.typecard__type { display: block; margin-top: 14px; cursor: text; }
.typecard__input {
  position: absolute; left: 50%; bottom: 40px; width: 1px; height: 1px; padding: 0; border: 0;
  opacity: 0; font-size: 16px; caret-color: transparent; background: transparent;
}
.typecard__hint { margin-top: 12px; font-size: .9375rem; line-height: 1.35; color: var(--ink-2); }
.typecard__count { margin-top: 4px; font-family: var(--f-display); font-weight: 600; font-size: .875rem; color: var(--blue); }

.tiles { display: flex; justify-content: center; gap: 7px; min-height: 58px; width: 100%; }
.tile {
  position: relative; display: grid; place-items: center;
  flex: 0 1 44px; min-width: 0; height: 52px; padding-bottom: 4px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.875rem; line-height: 1; color: var(--ink);
  background: #fff; border: 2.5px solid var(--ink); border-radius: 10px;
  box-shadow: 0 4px 0 var(--ink);
}
.tile.is-filled { background: var(--yellow-2); animation: tileIn .14s ease-out; }
.tile.is-current::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 3px; border-radius: 2px;
  background: var(--blue); animation: blink 1s steps(1) infinite;
}
.tile.is-wrong { background: #FDE1DC; border-color: var(--red); color: var(--red); box-shadow: 0 4px 0 var(--red); animation: shake .32s ease; }
.tiles.is-done .tile { background: var(--green); color: #fff; animation: tileWin .45s ease calc(var(--i) * 60ms) both; }
@keyframes tileIn { from { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); } to { transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes tileWin { 0% { transform: none; } 40% { transform: translateY(-9px); } 100% { transform: none; } }

/* the "Free / 2 months" seal stuck on the card */
.seal {
  position: absolute; z-index: 3; left: -52px; top: -34px;
  width: 116px; aspect-ratio: 1 / 1; display: block;
  color: var(--ink); text-decoration: none;
  transform: rotate(-12deg);
  filter: drop-shadow(0 8px 10px rgba(20, 40, 75, .35));
}
.seal__shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seal__shape path { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.seal__shape circle { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 3.5 3.5; opacity: .55; }
.seal__text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 700; line-height: .95; }
.seal__big { font-size: 1.875rem; }
.seal__small { font-size: 1.0625rem; margin-top: 2px; }
.seal:focus-visible { border-radius: 50%; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero__text { padding-bottom: 0; }
  .hero__title { max-width: 14ch; }
}
@media (max-width: 520px) {
  :root { --desk: 52px; }
  .hero__actions .btn { width: 100%; }
  .stage__scene { padding-top: 40px; }
  .stage__bunny { width: 112px; margin: 0 -8px 2px -16px; }
  .typecard { width: 258px; padding: 12px 12px 12px; }
  .tile { height: 48px; font-size: 1.625rem; }
  .seal { width: 92px; left: -22px; top: -30px; }
  .seal__big { font-size: 1.5rem; }
  .seal__small { font-size: .9375rem; }
}
@media (max-width: 380px) {
  .typecard { width: 236px; }
  .stage__bunny { width: 96px; margin: 0 -6px 2px -14px; }
  .typecard .seal { left: -12px; }
}

/* --- Who it's for ---------------------------------------------------------- */
.people__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 48px); }
.people__list h3 { margin: 16px 0 8px; }
.people__icon {
  display: grid; place-items: center; width: 64px; height: 64px;
  background: var(--yellow); color: var(--ink); border: var(--line); border-radius: 18px;
  box-shadow: 0 4px 0 var(--ink);
}
.people__icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .people__list { grid-template-columns: minmax(0, 1fr); max-width: 36rem; } }

/* --- Why it works ---------------------------------------------------------- */
.feats__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(32px, 5vw, 64px); }
.feats__list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; }
.feats__list img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(20, 40, 75, .18)); }
.feats__list h3 { margin: 4px 0 6px; }
.feats__device { display: grid; place-items: center; width: 96px; height: 96px; }
.feats__device svg { width: 78px; height: 78px; fill: #fff; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .feats__list { grid-template-columns: minmax(0, 1fr); }
  .feats__list li { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .feats__list img, .feats__device { width: 72px; height: 72px; }
  .feats__device svg { width: 60px; height: 60px; }
}

/* --- Videos (hidden for now; see index.html) ------------------------------- */
.videos__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.videos__item h3 { margin: 14px 0 4px; }
.yt, .videos__item iframe {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; cursor: pointer;
  background: var(--ink); border: var(--line); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); overflow: hidden;
}
.yt__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 1.75rem; border: var(--line); }
@media (max-width: 760px) { .videos__grid { grid-template-columns: minmax(0, 1fr); } }

/* --- Categories: flash cards ----------------------------------------------- */
.cats__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; perspective: 1200px; }
.fcard {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 10px 10px 14px;
  background: #fff; border: var(--line); border-radius: 18px;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .18s ease;
}
.fcard:hover { transform: translateY(-4px) rotate(-1deg); }
.fcard img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 10px; }
.fcard b { margin-top: 6px; font-family: var(--f-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.15; }
.fcard span { font-size: .875rem; line-height: 1.3; color: var(--ink-2); }
@media (max-width: 1000px) { .cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .fcard { padding: 6px 6px 10px; border-radius: 14px; }
  .fcard b { font-size: 1rem; }
  .fcard span { font-size: .75rem; }
}
@media (max-width: 360px) { .cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* numbers on keys */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.stats__item { display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; text-align: center; }
.stats dt { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.key {
  display: grid; place-items: center; min-width: 96px; height: 84px; padding: 0 16px;
  font-family: var(--f-display); font-weight: 700; font-size: 2.25rem; color: var(--ink);
  background: #fff; border: var(--line); border-radius: 16px;
  box-shadow: 0 6px 0 var(--ink);
}
.stats .key { background: var(--yellow); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- How it works ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: none; }
.steps .key { width: 68px; min-width: 0; height: 64px; padding: 0; font-size: 2rem; margin-bottom: 18px; }
.steps li:nth-child(1) .key { background: var(--yellow); }
.steps li:nth-child(2) .key { background: #BFE3C8; }
.steps li:nth-child(3) .key { background: #CDE2FB; }
.steps li:nth-child(4) .key { background: #FFD9C7; }
.steps h3 { margin-bottom: 6px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* --- Free pass ticket ------------------------------------------------------ */
.ticket {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 220px;
  max-width: 980px; margin: 0 auto;
  background: #fff; border: 4px solid var(--ink); border-radius: 24px;
  box-shadow: 0 8px 0 var(--ink), var(--shadow);
}
.ticket::before, .ticket::after {
  content: ''; position: absolute; right: 199px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--ink);
}
.ticket::before { top: -24px; clip-path: inset(50% 0 0 0); }
.ticket::after { bottom: -24px; clip-path: inset(0 0 50% 0); }
.ticket__main { padding: clamp(24px, 4vw, 42px); }
.ticket__title { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1.08; }
.ticket__lead { margin-top: 12px; font-size: var(--t-lead); line-height: 1.5; max-width: 36rem; }
.ticket__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 20px 0 26px; }
.ticket__list li { position: relative; padding-left: 34px; color: var(--ink); line-height: 1.4; }
.ticket__list li::before {
  content: ''; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.ticket__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.ticket__login { font-size: 1rem; }
.ticket__login a { font-weight: 700; }
.ticket__stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 24px 16px; text-align: center;
  background: var(--yellow); color: var(--ink);
  border-left: 3px dashed rgba(20, 40, 75, .55); border-radius: 0 20px 20px 0;
}
.ticket__admit { font-family: var(--f-display); font-weight: 600; font-size: 1rem; line-height: 1.25; max-width: 160px; text-wrap: balance; }
.ticket__num { display: block; margin-top: 6px; font-family: var(--f-display); font-weight: 700; font-size: clamp(4.5rem, 3rem + 5vw, 6.5rem); line-height: .85; color: var(--ink); }
.ticket__unit { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; }
.ticket__nocard { margin-top: 12px; padding: 5px 14px; border-radius: 999px; background: var(--go); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: .9375rem; }
.free__note { max-width: 44rem; margin: 28px auto 0; text-align: center; color: var(--ink); }
@media (max-width: 720px) {
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket::before, .ticket::after { display: none; }
  .ticket__list { grid-template-columns: minmax(0, 1fr); }
  .ticket__stub { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; padding: 16px 18px; border-left: 0; border-top: 3px dashed rgba(20, 40, 75, .55); border-radius: 0 0 20px 20px; }
  .ticket__admit { max-width: none; width: 100%; }
  .ticket__num { font-size: 3.75rem; margin-top: 0; }
  .ticket__nocard { margin-top: 0; }
  .ticket__cta .btn { width: 100%; }
}

/* --- Footer ---------------------------------------------------------------- */
.foot { background: var(--ink); color: rgba(255, 255, 255, .82); padding: 56px 0 28px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--yellow); text-decoration: underline; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot__brand img { height: 50px; width: auto; }
.foot__brand p { margin-top: 12px; max-width: 22rem; }
.foot__col { display: flex; flex-direction: column; gap: 8px; }
.foot__title { font-family: var(--f-display); font-weight: 700; font-size: 1.1875rem; color: var(--yellow); margin-bottom: 4px; }
.foot__bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: 36px; padding-top: 20px; font-size: .875rem; color: rgba(255, 255, 255, .65);
}
.foot__bottom::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255, 255, 255, .18); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot__grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Scroll animations
   Give an element data-anim="rise | flip | press | stamp | drop" and it
   plays once when it scrolls into view (see the script in index.html).
   Optional: style="--delay:.2s". Without JavaScript nothing is hidden.
   ========================================================================== */
.js [data-anim] { opacity: 0; }
.js [data-anim].is-in { opacity: 1; animation-duration: .7s; animation-delay: var(--delay, 0s); animation-fill-mode: both; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
.js [data-anim="rise"].is-in  { animation-name: xtRise; }
.js [data-anim="flip"].is-in  { animation-name: xtFlip; animation-duration: .65s; }
.js [data-anim="stamp"].is-in { animation-name: xtStamp; animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .9, .3, 1.25); }
.js [data-anim="drop"].is-in  { animation-name: xtDrop; animation-duration: .8s; animation-timing-function: cubic-bezier(.3, .8, .3, 1.2); }
.js [data-anim="press"].is-in { animation-name: xtRise; animation-duration: .5s; }
.js [data-anim="press"].is-in .key { animation: xtPress .5s ease calc(var(--delay, 0s) + .35s) both; }

@keyframes xtRise  { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes xtFlip  { from { opacity: 0; transform: rotateY(-95deg); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes xtDrop  { from { opacity: 0; transform: translateY(-40px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes xtStamp {
  0%   { opacity: 0; transform: scale(1.7) rotate(calc(var(--tilt, 0deg) - 18deg)); }
  60%  { opacity: 1; transform: scale(.93) rotate(var(--tilt, 0deg)); }
  100% { opacity: 1; transform: scale(1) rotate(var(--tilt, 0deg)); }
}
/* a key being pressed down and let go */
@keyframes xtPress { 0%, 100% { transform: none; } 45% { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); } }

/* once an animation has played, it lets go (so hover effects and the seal's tilt work) */
.js [data-anim].is-in.is-done { animation: none; opacity: 1; }
.seal { --tilt: -12deg; }
/* the seal lands on the card just after the card drops onto the desk */
.js .typecard.is-in .seal { animation: xtStamp .55s cubic-bezier(.2, .9, .3, 1.25) .65s both; }

/* --- People who prefer less motion get none of it -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-anim] { opacity: 1; animation: none !important; }
  .js [data-anim] .key, .tile, .tiles.is-done .tile, .tile.is-current::after, .js .typecard .seal { animation: none !important; }
  .typecard__face, .fcard, .btn { transition: none; }
}

@media print {
  .offer, .nav, .seal, .typecard__sound { display: none; }
  .js [data-anim] { opacity: 1; animation: none; }
}
