/* humaid landing — warm editorial design.
   Cream paper background, terracotta accent, muted blue for water, deep
   ink-black text. Serifs for headings to lean on the heritage angle; sans
   for everything else. No external fonts — system stack only.

   This file is NOT processed by Tailwind. It ships verbatim as the landing's
   stylesheet. The chat app uses /static/styles.css (Tailwind output). */

:root {
  --bg:        #fdfaf3;
  --bg-deep:   #f3ede0;
  --paper:     #ffffff;
  --ink:       #1a1612;
  --ink-2:     #4a3f33;
  --muted:     #7a6f5e;
  --line:      #e3dccd;
  --terracotta:#a3431c;
  --terra-2:   #8b3a1a;
  --water:     #2d5a7c;
  --water-2:   #1f4360;
  --green:     #4a6b3a;
  --soft:      #fbf4e3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--terra-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: "Iowan Old Style", "Charter", "Georgia", ui-serif, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin: 0 0 1.2rem; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 0.9rem; }
h3 { font-size: 1.18rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

/* ───── Top nav ───── */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(253, 250, 243, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Iowan Old Style", "Charter", "Georgia", serif;
  font-size: 1.1rem; font-weight: 600; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(163, 67, 28, 0.18);
}
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a {
  color: var(--ink-2); font-size: 0.92rem; font-weight: 500;
}
.nav nav a:hover { color: var(--terracotta); text-decoration: none; }
.nav-cta {
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 6px 14px;
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; text-decoration: none; }

/* ───── Generic section ───── */

.section { padding: 120px 32px; max-width: 1180px; margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--terracotta); font-size: 0.75rem; font-weight: 700;
  margin: 0 0 12px;
}
.dek {
  color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; margin-top: 8px;
}

/* ───── Hero ───── */

.hero {
  padding: 56px 32px 100px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(45, 90, 124, 0.07), transparent 60%),
    radial-gradient(ellipse at 0% 90%, rgba(163, 67, 28, 0.08), transparent 50%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 1180px; margin: 80px auto 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted); font-size: 0.78rem; font-weight: 600; margin: 0 0 24px;
}
.lede {
  font-size: 1.18rem; max-width: 64ch; color: var(--ink-2);
  margin-bottom: 1rem;
}
.lede.strong { color: var(--ink); font-weight: 500; }
.hero-ctas { display: flex; gap: 12px; margin: 36px 0 16px; flex-wrap: wrap; }
.hero-demos {
  font-size: 0.95rem; color: var(--ink-2); max-width: 64ch; margin: 0 0 56px;
}
.hero-demos a {
  color: var(--terra-2); text-decoration: underline;
  text-decoration-color: rgba(139, 58, 26, 0.35);
  text-underline-offset: 2px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: all 120ms ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--terracotta); }
.btn.ghost { border-color: var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.big { padding: 16px 28px; font-size: 1.05rem; }

.hero-stats {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  border-top: 1px solid var(--line); padding-top: 32px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong {
  font-family: "Iowan Old Style", "Charter", "Georgia", serif;
  font-size: 2rem; font-weight: 600; color: var(--ink);
}
.hero-stats span { font-size: 0.85rem; color: var(--muted); }

/* ───── Problem ───── */

.disconnects {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px;
}
.disconnects li {
  position: relative; padding: 8px 0 4px 0;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.disconnects li:nth-child(odd) { border-top-color: var(--terracotta); }
.disconnects .num {
  display: inline-block; font-family: "Iowan Old Style", serif;
  color: var(--terracotta); font-size: 0.9rem; letter-spacing: 0.08em;
  margin-bottom: 6px; font-weight: 700;
}
.disconnects h3 { font-size: 1.18rem; margin-bottom: 8px; }
.disconnects p { color: var(--ink-2); margin: 0; }

/* ───── Solution ───── */

.solution { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diagram {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 22px;
  overflow-x: auto; margin: 0 0 56px;
}
.diagram pre {
  margin: 0; font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.85rem; color: var(--ink-2); line-height: 1.45;
  white-space: pre;
}
.components {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.components article {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 28px;
}
.components .step {
  font-family: "Iowan Old Style", serif; color: var(--terracotta);
  font-size: 0.85rem; letter-spacing: 0.1em; font-weight: 700; margin: 0 0 8px;
}
.components h3 { margin-bottom: 12px; }
.components p { color: var(--ink-2); }
.components ul {
  list-style: none; padding: 0; margin: 16px 0 0;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.components ul li {
  font-size: 0.92rem; color: var(--ink-2); padding: 6px 0 6px 18px;
  position: relative;
}
.components ul li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 8px; height: 1px; background: var(--terracotta);
}
.solution-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; margin-top: 56px; padding: 28px 32px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  flex-wrap: wrap;
}
.solution-cta-text { flex: 1 1 60ch; min-width: 0; }
.solution-cta-text p { margin: 0 0 8px; color: var(--ink-2); font-size: 0.96rem; }
.solution-cta-text p:first-child { color: var(--ink); font-weight: 500; font-size: 1.02rem; }
.solution-cta-text p:last-child { margin-bottom: 0; }
.solution-cta strong { color: var(--ink); }

/* ───── Zenú ───── */

.zenu {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--soft) 100%);
  padding-top: 140px; padding-bottom: 140px;
}
.zenu-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start;
}
.zenu-text p { color: var(--ink-2); font-size: 1.04rem; }
.zenu-text strong { color: var(--ink); }
.zenu-text .pull {
  margin-top: 24px; padding: 18px 22px;
  background: var(--paper); border-left: 3px solid var(--terracotta);
  font-style: italic; color: var(--ink); font-size: 1.02rem;
}
.zenu-images { display: flex; flex-direction: column; gap: 22px; }
.zenu-images figure { margin: 0; }
.zenu-images img {
  width: 100%; height: auto; border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -12px rgba(26, 22, 18, 0.25);
}
.zenu-images figcaption {
  margin-top: 8px; font-size: 0.82rem; color: var(--muted);
}

/* ───── Why now ───── */

.why-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; }
.why-table {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
}
.why-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.why-row > div { padding: 14px 18px; }
.why-row.head { background: var(--bg-deep); border-top: 0; font-weight: 600; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.why-row > div:nth-child(2) { color: var(--muted); }
.why-row > div:nth-child(3) strong { color: var(--terracotta); }
.why-aside {
  background: var(--ink); color: var(--bg);
  border-radius: 10px; padding: 28px;
}
.why-aside .urgent {
  font-family: "Iowan Old Style", serif; font-size: 1.5rem;
  line-height: 1.25; color: var(--bg); margin-bottom: 22px;
}
.why-aside ul {
  list-style: none; padding: 0; margin: 0;
  font-size: 0.9rem; color: rgba(253, 250, 243, 0.78);
}
.why-aside ul li { padding: 8px 0; border-top: 1px solid rgba(253, 250, 243, 0.12); }
.why-aside ul li:first-child { border-top: 0; }
.why-aside em { color: var(--bg); font-style: italic; }

/* ───── Built ───── */

.built { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.built-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.built-grid article {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 28px;
}
.built-grid header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tag {
  display: inline-block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700; padding: 4px 10px;
  border-radius: 999px;
}
.tag.ready  { background: rgba(74, 107, 58, 0.13); color: var(--green); }
.tag.paused { background: rgba(45, 90, 124, 0.13); color: var(--water-2); }
.built-grid .big {
  font-family: "Iowan Old Style", serif; font-size: 1.6rem;
  color: var(--terracotta); margin: 0 0 10px; font-weight: 600;
}
.built-grid p { color: var(--ink-2); margin: 0; }

/* ───── Contact ───── */

.contact { background: var(--ink); color: var(--bg); }
.contact .kicker { color: rgba(253, 250, 243, 0.7); }
.contact h2, .contact h3 { color: var(--bg); }
.contact .dek { color: rgba(253, 250, 243, 0.78); }
.contact-inner { max-width: 1180px; margin: 0 auto; }
.contact-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding-top: 32px; border-top: 1px solid rgba(253, 250, 243, 0.18);
  flex-wrap: wrap; margin-top: 36px;
}
.contact-cta p { margin: 0; max-width: 56ch; color: rgba(253, 250, 243, 0.88); }
.contact .btn.primary { background: var(--bg); color: var(--ink); }
.contact .btn.primary:hover { background: var(--terracotta); color: var(--bg); }

/* ───── Footer ───── */

footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 48px 32px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr; gap: 48px;
}
.brand-foot {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Iowan Old Style", serif; font-size: 1.05rem; font-weight: 600;
  margin: 0 0 8px;
}
footer p { color: var(--muted); font-size: 0.92rem; }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer nav a { font-size: 0.92rem; color: var(--ink-2); }
.fineprint { grid-column: 1 / -1; font-size: 0.82rem; color: var(--muted); margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ───── Mobile ───── */

@media (max-width: 880px) {
  .nav { padding: 12px 18px; }
  .nav nav { gap: 14px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .section { padding: 80px 22px; }
  .hero { padding: 40px 22px 80px; }
  .hero-inner { margin-top: 32px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .disconnects { grid-template-columns: 1fr; }
  .components { grid-template-columns: 1fr; }
  .zenu-inner { grid-template-columns: 1fr; gap: 36px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-row { grid-template-columns: 1fr; }
  .why-row > div { padding: 10px 16px; }
  .why-row.head { display: none; }
  .built-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
