/* Homba landing — warm light "blueprint" design system. Single shared stylesheet, no build step. */

/* ---------- tokens ---------- */
:root {
  --bg: #faf7f0;
  --surface: #ffffff;
  --surface-tone: #fffdf8;
  --line: #e8ddcd;
  --line-strong: #d9cbb6;
  --ink: #251d13;
  --ink-2: #5d5348;
  --ink-3: #8a7d6e;
  --accent: #b45309;        /* links, eyebrows — 4.6:1 on cream */
  --accent-deep: #8a3e06;
  --accent-bright: #d97706;
  --on-amber: #1a1105;
  --grad-accent: linear-gradient(92deg, #b45309 0%, #d97706 55%, #ea580c 100%);
  --grad-btn: linear-gradient(92deg, #f59e0b 0%, #f97316 100%);
  --shadow-card: 0 1px 2px rgba(60, 42, 20, 0.05), 0 6px 18px rgba(60, 42, 20, 0.07);
  --shadow-pop: 0 2px 6px rgba(60, 42, 20, 0.08), 0 18px 44px rgba(60, 42, 20, 0.13);
  --shadow-btn: 0 2px 6px rgba(146, 64, 14, 0.28), 0 8px 20px rgba(146, 64, 14, 0.16);
  --footer-bg: #241d15;
  --footer-ink: #d9cfc2;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --font: "Space Grotesk", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  color-scheme: light;
}

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

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

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3.5rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-s);
  text-decoration: none;
  font-weight: 500;
  transition: top 200ms ease-out;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

/* ---------- typography ---------- */
.h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.7rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.h2 {
  font-size: clamp(1.6rem, 3.3vw, 2.3rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 600;
}
.lead {
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  line-height: 1.65;
  color: var(--ink-2);
}
.grad {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nowrap { white-space: nowrap; }
.kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.26rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 1.7rem; height: 1.7rem; }

.site-nav {
  display: none;
  align-items: center;
  gap: 1.9rem;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.5rem 0;
  transition: color 200ms ease-out;
}
.site-nav a:hover { color: var(--ink); }
@media (min-width: 768px) {
  .site-nav { display: flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.45rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: filter 200ms ease-out, box-shadow 200ms ease-out, transform 150ms ease-out;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--grad-btn);
  color: var(--on-amber);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  color: var(--on-amber);
  filter: brightness(1.06);
  box-shadow: 0 3px 8px rgba(146, 64, 14, 0.32), 0 12px 26px rgba(146, 64, 14, 0.2);
}
.btn-small {
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
}
.btn[disabled] { opacity: 0.6; cursor: default; box-shadow: none; }

/* ---------- waitlist form ---------- */
.waitlist { max-width: 31rem; }
.waitlist-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.55rem;
}
.waitlist-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
@media (min-width: 480px) {
  .waitlist-row {
    flex-direction: row;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 0.3rem;
    box-shadow: var(--shadow-card);
  }
  .waitlist-row:focus-within {
    border-color: var(--accent-bright);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16);
  }
}
.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  padding: 0.6rem 1.1rem;
  font-family: var(--font);
  font-size: 1rem; /* ≥16px: prevents iOS zoom */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.waitlist input[type="email"]::placeholder { color: var(--ink-3); }
@media (min-width: 480px) {
  .waitlist input[type="email"] {
    border: 0;
    background: transparent;
  }
  .waitlist input[type="email"]:focus-visible { outline: none; }
}
.waitlist .form-note {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.form-msg {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.form-msg.is-error { color: #b91c1c; }
.form-msg:empty { display: none; }
.waitlist-success {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: #fdf3e3;
  border: 1px solid #f0d9b5;
  border-radius: var(--radius-m);
  padding: 1rem 1.15rem;
  font-weight: 500;
  color: var(--ink);
}
.waitlist-success svg {
  flex: none;
  width: 1.4rem; height: 1.4rem;
  color: var(--accent);
  margin-top: 0.1rem;
}
/* honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: 2.75rem 2.5rem;
  text-align: center;
  overflow: hidden;
}
@media (min-width: 960px) { .hero { padding-block: 3.5rem 3rem; } }
/* faint blueprint grid, fading toward edges */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(180, 83, 9, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 83, 9, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(58rem 32rem at 50% 10rem, #000 30%, transparent 75%);
  mask-image: radial-gradient(58rem 32rem at 50% 10rem, #000 30%, transparent 75%);
}
.hero > .container { position: relative; }
.hero-copy { max-width: 46rem; margin-inline: auto; }
.hero-copy .lead { margin-top: 1.2rem; }
.hero-copy .waitlist { margin: 1.8rem auto 0; text-align: left; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.42rem 1rem;
  margin-bottom: 1.2rem;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.hero-chips span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

/* ---------- before/after room panel ---------- */
.room-panel {
  max-width: 62rem;
  margin: 2.25rem auto 0;
}
.room-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.room-card > svg { width: 100%; height: auto; }
.budget-bar {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem 1.4rem 1.05rem;
  border-top: 1px solid var(--line);
  background: var(--surface-tone);
}
.budget-track {
  height: 6px;
  border-radius: 999px;
  background: #eee2cf;
  overflow: hidden;
}
.budget-fill {
  width: 95.8%;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-btn);
}
.budget-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.budget-text .label { color: var(--ink-2); }
.budget-text .ok { color: var(--accent); }

/* ---------- sections ---------- */
.section { padding-block: 2.75rem; }
@media (min-width: 960px) { .section { padding-block: 3.5rem; } }
.section-head {
  max-width: 44rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}
.section-head .lead { margin-top: 0.8rem; }

.card-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-card);
  transition: border-color 250ms ease-out, box-shadow 250ms ease-out;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-pop);
}
.card p { margin-top: 0.6rem; color: var(--ink-2); font-size: 0.97rem; }
.step-num {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.85rem;
}
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem; height: 2.9rem;
  border-radius: var(--radius-s);
  background: #fdf3e3;
  border: 1px solid #f0d9b5;
  color: var(--accent);
  margin-bottom: 1rem;
}
.icon-chip svg { width: 1.45rem; height: 1.45rem; }

/* ---------- bento (why) ---------- */
.bento {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .bento .span-2 { grid-column: span 2; }
}
.bento .card { display: flex; flex-direction: column; }
.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.15rem;
}
.mini-chips > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-tone);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-variant-numeric: tabular-nums;
}
.mini-chips .dot {
  flex: none;
  width: 0.5rem; height: 0.5rem;
  padding: 0;
  border-radius: 50%;
  background: var(--grad-btn);
}
.cta-tile {
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(120deg, #fffdf8 0%, #fdf3e3 100%);
}
.cta-tile .h3 { font-size: 1.4rem; }
.cta-tile .btn { margin-top: 1.2rem; }

/* ---------- band ---------- */
.band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: 2.25rem 1.6rem;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 768px) {
  .band { padding: 2.75rem 3rem; grid-template-columns: 1.15fr 0.85fr; }
}
.band .h2 { max-width: 24ch; }
.band p {
  margin-top: 1rem;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 1.02rem;
}
.band-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface-tone);
}
.band-visual svg { width: 100%; height: auto; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 46rem;
  margin-inline: auto;
  display: grid;
  gap: 0.7rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  transition: border-color 250ms ease-out;
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.35rem;
  font-weight: 600;
  font-size: 1.03rem;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  transition: transform 200ms ease-out;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 1.35rem 1.15rem;
  color: var(--ink-2);
}

/* ---------- final CTA ---------- */
.cta-final { text-align: center; }
.cta-final .section-head { margin-bottom: 1.6rem; }
.cta-final .waitlist { margin-inline: auto; text-align: left; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding-block: 2.25rem 2rem;
  margin-top: 1.5rem;
  font-size: 0.92rem;
}
.site-footer .brand { color: #fff; }
.footer-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
.footer-tag { margin-top: 0.8rem; max-width: 34ch; color: #a89a89; }
.site-footer h4 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 0.55rem; }
.footer-links a {
  color: var(--footer-ink);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(217, 207, 194, 0.2);
  display: grid;
  gap: 0.6rem;
}
.footer-legal .disclosure {
  font-size: 0.82rem;
  color: #a89a89;
  max-width: 64ch;
}

/* ---------- article pages ---------- */
.article-hero { padding-block: 2.5rem 0.5rem; }
.article-hero .h1 { max-width: 24ch; font-size: clamp(1.85rem, 4.4vw, 2.7rem); }
.article-hero .meta {
  margin-top: 1rem;
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.prose {
  max-width: 42.5rem;
  padding-block: 1.25rem 0.75rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
.prose p { margin-block: 1.05rem; color: var(--ink); }
.prose h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.1rem 0 0.35rem;
}
.prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.6rem 0 0.2rem;
}
.prose ul, .prose ol { padding-left: 1.4rem; margin-block: 1.05rem; }
.prose li { margin-block: 0.45rem; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose strong { font-weight: 600; }
.prose .callout {
  background: #fdf3e3;
  border: 1px solid #f0d9b5;
  border-radius: var(--radius-m);
  padding: 1rem 1.25rem;
  margin-block: 1.4rem;
}
.prose .callout p { margin: 0; }
.article-cta {
  max-width: 42.5rem;
  margin-block: 2.25rem 2.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.5rem;
}
.article-cta .h3 { margin-bottom: 0.4rem; }
.article-cta > p { color: var(--ink-2); margin-bottom: 1.15rem; }

/* article index cards */
.article-list {
  display: grid;
  gap: 1rem;
  padding-block: 1.5rem 2.75rem;
}
@media (min-width: 768px) {
  .article-list { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.article-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 250ms ease-out, transform 200ms ease-out;
}
.article-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
}
.article-card .h3 { margin-bottom: 0.5rem; }
.article-card p { color: var(--ink-2); font-size: 0.95rem; }
.article-card .read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- entrance animation (reduced-motion safe) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { animation: fadeUp 500ms ease-out both; }
  .fade-up.delay-1 { animation-delay: 80ms; }
  .fade-up.delay-2 { animation-delay: 160ms; }
  .fade-up.delay-3 { animation-delay: 240ms; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
