:root {
  --paper: #F7F3EA; --paper-2: #EBE5D7; --ink: #22302A; --ink-2: #5E6858; --accent: #2E8A57; --line: #D3CBB9;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #111814; --paper-2: #1B241F; --ink: #EFEADF; --ink-2: #A3AC9F; --accent: #6CCB93; --line: #34433A; }
  .wordmark-light { display: none; }
  .wordmark-dark { display: inline; }
}
.wordmark-dark { display: none; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.65 ui-rounded, -apple-system, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
header.top img { height: 44px; width: auto; }
nav.lang a { font-weight: 600; font-size: 15px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: min(340px, 80%); height: auto; }
.hero p { color: var(--ink-2); font-size: 19px; margin: 18px auto 32px; max-width: 30em; }
.links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 24px; }
.links a { display: block; padding: 18px 20px; background: var(--paper-2); border-radius: 18px; text-decoration: none; color: var(--ink); font-weight: 600; }
.links a span { display: block; color: var(--ink-2); font-weight: 400; font-size: 15px; margin-top: 2px; }
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 36px 0 8px; }
p.meta { color: var(--ink-2); font-size: 15px; margin: 0 0 28px; }
ul { padding-left: 1.2em; }
li { margin: 4px 0; }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ink-2); }

/* ---------- Marketing home (body.home) ---------- */
body.home { overflow-x: clip; }
body.home .wrap { max-width: 1120px; }
body.home header.top { margin-bottom: 8px; }
.home h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 20px; }
.home h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 28px; }
.home section { padding: 72px 0; }

.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px;
  text-align: left; padding: 40px 0 24px; position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: -40px -20vw 0; z-index: -1;
  background: linear-gradient(90deg, var(--paper) 30%, rgba(247, 243, 234, 0.35) 70%, var(--paper) 100%),
              url("/assets/hero-bg.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
          mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.hero .lede { color: var(--ink-2); font-size: 20px; max-width: 30em; margin: 0 0 28px; }
.cta {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 17px;
  background: var(--ink); color: var(--paper); text-decoration: none;
}
.cta.soon { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.platforms { color: var(--ink-2); font-size: 14px; margin: 14px 0 0; }
.hero-art { position: relative; height: 620px; }
.phone {
  display: block; width: 100%; height: auto; border-radius: 13% / 6%;
  border: 9px solid #18201B; background: #18201B;
  box-shadow: 0 30px 60px -20px rgba(24, 32, 27, 0.45), 0 10px 20px -10px rgba(24, 32, 27, 0.3);
}
.hero-art .phone { position: absolute; width: 270px; }
.hero-art .front { left: 12%; top: 0; z-index: 2; }
.hero-art .back { left: 52%; top: 56px; transform: rotate(7deg); opacity: 0.96; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { margin: 0; }
.step .phone { max-width: 250px; margin: 0 auto 24px; }
.step figcaption { color: var(--ink-2); font-size: 16px; }
.step strong { display: block; color: var(--ink); font-size: 19px; margin-bottom: 4px; }
.num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #F3B230; color: #18201B; font-weight: 800; font-size: 14px; margin-bottom: 10px;
}

.features ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.features li { margin: 0; padding: 26px 26px 28px; background: var(--paper); color: var(--ink-2); font-size: 16px; }
.features li strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

.gallery { padding-bottom: 24px !important; }
.strip {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 4px 36px;
  margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: thin;
}
.strip .phone { flex: 0 0 auto; width: 250px; scroll-snap-align: start; }
.gallery .hint { color: var(--ink-2); font-size: 14px; margin: 0; }
@media (min-width: 1200px) { .gallery .hint { display: none; } .strip { justify-content: space-between; overflow: visible; } .strip .phone { width: calc((100% - 5 * 28px) / 6); } }

.ipad { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; align-items: center; }
.tablets { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.tablets .tablet:last-child { margin-top: 64px; }
.duo { text-align: center; }
.duo p { color: var(--ink-2); font-size: 19px; max-width: 32em; margin: -12px auto 36px; }
.fold {
  width: 100%; max-width: 980px; height: auto; border-radius: 3.2% / 4.5%; border: 12px solid #18201B; background: #18201B;
  box-shadow: 0 40px 80px -30px rgba(24, 32, 27, 0.5);
}
.ipad p { color: var(--ink-2); font-size: 19px; }
.tablet {
  width: 100%; height: auto; border-radius: 4.5% / 3.4%; border: 12px solid #18201B; background: #18201B;
  box-shadow: 0 40px 80px -30px rgba(24, 32, 27, 0.5);
}

.promise { text-align: center; background: var(--paper-2); border-radius: 32px; padding: 56px 24px !important; }
.promise p { color: var(--ink-2); font-size: 19px; max-width: 34em; margin: 0 auto; }
.promise h2 { margin-bottom: 12px; }

.closing { text-align: center; }
.slogan { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 24px; }
.closing .links { margin-top: 48px; text-align: left; }

@media (prefers-color-scheme: dark) {
  .hero::before {
    background: linear-gradient(90deg, var(--paper) 35%, rgba(17, 24, 20, 0.75) 75%, var(--paper) 100%),
                url("/assets/hero-bg.jpg") center / cover no-repeat;
  }
  .phone, .tablet, .fold { border-color: #2B362F; background: #2B362F; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; font-size: 18px; }
  .hero-art { height: 470px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-art .phone { width: 210px; }
  .hero-art .front { left: 8%; }
  .hero-art .back { left: 44%; top: 40px; }
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .step { text-align: center; }
  .features ul { grid-template-columns: 1fr; }
  .ipad { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .tablets .tablet:last-child { margin-top: 32px; }
  .strip .phone { width: 220px; }
  .fold { border-width: 7px; }
  .home section { padding: 48px 0; }
}
@media (min-width: 861px) and (max-width: 1060px) {
  .features ul { grid-template-columns: repeat(2, 1fr); }
}
