/* Host Homebase marketing site.
   Product-scoped identity (#286): pine + paper + amber. Deliberately NOT the
   Mostess tenant palette — tenants bring their own brand; the hero mockup's
   cycling accent makes that point on purpose. No JS, no external requests:
   the display font is self-hosted below, so the privacy policy's "static
   site" claim stays literally true. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --pine-950: #0f231d;
  --pine-800: #17382e;
  --pine-700: #1c5a44;
  --pine-600: #247a5b;
  --moss: #e9f0e9;
  --paper: #f7f8f4;
  --card: #ffffff;
  --ink: #182420;
  --muted: #54655d;
  --line: #dde5de;
  --amber: #e8a33b;
  --amber-deep: #b97a1a;
  /* Demo mockup tenant accent — animated through three fictional brands. */
  --brand: #c0563c;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --wide: 68rem;
  --narrow: 42rem;
}

@property --brand {
  syntax: "<color>";
  inherits: true;
  initial-value: #c0563c;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--pine-700);
  text-underline-offset: 0.14em;
}

a:hover {
  color: var(--pine-600);
}

:focus-visible {
  outline: 2px solid var(--pine-600);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine-600);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand svg {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.nav .cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--pine-700);
  color: #fff;
  font-weight: 600;
}

.nav .cta:hover {
  background: var(--pine-600);
  color: #fff;
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(
      60rem 30rem at 85% -10%,
      rgba(36, 122, 91, 0.1),
      transparent 60%
    ),
    linear-gradient(var(--moss), var(--paper) 75%);
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 3rem;
  padding-block: 4.5rem 4rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.hero .lede {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero .lede strong {
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--pine-700);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  background: var(--pine-600);
  color: #fff;
}

.button.amber {
  background: var(--amber);
  color: var(--pine-950);
}

.button.amber:hover {
  background: #f0b055;
  color: var(--pine-950);
}

.ghost-link {
  font-weight: 600;
  color: var(--pine-700);
  text-decoration: none;
}

.ghost-link:hover {
  text-decoration: underline;
}

/* ---------- Hero mockup (signature element) ----------
   A CSS-only owner portal whose tenant brand — name + accent — cycles through
   three fictional management companies. This IS the pitch: same portal,
   their brand. */

.demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(15, 35, 29, 0.06),
    0 24px 48px -24px rgba(15, 35, 29, 0.25);
  overflow: hidden;
  font-size: 0.8rem;
  animation: brand-cycle 15s infinite;
}

@keyframes brand-cycle {
  0%,
  28% {
    --brand: #c0563c;
  } /* Saguaro Stays  — terracotta */
  33%,
  61% {
    --brand: #2e6ba8;
  } /* Harbor & Main  — harbor blue */
  66%,
  94% {
    --brand: #8352c9;
  } /* Alpenglow Cabins — violet */
  100% {
    --brand: #c0563c;
  }
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.demo-dots {
  display: flex;
  gap: 0.32rem;
}

.demo-dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--line);
}

.demo-url {
  flex: 1;
  max-width: 16rem;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem 0.55rem;
}

.demo-brand {
  position: relative;
  height: 1.25rem;
  min-width: 11rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.demo-brand span {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0;
  animation: brand-slot 15s infinite;
  white-space: nowrap;
}

.demo-brand span::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 4px;
  background: var(--brand);
  flex: none;
}

.demo-brand .b1 {
  opacity: 1;
}
.demo-brand .b2 {
  animation-delay: 5s;
}
.demo-brand .b3 {
  animation-delay: 10s;
}

@keyframes brand-slot {
  0%,
  28% {
    opacity: 1;
  }
  33%,
  100% {
    opacity: 0;
  }
}

.demo-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--moss);
  border: 1px solid var(--line);
}

.demo-tabs {
  display: flex;
  gap: 1.1rem;
  padding: 0 1.1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--muted);
}

.demo-tabs i {
  font-style: normal;
  padding: 0.35rem 0 0.45rem;
}

.demo-tabs .on {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--brand);
}

.demo-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  padding: 1rem 1.1rem 0.4rem;
}

.demo-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}

.demo-tile b {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.demo-tile strong {
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.demo-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 5.2rem;
  padding: 0.9rem 1.1rem 0.35rem;
}

.demo-chart i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: #edd0c8;
  background: color-mix(in srgb, var(--brand) 28%, white);
}

.demo-chart i:nth-child(10) {
  background: var(--brand);
}

.demo-months {
  display: flex;
  gap: 0.45rem;
  padding: 0 1.1rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--muted);
}

.demo-months i {
  flex: 1;
  text-align: center;
  font-style: normal;
}

.demo-cal {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 3px;
  padding: 0.9rem 1.1rem 1.1rem;
}

.demo-cal i {
  height: 0.95rem;
  border-radius: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.demo-cal .stay {
  background: #c96d55;
  background: color-mix(in srgb, var(--brand) 82%, white);
  border-color: transparent;
}

.demo-cal .stay2 {
  background: #e5bbb0;
  background: color-mix(in srgb, var(--brand) 40%, white);
  border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .demo,
  .demo-brand span {
    animation: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: 4rem;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Feature bento */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.card {
  grid-column: span 2;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card.w3 {
  grid-column: span 3;
}
.card.w4 {
  grid-column: span 4;
}

.card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.card .art {
  margin-top: auto;
  padding-top: 1rem;
}

/* Card art: small honest sketches of real product surfaces */

.art-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.66rem;
}

.art-table div {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.32rem 0.6rem;
  border-top: 1px solid var(--line);
}

.art-table div:first-child {
  border-top: 0;
  background: var(--paper);
  color: var(--muted);
  letter-spacing: 0.06em;
}

.art-table span:nth-child(n + 2) {
  text-align: right;
}

.art-bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
}

.art-bars div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: center;
  gap: 0.6rem;
}

.art-bars i {
  display: block;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--pine-600);
}

.art-bars .recv i {
  background: var(--amber);
  width: 92%;
}

.art-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink);
  background: var(--card);
}

.chip::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--pine-600);
}

.chip.warn::before {
  background: var(--amber-deep);
}

.chip.plain::before {
  content: none;
}

.art-swatches {
  display: flex;
  gap: 0.5rem;
}

.art-swatches i {
  flex: 1;
  height: 2.1rem;
  border-radius: 8px;
}

.art-swatches i:nth-child(1) {
  background: #c0563c;
}
.art-swatches i:nth-child(2) {
  background: #2e6ba8;
}
.art-swatches i:nth-child(3) {
  background: #8352c9;
}
.art-swatches i:nth-child(4) {
  background: var(--pine-700);
}

.art-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* How it works — a real sequence, so numbers carry meaning */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--pine-600);
  margin-bottom: 0.6rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Trust band */

.trust {
  background: var(--moss);
  border-block: 1px solid var(--line);
}

.trust ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 2.5rem;
}

.trust li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink);
}

.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--pine-700);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M6.5 11.2 3.3 8l-1.1 1.1 4.3 4.3 7.3-7.3-1.1-1.1z"/></svg>')
    center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M6.5 11.2 3.3 8l-1.1 1.1 4.3 4.3 7.3-7.3-1.1-1.1z"/></svg>')
    center / contain no-repeat;
}

.trust p {
  color: var(--muted);
}

/* CTA + footer (one deep-pine ground) */

.closer {
  background: var(--pine-950);
  color: #e8efe9;
  margin-top: auto;
}

.closer .cta-band {
  padding-block: 4rem 3.5rem;
  border-bottom: 1px solid rgba(232, 239, 233, 0.14);
}

/* Must outrank `.closer .cta-band p` (0,2,1) or the band's muted body
   color wins over the amber. */
.closer .cta-band .eyebrow {
  color: var(--amber);
}

.closer h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 28rem;
}

.closer .cta-band p {
  margin: 0 0 1.6rem;
  color: #b8c9bd;
  max-width: 34rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.4rem;
  font-size: 0.88rem;
  color: #93a698;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.site-footer a {
  color: #b8c9bd;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Legal pages ---------- */

.legal {
  width: min(100%, var(--narrow));
  margin-inline: auto;
  padding-block: 3rem 4rem;
}

.legal h1 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.meta {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.legal h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1rem;
}

.legal p,
.legal li {
  color: var(--ink);
}

.legal p {
  margin: 0 0 0.85rem;
}

.legal ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.35rem;
}

/* Centered 404 */

.not-found {
  text-align: center;
  padding-block: 5rem;
}

.not-found h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 750;
}

.not-found p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 56rem) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-block: 3rem;
  }

  .card,
  .card.w3,
  .card.w4 {
    grid-column: span 6;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .trust ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 30rem) {
  .demo-tabs {
    gap: 0.7rem;
    font-size: 0.74rem;
  }

  .demo-tiles {
    gap: 0.45rem;
    padding-inline: 0.8rem;
  }

  .demo-tile {
    padding: 0.45rem 0.55rem;
  }

  .demo-tile strong {
    font-size: 0.9rem;
  }
}
