/* GeoMiles landing. Paper, ink and the red of the compass rose, as in the app. */

:root {
  --bg: #f0e7d3;
  --bg-deep: #e6dbc2;
  --paper: #faf3e4;
  --ink: #1c2530;
  --ink-soft: #3a4450;
  --muted: #62625c;
  --line: rgba(28, 37, 48, 0.16);
  --rule: #cdbd98;
  --red: #a12a24;
  --red-deep: #7d1e1a;
  --accent: #a12a24;
  --sea: #c7d9d6;
  --navy: #1b2531;
  --on-navy: #f3ead8;
  --gold: #cdbd98;
  --shadow: 0 30px 60px -32px rgba(28, 37, 48, 0.55);
  --radius: 10px;
  --font-display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, "Songti SC", "Hiragino Mincho ProN", "AppleMyungjo", "Noto Serif CJK SC", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12181f;
    --bg-deep: #0d1218;
    --paper: #1a222c;
    --ink: #f0e7d3;
    --ink-soft: #cfc7b5;
    --muted: #a09a8b;
    --line: rgba(240, 231, 211, 0.16);
    --rule: #4a4636;
    --accent: #e0655b;
    --sea: #24343a;
    --navy: #1f2a37;
    --shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.85);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

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

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

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

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

.section {
  padding: clamp(72px, 10vw, 124px) 0;
}

.section--tight {
  padding-top: 0;
}

.section__head {
  max-width: 740px;
  margin-bottom: clamp(36px, 5vw, 56px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.section__title {
  font-size: clamp(34px, 5vw, 54px);
}

.section__lead {
  margin: 18px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid var(--rule);
}

.nav__inner {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.nav__icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line), 0 4px 12px -6px rgba(28, 37, 48, 0.5);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--line);
}

.nav__cta {
  margin-left: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.nav__cta:hover {
  background: var(--red-deep);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}

.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__toggle.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.lang {
  position: relative;
}

.lang__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.lang__button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 340px;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.lang__menu.is-open {
  display: grid;
}

.lang__option {
  display: block;
  text-decoration: none;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.lang__option:hover {
  background: var(--line);
}

.lang__option.is-active {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Buttons ---------- */

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

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

.store-badge img {
  height: 56px;
  width: auto;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 22px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px);
  overflow: hidden;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: 1;
}

.hero__title span,
.hero__title em {
  display: block;
}

:lang(ja) .hero__title,
:lang(zh-Hans) .hero__title,
:lang(ko) .hero__title,
:lang(hi) .hero__title {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.25;
  letter-spacing: 0;
}

:lang(ja) :is(h1, h2, h3, .plate__title),
:lang(zh-Hans) :is(h1, h2, h3, .plate__title),
:lang(ko) :is(h1, h2, h3, .plate__title),
:lang(hi) :is(h1, h2, h3, .plate__title) {
  line-height: 1.3;
  letter-spacing: 0;
}

:lang(ja) .hero__title em,
:lang(zh-Hans) .hero__title em,
:lang(ko) .hero__title em,
:lang(hi) .hero__title em {
  font-style: normal;
}

.hero__title em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

.hero__lead {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__proof li[hidden] {
  display: none;
}

.hero__proof svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.hero__visual {
  position: relative;
  min-height: 640px;
}

.hero__photo {
  position: absolute;
  inset: 0 0 0 14%;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 50%;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 45%, rgba(19, 27, 36, 0.4));
}

.hero__phone {
  position: absolute;
  left: 0;
  bottom: -28px;
  width: min(300px, 52%);
  transform: rotate(-4deg);
}

.hero__chip {
  position: absolute;
  right: 18px;
  top: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.3;
  max-width: 260px;
}

.hero__chip img {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.hero__chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
}

.hero__chip span {
  color: var(--muted);
}

/* ---------- Device mockups ---------- */

.iphone {
  --w: 300px;
  position: relative;
  width: 100%;
  aspect-ratio: 71.5 / 149.6;
  padding: 3.4%;
  border-radius: 15% / 7.2%;
  background:
    linear-gradient(145deg, #e9e4da 0%, #b9b2a5 18%, #f3efe7 34%, #9d968a 55%, #d9d3c8 78%, #8b8478 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.55),
    inset 0 0 0 3px rgba(0, 0, 0, 0.25),
    0 2px 2px rgba(0, 0, 0, 0.15),
    0 50px 80px -30px rgba(19, 27, 36, 0.65),
    0 30px 40px -25px rgba(19, 27, 36, 0.5);
  isolation: isolate;
}

.iphone::before,
.iphone::after {
  content: "";
  position: absolute;
  width: 1.2%;
  border-radius: 2px;
  background: inherit;
  filter: brightness(0.85);
  z-index: -1;
}

.iphone::before {
  left: -1%;
  top: 18%;
  height: 12%;
  box-shadow: 0 calc(var(--w) * 0.22) 0 0 #a8a194;
}

.iphone::after {
  right: -1%;
  top: 25%;
  height: 16%;
}

.iphone__screen,
.tablet__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 2px #050505;
}

.iphone__screen {
  border-radius: 12.5% / 6%;
}

.iphone__screen::after,
.tablet__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 28%, transparent 42%, transparent 100%);
  pointer-events: none;
}

.iphone__island {
  position: absolute;
  top: 1.7%;
  left: 50%;
  z-index: 9;
  width: 32%;
  height: 3.9%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.iphone__island::after {
  content: "";
  position: absolute;
  right: 14%;
  top: 50%;
  width: 18%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a3a55 0%, #0b0f18 60%);
}

.iphone__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* iPad and the closed iPhone Duo share one frame; the aspect ratio is the screenshot's. */
.tablet {
  position: relative;
  width: 100%;
  padding: 2.6%;
  border-radius: 5.5% / 4.2%;
  background: linear-gradient(145deg, #3d4247 0%, #1a1d20 30%, #4a4f54 55%, #15171a 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.3),
    0 50px 80px -34px rgba(19, 27, 36, 0.7),
    0 30px 40px -28px rgba(19, 27, 36, 0.5);
}

.tablet--ipad {
  aspect-ratio: 2064 / 2752;
}

.tablet--ipad .tablet__screen {
  border-radius: 3% / 2.3%;
}

.tablet--duo {
  aspect-ratio: 1398 / 2034;
  padding: 3%;
  border-radius: 11% / 7.6%;
}

.tablet--duo .tablet__screen {
  border-radius: 8.5% / 5.8%;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

.step {
  position: relative;
  padding: 32px 28px 34px;
}

.step + .step {
  border-left: 1px solid var(--rule);
}

.step::before {
  counter-increment: step;
  content: counter(step, upper-roman);
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.step h3 {
  font-size: 26px;
}

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

/* ---------- Ways to play ---------- */

.modes {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: clamp(14px, 2vw, 22px);
  margin-inline: 16px;
}

.modes .eyebrow {
  color: #e9897f;
}

.modes .section__head {
  border-bottom-color: rgba(205, 189, 152, 0.3);
}

.modes .section__lead {
  color: color-mix(in srgb, var(--on-navy) 72%, transparent);
}

.modes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mode {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(243, 234, 216, 0.05);
  border: 1px solid rgba(205, 189, 152, 0.28);
  transition: background 0.25s ease, transform 0.25s ease;
}

.mode:hover {
  background: rgba(243, 234, 216, 0.09);
  transform: translateY(-3px);
}

.mode__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 1px solid rgba(205, 189, 152, 0.5);
  color: var(--gold);
}

.mode__icon svg {
  width: 24px;
  height: 24px;
}

.mode h3 {
  font-size: 24px;
}

.mode p {
  margin: 10px 0 0;
  font-size: 15.5px;
  color: color-mix(in srgb, var(--on-navy) 74%, transparent);
}

/* ---------- The atlas ---------- */

.atlas {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.plate {
  padding: 28px 28px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--rule), var(--shadow);
}

.plate__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.08;
}

.plate__list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.plate__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.plate__list li span:last-child {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.plate__list li.plate__total {
  border-bottom: 0;
  color: var(--accent);
}

.plate__list li.plate__total span:last-child {
  color: var(--accent);
  font-weight: 700;
}

.atlas__title {
  font-size: clamp(34px, 5vw, 54px);
}

.atlas__lead {
  margin: 18px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
}

.checks {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-weight: 600;
}

.checks svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--accent);
}

/* ---------- Showcase ---------- */

.showcase__phones {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  max-width: 1240px;
  margin-inline: auto;
  padding: 10px 4px 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.showcase__phones::-webkit-scrollbar {
  display: none;
}

.showcase__item {
  display: grid;
  gap: 26px;
  justify-items: center;
  margin: 0;
  scroll-snap-align: center;
}

.showcase__item:nth-child(even) {
  margin-top: 48px;
}

.showcase__item .iphone {
  max-width: 230px;
}

.showcase__item figcaption {
  max-width: 240px;
  text-align: center;
}

.showcase__item figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.showcase__item figcaption span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Devices ---------- */

.devices__stage {
  display: grid;
  grid-template-columns: 1fr 2.3fr 0.95fr;
  gap: clamp(16px, 3vw, 44px);
  align-items: end;
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 56px) 0;
  border-radius: clamp(14px, 2vw, 22px);
  background:
    linear-gradient(rgba(19, 27, 36, 0.55), rgba(19, 27, 36, 0.78)),
    url("photos/atlas-wide.webp") center / cover;
  overflow: hidden;
}

.devices__stage > * {
  margin-bottom: -6%;
}

/* ---------- Stories ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.story + .story {
  margin-top: clamp(64px, 9vw, 120px);
}

.story--flip .story__media {
  order: 2;
}

.story__media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__title {
  font-size: clamp(32px, 4.4vw, 52px);
}

.story__text {
  margin: 20px 0 0;
  font-size: 18px;
  color: var(--ink-soft);
}

/* ---------- More features ---------- */

.more__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.more__item {
  padding: 26px 24px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.more__item svg {
  width: 26px;
  height: 26px;
  margin-bottom: 16px;
  color: var(--accent);
}

.more__item h3 {
  font-size: 21px;
}

.more__item p {
  margin: 8px 0 0;
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- Privacy band ---------- */

.privacy-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sea);
}

.privacy-band__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-navy);
}

.privacy-band__icon svg {
  width: 30px;
  height: 30px;
}

.privacy-band h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.privacy-band p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 4px 24px;
  max-width: 720px;
  color: var(--ink-soft);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 5vw, 60px);
  border-radius: clamp(14px, 2vw, 22px);
  background:
    linear-gradient(90deg, rgba(19, 27, 36, 0.94) 0%, rgba(19, 27, 36, 0.8) 55%, rgba(19, 27, 36, 0.55) 100%),
    url("photos/atlas-wide.webp") center / cover;
  color: var(--on-navy);
}

.cta__icon {
  width: 104px;
  height: 104px;
  border-radius: 23px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 20px 40px -18px rgba(0, 0, 0, 0.6);
}

.cta h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.cta p {
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--on-navy) 78%, transparent);
}

/* ---------- Footer ---------- */

.footer {
  padding: 56px 0 40px;
  margin-top: clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--rule);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.footer__brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line);
}

.footer__tagline {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 420px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 8px 22px;
}

.footer__links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}

.footer__bottom p {
  margin: 0;
}

.footer__credits {
  max-width: 640px;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.footer__studio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
}

.footer__studio:hover {
  color: var(--accent);
}

.footer__studio img {
  flex: none;
}

/* ---------- Inner pages (legal, contact) ---------- */

.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 40px);
}

.page-hero__title {
  font-size: clamp(40px, 6vw, 68px);
}

.page-hero__meta {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
}

.page-panel {
  max-width: 860px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--rule);
}

.language-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.language-tabs__tab {
  text-decoration: none;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.language-tabs__tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-navy);
  font-weight: 700;
}

.legal-section + .legal-section {
  margin-top: 32px;
}

.legal-section h2 {
  font-size: 23px;
}

.legal-section p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.legal-section a {
  color: var(--accent);
  font-weight: 600;
}

.legal-loading {
  color: var(--muted);
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form[hidden] {
  display: none;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form__group {
  display: grid;
  gap: 8px;
}

.contact-form__label {
  font-weight: 700;
  font-size: 15px;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.contact-form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form__submit {
  justify-self: start;
  min-height: 54px;
  padding: 0 30px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.contact-form__submit:hover {
  background: var(--red-deep);
}

.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

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

.contact-form__privacy a {
  color: var(--accent);
}

.contact-feedback {
  display: none;
  padding: 22px 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sea);
  color: var(--ink);
}

.contact-feedback.is-shown {
  display: block;
}

.contact-feedback--error {
  margin-top: 16px;
  background: color-mix(in srgb, var(--red) 12%, var(--paper));
}

.contact-feedback__title {
  margin: 0 0 4px;
  font-weight: 800;
}

.contact-feedback p {
  margin: 0;
}

.contact-aside {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.contact-aside p {
  margin: 0;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mode,
  .store-badge {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .modes__grid,
  .more__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__link {
    padding: 12px 14px;
    font-size: 17px;
  }

  .nav__cta {
    margin: 8px 0 0;
    text-align: center;
    padding: 14px;
  }

  .lang__button {
    width: 100%;
    justify-content: center;
  }

  .lang__menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  .nav-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 68px 0 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.3);
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 0;
    aspect-ratio: 4 / 4.6;
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step + .step {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .story,
  .atlas {
    grid-template-columns: 1fr;
  }

  .story--flip .story__media {
    order: 0;
  }

  .story__media {
    max-width: 560px;
  }

  .privacy-band,
  .cta {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .modes {
    margin-inline: 8px;
  }

  .modes__grid,
  .more__grid {
    grid-template-columns: 1fr;
  }

  .hero__phone {
    width: 50%;
    bottom: -18px;
  }

  .hero__photo {
    inset: 0 0 0 10%;
  }

  .hero__chip {
    right: 10px;
    top: 14px;
    max-width: 210px;
    padding: 10px 12px 10px 10px;
    font-size: 12.5px;
  }

  .hero__chip strong {
    font-size: 14px;
  }

  .showcase__phones {
    grid-auto-columns: 62%;
    margin-inline: -16px;
    padding-inline: 19%;
  }

  .showcase__item:nth-child(even) {
    margin-top: 0;
  }

  .devices__stage {
    grid-template-columns: 1fr 1fr;
  }

  .devices__stage > .tablet--ipad {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .store-badge img {
    height: 52px;
  }
}
