/*
  bayong.app — values mirror src/theme/tokens.ts (sand ground, sage accent,
  1px lines instead of shadows, radius 12/16/24). Change a value there first.
  Fonts are self-hosted, subset to Latin (fonts/LICENSE.txt): no request to
  any third party, so the privacy page stays true for the site too.
*/
@font-face {
  font-family: 'Bricolage Grotesque';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/bricolage-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/figtree-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/figtree-600.woff2') format('woff2');
}

:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --surface-alt: #efebe4;
  --line: #e2dcd3;
  --text: #1f2421;
  --muted: #5e645f;
  --faint: #8a908a;
  --accent: #4f6b5d;
  --accent-soft: #e4ebe4;
  --on-accent: #ffffff;
  --person-a: #2f5e9e;
  --person-b: #86580f;
  --qr-ground: #ffffff; /* a QR stays dark-on-white in both themes, so it scans */
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151816;
    --surface: #1e2320;
    --surface-alt: #272d29;
    --line: #2e3531;
    --text: #eceae4;
    --muted: #9aa39b;
    --faint: #767d77;
    --accent: #8fb39c;
    --accent-soft: #1f2a24;
    --on-accent: #151816;
    --person-a: #8fb4e8;
    --person-b: #e0b56a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-wrap: anywhere;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:focus-visible,
.button:focus-visible,
.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
img {
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 680px;
}

/* ── Header / footer ───────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 600 22px/1 var(--display);
  min-height: 44px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
}
.site-nav {
  display: flex;
  gap: 4px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}
.site-footer a {
  color: var(--muted);
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ── Type ──────────────────────────────────────────────────────────── */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(36px, 6vw, 56px);
}
h2 {
  font-size: clamp(26px, 3.6vw, 34px);
}
h3 {
  font-family: var(--body);
  font-size: 18px;
  letter-spacing: 0;
}
p {
  margin: 0;
}
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 34ch;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 15px;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  filter: brightness(1.06);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ── Home: hero ────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 56px;
}
.hero .copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 4px;
}
.eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

/* The phone: drawn in HTML so it reads in both themes and stays sharp.
   A frame with a line, not a shadow (CLAUDE.md §5). */
.phone {
  justify-self: center;
  width: 100%;
  max-width: 340px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--surface);
  padding: 12px;
}
.screen {
  border-radius: 30px;
  background: var(--bg);
  padding: 20px 16px 16px;
  overflow: hidden;
}
.screen-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.screen-title strong {
  font: 600 24px/1.1 var(--display);
}
.screen-title span {
  font-size: 13px;
  color: var(--muted);
}
.aisle {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 14px 0 2px;
}
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.item:last-child {
  border-bottom: 0;
}
.box {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--faint);
}
.item.done {
  color: var(--faint);
  text-decoration: line-through;
}
.item.done .box {
  border-color: var(--accent);
  background: var(--accent);
  position: relative;
}
.item.done .box::after {
  content: '';
  position: absolute;
  left: 5.5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.by {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.by.a {
  color: var(--person-a);
}
.by.b {
  color: var(--person-b);
}
.addbar {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--faint);
  font-size: 15px;
}
.notif {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
}
.notif b {
  display: block;
  font-weight: 600;
}

/* ── Home: sections ────────────────────────────────────────────────── */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
  max-width: 640px;
}
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.three > div {
  display: grid;
  gap: 8px;
  align-content: start;
}
.num {
  font: 600 15px/1 var(--body);
  color: var(--accent);
}
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.features li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  align-content: start;
}
.features li p {
  color: var(--muted);
}
.term {
  font-style: italic;
}
.privacy-band {
  background: var(--accent-soft);
  border-radius: 24px;
  padding: 36px 32px;
  display: grid;
  gap: 14px;
  justify-items: start;
}
.privacy-band ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

/* ── Prose pages (privacy, support) ────────────────────────────────── */
.prose {
  padding: 48px 0 0;
}
.prose h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 8px;
}
.prose h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}
.prose h3 {
  margin: 24px 0 6px;
}
.prose p + p {
  margin-top: 12px;
}
.prose ul {
  padding-left: 22px;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.prose .summary {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 20px 22px;
}
.prose .summary h2 {
  margin-top: 0;
  font-size: 20px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 15px;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}
.prose th {
  color: var(--muted);
  font-weight: 600;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  min-height: 56px;
  display: flex;
  align-items: center;
  font-weight: 600;
  padding: 12px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  margin-left: auto;
  padding-left: 16px;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: '\2013';
}
.faq details > div {
  padding: 0 0 18px;
  color: var(--muted);
}
.faq details > div p + p {
  margin-top: 10px;
}
.contact {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 20px 22px;
  display: grid;
  gap: 8px;
}

/* ── Phone width ───────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 0;
    gap: 40px;
  }
  .three,
  .features {
    grid-template-columns: 1fr;
  }
  .three {
    gap: 28px;
  }
  .privacy-band {
    padding: 28px 22px;
  }
}
@media (max-width: 400px) {
  .site-nav a {
    padding: 0 6px;
  }
  .brand {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
.prose .gap {
  margin-top: 12px;
}
.prose .gap-lg {
  margin-top: 32px;
}

/* ── Home: feature groups and the join cards ───────────────────────── */
.group {
  font-family: var(--display);
  font-size: 22px;
  margin: 40px 0 4px;
}
.group:first-of-type {
  margin-top: 0;
}
.join {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.join-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.qr {
  flex: none;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: var(--qr-ground);
}
.join-steps {
  flex: 1 1 220px;
  display: grid;
  gap: 12px;
  justify-items: start;
}
.join-steps h3 {
  font-family: var(--display);
  font-size: 22px;
}
.join-steps ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
@media (max-width: 820px) {
  .join {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Home: feature tiles (icons are lucide, 1.5px, as in the app) ──── */
.section-title {
  margin-bottom: 28px;
}
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tiles li {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 18px 16px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 8px;
}
.tiles h3 {
  font-size: 16px;
}
.tiles p {
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}
.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
.promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}
.promises span {
  color: var(--text);
}
.promises svg {
  flex: none;
}
@media (max-width: 820px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .promises {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 340px) {
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}
