:root {
  --paper: #efece5;
  --paper-deep: #e6e2d8;
  --paper-edge: #d9d4c6;
  --ink: #15140f;
  --ink-soft: #2a2823;
  --ink-edge: #3a3731;
  --mute: #7a766b;
  --mute-soft: #a8a397;
  --accent: #2d54bc;
  --accent-press: #173485;
  --accent-soft: rgba(45, 84, 188, 0.1);
  --bg: var(--paper);
  --text: var(--ink);
  --text-muted: var(--mute);
  --surface: var(--paper);
  --surface-alt: var(--paper-deep);
  --line: var(--paper-edge);
  --line-strong: var(--ink);
  --grid: rgba(21, 20, 15, 0.07);
  --radius: 12px;
  --radius-sm: 10px;
  --max: 38rem;
  --wide: 64rem;
  --phone-w: min(13rem, 44vw);
  --phone-gap: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --text: var(--paper);
    --text-muted: var(--mute-soft);
    --surface: var(--ink);
    --surface-alt: var(--ink-soft);
    --line: var(--ink-edge);
    --line-strong: var(--paper);
    --grid: rgba(239, 236, 229, 0.06);
  }
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: var(--accent);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--text);
}
.wordmark:hover { color: var(--text); }
.wordmark .sq {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}
.site-nav nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav nav a:hover { color: var(--accent); }

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 48px 24px 8px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 28%, #000 18%, transparent 72%);
}
.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.hero h1::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
}
.lede {
  margin: 0 auto;
  max-width: 26rem;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.lede strong { font-weight: 600; color: var(--text); }

.phones,
.features ul {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--phone-gap);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.phones {
  margin: 36px auto 0;
}
.phones img,
.features .phone {
  width: var(--phone-w);
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  display: block;
  box-shadow: 0 20px 44px -22px rgba(21, 20, 15, 0.4);
}

.features {
  margin: 0 auto;
  padding: 44px 24px 8px;
}
.features ul {
  gap: 28px var(--phone-gap);
}
.features-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.features-lead {
  max-width: 28rem;
  margin: 0 auto 30px;
  text-align: center;
  color: var(--text-muted);
}
.features li {
  width: var(--phone-w);
  margin: 0;
  padding: 0;
}
.features .phone {
  width: 100%;
}
.feature-copy {
  margin: 16px 2px 0;
  text-align: center;
}
.feature-copy::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  margin: 0 auto 10px;
}
.feature-copy h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.feature-copy p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.hero-copy {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 0 24px;
}
.hero-copy p {
  margin: 0 0 1em;
  color: var(--text);
}
.hero-copy p:last-child { margin-bottom: 0; }

.cta-band {
  max-width: 34rem;
  margin: 48px auto 64px;
  padding: 30px 24px 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-alt);
  text-align: center;
}
.cta-band h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cta-band p { margin: 0 0 22px; color: var(--text-muted); }
.stores {
  --badge-h: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.store {
  display: block;
  height: var(--badge-h);
  text-decoration: none;
  line-height: 0;
}
.store img {
  display: block;
  height: 100%;
  width: auto;
}
/* The Play PNG bakes ~42px transparent padding into its 646x250 canvas
   (visible badge is 564x168 at offset 42,42) — crop to content so both
   badges render at the same visual height. */
.store--play {
  width: calc(var(--badge-h) * 564 / 168);
  overflow: hidden;
}
.store--play img {
  height: calc(var(--badge-h) * 250 / 168);
  width: calc(var(--badge-h) * 646 / 168);
  max-width: none;
  margin: calc(var(--badge-h) * -42 / 168) 0 0 calc(var(--badge-h) * -42 / 168);
}
.store[href]:hover { opacity: 0.88; }
.store--soon {
  pointer-events: none;
  user-select: none;
}
.store--soon img {
  opacity: 0.38;
  filter: grayscale(0.5);
}

.site-foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.site-foot-inner {
  display: grid;
  gap: 28px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 32px 24px 48px;
}
@media (min-width: 720px) {
  .site-foot-inner {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }
  .site-foot .tag { grid-column: 1 / -1; }
}
.site-foot h2 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-foot li { margin: 0 0 6px; }
.site-foot a { font-weight: 600; }
.site-foot .tag {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: 40px 24px 48px;
}
.doc h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.doc h2 {
  margin: 2em 0 0.6em;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.doc h3 {
  margin: 1.6em 0 0.4em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc p,
.doc li { color: var(--text); }
.doc ul,
.doc ol { padding-left: 1.2em; }
.doc blockquote {
  margin: 1.2em 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--surface-alt);
  color: var(--text-muted);
}
.doc blockquote p { margin: 0; }
.doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}
.doc code {
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

@media (max-width: 520px) {
  .site-nav { padding: 12px 16px; }
  .hero { padding: 36px 16px 4px; }
  .features { padding: 36px 16px 4px; }
  .hero-copy { padding: 0 16px; }
  .cta-band { margin-left: 16px; margin-right: 16px; }
  .site-foot-inner { padding-left: 16px; padding-right: 16px; }
  .doc { padding: 28px 16px 56px; }
}

@media print {
  .site-nav nav,
  .skip { display: none; }
  .hero::before { display: none; }
  body { background: #fff; color: #111; }
}
