/* LumiBaby — calm, warm, phone first. No external fonts or libraries. */

:root {
  --bg: #FFFAF3;
  --surface: #F8F2E7;
  --card: #FBF9F6;
  --sage: #429B87;
  --sage-dark: #2F6E60;
  --clay: #7A4A32;
  --text: #2E3330;
  --text-2: #5F6A66;
  --gold: #E8A33D;
  --line: #E6DCCB;
  --on-clay: #FFFAF3;
  --link: var(--sage-dark);
  --focus: #2F6E60;
  --art-soft: #F1E6D3;
  --art-ivory: #FBF9F6;
  --art-clay: #C98E6E;

  --radius: 16px;
  --radius-sm: 12px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1A16;
    --surface: #28231E;
    --card: #2F2924;
    --sage: #7CC3B1;
    --sage-dark: #8FD0BF;
    --clay: #EDBF9E;
    --text: #F2EBE0;
    --text-2: #CBC1B4;
    --line: #463D35;
    --on-clay: #2A1A10;
    --focus: #8FD0BF;
    --art-soft: #2F2924;
    --art-ivory: #3A332C;
    --art-clay: #B57E60;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; }

h1, h2, h3 { color: var(--clay); line-height: 1.2; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--clay); color: var(--on-clay);
  padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip:focus { top: 1rem; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-inline: 1.25rem; }
.narrow { max-width: 44rem; }
.center { text-align: center; }
.center .stores { justify-content: center; }
.small { font-size: .9375rem; color: var(--text-2); }
.lead { font-size: clamp(1.125rem, 3.5vw, 1.3rem); color: var(--text-2); }
.eyebrow { color: var(--sage-dark); font-weight: 600; letter-spacing: .04em; margin-bottom: .5rem; }
.meta { color: var(--text-2); }

/* Header */
.site-header { padding-block: 1rem; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--clay); min-height: 44px; }
.wordmark { font-weight: 700; font-size: 1.35rem; }
.logo { width: 44px; height: 44px; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem;
  border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500;
}
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--clay); }

/* Phone: logo and language on the first row, nav below. Wide: one row. */
.brand { flex: 1 1 auto; }
.site-header nav { flex: 1 1 100%; order: 3; }
@media (min-width: 52rem) {
  .brand { flex: 0 0 auto; }
  .site-header nav { flex: 0 1 auto; order: 0; margin-left: auto; }
  .lang-menu { order: 1; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500;
  list-style: none; background: var(--bg);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--surface); }
.flag { width: 1.5rem; height: 1rem; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.chevron, .check { width: .75rem; height: .75rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lang-menu[open] .chevron { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + .4rem); z-index: 5;
  list-style: none; margin: 0; padding: .4rem; min-width: 11rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(46, 51, 48, .08);
}
.lang-menu li a {
  display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .75rem;
  border-radius: 8px; color: var(--text); text-decoration: none;
}
.lang-menu li a:hover { background: var(--surface); }
.lang-menu li a[aria-current="true"] { color: var(--clay); font-weight: 600; }
.lang-menu .check { margin-left: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--clay); color: var(--on-clay); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { border-color: var(--clay); color: var(--clay); background: transparent; }
.btn-secondary:hover { background: var(--surface); }

.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 1rem; }
.store-btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: .7rem 1.3rem;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  background: var(--text); color: var(--bg);
}
.store-btn.is-soon {
  background: var(--card); color: var(--text-2);
  border: 2px dashed var(--line); font-weight: 500;
}

/* Sections */
main > section, main > .wrap { padding-block: clamp(2.5rem, 8vw, 5rem); }
.band { background: var(--surface); }

.hero { padding-block: clamp(1.5rem, 6vw, 4rem) clamp(2.5rem, 8vw, 5rem); }
.hero-inner { display: grid; gap: 2rem; align-items: center; }
.hero-art { max-width: 36rem; justify-self: center; }
@media (min-width: 52rem) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; }
}

.principles {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; gap: 1.5rem; counter-reset: p;
}
.principles li { counter-increment: p; background: var(--card); border-radius: var(--radius); padding: 1.5rem; }
.principles li::before {
  content: "0" counter(p); display: block;
  font-size: 2.25rem; font-weight: 700; color: var(--sage-dark); line-height: 1; margin-bottom: .75rem;
}
.principles p { margin: 0; color: var(--text-2); }
@media (min-width: 48rem) { .principles { grid-template-columns: repeat(3, 1fr); } }

.cards { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card p { margin: 0; color: var(--text-2); }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

.quote-band { text-align: center; }
.quote {
  font-family: var(--serif); font-style: italic; color: var(--clay);
  font-size: clamp(1.4rem, 5vw, 2.1rem); line-height: 1.35; margin: 0 auto; max-width: 30ch;
}
.prose .quote { margin: 2rem 0; text-align: left; }

.cta-band {
  display: grid; gap: 1.5rem; align-items: center;
  background: var(--surface); border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 3rem);
}
.cta-band .illo { max-width: 20rem; justify-self: center; }
@media (min-width: 44rem) { .cta-band { grid-template-columns: minmax(14rem, 22rem) 1fr; } .cta-band .illo { max-width: 100%; } }

/* The app's illustrations. Shape comes from each image's width/height. */
.illo { display: block; width: 100%; height: auto; }
.illo-card { border-radius: var(--radius-sm); }
/* Cards bring their own background, so the slot steps aside. */
.feature-art:has(.illo-card) { aspect-ratio: auto; padding: 0; background: none; }
.feature-art .illo-card { max-width: 22rem; }
.head-illo { max-width: 22rem; margin: 0 0 1rem; }
.prose .illo:not(.head-illo) { max-width: 26rem; margin: .5rem auto 1.25rem; }

/* Art */
.art .a-soft { fill: var(--art-soft); }
.art .a-sage { fill: var(--sage); }
.art .a-sage-dark { fill: var(--sage-dark); }
.art .a-gold { fill: var(--gold); }
.art .a-clay { fill: var(--art-clay); }
.art .a-ivory { fill: var(--art-ivory); stroke: var(--line); stroke-width: 1.5; }
.art .a-stroke { fill: none; stroke: var(--art-ivory); stroke-width: 3; stroke-linecap: round; }
.art .a-line { fill: none; stroke: var(--art-clay); stroke-width: 3; stroke-linecap: round; }
.art .a-stroke-sage { fill: none; stroke: var(--sage); stroke-width: 4; stroke-linecap: round; }
.art .a-stroke-clay { fill: none; stroke: var(--art-clay); stroke-width: 4; stroke-linecap: round; }
.art-sm { width: 4rem; height: 4rem; margin-bottom: .75rem; }
.art-md { width: 6rem; height: 6rem; margin-bottom: 1rem; }
.art-lg { width: 100%; max-width: 14rem; }

/* Features */
.page-head { padding-bottom: 1rem; }
.feature {
  display: grid; gap: 1.25rem; align-items: center;
  padding-block: 2rem; border-top: 1px solid var(--line);
}
.feature-art { background: var(--surface); border-radius: var(--radius); display: grid; place-items: center; padding: 1rem; aspect-ratio: 3 / 2; }
.feature-art .art-lg { max-width: 9rem; }
@media (min-width: 48rem) {
  .feature { grid-template-columns: 22rem 1fr; gap: 2.5rem; }
  .feature:nth-of-type(even) { grid-template-columns: 1fr 22rem; }
  .feature:nth-of-type(even) .feature-art { order: 2; }
}
.note {
  border-left: 4px solid var(--sage); background: var(--surface);
  padding: .75rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text);
}

/* Prose pages */
.prose section { margin-top: 2.5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4em; }
.callout { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }
.callout > :last-child { margin-bottom: 0; }
.callout-strong { border: 2px solid var(--clay); }
.prose .callout { margin-top: 1.5rem; }

.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-top: 2rem; }
.toc-title { font-size: 1.1rem; }
.toc ol { columns: 2 12rem; margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; min-width: 30rem; }
caption { text-align: left; font-weight: 600; padding: .75rem 1rem; color: var(--clay); }
th, td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-top: 1px solid var(--line); }
thead th { background: var(--surface); }
tbody th { font-weight: 600; white-space: nowrap; }

.guide-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.guide-head .art-sm { flex: none; margin: 0; }
.guide-head h2 { margin: 0; }

.steps li::marker { color: var(--sage-dark); font-weight: 700; }

.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1rem 0; min-height: 44px;
  font-weight: 600; color: var(--clay); font-size: 1.1rem; list-style-position: outside;
}
.faq > div { padding-bottom: 1rem; }

/* Invite */
.code-label { font-weight: 600; margin: 1.5rem 0 .5rem; }
.code-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.code {
  flex: 1 1 14rem; display: block; padding: .9rem 1rem; border-radius: var(--radius-sm);
  background: var(--card); border: 2px solid var(--line); color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem;
  overflow-wrap: anywhere; user-select: all;
}
.notice { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin-top: 1rem; }
.notice p { margin: 0; }
.invite section { margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--surface); padding-block: 2.5rem; margin-top: 2rem; }
.disclaimer { font-weight: 600; color: var(--text); }
.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.fine { color: var(--text-2); font-size: .9375rem; margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .nav a { transition: background-color .2s ease, filter .2s ease; }
}
