/* Jagimo! website. Brand colors match the apps (ios/Jagimo/Design/Brand.swift). */
:root {
  --orange: #F1631C;
  --orange-skin: #F76F1D;
  --glow: #FA9A5C;
  --orange-deep: #D95C17;
  --accent: #B3470F;
  --ink: #1E1410;
  --muted: #6B5B52;
  --paper: #FFFFFF;
  --paper-2: #FBF6F2;
  --line: #EDE3DC;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #FF9B5E;
    --ink: #F4ECE6;
    --muted: #B9A89E;
    --paper: #17110E;
    --paper-2: #211814;
    --line: #34271F;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* ── Orange glow + floating icons (the app's BrandBackground) ── */
.glow {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse 75% 95% at 35% 40%, var(--glow) 0%, var(--orange-skin) 48%, var(--orange-deep) 100%);
}
.glow .icon { position: absolute; width: 56px; filter: brightness(0); opacity: .15; pointer-events: none; }

/* ── Hero ── */
.hero { padding-block: 40px 0; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.nav { display: flex; justify-content: space-between; align-items: center; padding-block: 4px 24px; position: relative; }
.nav img { width: 150px; }
.nav a { color: #fff; font-weight: 600; text-decoration: none; font-size: 15px; }
.hero-copy { padding-block: 24px 72px; }
.hero-logo { width: min(460px, 100%); filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
.hero h1 {
  font: 800 clamp(34px, 5vw, 54px)/1.05 var(--display); letter-spacing: -.02em; margin: 28px 0 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.15); text-wrap: balance;
}
.hero p.lede { font-size: 19px; line-height: 1.5; max-width: 34ch; margin: 18px 0 0; color: rgba(255,255,255,.95); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none;
  border-radius: 999px; padding: 12px 22px; min-height: 52px; font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.store small { display: block; font-weight: 400; font-size: 11px; opacity: .8; line-height: 1.1; }
.store b { display: block; font-size: 17px; line-height: 1.15; }
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store.soon { background: rgba(0,0,0,.72); }

.phones { position: relative; height: 560px; align-self: end; }
.phone {
  position: absolute; width: 250px; aspect-ratio: 1320 / 2868; border-radius: 40px; background: #0d0d0d;
  padding: 10px; box-shadow: 0 30px 60px rgba(70,25,0,.38);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; }
.phones .p1 { left: 8%; top: 40px; transform: rotate(-6deg); z-index: 2; }
.phones .p2 { left: 48%; top: 90px; transform: rotate(7deg); }

/* ── Sections ── */
section { padding-block: 88px; }
.eyebrow { font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h2 { font: 800 clamp(30px, 4vw, 44px)/1.1 var(--display); letter-spacing: -.02em; margin: 10px 0 0; text-wrap: balance; }
.section-lede { color: var(--muted); max-width: 58ch; margin: 14px 0 0; font-size: 18px; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { display: grid; gap: 14px; align-content: start; }
.step .shot { border-radius: 28px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.step .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.step h3 { font: 800 24px/1.2 var(--display); margin: 6px 0 0; display: flex; gap: 12px; align-items: baseline; }
.step h3 span {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff;
  display: inline-grid; place-items: center; font-size: 17px; transform: translateY(-3px);
}
.step p { margin: 0; color: var(--muted); }

.rules { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.rules span { background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }
.rules b { color: var(--accent); font-variant-numeric: tabular-nums; }

.mashup { background: var(--paper-2); }
.mashup .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { border-radius: 22px; box-shadow: 0 14px 30px rgba(60,25,5,.16); aspect-ratio: 1320 / 2868; object-fit: cover; object-position: top; }
.gallery img:nth-child(2) { transform: translateY(36px); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; margin-top: 48px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.feature .dot { width: 44px; height: 44px; border-radius: 14px; background: var(--orange); display: grid; place-items: center; }
.feature .dot img { width: 28px; filter: brightness(0) invert(1); }
.feature h3 { font: 800 19px/1.3 var(--display); margin: 0; }
.feature p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

.cta { text-align: center; padding-block: 80px; }
.cta .wrap { display: grid; justify-items: center; gap: 12px; position: relative; }
.cta img.app { width: 96px; border-radius: 22px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.cta h2 { color: #fff; }
.cta p { margin: 0; font-size: 18px; }

/* ── Footer ── */
footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); text-decoration: underline; }

/* ── Legal pages ── */
.legal-top { padding-block: 18px; }
.legal-top .wrap { display: flex; justify-content: space-between; align-items: center; position: relative; }
.legal-top img { width: 140px; }
.legal-top a.home { color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.doc { max-width: 720px; margin: 0 auto; padding: 56px 24px 72px; }
.doc h1 { font: 800 clamp(32px, 5vw, 44px)/1.1 var(--display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 10px 0 36px; }
.doc h2 { font-size: 24px; margin: 40px 0 8px; letter-spacing: -.01em; }
.doc h3 { font: 700 18px/1.3 var(--body); margin: 24px 0 6px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .callout { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 24px 0; }
.doc .callout p { margin: 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.doc .table { overflow-x: auto; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }
.doc th { font-weight: 700; }
.steps-inline { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-inline li { counter-increment: s; position: relative; padding-left: 40px; margin: 12px 0; }
.steps-inline li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center;
}

/* ── Small screens ── */
@media (max-width: 880px) {
  .hero .wrap, .mashup .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; text-align: center; display: grid; justify-items: center; }
  .hero-logo { width: min(320px, 100%); }
  .hero h1 { margin-top: 20px; }
  .hero p.lede { margin-inline: auto; }
  .stores { justify-content: center; }
  .phones { height: 430px; width: min(420px, 100%); margin: 0 auto; }
  .phone { width: 190px; border-radius: 32px; padding: 8px; }
  .phone img { border-radius: 25px; }
  .phones .p1 { left: 4%; top: 20px; }
  .phones .p2 { left: 50%; top: 60px; }
  .steps, .features { grid-template-columns: 1fr; }
  .step .shot { aspect-ratio: 3 / 2; }
  section { padding-block: 64px; }
}
@media (max-width: 520px) {
  .gallery { gap: 10px; }
  .gallery img { border-radius: 14px; }
  .nav img { width: 120px; }
}
@media (prefers-reduced-motion: no-preference) {
  .store { transition: transform .15s ease; }
  .store:hover { transform: translateY(-2px); }
}
