/* Lumenpage homepage. These tokens are the design reference. */
:root {
  --paper: #F5F0E7;
  --sand: #ECE5D8;
  --ink: #2A2622;
  --ink-2: #5C554B;
  --muted: #6A6357;
  --placeholder: #6D665C;
  --green: #2E4A39;
  --green-hover: #263F30;
  --sage: #DCE1D3;
  --on-green: #D5DDD0;
  --on-green-accent: #C9D4C2;
  --bezel: #211E1B;
  --line-8: #2A262214;
  --line-12: #2A26221F;
  --line-16: #2A262229;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --serif: "Source Serif 4", "Serif fallback", Georgia, serif;
  --sans: Inter, "Inter fallback", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 10vw, 136px);
}

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/serif.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/serif-italic.woff2") format("woff2"); }
/* Metric-matched local fallbacks so the swap does not move the layout. */
@font-face { font-family: "Inter fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 107.51%; ascent-override: 90.10%; descent-override: 22.44%; line-gap-override: 0%; }
@font-face { font-family: "Serif fallback"; src: local("Georgia"); size-adjust: 100.34%; ascent-override: 103.25%; descent-override: 33.39%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/25px var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
a { color: inherit; }
em { font-style: italic; color: var(--green); }
.icon { width: 24px; height: 24px; flex: none; fill: currentColor; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.green :focus-visible { outline-color: var(--paper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 20; padding: 10px 16px; border-radius: 999px; background: var(--green); color: var(--paper); text-decoration: none; }
.skip:focus { top: 14px; }

.container { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.header { position: sticky; top: 0; z-index: 10; height: 72px; background: rgba(245, 240, 231, .88); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease); }
.header.scrolled { border-bottom-color: var(--line-12); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 24px/28px var(--serif); letter-spacing: -.01em; color: var(--ink); }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
.nav-link { font: 400 15px/22px var(--sans); color: var(--ink-2); text-decoration: none; transition: color 150ms var(--ease); }
.nav-link:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--green); color: var(--paper); font: 500 15px/22px var(--sans); text-decoration: none; white-space: nowrap; transition: background-color 150ms var(--ease); }
.pill:hover { background: var(--green-hover); }
@media (max-width: 640px) { .brand { font-size: 22px; } }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px 48px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-copy { flex: 1 1 460px; max-width: 620px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; height: 34px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--sand); color: var(--green); font: 500 14px/20px var(--sans); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--sage); }
h1 { font: 400 clamp(44px, 5.5vw, 76px)/1.04 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.lead { max-width: 520px; font: 400 clamp(19px, 1.8vw, 23px)/1.45 var(--serif); color: var(--ink-2); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 400 14px/20px var(--sans); color: var(--muted); }
.checks li { display: inline-flex; align-items: center; gap: 6px; }
.checks .icon { width: 18px; height: 18px; color: var(--green); }

.hero-art { position: relative; flex: 0 1 470px; width: min(540px, 100%); aspect-ratio: 540 / 760; margin-inline: auto; margin-bottom: 32px; }
.plate { position: absolute; right: 0; top: 0; width: calc(100% - 23.7%); height: 78.95%; border-radius: 16px; overflow: hidden; background: var(--sand); }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.hero-phone { position: absolute; left: 0; bottom: 0; width: 63.33%; }
.memory-card { position: absolute; right: -12px; bottom: 9.47%; width: clamp(176px, 46%, 248px); padding: 18px 18px 16px; border-radius: 20px; background: var(--paper); box-shadow: 0 1px 2px #0000000F, 0 24px 48px -12px #2A262240; }
.memory-label { font: 600 11px/14px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.memory-text { margin-top: 8px; font: 400 18px/25px var(--serif); }
.memory-mood { margin-top: 12px; display: flex; align-items: center; gap: 6px; font: 400 13px/18px var(--sans); color: var(--ink-2); }
.memory-mood .glyph { width: 20px; height: 20px; color: var(--green); }
@media (max-width: 560px) { .memory-card { right: 0; padding: 14px 14px 12px; } .memory-text { font-size: 16px; line-height: 22px; } }

/* Phone frame: 342×717 bezel, 10px padding, 50/40 radii, kept proportional when narrow. */
.phone { position: relative; width: min(342px, 100%); aspect-ratio: 342 / 717; border-radius: 14.62% / 6.97%; background: var(--bezel); box-shadow: 0 2px 4px #0000001F, 0 50px 90px -30px #2A262266; }
.phone img { position: absolute; left: 2.924%; top: 1.395%; width: 94.152%; height: 97.21%; border-radius: 12.42% / 5.74%; object-fit: cover; background: var(--paper); }

/* Mood glyphs are same-origin SVG masks, tinted with currentColor. */
.glyph { display: inline-block; flex: none; background: currentColor; -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.glyph-heavy { --glyph: url("assets/mood/mood-heavy.svg"); }
.glyph-low { --glyph: url("assets/mood/mood-low.svg"); }
.glyph-steady { --glyph: url("assets/mood/mood-steady.svg"); }
.glyph-good { --glyph: url("assets/mood/mood-good.svg"); }
.glyph-bright { --glyph: url("assets/mood/mood-bright.svg"); }

/* Principles */
.principles { border-block: 1px solid var(--line-8); padding-block: 28px; }
.principles-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font: italic 400 clamp(20px, 2vw, 26px)/32px var(--serif); }
.principles-list li { display: inline-flex; align-items: center; gap: 24px; }
.principles-list li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
/* The last line gets its own row on narrow screens, so no row starts with a dot. */
@media (max-width: 760px) {
  .principles-list { justify-content: center; }
  .principles-list li:last-child { flex-basis: 100%; justify-content: center; }
  .principles-list li:last-child::before { display: none; }
}

/* Sections */
.band { padding-block: var(--section); }
.sand { background: var(--sand); }
.green { background: var(--green); color: var(--paper); }
.green em { color: var(--on-green-accent); }
.label { margin-bottom: 20px; color: var(--green); font: 500 15px/22px var(--sans); }
.green .label { color: var(--on-green-accent); }
h2 { font: 400 clamp(40px, 5vw, 64px)/1.04 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.body { margin-top: 24px; max-width: 540px; font: 400 17px/27px var(--sans); color: var(--ink-2); }

.privacy-title { max-width: 980px; font-size: clamp(40px, 5.6vw, 76px); }
.privacy-grid { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 40px 56px; }
.privacy-item { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid #F5F0E74D; }
.circle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #F5F0E71A; }
.privacy-item h3 { font: 400 28px/34px var(--serif); }
.privacy-item p { max-width: 320px; color: var(--on-green); }
.privacy-note { margin-top: 48px; max-width: 720px; font: 400 15px/22px var(--sans); color: var(--on-green); }
.green a { color: var(--paper); }

.split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 64px 48px; }
.split-reverse { flex-wrap: wrap-reverse; }
.text-col { flex: 1 1 440px; max-width: 580px; }
.phone-col { flex: 0 1 342px; display: flex; justify-content: center; margin-inline: auto; }
.phone-col .phone { flex: none; }
.split > .text-col:only-child { max-width: none; }

.mood-card { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; padding: clamp(18px, 2.6vw, 28px); border-radius: 16px; background: var(--sand); }
.mood-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mood-head > span:first-child { font: 500 16px/22px var(--sans); }
.hint { display: inline-flex; align-items: center; gap: 4px; font: 400 13px/18px var(--sans); color: var(--muted); }
.hint .icon { width: 18px; height: 18px; }
.moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.mood { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.mood input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mood-circle { display: grid; place-items: center; width: 56px; height: 56px; max-width: 100%; border-radius: 50%; color: var(--ink-2); transition: background-color 200ms var(--ease), transform 200ms var(--ease), color 200ms var(--ease); }
.mood-circle .glyph { width: 44px; height: 44px; max-width: 80%; }
.mood-name { font: 400 13px/18px var(--sans); color: var(--ink-2); }
.mood input:checked ~ .mood-circle { background: var(--sage); color: var(--green); transform: scale(1.06); }
.mood input:checked ~ .mood-name { font-weight: 600; color: var(--ink); }
.mood input:focus-visible ~ .mood-circle { outline: 2px solid var(--green); outline-offset: 2px; }
.prompt { min-height: 54px; padding: 14px 18px; border-radius: 18px; background: var(--paper); font: 400 19px/27px var(--serif); color: var(--placeholder); }
#today .checks { margin-top: 24px; }

.sticky-col { flex: 1 1 340px; max-width: 440px; align-self: flex-start; }
@media (min-width: 900px) { .sticky-col { position: sticky; top: 120px; } }
.rows { margin-top: 32px; border-top: 1px solid var(--line-16); }
.row { padding-block: 20px; border-bottom: 1px solid var(--line-16); }
.row dt { font: 400 24px/30px var(--serif); }
.row dd { margin-top: 6px; color: var(--ink-2); }
.phone-pair { flex: 1 1 520px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 40px 32px; }
.phone-pair .phone { flex: 0 1 300px; width: auto; min-width: 0; }
.phone-offset { margin-top: clamp(0px, 8vw, 120px); }
@media (max-width: 720px) { .phone-pair .phone { flex-basis: min(300px, 100%); } .phone-offset { margin-top: 0; } }

.list { margin-top: 32px; border-top: 1px solid var(--line-16); }
.list li { display: flex; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line-16); }
.list .icon { width: 22px; height: 22px; color: var(--green); margin-top: 1px; }
.list strong { display: block; font: 500 16px/22px var(--sans); }
.list strong + span { display: block; font: 400 15px/22px var(--sans); color: var(--ink-2); }

/* FAQ */
.faq-layout { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.faq-head { flex: 1 1 280px; max-width: 380px; }
.faq { flex: 2 1 480px; min-width: 0; border-top: 1px solid var(--line-16); }
.faq-item { border-bottom: 1px solid var(--line-16); }
.faq-item h3 { font: inherit; }
.faq-button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 72px; padding: 20px 0; border: 0; background: none; color: var(--ink); font: 400 22px/30px var(--serif); text-align: left; cursor: pointer; }
.faq-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sand); color: var(--ink); transition: background-color 250ms var(--ease), color 250ms var(--ease); }
.faq-icon .icon { transition: transform 250ms var(--ease); }
.faq-button[aria-expanded="true"] .faq-icon { background: var(--green); color: var(--paper); }
.faq-button[aria-expanded="true"] .faq-icon .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 56px 26px 0; max-width: 640px; font: 400 16px/26px var(--sans); color: var(--ink-2); }
.faq-answer[hidden] { display: none; }
@media (max-width: 560px) { .faq-answer { padding-right: 0; } .faq-button { font-size: 20px; line-height: 28px; } }

/* Signup */
.signup { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.signup-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: var(--sand); }
.signup-input { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 0 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 400 17px/22px var(--sans); }
.signup-input::placeholder { color: var(--placeholder); opacity: 1; }
.signup-input:focus-visible { outline-offset: -2px; }
.signup-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--green); color: var(--paper); font: 500 16px/22px var(--sans); cursor: pointer; transition: background-color 150ms var(--ease), opacity 150ms var(--ease); }
.signup-button:hover { background: var(--green-hover); }
.signup-button:disabled { cursor: progress; opacity: .7; }
.signup-button .icon { width: 20px; height: 20px; }
.adult { min-height: 44px; display: flex; align-items: center; gap: 10px; padding-left: 20px; font: 400 13px/18px var(--sans); color: var(--muted); }
.adult input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.platform { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; padding: 0 0 0 20px; border: 0; font: 400 15px/20px var(--sans); color: var(--muted); }
.platform legend { float: left; padding: 0; margin-right: 4px; }
.platform label { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); }
.platform input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.on-green .platform, .on-green .platform label { color: var(--on-green); }
.on-green .platform input { accent-color: var(--paper); }
.signup-note { padding-left: 20px; font: 400 13px/18px var(--sans); color: var(--muted); }
.signup-note.error { color: var(--ink); }
.signup-done { display: flex; align-items: flex-start; gap: 12px; width: 100%; max-width: 560px; padding: 18px 20px; border-radius: 20px; background: var(--sand); text-align: left; }
.signup-done[hidden] { display: none; }
.signup-done .icon { color: var(--green); }
.done-title { font: 500 16px/22px var(--sans); }
.done-text { margin-top: 2px; font: 400 15px/22px var(--sans); color: var(--ink-2); }
@media (max-width: 480px) {
  .signup-row { flex-direction: column; align-items: stretch; border-radius: 28px; }
  .signup-input { padding-left: 14px; }
}

.on-green .signup-row { background: var(--paper); }
.on-green .adult, .on-green .signup-note { color: var(--on-green); }
.on-green .signup-note.error { color: #FFFFFF; }
.green .signup-done { background: #F5F0E71A; box-shadow: inset 0 0 0 1px #F5F0E733; color: var(--paper); }
.green .signup-done .icon { color: var(--on-green-accent); }
.green .done-text { color: var(--on-green); }

/* Official Google Play badge, unmodified. Google asks for clear space of a
   quarter of its height (14px at 56px), which the 16px+ gaps around it give,
   and at least 28px high. */
.store { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.play { display: inline-block; line-height: 0; }
.play img { display: block; width: auto; height: 56px; }
.text-link { font: 500 16px/22px var(--sans); color: var(--ink-2); text-decoration: none; }
.text-link:hover { color: var(--ink); }

/* Final CTA */
.cta { padding-block: clamp(80px, 11vw, 152px); }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.app-icon { width: 80px; height: 80px; border-radius: 20px; box-shadow: 0 20px 40px -12px #00000066; }
.cta-title { max-width: 900px; font-size: clamp(44px, 6.4vw, 88px); line-height: 1; letter-spacing: -.025em; }
.cta-lead { max-width: 560px; font: 400 clamp(19px, 1.8vw, 23px)/1.45 var(--serif); color: var(--on-green); }
.cta-small { font: 400 15px/22px var(--sans); color: var(--on-green); }
.cta .signup { text-align: left; }

/* Footer */
.footer { padding-block: 64px 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; padding-bottom: 48px; }
.footer-brand .brand { font-size: 22px; line-height: 28px; }
.footer-brand p { margin-top: 12px; font: 400 17px/25px var(--serif); color: var(--ink-2); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.footer-head { margin-bottom: 14px; font: 600 12px/16px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-cols ul { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a { font: 400 15px/22px var(--sans); color: var(--ink); text-decoration: none; transition: color 150ms var(--ease); }
.footer-cols a:hover { color: var(--green); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line-8); font: 400 13px/18px var(--sans); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* Local preview build only. */
.preview-banner { padding: 10px var(--gutter); text-align: center; background: var(--sage); color: var(--green); font-size: 13px; }

/* Editorial rhythm shared by the existing app previews. */
section[id] { scroll-margin-top: 100px; }
p, li { text-wrap: pretty; }
.story .body, .cta-lead, .faq-button { text-wrap: balance; }
/* The italic half of a headline is its own line, so balance never splits it. */
h1 em, h2 em { display: block; }
.story { padding-bottom: 0; }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 32px 80px; }
.story-inner .body:first-child { margin-top: 0; }
.story .text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 16px; color: var(--green); }
.experience-title { margin-top: 36px; font: 400 28px/34px var(--serif); text-wrap: balance; }
.experience-title + .body { margin-top: 12px; }
.preview-caption { position: absolute; top: calc(100% + 16px); width: 100%; text-align: center; color: var(--muted); font: 400 13px/20px var(--sans); }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-cols ul { gap: 0; }
@media (max-width: 1100px) {
  .hero { gap: 48px 32px; }
  .hero-copy { flex-basis: 400px; }
  .hero-art { flex-basis: 370px; }
}
@media (max-width: 760px) {
  .story-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { max-width: 620px; }
  .hero-art { flex-basis: 370px; }
  .phone-pair { flex-wrap: nowrap; gap: 16px; }
  .phone-pair .phone { flex: 1 1 0; }
}
@media (max-width: 640px) {
  .header { height: auto; background: var(--paper); }
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 12px; }
  .nav { display: contents; }
  .nav .pill { order: 1; margin-left: auto; padding-inline: 14px; font-size: 13px; }
  .nav-link { order: 2; flex: 1 1 25%; justify-content: center; font-size: 13px; }
  section[id] { scroll-margin-top: 120px; }
  .hero { padding-top: 36px; }
}
@media (max-width: 360px) {
  .brand { gap: 6px; font-size: 20px; }
  .brand img { width: 24px; }
  .nav .pill { padding-inline: 12px; font-size: 12px; }
}

.signup[hidden] { display: none; }
