/* Littoral Food's palette: greyscale and the primary green (apps/mobile/src/constants/theme.ts). */
:root {
  color-scheme: light;
  --primary: #06c167;
  --primary-dark: #049e54;
  --primary-light: #e6f9ef;
  --ink: #1a1a1a;
  --muted: #545454;
  --faint: #8f8f8f;
  --line: #ebebeb;
  --surface: #f6f6f6;
  --white: #ffffff;
  --radius: 16px;
  --font:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.6 var(--font);
}

a {
  color: var(--ink);
  font-weight: 600;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.top {
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.top nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}
.top nav a {
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.top nav a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 18px 0 16px;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 28px;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 190px;
  padding: 10px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  line-height: 1.2;
}
.store small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}
.store span {
  font-size: 18px;
  font-weight: 700;
}
.soon {
  margin-top: 12px;
  font-size: 13px;
  color: var(--faint);
}
.phone {
  justify-self: center;
  width: min(320px, 80vw);
  aspect-ratio: 9 / 16;
  border-radius: 40px;
  background: linear-gradient(160deg, var(--primary-light), var(--surface) 60%);
  border: 10px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px;
  text-align: center;
}
.phone img {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.phone strong {
  font-size: 20px;
}
.phone p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Features */
.features {
  background: var(--surface);
  padding: 64px 0;
}
.features h2,
.join h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 8px;
}

.join {
  padding: 64px 0;
}
.join .grid {
  grid-template-columns: repeat(2, 1fr);
}
.join .card {
  border: 1px solid var(--line);
}

/* Legal pages */
.doc {
  padding: 48px 0 64px;
}
.doc .wrap {
  max-width: 760px;
}
.doc h1 {
  font-size: clamp(30px, 4vw, 40px);
  margin-top: 0;
}
.doc h2 {
  font-size: 20px;
  margin: 36px 0 8px;
}
.doc p,
.doc li {
  color: var(--muted);
}
.doc .updated {
  font-size: 14px;
  color: var(--faint);
}
.todo {
  background: #fff6d6;
  color: #6b5200;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
th {
  color: var(--ink);
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 14px;
  color: var(--faint);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.foot a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 820px) {
  .hero .wrap,
  .grid,
  .join .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 40px;
  }
  .top nav {
    display: none;
  }
}
