/* ---------- Tokens ---------- */
:root {
  --brand: #16918a;
  --brand-strong: #0f766f;
  --brand-soft: #80bfb9;
  --brand-tint: #e5f1f1;
  --bg: #f7f9f9;
  --surface: #ffffff;
  --surface-2: #eef4f3;
  --text: #0f2524;
  --text-muted: #5b6f6d;
  --border: #dde7e6;
  --danger: #e5484d;
  --shadow-sm: 0 1px 2px rgba(15, 37, 36, .06), 0 2px 8px rgba(15, 37, 36, .05);
  --shadow-lg: 0 24px 60px -18px rgba(15, 76, 72, .35), 0 8px 20px -10px rgba(15, 37, 36, .18);
  --radius: 20px;
  --radius-sm: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);
  --max: 1120px;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3fbab1;
    --brand-strong: #6fd3cb;
    --brand-soft: #2c6f6a;
    --brand-tint: #12302e;
    --bg: #0b1514;
    --surface: #111e1d;
    --surface-2: #162826;
    --text: #e6f0ef;
    --text-muted: #93a8a5;
    --border: #213634;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, .7);
  }
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* ---------- Logo (svg used as a mask so it can be any color) ---------- */
.logo {
  display: inline-block; width: 124px; aspect-ratio: 284 / 57;
  background: var(--brand);
  -webkit-mask: url(/logo.svg) center / contain no-repeat;
          mask: url(/logo.svg) center / contain no-repeat;
}
.logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--brand); }
.nav__links .btn { color: #fff; }
@media (max-width: 760px) { .nav__links a:not(.btn) { display: none; } }

/* ---------- Buttons & store badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--brand-strong); color: #fff; transform: translateY(-1px); }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #04201e; } }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 10px 20px 10px 16px;
  border-radius: 14px; text-decoration: none;
  background: #0f1716; color: #fff;
  border: 1px solid #0f1716;
  transition: transform .15s, box-shadow .15s;
}
.store:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store svg { width: 26px; height: 26px; flex: none; }
.store__text { display: flex; flex-direction: column; line-height: 1.15; }
.store__text small { font-size: .7rem; opacity: .8; letter-spacing: .02em; }
.store__text strong { font-size: 1.15rem; font-weight: 600; }
.store--soon {
  background: transparent; color: var(--text); border: 1px dashed var(--text-muted);
  cursor: default;
}
.store--soon:hover { color: var(--text); transform: none; box-shadow: none; }
@media (prefers-color-scheme: dark) {
  .store { background: #fff; color: #0f1716; border-color: #fff; }
  .store:hover { color: #0f1716; }
  .store--soon { background: transparent; color: var(--text); border-color: var(--text-muted); }
  .store--soon:hover { color: var(--text); }
}
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--brand-tint); color: var(--brand-strong);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; max-width: 900px; aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-soft) 55%, transparent), transparent);
  z-index: -1; filter: blur(10px);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__lead { font-size: 1.2rem; color: var(--text-muted); max-width: 34ch; margin-bottom: 32px; }
.hero__note { margin-top: 20px; font-size: .9rem; color: var(--text-muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero__note span::before { content: "✓ "; color: var(--brand); font-weight: 700; }
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__visual img { width: min(320px, 72vw); border-radius: 36px; box-shadow: var(--shadow-lg); }
.hero__visual .phone--back img { width: 100%; border-radius: 30px; box-shadow: none; }
.hero__visual .phone--back {
  position: absolute; width: min(250px, 56vw); right: -4%; bottom: -8%; z-index: -1;
  transform: rotate(6deg); opacity: .95;
}
@media (max-width: 880px) {
  .hero { padding-top: 40px; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .stores, .hero__note { justify-content: center; }
  .hero__visual .phone--back { display: none; }
}

/* ---------- Phone frame (for raw iOS screenshots) ---------- */
.phone {
  border-radius: 40px; padding: 8px; background: #0f1716;
  box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 32px; width: 100%; }

/* ---------- Highlights ---------- */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
@media (min-width: 1040px) { .highlights { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.highlight {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.highlight:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.highlight img { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 18px; }
.highlight p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.feature {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border);
}
.feature__icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.2rem; background: var(--brand-tint);
}
.feature h3 { font-size: 1rem; margin: 2px 0 2px; font-family: var(--font-sans); letter-spacing: 0; }
.feature p { margin: 0; color: var(--text-muted); font-size: .92rem; line-height: 1.5; }

/* ---------- Gallery ---------- */
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 32px; }
.tab {
  border: 0; background: transparent; color: var(--text-muted); font: inherit; font-weight: 600; font-size: .95rem;
  padding: 8px 20px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tab .pill { font-size: .62rem; padding: 2px 7px; }
.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 28px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin;
}
.gallery > * { flex: none; scroll-snap-align: center; width: 240px; }
.gallery > img { border-radius: 24px; box-shadow: var(--shadow-sm); }
.gallery .phone { padding: 6px; border-radius: 34px; box-shadow: var(--shadow-sm); }
.gallery .phone img { border-radius: 28px; }
.gallery[hidden] { display: none; }
.gallery-wrap { text-align: center; }

/* ---------- iOS teaser ---------- */
.ios {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: linear-gradient(135deg, var(--brand-tint), var(--surface));
  border: 1px solid var(--border); border-radius: 32px; padding: 56px;
  overflow: hidden;
}
.ios ul { padding: 0; margin: 0 0 28px; list-style: none; display: grid; gap: 10px; }
.ios li { display: flex; gap: 10px; }
.ios li::before { content: "✓"; color: var(--brand); font-weight: 800; }
.ios__phones { display: flex; gap: 16px; justify-content: center; }
.ios__phones .phone { width: 200px; }
.ios__phones .phone:last-child { transform: translateY(36px); }
@media (max-width: 880px) {
  .ios { grid-template-columns: 1fr; padding: 32px 20px; }
  .ios__phones .phone { width: 46%; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 18px; color: var(--text-muted); }
.faq details > div p:last-child, .faq details > div ul:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta {
  text-align: center; border-radius: 32px; padding: 64px 24px;
  background: linear-gradient(135deg, #16918a, #0f5f5a); color: #fff;
}
.cta h2 { color: #fff; }
.cta p { opacity: .85; margin-bottom: 28px; }
.cta .stores { justify-content: center; }
.cta .store { background: #fff; color: #0f1716; border-color: #fff; }
.cta .store:hover { color: #0f1716; }
.cta .store--soon { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 40px; color: var(--text-muted); font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--brand); }

/* ---------- Document pages (privacy, support) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 24px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.doc h2 { font-size: 1.5rem; margin-top: 2.2em; }
.doc h3 { margin-top: 1.6em; }
.doc .meta { color: var(--text-muted); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .92rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { background: var(--surface-2); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.callout {
  background: var(--brand-tint); border-radius: var(--radius-sm); padding: 18px 20px; margin: 1.5em 0;
}
.callout p:last-child { margin: 0; }
.contact-card {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); margin: 28px 0;
}
.contact-card p { margin: 0; color: var(--text-muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.toc a {
  font-size: .88rem; text-decoration: none; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.toc a:hover { border-color: var(--brand); color: var(--brand); }

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