/* Zippy Hills — un sol full d'estil, cap script propi.
 *
 * La idea: la pàgina és el PAISATGE del joc. El fons és un cel blau amb núvols
 * (gradient a `html`); sota el hero hi ha turons verds en ones, els de davant
 * amb les franges de la icona, i una carretera de COLORS (vorades vermelles,
 * grogues, verdes i blaves) per on passa un cotxet vermell rodanxó amb ulls,
 * com el del joc (quiet amb «reduir moviment»). Els panells són crema amb
 * relleu blau cel; cada punt porta un llum del semàfor de sortida (vermell,
 * groc, verd: «3, 2, 1… ja!»). El nom del hero va amb els colors del logo
 * (taronja, verd llima i contorn granat). En fosc, el mateix paisatge de nit:
 * cel blau marí amb estels, turons foscos i el cotxet amb els fars encesos.
 * Títols en Fredoka, la lletra del joc (subconjunt llatí, OFL 1.1); el cos, la
 * pila arrodonida del sistema.
 */

@font-face {
  font-family: 'Fredoka';
  src: url('/assets/fonts/fredoka-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* el cel, de dalt a baix, i els núvols */
  --sky-1: #7fc4f7;
  --sky-2: #b6defb;
  --sky-3: #e3f3ff;
  --cloud: rgba(255, 255, 255, 0.9);

  /* els turons: els del fons, els de davant i les seves franges */
  --hill-far: #a6d98a;
  --hill-near: #4cad3f;
  --hill-stripe: rgba(255, 255, 255, 0.13);

  /* la carretera: asfalt, línia del mig i les vorades de colors */
  --asphalt: #59607a;
  --asphalt-edge: #454b62;
  --lane: #fff1c2;
  --kerb-1: #e8402f;
  --kerb-2: #ffc93c;
  --kerb-3: #4cb82a;
  --kerb-4: #2f7be0;

  /* panells crema amb relleu de cel */
  --panel: #fffdf7;
  --panel-2: #f1f7fd;
  --edge: #d3e3f1;
  --relief: #a8c7e2;

  /* tinta i botons */
  --ink: #1e2a44;
  --ink-soft: #3e4a66;
  --title: #15315f;
  --title-relief: #a8c7e2;
  --blue: #2f7be0;
  --blue-deep: #1d56a8;
  --green-deep: #23773c;
  --green-shadow: #17522a;
  --red: #e8402f;
  --yellow: #ffc93c;
  --yellow-deep: #d99a12;
  --green: #3fb34f;

  /* el nom, amb els colors del logo del joc */
  --logo-zippy: #ffb21e;
  --logo-hills: #8cd435;
  --logo-edge: #5a1730;

  /* el semàfor de sortida dels punts */
  --lamp-case: #2b3142;

  --link: #1557b0;
  --radius: 22px;
  --shadow: 0 18px 40px -24px rgba(21, 49, 95, 0.45);
  --display: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --body: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky-1: #0e1a3c;
    --sky-2: #172a5a;
    --sky-3: #1d3266;
    --cloud: rgba(190, 210, 255, 0.07);

    --hill-far: #25425c;
    --hill-near: #1f5537;
    --hill-stripe: rgba(255, 255, 255, 0.05);

    --asphalt: #262c3e;
    --asphalt-edge: #1a1f2e;
    --lane: #d9c98f;
    --kerb-1: #c9392b;
    --kerb-2: #d9a92e;
    --kerb-3: #3e9824;
    --kerb-4: #2a68bf;

    --panel: #1a2650;
    --panel-2: #223061;
    --edge: #2d3e78;
    --relief: #080f28;

    --ink: #eef3ff;
    --ink-soft: #bcc7e2;
    --title: #fff6df;
    --title-relief: #0a1230;
    --blue: #5b9bf0;
    --blue-deep: #2f5fa8;
    --green-deep: #2c8a45;
    --green-shadow: #17522a;
    --red: #ff6656;
    --yellow: #ffd257;
    --yellow-deep: #b98712;
    --green: #56c96a;

    --lamp-case: #0b1023;

    --link: #9cc8ff;
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  }
}

/* Japonès, coreà i xinès: la Fredoka (subconjunt llatí) no porta aquests
 * glifs. Cap font web nova: la del sistema de cada llengua, com el joc
 * (Hiragino, Apple SD Gothic Neo, PingFang), i Noto CJK a Android i Linux.
 * El nom «Zippy Hills» i les xifres segueixen en Fredoka. */
html:lang(ja) {
  --display: 'Fredoka', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Noto Sans CJK JP', 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif;
  --body: ui-rounded, 'SF Pro Rounded', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif;
}
html:lang(ko) {
  --display: 'Fredoka', 'Apple SD Gothic Neo', 'Noto Sans CJK KR', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --body: ui-rounded, 'SF Pro Rounded', 'Apple SD Gothic Neo', 'Noto Sans CJK KR', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
html:lang(zh-Hans) {
  --display: 'Fredoka', 'PingFang SC', 'Noto Sans CJK SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --body: ui-rounded, 'SF Pro Rounded', 'PingFang SC', 'Noto Sans CJK SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}
html:lang(zh-Hant) {
  --display: 'Fredoka', 'PingFang TC', 'Noto Sans CJK TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --body: ui-rounded, 'SF Pro Rounded', 'PingFang TC', 'Noto Sans CJK TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
}
html:is(:lang(ja), :lang(ko), :lang(zh)) :is(.h1, .h2, .h3, .wordmark, .foot-brand, .qa-q, .button, figcaption, .soon) {
  letter-spacing: normal;
}
html:is(:lang(ja), :lang(zh)) body {
  line-break: strict;
}
/* Talla per frases on el navegador ho sap fer (Chrome); Safari ho ignora. */
html:lang(ja) body {
  word-break: auto-phrase;
}
/* Les taules d'etiqueta i valor (特定商取引法): que l'etiqueta no quedi d'un caràcter per línia en mòbil. */
html:is(:lang(ja), :lang(ko), :lang(zh)) .prose :is(td, th):first-child {
  min-width: 6.5em;
}
html:is(:lang(ja), :lang(zh)) .prose td {
  overflow-wrap: anywhere;
}
html:lang(ko) body {
  word-break: keep-all;
}

/* ------------------------------------------------------------------ base */

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

html {
  /* El cel del joc: blau intens a dalt que s'aclareix cap avall, amb núvols
   * arrodonits (dues el·lipses cadascun) a la part de dalt. */
  background-color: var(--sky-3);
  background-image:
    radial-gradient(ellipse 120px 30px at 12% 150px, var(--cloud) 62%, transparent 64%),
    radial-gradient(ellipse 64px 30px at 15% 132px, var(--cloud) 62%, transparent 64%),
    radial-gradient(ellipse 150px 36px at 86% 330px, var(--cloud) 62%, transparent 64%),
    radial-gradient(ellipse 78px 34px at 83% 308px, var(--cloud) 62%, transparent 64%),
    radial-gradient(ellipse 100px 26px at 58% 64px, var(--cloud) 62%, transparent 64%),
    linear-gradient(180deg, var(--sky-1) 0, var(--sky-2) 560px, var(--sky-3) 1200px);
  background-repeat: no-repeat;
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  /* De nit: estels petits escampats i una lluna, i els núvols gairebé no es veuen. */
  html {
    background-image:
      radial-gradient(circle 2px at 8% 60px, #fff 60%, transparent 70%),
      radial-gradient(circle 1.5px at 22% 210px, #fff 60%, transparent 70%),
      radial-gradient(circle 2px at 37% 120px, #fff 60%, transparent 70%),
      radial-gradient(circle 1.5px at 52% 300px, #fff 60%, transparent 70%),
      radial-gradient(circle 2px at 66% 90px, #fff 60%, transparent 70%),
      radial-gradient(circle 1.5px at 74% 240px, #fff 60%, transparent 70%),
      radial-gradient(circle 2px at 93% 170px, #fff 60%, transparent 70%),
      radial-gradient(circle 1.5px at 30% 420px, #fff 60%, transparent 70%),
      radial-gradient(circle 26px at 88% 70px, #f6efcf 92%, transparent 100%),
      radial-gradient(circle 70px at 88% 70px, rgba(246, 239, 207, 0.12), transparent 100%),
      radial-gradient(ellipse 150px 36px at 86% 330px, var(--cloud) 62%, transparent 64%),
      linear-gradient(180deg, var(--sky-1) 0, var(--sky-2) 560px, var(--sky-3) 1200px);
  }
}

body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.shell-narrow {
  width: min(760px, 100% - 32px);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--panel);
  color: var(--ink);
  border-radius: 12px;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------- tipografia */

.h1,
.h2,
.h3,
.wordmark,
.foot-brand,
.qa-q,
.button,
figcaption,
.soon {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.005em;
}

.h1 {
  margin: 0;
  font-size: clamp(3.1rem, 9vw, 5.8rem);
  line-height: 0.95;
  color: var(--title);
  text-shadow: 0 5px 0 var(--title-relief);
}

/* El nom del hero, com el logo del joc: «Zippy» taronja, «Hills» verd llima,
 * tots dos amb un contorn granat gruixut i el relleu a sota. */
.h1-logo {
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-shadow:
    -3px -3px 0 var(--logo-edge),
    3px -3px 0 var(--logo-edge),
    -3px 3px 0 var(--logo-edge),
    3px 3px 0 var(--logo-edge),
    0 -3px 0 var(--logo-edge),
    0 3px 0 var(--logo-edge),
    -3px 0 0 var(--logo-edge),
    3px 0 0 var(--logo-edge),
    0 8px 0 var(--logo-edge);
}

.h1-logo .zippy {
  color: var(--logo-zippy);
}

.h1-logo .hills {
  color: var(--logo-hills);
}

.h1-small {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
}

.h2 {
  margin: 0 0 24px;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.1;
  color: var(--title);
}

.h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.copy,
.lead {
  margin: 0 0 12px;
}

.lead {
  font-size: 1.2rem;
}

.fine {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------ capçalera */

.top {
  padding: 14px 0 0;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  color: var(--title);
  text-decoration: none;
}

.wordmark img {
  border-radius: 8px;
  box-shadow: 0 2px 0 var(--relief);
}

.sections {
  margin-left: auto;
}

.sections ul {
  display: flex;
  margin: 0;
  padding: 4px;
  list-style: none;
  gap: 2px;
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--relief);
}

.sections a {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.sections a:hover {
  background: var(--panel-2);
  color: var(--ink);
}

.langs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.langs a,
.langs .here {
  padding: 4px 6px;
  border-radius: 8px;
}

.langs a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}

.langs a:hover {
  opacity: 1;
  text-decoration: underline;
}

.langs .here {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--relief);
}

/* El selector de la capçalera: tretze llengües plegades en un <details>, sense JS. */
.lang-menu {
  position: relative;
}

.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--relief);
  cursor: pointer;
  list-style: none;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

/* Un globus petit dibuixat amb vores, sense imatge ni font d'icones. */
.lang-menu summary::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  box-shadow: inset 4px 0 0 -2px currentColor, inset -4px 0 0 -2px currentColor;
}

.lang-menu summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin: -3px 0 0 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.lang-menu[open] summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 5;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel);
  border: 3px solid var(--edge);
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--relief), var(--shadow);
}

.lang-menu li a,
.lang-menu li .here {
  display: block;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.lang-menu li a:hover {
  background: var(--panel-2);
}

.lang-menu li .here {
  background: var(--panel-2);
  box-shadow: inset 4px 0 0 var(--red);
}

.langs .sep {
  opacity: 0.5;
}

@media (max-width: 899px) {
  .sections {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .sections ul {
    justify-content: space-between;
  }

  .sections li {
    flex: 1;
    text-align: center;
  }

  .sections a {
    padding: 7px 4px;
    font-size: 0.88rem;
  }

  .lang-menu {
    margin-left: auto;
  }
}

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

.hero {
  position: relative;
  padding: 40px 0 0;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding-bottom: 28px;
}

/* La icona amb un sol de posta al darrere, com a la mateixa icona. */
.hero-stop {
  position: relative;
  display: grid;
  place-items: center;
  width: 240px;
  aspect-ratio: 1;
}

.hero-stop::before {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 90, 0.6) 0 34%, rgba(255, 214, 90, 0.2) 54%, transparent 70%);
}

@media (prefers-color-scheme: dark) {
  /* De nit, una claror de lluna. */
  .hero-stop::before {
    background: radial-gradient(circle, rgba(200, 215, 255, 0.2) 0 32%, rgba(200, 215, 255, 0.07) 52%, transparent 70%);
  }
}

.hero-icon {
  position: relative;
  width: 168px;
  border-radius: 38px;
  box-shadow: 0 6px 0 var(--relief), var(--shadow);
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.tagline {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  width: 156px;
  height: 52px;
}

.badge-still {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.soon {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: #2a2410;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 var(--yellow-deep);
}

.note {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .hero {
    padding-top: 56px;
  }

  .hero-grid {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    gap: 56px;
    padding-inline: 24px;
  }

  .hero-copy {
    justify-items: start;
  }

  .hero-stop {
    width: 300px;
  }

  .hero-icon {
    width: 240px;
    border-radius: 54px;
  }
}

/* --------------------------------------------- els turons i la carretera */

/* De punta a punta, sota el hero: turons del fons (verd clar, en ones grans),
 * turons de davant (verd viu, amb les franges de la icona) i la carretera de
 * colors, tot de CSS (cap imatge). Hi passa el cotxet (`.car`, un SVG). */
.scenery {
  position: relative;
  height: 172px;
  overflow: hidden;
}

.scenery::before,
.scenery::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 50px;
}

.scenery::before {
  height: 124px;
  background:
    radial-gradient(ellipse 50% 100% at 50% 100%, var(--hill-far) 98%, transparent 100%) -90px 100% / 380px 116px repeat-x,
    radial-gradient(ellipse 50% 100% at 50% 100%, var(--hill-far) 98%, transparent 100%) 60px 100% / 280px 78px repeat-x;
}

.scenery::after {
  height: 84px;
  background:
    repeating-linear-gradient(118deg, var(--hill-stripe) 0 24px, transparent 24px 48px),
    var(--hill-near);
  -webkit-mask:
    radial-gradient(ellipse 50% 100% at 50% 100%, #000 98%, transparent 100%) 120px 100% / 460px 84px repeat-x,
    linear-gradient(#000, #000) 0 100% / 100% 18px no-repeat;
  mask:
    radial-gradient(ellipse 50% 100% at 50% 100%, #000 98%, transparent 100%) 120px 100% / 460px 84px repeat-x,
    linear-gradient(#000, #000) 0 100% / 100% 18px no-repeat;
}

/* La carretera: vorada de colors a dalt, asfalt amb la línia del mig a traços
 * i una vora més fosca a baix. */
.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 52px;
  background:
    repeating-linear-gradient(90deg, var(--kerb-1) 0 28px, var(--kerb-2) 28px 56px, var(--kerb-3) 56px 84px, var(--kerb-4) 84px 112px) 0 0 / 100% 8px no-repeat,
    linear-gradient(90deg, var(--lane) 0 30px, transparent 30px 60px) 0 29px / 60px 4px repeat-x,
    linear-gradient(var(--asphalt-edge), var(--asphalt-edge)) 0 100% / 100% 5px no-repeat,
    linear-gradient(var(--asphalt), var(--asphalt)) 0 8px / 100% 44px no-repeat;
}

/* El cotxet: creua d'esquerra a dreta, fa un botet i les rodes giren. */
.car {
  position: absolute;
  left: 0;
  bottom: 12px;
  z-index: 2;
  width: 132px;
  animation: drive 13s linear infinite;
  will-change: transform;
}

.car .car-body {
  animation: bob 0.45s ease-in-out infinite alternate;
}

.car .wheel {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 0.55s linear infinite;
}

/* Els fars, només de nit. */
.car .beam {
  opacity: 0;
}

@media (prefers-color-scheme: dark) {
  .car .beam {
    opacity: 0.55;
  }
}

@keyframes drive {
  from {
    transform: translateX(-170px);
  }
  to {
    transform: translateX(calc(100vw + 30px));
  }
}

@keyframes bob {
  to {
    transform: translateY(-2px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----------------------------------------------------------------- bandes */

.band {
  padding: 56px 0;
  scroll-margin-top: 12px;
}

.band-first {
  padding-top: 40px;
}

.panel {
  background: var(--panel);
  border: 3px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--relief), var(--shadow);
}

/* ---------------------------------------------------------------- captures */

.shots {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shot figure {
  margin: 0;
  padding: 8px 8px 0;
  background: var(--panel);
  border: 3px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--relief), var(--shadow);
}

.shot img {
  width: 100%;
  border-radius: 14px;
}

.shot figcaption {
  padding: 10px 8px 12px;
  font-size: 1.1rem;
  color: var(--ink);
}

@media (min-width: 720px) {
  .shots {
    grid-template-columns: 1fr 1fr;
  }

  .shot:first-child {
    grid-column: 1 / -1;
  }

  .shot:first-child figure {
    padding: 12px 12px 0;
  }

  .shot:first-child figcaption {
    font-size: 1.3rem;
  }
}

/* ------------------------------------------------------------------ punts */

.points {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.point {
  position: relative;
  padding: 24px 24px 20px;
}

/* Cada punt porta un llum del semàfor de sortida: vermell, groc, verd. */
.point .h3 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.point .h3::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.75) 0 16%, transparent 19%),
    var(--red);
  box-shadow: 0 0 0 4px var(--lamp-case), 0 4px 0 4px rgba(0, 0, 0, 0.18);
}

.point:nth-child(2) .h3::before {
  background-color: var(--yellow);
  background-image: radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.75) 0 16%, transparent 19%);
}

.point:nth-child(3) .h3::before {
  background-color: var(--green);
  background-image: radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.75) 0 16%, transparent 19%);
}

@media (prefers-color-scheme: dark) {
  /* De nit els llums brillen. */
  .point .h3::before {
    box-shadow: 0 0 0 4px var(--lamp-case), 0 0 18px 4px rgba(255, 102, 86, 0.45);
  }

  .point:nth-child(2) .h3::before {
    box-shadow: 0 0 0 4px var(--lamp-case), 0 0 18px 4px rgba(255, 210, 87, 0.4);
  }

  .point:nth-child(3) .h3::before {
    box-shadow: 0 0 0 4px var(--lamp-case), 0 0 18px 4px rgba(86, 201, 106, 0.4);
  }
}

.point .copy {
  margin: 0;
}

@media (min-width: 900px) {
  .points {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------------------------------------------------- preguntes */

.qas {
  padding: 6px 24px;
}

.qa + .qa {
  border-top: 2px dashed var(--edge);
}

.qa-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
}

.qa-q::-webkit-details-marker {
  display: none;
}

.qa-q::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  box-shadow: 0 3px 0 var(--blue-deep);
  transition: transform 0.2s ease;
}

.qa[open] .qa-q::after {
  transform: rotate(45deg);
}

.qa-a {
  margin: 0 0 18px;
  max-width: 68ch;
  color: var(--ink-soft);
}

@media (prefers-color-scheme: dark) {
  .qa-q::after {
    color: #0d1730;
  }
}

/* ----------------------------------------------------------------- suport */

.split {
  display: grid;
  gap: 28px;
  padding: 28px 24px;
}

.split .h2 {
  color: var(--ink);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    padding: 40px;
  }
}

.form {
  margin: 0;
}

.field {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
}

.field label {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--panel-2);
  border: 2px solid var(--edge);
  border-radius: 14px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}

.hp {
  position: absolute;
  left: -9999px;
}

/* El botó verd, el de «Ja!». */
.button {
  justify-self: start;
  padding: 12px 30px;
  font-size: 1.15rem;
  color: #fff;
  background: var(--green-deep);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--green-shadow);
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.08);
}

.button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--green-shadow);
}

/* ------------------------------------------------------- legals i gràcies */

.prose {
  padding: 32px 24px;
  overflow-wrap: break-word;
}

/* Els compostos alemanys i neerlandesos («Datenschutzerklärung») no caben sencers
 * al mòbil; la resta de llengües no es parteix (ni «Zippy» ni els títols). */
html:is(:lang(de), :lang(nl)) .prose :is(p, li, td) {
  hyphens: auto;
}

@media (min-width: 720px) {
  .prose {
    padding: 44px 48px;
  }
}

.prose .h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--ink);
  text-shadow: none;
  line-height: 1.1;
}

.prose h2 {
  margin: 32px 0 10px;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.25;
}

.prose p,
.prose li {
  max-width: 72ch;
}

.prose ul {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 4px;
}

.prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

/* Una taula ampla (els destinataris, la de transferències de la privacitat coreana)
 * es desplaça dins el panell en comptes d'eixamplar la pàgina. */
.prose .table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

/* Quatre columnes no caben en un mòbil: la taula guarda una amplada llegible i llisca. */
.prose .table-scroll table:has(th:nth-child(4)) {
  min-width: 34rem;
}

.prose table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.prose th,
.prose td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 2px solid var(--edge);
}

.thanks {
  padding: 36px 28px;
  text-align: center;
}

.thanks-icon {
  margin: 0 auto 16px;
  border-radius: 22px;
  box-shadow: 0 4px 0 var(--relief);
}

.thanks .h1 {
  color: var(--ink);
  text-shadow: none;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------- peu */

/* El peu és la carretera al final del paisatge: asfalt amb la vorada de colors. */
.foot {
  position: relative;
  margin-top: 24px;
  padding: 56px 0 40px;
  color: #eef1f7;
  background: #343a4f;
}

.foot::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--kerb-1) 0 28px, var(--kerb-2) 28px 56px, var(--kerb-3) 56px 84px, var(--kerb-4) 84px 112px);
}

@media (prefers-color-scheme: dark) {
  .foot {
    background: #0a1022;
  }
}

.foot a {
  color: inherit;
}

.foot-grid {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.foot-brand {
  margin: 0;
  font-size: 1.5rem;
}

.foot .langs {
  flex-wrap: wrap;
}

.foot .langs .here {
  background: #eef1f7;
  color: #26303f;
  box-shadow: none;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-fine,
.foot-mail {
  margin: 0;
  font-size: 0.92rem;
}

.foot-fine {
  opacity: 0.85;
}

/* ------------------------------------------------------------ moviment */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* El cotxet s'atura a la carretera. */
  .car,
  .car .car-body,
  .car .wheel {
    animation: none;
  }

  .car {
    transform: translateX(12vw);
  }

  .qa-q::after {
    transition: none;
  }
}
