/* Aproned site — one stylesheet for /, /privacy and /terms.
   Colours: Brand/color/tokens.json. Type: Brand/type/typography.json.
   Spacing and radius: Brand/space/spacing-and-radius.json (4-pt). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --background: #F4F3EE;
  --surface: #FFFFFF;
  --surface-raised: #E7E5DD;
  --border: #E2E0D7;
  --text: #1F2B24;
  --text-muted: #5D665F;
  --brand: #344E41;
  --primary: #3A5A40;
  --on-primary: #FFFFFF;
  --hero: #344E41;
  --on-hero: #EEF0E8;
  --on-hero-muted: #B9C4AD;
  --bezel: #1F2B24;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111914;
    --surface: #1A241E;
    --surface-raised: #233029;
    --border: #26332B;
    --text: #E9E7DF;
    --text-muted: #A3AB9F;
    --brand: #A3B18A;
    --primary: #A3B18A;
    --on-primary: #16201B;
    --hero: #233029;
    --on-hero: #E9E7DF;
    --on-hero-muted: #A3B18A;
    --bezel: #111914;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .store-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img, svg { display: block; max-width: 100%; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container.narrow { max-width: 720px; }

/* ---------- Header ---------- */

.site-header {
  padding: var(--space-6) 0 var(--space-4);
}
.site-header h1 { margin: 0; }
.brand-link { display: inline-block; text-decoration: none; }
.brand-link img { height: 56px; width: auto; }

/* ---------- Landing: intro ---------- */

.intro {
  text-align: center;
  padding: var(--space-12) 0 var(--space-12);
}
.tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -0.6px;
  margin: 0 auto var(--space-8);
  max-width: 620px;
  color: var(--text);
}
.cta { margin-bottom: var(--space-3); }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}
.store-btn:hover { text-decoration: none; filter: brightness(1.08); }
.price-note {
  font-size: 14px;
  line-height: 19px;
  color: var(--text-muted);
  margin: 0;
}
.qr {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-8) 0 0;
  padding: var(--space-3) var(--space-6) var(--space-3) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: left;
}
/* Always dark modules on white: inverted QR codes don't scan on every phone. */
.qr img {
  width: 96px;
  height: 96px;
  padding: var(--space-2);
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  box-sizing: content-box;
}
.qr figcaption {
  max-width: 200px;
  font-size: 14px;
  line-height: 19px;
  color: var(--text-muted);
}
@media (max-width: 767px) {
  .qr { display: none; }
}

/* ---------- Landing: screenshot band ---------- */

.hero-band {
  background: var(--hero);
  color: var(--on-hero);
  padding: var(--space-12) 0 var(--space-8);
}
.hero-band .section-label { color: var(--on-hero-muted); text-align: center; }
.shots {
  display: flex;
  gap: var(--space-4);
  justify-content: flex-start;
  justify-content: safe center;
  overflow-x: auto;
  padding: var(--space-2) var(--space-1) var(--space-4);
  margin: 0;
  list-style: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots figure {
  margin: 0;
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
}
.phone {
  background: var(--bezel);
  border-radius: 30px;
  padding: 6px;
}
.phone img {
  width: 203px;
  height: auto;
  border-radius: 24px;
}
.shots figcaption {
  margin-top: var(--space-3);
  font-size: 14px;
  line-height: 19px;
  color: var(--on-hero);
}

/* ---------- Landing: features ---------- */

.features-section { padding: var(--space-12) 0 var(--space-8); }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.feature .icon {
  width: 28px;
  height: 28px;
  color: var(--brand);
  margin-bottom: var(--space-3);
}
.feature .icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  font-size: 19px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0 0 var(--space-2);
}
.feature p {
  font-size: 15px;
  line-height: 22px;
  color: var(--text-muted);
  margin: 0;
}

.section-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-6);
}

.contact {
  text-align: center;
  color: var(--text-muted);
  margin: var(--space-8) 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--space-12);
  padding: var(--space-6) 0 var(--space-12);
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 19px;
  color: var(--text-muted);
  text-align: center;
}
.site-footer .nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-3);
}

/* ---------- Legal pages ---------- */

.doc-header {
  padding: var(--space-8) 0 var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}
.doc-header h1 {
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 var(--space-2);
}
.effective {
  font-size: 14px;
  line-height: 19px;
  color: var(--text-muted);
  margin: 0;
}
.tldr {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0 var(--space-8);
  font-size: 15px;
}
.tldr strong {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.doc h2 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: var(--space-8) 0 var(--space-3);
}
.doc h3 {
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-2);
}
.doc p { margin: 0 0 var(--space-4); }
.doc ul { margin: 0 0 var(--space-4); padding-left: var(--space-6); }
.doc li { margin-bottom: var(--space-2); }
.caps { text-transform: uppercase; font-weight: 600; }

/* ---------- Small screens ---------- */

@media (max-width: 520px) {
  .container { padding: 0 var(--space-4); }
  .brand-link img { height: 44px; }
  .intro { padding: var(--space-8) 0 var(--space-12); }
  .tagline { font-size: 32px; line-height: 38px; letter-spacing: -0.3px; }
  .shots { justify-content: flex-start; }
  .phone img { width: 188px; }
  .doc-header h1 { font-size: 28px; line-height: 34px; }
}
