/* Lumbly website. Colours match the app (src/ui/theme.ts). Fonts are served
   from this site (no Google Fonts), so a visit reaches no third party. */

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/Fraunces_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

:root {
  --ivory: #eae8de;
  --paper: #f6f4ec;
  --paper-deep: #eeebe1;
  --white: #ffffff;
  --sage: #b9c7b0;
  --sage-light: #dce3d5;
  --green: #84977f;
  --green-deep: #5c6f57;
  --forest: #283428;
  --forest-raised: #34443a;
  --cream: #f4f1e6;
  --lavender: #d8d0e5;
  --lavender-light: #ece7f2;
  --honey: #e2b85c;
  --honey-light: #f4e7c5;
  --honey-deep: #8c6a1e;
  --charcoal: #343a34;
  --muted: #5d635c;
  --subtle: #7d827b;
  --line: #e2dfd4;
  --danger: #a4543f;
  --danger-light: #f2ddd5;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(40, 52, 40, 0.04), 0 8px 24px rgba(40, 52, 40, 0.06);
  color-scheme: light only;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

img, svg { max-width: 100%; }
a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--forest); color: var(--cream); padding: 10px 16px; border-radius: 10px; z-index: 20; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.band { background: var(--ivory); }
.band-soft { background: var(--paper-deep); }

/* Type */

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-deep); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--forest); margin: 0; }
.display { font-size: clamp(42px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -0.025em; }
.title { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.12; letter-spacing: -0.018em; }
.subtitle { font-size: 24px; line-height: 1.25; }
.lede { font-size: 19px; color: var(--muted); max-width: 46ch; margin: 18px 0 0; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-raised); }
.btn-ghost { background: transparent; color: var(--forest); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { text-decoration: underline; }
.btn-sm { min-height: 40px; padding: 10px 18px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn svg { width: 16px; height: 16px; }

.launch-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 20px; }
.launch-note svg { width: 18px; height: 18px; color: var(--green-deep); }

/* Header */

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(246, 244, 236, 0.94); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--forest); text-decoration: none; }
.brand svg { width: 26px; height: 29px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--forest); }
.site-nav a[aria-current] { font-weight: 600; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--forest); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }
}

/* Footer */

.site-footer { background: var(--ivory); border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer-grid p { margin: 12px 0 0; max-width: 32ch; }
.footer-grid h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--forest); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-base a { color: var(--muted); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Cards and grids */

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card-flat { box-shadow: none; background: var(--paper); }
.card h3 { font-size: 22px; line-height: 1.25; margin: 16px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sage-light); color: var(--green-deep); }
.icon-badge svg { width: 24px; height: 24px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--sage); color: var(--green-deep); font-weight: 600; font-size: 15px; background: var(--paper); }
.step-head { display: flex; align-items: center; gap: 12px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.tag-soon { background: var(--honey-light); color: var(--honey-deep); }
.tag-now { background: var(--sage-light); color: var(--green-deep); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head .lede { margin-top: 12px; }

/* Hero */

.hero { padding: 40px 0 96px; overflow: hidden; }
.hero .split { grid-template-columns: 1fr 1fr; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; padding: 24px 0; }
@media (max-width: 900px) { .hero .split { grid-template-columns: 1fr; } .hero-art { padding: 40px 0 24px; } }

.page-hero { padding: 48px 0 64px; }

/* Meet Lumbly */

.meet { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; background: var(--ivory); border-radius: 32px; padding: 48px; overflow: hidden; }
.meet-art { position: relative; }
.meet-art .meadow { display: block; width: 100%; height: auto; border-radius: 24px; }
.meet-art .mascot { position: absolute; left: 50%; bottom: 9%; width: 46%; transform: translateX(-50%); }
@media (max-width: 860px) { .meet { grid-template-columns: 1fr; padding: 24px; gap: 28px; } }

/* Lumbly's six stages, each a size up from the last, all standing on one
   line of grass so it reads as Lumbly growing. */
.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 36px; align-items: end; }
.stages figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.stages img { height: auto; display: block; transform: translateY(6%); }
.stages figure:nth-child(1) img { width: 46%; }
.stages figure:nth-child(2) img { width: 56%; }
.stages figure:nth-child(3) img { width: 67%; }
.stages figure:nth-child(4) img { width: 78%; }
.stages figure:nth-child(5) img { width: 89%; }
.stages figure:nth-child(6) img { width: 100%; }
.stages figcaption { align-self: stretch; text-align: center; font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--sage); }
@media (min-width: 641px) { .stages { column-gap: 0; } }
@media (max-width: 640px) { .stages { grid-template-columns: repeat(3, 1fr); row-gap: 28px; } }

/* Lifestyle banner */

.banner { position: relative; border-radius: 32px; overflow: hidden; background: var(--honey-light); }
.banner svg.scene { display: block; width: 100%; height: clamp(320px, 36vw, 440px); }
.banner-copy { position: absolute; left: 0; right: 0; top: 0; padding: clamp(28px, 5vw, 64px); }
.banner-copy .title { max-width: 15ch; }

.note-hand { font-family: var(--serif); font-size: 20px; color: var(--green-deep); line-height: 1.25; }

.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.principles li { display: flex; gap: 14px; align-items: flex-start; }
.principles li::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--green); }

/* Forms */

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--forest); }
.field input, .field textarea {
  width: 100%;
  font: 400 16px/1.5 var(--sans);
  color: var(--charcoal);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); background: var(--white); }
.field [aria-invalid='true'] { border-color: var(--danger); background: var(--white); }
.field-error { font-size: 14px; color: var(--danger); }
.field-error:empty { display: none; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.inline-form .field { flex: 1 1 260px; margin: 0; }
.inline-form .btn { min-height: 50px; }
.consent { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--sage-light); color: var(--forest); }
.form-status.error { background: var(--danger-light); color: #6e3021; }
.form-success { text-align: center; padding: 8px 0; }
.form-success .icon-badge { margin-bottom: 12px; }
.form-success h3 { font-size: 26px; margin-bottom: 8px; }
.form-success p { color: var(--muted); margin: 0 auto; max-width: 40ch; }

/* Long-form pages (privacy, terms, support) */

.doc { padding-top: 32px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 50px); line-height: 1.1; letter-spacing: -0.015em; margin: 16px 0 8px; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.doc h2 { font-size: 26px; line-height: 1.25; margin: 48px 0 12px; scroll-margin-top: 96px; }
.doc h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 28px 0 6px; }
.doc p, .doc li { max-width: 70ch; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.contact-card { margin: 24px 0; }
.contact-card h2 { margin-top: 0; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--forest); }
details p { margin: 10px 0 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .card { padding: 22px; }
  .phone { width: 262px; }
  .phone-screen { min-height: 520px; }
  .site-nav { padding-left: 16px; padding-right: 16px; }
}

section[id] { scroll-margin-top: 76px; }

/* The waitlist sits straight on the page (the banner above is already a card). */
.waitlist .field input { background: var(--white); }
.waitlist .field input:focus { background: var(--white); }

.card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--green-deep); text-decoration: none; }
.card-link:hover { text-decoration: underline; }
