:root {
  --red: #B3292B;
  --red-dark: #8F1F21;
  --ink: #242923;
  --brown: #423931;
  --muted: #5F675B;
  --line: #E5E9E1;
  --soft: #F4F6F1;
  --bubble: #FDF0EC;
  --blush: #FCE6E2;
  --peach: #F6C9BF;
  --olive: #566B2F;
  --olive-soft: #EDF3DF;
  --bg: #FFFFFF;
  --footer: #242923;
  --footer-text: #D9DDD5;

  /* same as the app: the platform's system font (SF Pro on Apple, Roboto on Android) */
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, Roboto, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, Roboto, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius: 22px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--red); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 650; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; color: #fff; }

.accent { color: var(--red); }

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 10;
  padding: 18px var(--gutter);
  background: #fff;
}
.is-doc .site-header, .is-plain .site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; color: var(--red); padding: 6px 0; }
.brand:hover { color: var(--red-dark); }
.logo { width: 128px; height: auto; aspect-ratio: 604 / 114; display: block; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 10px 2px; border-radius: 8px;
}
.site-nav a:hover { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav a[aria-current="page"] { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav .lang {
  min-width: 44px; min-height: 44px; display: inline-grid; place-items: center;
  padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .04em;
}
.site-nav .lang:hover { background: var(--ink); color: #fff; text-decoration: none; }
@media (max-width: 520px) {
  .logo { width: 108px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 15px; }
  .site-nav a:not(.lang):first-child { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 40px var(--gutter) 72px;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  row-gap: 28px;
  text-align: center;
  isolation: isolate;
}
.hero__title {
  font-size: clamp(26px, 3.4vw, 46px);
  color: var(--ink);
  letter-spacing: -0.025em;
}
.hero__title .accent { display: block; font-size: 2.35em; line-height: 1; letter-spacing: -0.045em; margin-bottom: .12em; }
/* hand-drawn oval like in the app: the marker goes round clockwise from about 7 o'clock */
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 360deg; }
.oval { position: relative; display: inline-block; white-space: nowrap; }
.oval::before {
  content: ""; position: absolute; z-index: -1;
  left: -15%; top: -30%; width: 130%; height: 165%;
  background: url('/img/oval.png') center / 100% 100% no-repeat;
  -webkit-mask: conic-gradient(from 290deg, #000 var(--sweep), transparent 0);
  mask: conic-gradient(from 290deg, #000 var(--sweep), transparent 0);
}
@media (prefers-reduced-motion: no-preference) {
  .oval::before { animation: draw-oval .9s cubic-bezier(.3, .6, .45, 1) .5s both; }
  @keyframes draw-oval { from { --sweep: 0deg; } to { --sweep: 360deg; } }
}
.hero__intro { max-width: 520px; display: grid; gap: 22px; justify-items: center; order: 3; }
.hero__lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--brown); }

/* not links yet: an outlined, clearly passive "coming soon" look */
.stores { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.store {
  flex: 0 1 auto; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 16px;
  border-radius: 14px; border: 1.5px dashed #9AA195; color: var(--ink);
  font-weight: 650; font-size: 17px; line-height: 1.15;
}
.store svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.store span { display: grid; text-align: left; }
.store small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

/* ---------- iPhone mockup (pure CSS; --pw = phone width) ---------- */
.iphone {
  --pw: 260px;
  --rx: 0deg; --ry: 0deg;
  position: relative;
  width: var(--pw);
  padding: calc(var(--pw) * .032);
  border-radius: calc(var(--pw) * .17);
  background: #0B0B0C;
  box-shadow:
    0 0 0 calc(var(--pw) * .013) #A82426,          /* red aluminium frame */
    0 0 0 calc(var(--pw) * .018) #7E1A1C,
    0 calc(var(--pw) * .16) calc(var(--pw) * .22) calc(var(--pw) * -.1) rgba(70, 25, 20, .38);
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
}
/* side buttons */
.iphone::before, .iphone::after {
  content: ""; position: absolute; width: calc(var(--pw) * .016); border-radius: 2px; background: #9C2224;
}
.iphone::before { left: calc(var(--pw) * -.03); top: 22%; height: 13%; box-shadow: 0 calc(var(--pw) * .34) 0 #9C2224; }
.iphone::after { right: calc(var(--pw) * -.03); top: 27%; height: 15%; }
.iphone__screen {
  position: relative; overflow: hidden;
  aspect-ratio: 780 / 1784;
  border-radius: calc(var(--pw) * .138);
  background: #fff;
}
/* status-bar space keeps the app UI clear of the rounded corners; island on top */
.iphone__screen img { position: absolute; left: 0; top: 5.38%; width: 100%; height: auto; }
.iphone__screen::after {
  content: ""; position: absolute; z-index: 2; left: 50%; top: calc(var(--pw) * .028);
  width: 30%; height: calc(var(--pw) * .085); margin-left: -15%;
  border-radius: 999px; background: #000;
}
.iphone__tour { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.is-live .iphone__tour { display: block; }

.hero__phone { position: relative; order: 2; width: 100%; display: grid; place-items: center; padding-bottom: 8px; }
.iphone--hero { --pw: min(66vw, 270px); }
.phone-toggle {
  position: absolute; right: calc(50% - min(33vw, 135px) - 64px); bottom: 8px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: none; place-items: center;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(36,41,35,.4);
}
.is-live .phone-toggle { display: grid; }
.phone-toggle:hover { border-color: var(--ink); }
.phone-toggle svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .phone-toggle { right: 4px; } }
@media (prefers-reduced-motion: no-preference) {
  .iphone--hero { animation: float 7s ease-in-out infinite; }
  @keyframes float { 50% { translate: 0 -8px; } }
}

.hero__points {
  order: 4;
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; gap: 16px; text-align: left; max-width: 340px;
}
.hero__points li { display: flex; gap: 12px; font-size: 17px; line-height: 1.45; color: var(--brown); }
.hero__points svg { flex: none; width: 24px; height: 24px; margin-top: 1px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 960px) {
  .hero {
    min-height: min(calc(100svh - 80px), 900px);
    padding-top: 32px;
    padding-bottom: 56px;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto 1fr;
    align-items: center;
    column-gap: clamp(32px, 5vw, 96px);
    row-gap: 40px;
    text-align: left;
  }
  .hero__title { grid-column: 1 / -1; max-width: none; text-align: center; }
  .hero__intro { order: 0; justify-items: start; justify-self: end; }
  .stores { justify-content: flex-start; }
  .hero__phone { order: 0; }
  .iphone--hero { --pw: clamp(230px, 27vh, 290px); }
  .phone-toggle { right: -60px; }
  .hero__points { order: 0; justify-self: start; margin: 0; }
}

/* ---------- how it works ---------- */
.how { padding: clamp(72px, 10vw, 140px) var(--gutter); max-width: var(--max); margin: 0 auto; overflow-x: clip; }
.section-head { max-width: 760px; margin: 0 auto clamp(48px, 7vw, 96px); text-align: center; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); color: var(--ink); }

.feature {
  display: grid; gap: 32px; align-items: center; justify-items: center;
  margin-bottom: clamp(64px, 9vw, 120px);
}
.feature__shot { position: relative; }
.feature__shot .iphone { --pw: min(60vw, 250px); }
.feature__text { max-width: 480px; display: grid; gap: 14px; }
.feature__num {
  font-family: var(--display); font-weight: 800; font-size: 15px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blush); color: var(--red-dark);
}
.feature__text h3 { font-size: clamp(28px, 3.4vw, 42px); }
.feature__text p { font-size: 18px; color: #3C433A; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature__shot { justify-self: center; }
  .feature--flip .feature__shot { order: 2; }
  .feature__text { justify-self: start; }
  .feature--flip .feature__text { justify-self: end; }
}

.extras {
  list-style: none; margin: clamp(56px, 9vw, 140px) 0 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
/* green like the app's olive summary cards (place detail) */
.extras li {
  background: var(--olive-soft);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  display: grid; gap: 10px; align-content: start;
}
.extras__icon {
  width: 48px; height: 48px; padding: 12px; margin-bottom: 8px;
  border-radius: 50%; background: #fff;
  fill: none; stroke: var(--olive); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.extras h3 { font-size: 22px; color: var(--olive); }
.extras p { color: #3C433A; }

/* ---------- CTA ---------- */
.cta {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  display: grid; justify-items: center; gap: 18px;
  position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(34px, 5vw, 64px); max-width: 14ch; }
.cta p { max-width: 520px; font-size: 18px; color: #fff; }
.cta__mail { margin-top: 10px; }
.cta a { color: #fff; font-weight: 650; }
.cta a:hover { color: var(--blush); }
.cta :focus-visible { outline-color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--soft); color: #3C433A; padding: 64px var(--gutter) 28px; font-size: 15px; }
.site-footer__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.site-footer a { color: var(--ink); }
.site-footer__contact a { display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--red); }
.site-footer h2 { font-size: 13px; font-family: var(--body); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer p + p { margin-top: 10px; }
.site-footer .small { font-size: 13px; line-height: 1.5; color: var(--muted); }
.site-footer__brand a { display: inline-flex; color: var(--red); margin-bottom: 14px; padding: 6px 0; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer__links a { display: inline-block; padding: 6px 0; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__links a[aria-current="page"] { text-decoration: underline; }
.site-footer__copy { max-width: var(--max); margin: 48px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- documents ---------- */
.doc-wrap {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(64px, 8vw, 112px);
  display: grid; gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}
.doc-nav { min-width: 0; }
.doc-nav ul { list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.doc-nav ul::-webkit-scrollbar { display: none; }
.doc-nav__link { white-space: nowrap; }
.doc-nav__link {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  background: var(--soft); color: var(--ink); text-decoration: none; font-weight: 550; font-size: 15px;
}
.doc-nav__link:hover { background: var(--blush); color: var(--red-dark); }
.doc-nav__link[aria-current="page"] { background: var(--ink); color: #fff; }
@media (min-width: 960px) {
  .doc-wrap { grid-template-columns: 220px minmax(0, 720px); gap: 72px; }
  .doc-nav ul { position: sticky; top: 32px; flex-direction: column; gap: 4px; margin: 0; padding: 0; overflow: visible; }
  .doc-nav__link { display: block; border-radius: 12px; background: transparent; }
}

.doc { min-width: 0; max-width: 720px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); color: var(--ink); margin-bottom: 14px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.doc .lead { font-size: 19px; color: #3C433A; margin-bottom: 8px; }
.doc h2 { font-size: clamp(24px, 2.8vw, 30px); margin: 48px 0 14px; scroll-margin-top: 24px; }
.doc h3 { font-size: 20px; letter-spacing: -0.01em; margin: 28px 0 8px; }
.doc p, .doc li { color: #2E342D; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--red); }
.doc address { font-style: normal; }

.box {
  background: var(--bubble);
  border-radius: var(--radius) var(--radius) var(--radius) 6px;
  padding: 22px 24px; margin: 20px 0;
}
.box--soft { background: var(--soft); border-radius: var(--radius); }
.box > :first-child { margin-top: 0; }
.box h2, .box h3 { margin-top: 0; }

.datacard { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.datacard h3 { margin: 0 0 10px; }
.datacard dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px 20px; }
.datacard dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.datacard dd { margin: 0; }
@media (min-width: 640px) {
  .datacard dl { grid-template-columns: 160px 1fr; }
  .datacard dt { margin-top: 3px; }
  .datacard dd + dt, .datacard dd { padding-bottom: 6px; }
}

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; min-height: 32px; }
.steps li + li { margin-top: 14px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: 15px;
}

.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 650; text-decoration: none;
}
.button:hover { background: var(--red-dark); color: #fff; }

details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  padding: 18px 40px 18px 0; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
details.faq[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
details.faq > div { padding: 0 0 20px; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.notfound h1 { font-size: clamp(40px, 6vw, 72px); margin: 8px 0 16px; }
.notfound .accent { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 110px); line-height: 1; display: block; letter-spacing: -0.035em; }
.notfound p { color: var(--muted); margin-bottom: 24px; }
.notfound .links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- scroll motion (js/motion.js adds .motion when allowed) ---------- */
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .extras .reveal:nth-child(2) { transition-delay: .12s; }
.motion .extras .reveal:nth-child(3) { transition-delay: .24s; }
.feature__shot, .feature__text { will-change: translate; }

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