/* Zenbo website: landing, guides, legal pages and the site-wide footer. One stylesheet, versioned file name
   (bump to site-v2.css on a change and update build.mjs CSS + index.html). Warm paper and ink, same tokens as the app
   (designsystem): paper #F8F0E7, ink #2E2723, Bao orange. Fonts: Fraunces (headlines, italic second line) + Nunito. */
:root {
  --paper: #F8F0E7;
  --paper-raised: #FBF6F0;
  --paper-deep: #F1E4D6;
  --mist: #EFE2D3;
  --ink: #2E2723;
  --ink-2: #5E5249;
  --ink-3: #706257;
  --outline: #DCCFC3;
  --line: #E6D9CC;
  --bao: #D46F3A;
  --bao-deep: #A9512A;
  --seal: #B8452C;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--ink); text-decoration-color: var(--bao); text-underline-offset: 0.2em; }
a:hover { color: var(--bao-deep); }
:focus-visible { outline: 3px solid var(--bao); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 700; z-index: 20; text-decoration: none; }
.skip:focus { top: 16px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.4vw, 66px); }
h1 em, h2 em { font-style: italic; font-weight: 400; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }
p { text-wrap: pretty; }
.lede { color: var(--ink-2); font-size: clamp(18px, 2vw, 20px); max-width: 34em; }
.eyebrow { color: var(--bao-deep); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.fine { color: var(--ink-3); font-size: 14px; max-width: 46em; }
.muted { color: var(--ink-2); }

/* Header */
.site-header { padding: 14px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 22px; letter-spacing: 0.03em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.header-row nav { display: flex; align-items: center; gap: 4px; }
.header-row nav a.txt { display: none; color: var(--ink-2); text-decoration: none; padding: 0 12px; min-height: 44px; align-items: center; font-weight: 700; font-size: 15px; }
.header-row nav a.txt:hover { color: var(--ink); }
@media (min-width: 720px) { .header-row nav a.txt { display: inline-flex; } }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; font-size: 16px; }
.pill:hover { color: var(--paper); background: #1F1A17; }
.pill.ghost { background: var(--paper-raised); color: var(--ink); border: 1px solid var(--outline); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: inline-flex; border-radius: 10px; transition: transform 0.2s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 52px; width: auto; }
.store-soon { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 0 16px; border-radius: 10px; border: 1px dashed var(--outline); color: var(--ink-3); font-size: 14px; line-height: 1.25; }
.store-soon strong { color: var(--ink-2); font-size: 15px; }

/* Hero */
.hero { display: grid; gap: 36px; align-items: center; padding: 24px 0 64px; }
.hero-copy { display: grid; gap: 20px; }
.hero-art { position: relative; justify-self: center; width: min(420px, 92vw); aspect-ratio: 1; }
.hero-art .bao { position: absolute; inset: 6%; width: 88%; height: 88%; }
.hero-art .bao.breathe { animation: breathe 6s ease-in-out infinite; transform-origin: 50% 75%; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@media (prefers-reduced-motion: reduce) { .hero-art .bao.breathe { animation: none; } }
.hero-art .stroke { position: absolute; left: 30%; bottom: 0; width: 40%; }
.hero-art .seal { position: absolute; right: 4%; top: 6%; width: 54px; height: 54px; border-radius: 10px; background: var(--seal); color: #FBF1E8; display: grid; place-items: center; font-size: 28px; transform: rotate(6deg); box-shadow: 0 6px 16px -6px rgba(46, 39, 35, 0.45); }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; color: var(--ink-2); }

/* Bands */
.band { padding: 72px 0; border-top: 1px solid var(--line); }
.band .head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 40em; }

/* Ritual steps */
.ritual { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.ritual li { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: grid; gap: 6px; }
.ritual .t { font-family: var(--display); font-size: 15px; color: var(--bao-deep); font-style: italic; }
.ritual h3 { font-size: 23px; }
.ritual p { color: var(--ink-2); font-size: 16px; }
.split { display: grid; gap: 36px; align-items: center; }
.split .copy { display: grid; gap: 16px; }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--bao); transform: translateY(-2px); }
.phone { width: min(300px, 76vw); justify-self: center; border-radius: 36px; padding: 8px; background: var(--ink); box-shadow: 0 30px 60px -24px rgba(46, 39, 35, 0.5); }
.phone img { border-radius: 29px; width: 100%; }
.shots { list-style: none; padding: 4px 4px 18px; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 240px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots li { scroll-snap-align: center; display: grid; gap: 10px; }
.shots img { border-radius: 24px; border: 1px solid var(--outline); background: var(--paper-raised); }
.shots span { font-size: 14px; color: var(--ink-2); text-align: center; }

/* Plans */
.plans { display: grid; gap: 14px; }
.plan { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.plan.free { border-color: var(--ink); }
.plan h3 { font-size: 26px; }
.plan .p { font-family: var(--display); font-size: 20px; color: var(--bao-deep); }
.plan ul { padding-left: 20px; color: var(--ink-2); font-size: 16px; display: grid; gap: 4px; }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 780px; }
details { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 18px; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; min-height: 56px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; color: var(--bao); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 20px 18px; color: var(--ink-2); font-size: 16px; }

/* Download */
.download { padding: 72px 0 16px; border-top: 1px solid var(--line); text-align: center; display: grid; gap: 18px; justify-items: center; }
.download .lede { margin-inline: auto; }
.download .stores { justify-content: center; }
.download .bao-mini { width: 96px; height: 96px; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding: 40px 0 80px; }
  .ritual { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split.rev .copy { order: 2; }
  .plans { grid-template-columns: 1fr 1fr; }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); grid-auto-columns: auto; overflow: visible; }
}

/* ---------- Guide pages ---------- */
.crumbs { font-size: 14px; color: var(--ink-3); padding: 4px 0 0; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.guide-top { display: grid; gap: 18px; padding: 20px 0 40px; }
.guide-top h1 { font-size: clamp(32px, 5.4vw, 54px); max-width: 18em; }
.answer { font-size: clamp(18px, 2vw, 20px); max-width: 36em; }
.why { border-left: 4px solid var(--bao); padding: 4px 0 4px 14px; color: var(--ink-2); max-width: 36em; }
.why strong { color: var(--ink); }
.guide-grid { display: grid; gap: 40px; padding: 40px 0 56px; border-top: 1px solid var(--line); }
.visual { justify-self: center; width: min(300px, 80vw); display: grid; gap: 12px; }
.visual .frame { border-radius: 34px; padding: 7px; background: var(--ink); box-shadow: 0 30px 60px -24px rgba(46, 39, 35, 0.5); }
.visual img { width: 100%; border-radius: 28px; }
.visual figcaption { color: var(--ink-3); font-size: 14px; text-align: center; }
.prose { display: grid; gap: 16px; max-width: 720px; min-width: 0; }
.prose h2 { font-size: clamp(25px, 3.2vw, 32px); margin-top: 18px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ol, .prose ul { padding-left: 22px; display: grid; gap: 8px; margin: 0; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-raised); }
.prose table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--mist); color: var(--ink); font-weight: 700; }
.prose td { color: var(--ink-2); }
.prose tr:last-child td { border-bottom: 0; }
.note { font-size: 15px; color: var(--ink-2); background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.related { padding: 48px 0; border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 20px; font-size: clamp(25px, 3.2vw, 32px); }
.guide-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.guide-list a { display: grid; gap: 4px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; text-decoration: none; min-height: 56px; color: var(--ink); }
.guide-list a:hover { background: var(--mist); color: var(--ink); }
.guide-list strong { font-weight: 700; }
.guide-list span { color: var(--ink-2); font-size: 15px; }
.more { display: inline-flex; margin-top: 16px; min-height: 44px; align-items: center; color: var(--bao-deep); font-weight: 700; }
.guide-group { padding: 8px 0 32px; }
.guide-group h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 14px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.langs a { padding: 4px 12px; border: 1px solid var(--outline); border-radius: 999px; text-decoration: none; color: var(--ink-2); min-height: 32px; display: inline-flex; align-items: center; }
.langs a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (min-width: 860px) {
  .guide-grid { grid-template-columns: 0.75fr 1.25fr; align-items: start; }
  .guide-grid .visual { position: sticky; top: 24px; }
  .guide-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Legal pages ---------- */
.legal { width: min(760px, 100% - 32px); margin: 0 auto; padding: 16px 0 24px; }
.legal h1 { font-size: clamp(32px, 6vw, 44px); margin: 12px 0 6px; }
.legal h2 { font-size: 24px; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--ink); margin: 0 0 12px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal .meta { color: var(--ink-3); margin-bottom: 20px; }
.legal .note { margin: 18px 0; }
.legal .note p:last-child { margin-bottom: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 18px; background: var(--paper-raised); border: 1px solid var(--line); display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.legal .langs { margin: 8px 0 4px; }
.legal .tnote { font-size: 14px; color: var(--ink-3); }

/* ---------- Site-wide footer (markup generated by Web/seo/build.mjs) ---------- */
.site-footer { margin: 64px 0 0; padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); background: var(--ink); color: #D9CCBF; font-size: 15px; line-height: 1.5; }
.site-footer a { color: #E9DED2; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; }
.sf-wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.sf-band { display: flex; flex-direction: column; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid rgba(233, 222, 210, 0.16); }
.sf-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--display); font-size: 26px; color: #FBF6F0; }
.sf-brand img { width: 44px; height: 44px; border-radius: 12px; }
.sf-tag { font-family: var(--display); font-style: italic; color: #D9CCBF; font-size: 17px; }
.sf-stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sf-stores img { height: 44px; width: auto; }
.sf-soon { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px dashed rgba(233, 222, 210, 0.4); border-radius: 8px; font-size: 13px; color: #BFB1A4; }
.sf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding: 28px 0; }
.sf-h { color: #F2B583; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 6px; }
.sf-list { list-style: none; padding: 0; margin: 0; }
.sf-list a { display: inline-flex; align-items: center; min-height: 40px; line-height: 1.3; }
.sf-col.wide { grid-column: 1 / -1; }
.sf-col.wide .sf-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.sf-col.wide.sf-legal .sf-list { grid-template-columns: 1fr; }
.sf-legal li { min-height: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; }
.sf-legal .sf-list a { min-height: 32px; }
.sf-bottom { display: flex; flex-direction: column; gap: 4px; padding-top: 22px; border-top: 1px solid rgba(233, 222, 210, 0.16); color: #BFB1A4; font-size: 13px; }
@media (min-width: 760px) {
  .sf-col.wide.sf-legal .sf-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-legal { grid-column: 1 / -1 !important; }
  .sf-band { flex-direction: row; align-items: center; justify-content: space-between; }
  .sf-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 32px; }
  .sf-col.wide { grid-column: span 2; }
  .sf-bottom { flex-direction: row; justify-content: space-between; }
}
.legal td, .legal th { min-width: 150px; }
