/* Yummie landing page.
   Tokens mirror the app's constants/theme.ts — the computed hexes are inlined
   here because this page does not import the app's TypeScript. */

:root {
  color-scheme: light;

  --bg:            #FFFBF4;
  --card:          #ffffff;
  --border:        #EFEAE2;
  --shadow:        160, 150, 138;   /* #A0968A, as rgb parts */

  --accent:        #7DBB73;
  --accent-text:   #5A8753;
  --accent-wash:   #EDF5EB;
  --gold:          #E0941F;
  --room:          #EBF3DC;

  --text:          #36302A;
  --text-body:     #8A7E6C;
  --text-muted:    #A99D8C;

  --r-card:   24px;
  --r-button: 18px;
  --gutter:   24px;
  --measure:  640px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 12vw, 88px) 0 clamp(40px, 10vw, 72px);
}

.buddy-stack {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(180px, 52vw, 260px);
  aspect-ratio: 1;
}

.buddy-room {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 9999px;
  background: var(--room);
}

.buddy-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Both start invisible: the room circle holds the space while Rive loads, so a
   static Buddy never flashes first. Exactly one of them is then revealed. */
#buddy-canvas, #buddy-fallback { opacity: 0; transition: opacity .2s ease; }
#buddy-canvas.is-live { opacity: 1; }
#buddy-fallback.is-shown { opacity: 1; }

.eyebrow {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.headline {
  margin: 12px 0 0;
  font-size: clamp(28px, 8vw, 44px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.8px;
  text-wrap: balance;
}

.sub {
  margin: 14px 0 0;
  max-width: 30ch;
  font-size: clamp(15px, 4vw, 17px);
  line-height: 1.5;
  color: var(--text-body);
  text-wrap: pretty;
}

/* ── coming-soon store badges ──────────────────────────────────────────── */

.stores { margin-top: clamp(28px, 7vw, 40px); }

.stores-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stores-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-button);
  background: var(--card);
  color: var(--text);
  opacity: .55;
  cursor: default;
  user-select: none;
}

.badge-glyph { width: 22px; height: 22px; flex: none; }

.badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-text small {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── features ──────────────────────────────────────────────────────────── */

.features {
  display: grid;
  gap: 14px;
  padding-bottom: clamp(48px, 12vw, 88px);
}

.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 10px 22px rgba(var(--shadow), .18);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-wash);
  color: var(--accent-text);
}

.card-icon svg { width: 22px; height: 22px; }

.card h2 {
  margin: 16px 0 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.card p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-body);
  text-wrap: pretty;
}

/* ── beliefs ───────────────────────────────────────────────────────────── */

.beliefs {
  text-align: center;
  padding-bottom: clamp(48px, 12vw, 88px);
}

.beliefs .eyebrow { margin: 0; }

.beliefs-title {
  margin: 10px 0 0;
  font-size: clamp(24px, 6.5vw, 34px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.6px;
  text-wrap: balance;
}

.pillars {
  display: grid;
  gap: 14px;
  margin-top: clamp(24px, 6vw, 36px);
  text-align: left;
}

.pillar {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 10px 22px rgba(var(--shadow), .18);
}

.pillar-tag {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--accent-wash);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.pillar h3 {
  margin: 14px 0 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.pillar-lede {
  margin: 4px 0 0;
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
}

.pillar ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pillar li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-body);
  text-wrap: pretty;
}

.pillar li + li { margin-top: 10px; }

.pillar li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--accent);
}

.pillar strong { color: var(--text); font-weight: 700; }

.beliefs-note {
  max-width: 52ch;
  margin: clamp(22px, 5vw, 30px) auto 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.beliefs-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--accent-text);
  text-decoration: none;
}

.beliefs-link:hover { text-decoration: underline; }

/* ── footer ────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 24px var(--gutter);
}

.foot-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.foot-line a { color: var(--text-body); text-decoration: none; }
.foot-line a:hover { color: var(--accent-text); text-decoration: underline; }
.dot { color: var(--border); }

/* ── responsive ────────────────────────────────────────────────────────── */

@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (min-width: 840px) {
  .pillars { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (min-width: 1024px) {
  :root { --measure: 1080px; }
  .hero .sub { max-width: 34ch; }
  .features { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  #buddy-canvas { display: none; }
  #buddy-fallback { opacity: 1; }
  * { animation: none !important; transition: none !important; }
}

/* ── legal pages (privacy.html, terms.html) ────────────────────────────── */

.legal-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 0 0;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.legal-top img { width: 32px; height: 32px; border-radius: 9px; }

.legal {
  max-width: 720px;
  padding: clamp(28px, 7vw, 48px) 0 clamp(48px, 12vw, 88px);
}

.legal h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.legal .effective {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.legal .summary {
  margin: 24px 0 8px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 10px 22px rgba(var(--shadow), .12);
}

.legal .summary h2 { margin-top: 0; }

.legal h2 {
  margin: 36px 0 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.legal h3 {
  margin: 22px 0 0;
  font-size: 15.5px;
  font-weight: 800;
}

.legal p, .legal li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}

.legal p { margin: 10px 0 0; }
.legal ul { margin: 10px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text); font-weight: 700; }

.legal a { color: var(--accent-text); }

.legal address {
  margin: 10px 0 0;
  font-style: normal;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}

.legal .table-wrap { overflow-x: auto; margin-top: 12px; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
}

.legal th, .legal td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal th { color: var(--text); font-weight: 800; }
.legal .caps { text-transform: uppercase; font-size: 13.5px; }

.legal .button {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 24px;
  border-radius: var(--r-button);
  background: var(--accent-text);
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(var(--shadow), .18);
}

.legal .button:hover { filter: brightness(1.08); }
.legal .button + p { margin-top: 24px; }

/* ── blog (blog/index.html, blog/<slug>/index.html) ────────────────────── */

/* Blog pages use one reading-width column, logo included */
main.narrow { max-width: calc(680px + 2 * var(--gutter)); }

.blog-head {
  padding: clamp(28px, 7vw, 48px) 0 0;
}

.blog-head h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.blog-head p {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--text-body);
}

.post-list {
  display: grid;
  gap: 14px;
  margin: clamp(24px, 6vw, 36px) 0 0;
  padding: 0 0 clamp(48px, 12vw, 88px);
  list-style: none;
}

.post-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 10px 22px rgba(var(--shadow), .18);
  color: inherit;
  text-decoration: none;
}

.post-card:hover h2 { color: var(--accent-text); }

.post-card h2 {
  margin: 12px 0 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.post-card p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-body);
}

.post-meta {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.post {
  max-width: 680px;
  padding: clamp(28px, 7vw, 48px) 0 clamp(48px, 12vw, 88px);
}

.post h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.9px;
  text-wrap: balance;
}

.post .standfirst {
  margin: 10px 0 0;
  font-size: clamp(17px, 4.4vw, 19px);
  line-height: 1.45;
  color: var(--text-body);
}

.tldr {
  margin: 28px 0 8px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 10px 22px rgba(var(--shadow), .12);
}

.post .tldr h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-text);
}

.tldr ul { margin: 12px 0 0; padding: 0; list-style: none; }

.tldr li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-body);
}

.tldr li + li { margin-top: 8px; }

.tldr li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--accent);
}

.post h2 {
  margin: 40px 0 0;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.post p, .post li {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-body);
  text-wrap: pretty;
}

.post p { margin: 14px 0 0; }
.post > ul { margin: 14px 0 0; padding-left: 22px; }
.post > ul li + li { margin-top: 8px; }
.post strong { color: var(--text); font-weight: 700; }
.post em { color: var(--text); }
.post .tldr strong { color: var(--text); }

.post a { color: var(--accent-text); }

.post sup { line-height: 0; }

.post sup a {
  padding: 0 1px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.post .post-meta { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }

.post .sign-off {
  margin-top: 28px;
  font-weight: 700;
  color: var(--text);
}

.sources {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.post .sources h2 { margin: 0; font-size: 17px; }

.sources ol { margin: 12px 0 0; padding-left: 22px; }

.sources li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.sources li + li { margin-top: 8px; }
.sources a { color: var(--text-body); }
.sources li:target { color: var(--text); }

