/* Skigator website. One stylesheet for every page, mobile first. */

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0d1b2c;
  --text: #33404e;
  --muted: #5d6b7b;
  --line: #e2e9f1;
  --line-strong: #cbd7e4;
  --bg: #ffffff;
  --surface: #f4f8fc;
  --page: #f2f7fd;
  --page-deep: #e7f0fb;
  --sky: #e6f1fd;
  --brand: #0a62c9;
  --brand-strong: #084c9c;
  --brand-soft: #e4effc;
  --ok: #17643d;
  --ok-bg: #e7f5ec;
  --error: #ad2017;
  --error-bg: #fdecea;
  --radius: 14px;
  --container: 1140px;
  --gutter: 20px;
  --header-h: 64px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

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

a:hover {
  color: var(--brand-strong);
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid #78aef0;
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 780px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.icon--sm {
  width: 1.1em;
  height: 1.1em;
}

.icon--xs {
  width: 0.95em;
  height: 0.95em;
}

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

/* Contour lines, like a topographic map, faintly behind a section. */
.topo {
  position: relative;
  isolation: isolate;
}

.topo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/img/topo.svg") 0 0 / 900px 900px repeat;
  opacity: 0.7;
  pointer-events: none;
}

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

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled,
.page--legal .site-header,
.page--contact .site-header,
.page--error .site-header {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand);
}

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

.lang-menu__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

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

.lang-menu__button:hover,
.lang-menu[open] .lang-menu__button {
  border-color: #9fbbdc;
}

.lang-menu[open] .lang-menu__button .icon--xs {
  transform: rotate(180deg);
}

.lang-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px -14px rgba(13, 27, 44, 0.28);
}

.lang-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
}

.lang-menu__list a:hover {
  background: var(--surface);
  color: var(--ink);
}

.lang-menu__list a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
  .lang-menu {
    margin-left: 12px;
  }
}

/* ── Buttons and store badges ───────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  font: 600 1rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.button--primary {
  background: var(--brand);
  color: #fff;
}

.button--primary:hover {
  background: var(--brand-strong);
  color: #fff;
}

.button:active {
  transform: translateY(1px);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* The official badges, unmodified, at the same height (both stores ask for
   that), with clear space around them. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.store-badges--center {
  justify-content: center;
}

.store-badge {
  display: block;
  border-radius: 9px;
  line-height: 0;
  transition: transform 0.15s ease;
}

.store-badge img {
  display: block;
  width: auto;
  height: 50px;
}

a.store-badge:hover {
  transform: translateY(-1px);
}

.store-badge--soon {
  cursor: default;
}

/* ── Phone frame ────────────────────────────────────────────────────────── */

/* Image widths inside these frames are mirrored in SHOT_SIZES in pages.mjs. */
.phone {
  position: relative;
  width: min(290px, 70vw);
  margin: 0;
  padding: 9px;
  border-radius: 46px;
  background: #121821;
  box-shadow:
    0 44px 80px -36px rgba(8, 40, 86, 0.55),
    0 20px 36px -22px rgba(8, 40, 86, 0.4),
    inset 0 0 0 1.5px #2a3442;
}

.phone::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #05070a;
  box-shadow: 0 0 0 2px #1a212c;
}

.phone img {
  width: 100%;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  border-radius: 37px;
  background: #dfe9f4;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 36px 0 0;
  background: linear-gradient(180deg, #dcebfc 0%, var(--sky) 45%, var(--page) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/img/topo.svg") 120px -80px / 900px 900px repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 8px 14px;
  border: 1px solid #c3d8f1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 6px 18px -12px rgba(10, 98, 201, 0.5);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.eyebrow:hover {
  border-color: #8fb6e6;
  background: #fff;
  color: var(--brand-strong);
}

.eyebrow__chevron {
  margin-left: -2px;
}

.hero__title {
  font-size: clamp(2.35rem, 8.6vw, 4rem);
  letter-spacing: -0.025em;
}

.hero__lead {
  max-width: 34em;
  margin-bottom: 28px;
  font-size: clamp(1.06rem, 2.4vw, 1.25rem);
}

.hero__note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 56px;
}

.hero__mountains {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 190px;
}

/* The silhouettes end in the page colour below the hero. */
.hero__mountains path:last-child {
  fill: var(--page);
}

.phone--hero {
  width: min(300px, 74vw);
}

@media (min-width: 920px) {
  .hero {
    padding-top: 64px;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
  }
  .hero__visual {
    padding-bottom: 96px;
  }
  .hero__mountains {
    height: 240px;
  }
  .phone--hero {
    width: 340px;
  }
}

.credit {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.credit--hero {
  position: relative;
  z-index: 1;
}

.features .credit {
  margin-top: 36px;
  text-align: center;
}

/* ── Facts ──────────────────────────────────────────────────────────────── */

/* The home page runs on the light blue; white sections set their own. */
.page--home {
  background: var(--page);
}

/* A white card resting on the edge of the hero. */
.facts {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  background: transparent;
}

.facts__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px 16px;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin: 0 auto;
  padding: 22px 20px;
  list-style: none;
  border: 1px solid #dbe7f4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 50px -34px rgba(10, 60, 130, 0.45);
}

.facts__list > li {
  display: flex;
}

.fact {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.fact--link {
  margin: -8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid #c3d8f1;
  border-radius: 16px;
  background: var(--brand-soft);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.fact--link:hover {
  border-color: #8fb6e6;
  background: #d8e8fb;
  color: var(--ink);
  transform: translateY(-1px);
}

.fact--link .fact__icon {
  background: #fff;
}

.fact__label,
.fact__hint {
  display: block;
}

.fact__hint {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
}

.fact__icon {
  width: 40px;
  height: 40px;
  flex: none;
  padding: 9px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

/* Phones: the ski areas link reads as a button across the card. */
@media (max-width: 639px) {
  .facts__list > li:first-child {
    margin-bottom: 4px;
  }
  .fact--link {
    flex: 1;
    margin: 0;
  }
  .fact--link > span {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
}

@media (min-width: 640px) {
  .facts__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }
}

@media (min-width: 920px) {
  .facts {
    margin-top: -52px;
  }
  .facts__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 26px 28px;
  }
  .facts__list > li {
    justify-content: center;
  }
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
  padding: 72px 0;
}

.section__head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section__head h2 {
  font-size: clamp(1.8rem, 5.2vw, 2.6rem);
}

.section__head p {
  margin: 0;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
}

/* A smaller aside right under a heading, e.g. "(More ski areas …)". */
.section__head .section__note {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 920px) {
  .section {
    padding: 104px 0;
  }
  .section__head {
    margin-bottom: 64px;
  }
}

/* ── Features ───────────────────────────────────────────────────────────── */

.features {
  background: var(--page);
}

.feature {
  display: grid;
  gap: 36px;
  align-items: center;
}

.feature + .feature {
  margin-top: 72px;
}

.feature__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature__title {
  font-size: clamp(1.55rem, 4.4vw, 2.2rem);
}

.feature__text {
  max-width: 32em;
  margin: 0;
  font-size: 1.06rem;
}

.feature__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 34px 0;
}

.feature__visual::before {
  content: "";
  position: absolute;
  inset: 0 4%;
  z-index: -1;
  border: 1px solid #d3e3f5;
  border-radius: 40px;
  background:
    radial-gradient(circle at 30% 18%, #ffffff 0, rgba(255, 255, 255, 0) 58%),
    linear-gradient(160deg, #d9e9fb 0%, #e8f1fc 55%, #f6f9fe 100%);
}

.features .container {
  position: relative;
  z-index: 0;
}

@media (min-width: 920px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
  }
  .feature + .feature {
    margin-top: 96px;
  }
  .feature__copy {
    justify-self: end;
    max-width: 30em;
  }
  .feature--flip .feature__copy {
    order: 2;
    justify-self: start;
  }
  .feature__visual {
    padding: 52px 0;
  }
  .feature .phone {
    width: 300px;
  }
}

/* ── Ski areas ──────────────────────────────────────────────────────────── */

.ski-areas {
  background: #fff;
}

.area-filter {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 28px;
}

.area-filter[hidden] {
  display: none;
}

.area-filter__search {
  position: relative;
  display: block;
}

.area-filter__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  color: var(--muted);
  pointer-events: none;
}

.area-filter__search input {
  width: 100%;
  min-height: 54px;
  padding: 12px 18px 12px 50px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--page);
  color: var(--ink);
  font: 400 1.02rem/1.4 var(--font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.area-filter__search input::placeholder {
  color: #7d8a99;
}

.area-filter__search input:focus {
  border-color: var(--brand);
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 98, 201, 0.14);
}

.area-filter__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 0.9rem/1 var(--font);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: #8fb6e6;
}

.chip[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.area-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area {
  padding: 16px 18px;
  border: 1px solid #dde8f4;
  border-radius: 16px;
  background: linear-gradient(160deg, #f6faff 0%, #eef5fd 100%);
}

.area[hidden] {
  display: none;
}

.area__name {
  margin: 0 0 2px;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.area__countries {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
}

.area__places {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.area__more {
  color: var(--brand);
  font-weight: 600;
}

.area-empty {
  margin: 8px 0 0;
  color: var(--muted);
  text-align: center;
}

/* Phones: the country chips scroll sideways in one row. */
@media (max-width: 639px) {
  .area-filter__chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 0 calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .area-filter__chips::-webkit-scrollbar {
    display: none;
  }
  .chip {
    flex: none;
  }
}

@media (min-width: 640px) {
  .area-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .area-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

/* ── Pricing ────────────────────────────────────────────────────────────── */

.pricing {
  background: linear-gradient(180deg, var(--page) 0%, var(--page-deep) 100%);
}

.pricing__promise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 28px auto 0;
  padding: 12px 20px;
  border: 1px solid #c3d8f1;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

.pricing__promise-icon {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--brand);
}

.pricing__cards {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.price-card--free {
  border: 2px solid var(--brand);
  box-shadow: 0 24px 50px -32px rgba(10, 98, 201, 0.45);
}

.price-card h3 {
  margin-bottom: 4px;
  font-size: 1.6rem;
}

.price-card__tagline {
  margin: 0 0 20px;
  color: var(--muted);
}

.price-card__note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

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

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
}

.checklist__icon {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  stroke-width: 3;
}

@media (min-width: 720px) {
  .pricing__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .price-card {
    padding: 36px 34px;
  }
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq {
  background: #fff;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.faq__item summary:hover {
  color: var(--brand);
}

.faq__chevron {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 2px 22px;
}

.faq__answer p {
  max-width: 40em;
  margin: 0;
}

/* ── Call to action ─────────────────────────────────────────────────────── */

.cta {
  padding-top: 0;
  background: #fff;
}

.cta__box {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 48px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0) 45%),
    linear-gradient(140deg, #0a62c9 0%, #0b4f9f 100%);
  color: #e6f0fc;
  text-align: center;
}

/* The contour tile is drawn in brand blue; inverted, it shows as light lines. */
.cta__box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/img/topo.svg") -200px -300px / 900px 900px repeat;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  pointer-events: none;
}

.cta__box h2 {
  color: #fff;
  font-size: clamp(1.7rem, 4.8vw, 2.4rem);
}

.cta__box p {
  margin: 0 auto 28px;
  max-width: 34em;
  font-size: 1.08rem;
}

@media (min-width: 920px) {
  .cta__box {
    padding: 72px 48px;
  }
}

/* ── Inner pages ────────────────────────────────────────────────────────── */

.page-head {
  padding: 48px 0 8px;
  background: linear-gradient(180deg, var(--sky) 0%, #fff 100%);
}

.page-head h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
}

.page-head__lead {
  max-width: 36em;
  font-size: 1.1rem;
}

.page-head--center {
  padding: 72px 0 96px;
  text-align: center;
}

.page-head--center .page-head__lead {
  margin-right: auto;
  margin-left: auto;
}

.page-head__code {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.page-head__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

/* ── Contact ────────────────────────────────────────────────────────────── */

.contact {
  padding-top: 16px;
  padding-bottom: 88px;
}

.contact-form {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px -40px rgba(13, 27, 44, 0.35);
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8a97a6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 4px rgba(10, 98, 201, 0.14);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
}

.select {
  position: relative;
}

.select select {
  padding-right: 44px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select select:invalid {
  color: #6f7c8b;
}

.select option {
  color: var(--ink);
}

.select__chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  color: var(--muted);
  pointer-events: none;
}

.field__error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.9rem;
}

.field__error:empty {
  display: none;
}

.field__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.field__count {
  margin: 6px 0 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__submit {
  width: 100%;
}

.contact-form__privacy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact__alt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.notice {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 600;
}

.notice p {
  margin: 0;
}

.notice:target,
.notice.is-visible {
  display: flex;
}

.notice:focus {
  outline: none;
}

.notice--ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.notice--error {
  background: var(--error-bg);
  color: var(--error);
}

.notice__icon {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  stroke-width: 2.6;
}

.contact.is-sent .contact-form {
  display: none;
}

@media (min-width: 720px) {
  .contact-form {
    padding: 36px 36px 30px;
  }
  .contact-form__submit {
    width: auto;
  }
}

/* ── Legal pages ────────────────────────────────────────────────────────── */

.legal {
  padding-top: 44px;
  padding-bottom: 88px;
}

.legal h1 {
  margin-top: 0;
  font-size: clamp(1.9rem, 5.4vw, 2.6rem);
}

.legal h2 {
  margin: 2.1em 0 0.5em;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  overflow-wrap: anywhere;
}

.legal ol,
.legal ul {
  padding-left: 1.4em;
}

.legal li {
  margin-bottom: 0.6em;
}

.legal .meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.legal hr {
  margin: 56px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.legal .warn {
  margin: 0 0 1em;
  padding: 16px 18px 4px;
  border-left: 4px solid #e66a00;
  border-radius: 0 12px 12px 0;
  background: #fff5ec;
}

.legal .todo {
  padding: 0 4px;
  border-radius: 4px;
  background: #fff3cd;
  color: #7a5a00;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 24px;
}

.site-footer__brand {
  grid-column: 1 / -1;
}

/* Phones: the language list runs inline instead of taking a long column. */
@media (max-width: 599px) {
  .site-footer__col:last-child ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
  }
}

@media (min-width: 600px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.site-footer__brand p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.site-footer a[aria-current] {
  font-weight: 600;
}

.site-footer__hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__bottom p {
  margin: 0;
}

@media (min-width: 920px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  }
  .site-footer__brand {
    grid-column: auto;
  }
}

/* Small phones: the two badges still share one row. */
@media (max-width: 400px) {
  :root {
    --gutter: 16px;
  }
  .store-badges {
    gap: 10px;
  }
  .store-badge img {
    height: 42px;
  }
}
