/* ==========================================================================
   Home Land Homes — marketing site stylesheet

   BRAND PALETTE — "Clay" (decided 2026-08)
   Every brand decision routes through the custom properties below.
   To rebrand: change the :root block (and the dark-scheme block) only.
   ========================================================================== */

:root {
  /* -- Brand: Clay -- */
  --accent:        #9a4a1f;  /* warm clay — primary accent */
  --accent-ink:    #ffffff;  /* text on accent fills */
  --accent-soft:   #f3e4d8;  /* tinted backgrounds */
  --accent-deep:   #7c3b17;  /* hover / active accent */

  /* -- Neutrals (warm) -- */
  --bg:            #faf7f2;
  --surface:       #ffffff;
  --surface-2:     #f2ede4;
  --ink:           #26221c;
  --ink-soft:      #57503f;
  --line:          #e5ddcf;
  --scrim:         rgba(38, 34, 28, 0.55);  /* dims the page behind a modal */

  /* -- Type & rhythm -- */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 6px rgba(38, 34, 28, 0.06), 0 16px 40px rgba(38, 34, 28, 0.07);
  --maxw: 74rem;
  --pad: clamp(1.1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent:      #e39060;
    --accent-ink:  #241209;
    --accent-soft: #33241a;
    --accent-deep: #eda478;

    --bg:          #191611;
    --surface:     #211d17;
    --surface-2:   #2a251d;
    --ink:         #f0eae0;
    --ink-soft:    #b6ad9d;
    --line:        #38321f33;
    --scrim:       rgba(0, 0, 0, 0.68);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* keep anchored sections clear of sticky header */
}

@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: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 750;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.8rem 1.2rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section { padding-block: clamp(3.4rem, 8vw, 6rem); }

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46rem;
  text-wrap: pretty;
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }
/* A centred section header shouldn't centre the card grid beneath it. Body
   copy inside cards stays left-aligned. */
.center .grid { text-align: left; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;              /* large touch target */
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-deep);
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.brand .brand-mark { color: var(--accent); }

.site-nav { margin-left: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.98rem;
  /* Eight items is a tight fit in the 74rem wrap. Without this the flex row
     shrinks the links until their labels break mid-word, which reads as broken
     rather than as a full nav. */
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.site-nav .nav-cta a {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  padding-inline: 1rem;
}
.site-nav .nav-cta a:hover { background: var(--accent-deep); }

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 56em) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.75rem var(--pad) 1.25rem;
  }
  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .site-nav a {
    width: 100%;
    min-height: 3rem;
    font-size: 1.05rem;
    padding-inline: 0.85rem;
    white-space: normal;
  }
  .site-nav .nav-cta { margin-top: 0.5rem; }
  .site-nav .nav-cta a { justify-content: center; }
}

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

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); }

.hero .wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

@media (max-width: 56em) {
  .hero .wrap { grid-template-columns: 1fr; }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-block: 1.6rem 1.2rem;
}

.hero-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
  background: var(--surface);
}

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.2rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 62em) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40em) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}

.card h3 { margin-top: 0.9rem; }
/* That 0.9rem exists to clear the .icon-chip above the heading. Cards that
   lead with the heading instead have nothing to clear. */
.card > h3:first-child { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--ink-soft); }

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-chip svg { width: 1.5rem; height: 1.5rem; }

/* Feature groups */
.feature-wide { grid-column: 1 / -1; }

.new-pill {
  margin-left: auto;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}

.feature-wide-intro {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  max-width: 60rem;
}

@media (min-width: 62em) {
  .feature-wide .feature-wide-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
}

.feature-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
}
.feature-group header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.feature-group h3 { margin: 0; }
.feature-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.feature-group li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink-soft);
}
.feature-group li strong { color: var(--ink); font-weight: 650; }
.feature-group li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Sovereignty band
   -------------------------------------------------------------------------- */

.band {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.footnote {
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 46rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   How it works — steps
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.2rem;
  list-style: none;
  padding: 0;
}
@media (max-width: 62em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40em) { .steps { grid-template-columns: 1fr; } }

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  margin-bottom: 0.9rem;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin-bottom: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Trust list
   -------------------------------------------------------------------------- */

.trust-list {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 48em) { .trust-list { grid-template-columns: 1fr; } }

.trust-list li {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem;
}
.trust-list .icon-chip { flex: none; }
.trust-list h3 { font-size: 1.05rem; margin: 0.15rem 0 0.3rem; }
.trust-list p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.price-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.2rem;
  align-items: stretch;
}
@media (max-width: 62em) { .price-grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  text-align: center;
}
.price-card h3 { margin: 0 0 0.2rem; }
.price-card .btn { margin-top: auto; align-self: center; }

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.price-flag {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  margin: 0;
}

.price-size {
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.price-amount span {
  font-size: 1.05rem;
  font-weight: 550;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.price-annual {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.price-offer {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.price-offer strong { color: var(--accent-deep); }

.price-setup {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.price-setup strong { color: var(--ink); }

.price-includes {
  margin-top: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
}
.price-includes h3 { margin-bottom: 1rem; }
.price-includes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.price-includes li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-soft);
}
.price-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.price-addon {
  margin: 1.2rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.price-addon strong { color: var(--ink); }

/* Funding note under the price cards. Tinted rather than white so it reads as
   an answer to the price above it, not as another product claim. */
.funding {
  margin-top: 1.6rem;
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
}
.funding h3 { margin-bottom: 0.8rem; }
.funding p {
  color: var(--ink-soft);
  max-width: 54rem;
  margin-bottom: 0.7rem;
}
.funding p:last-child { margin-bottom: 0; }
.funding-note {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: 0.92rem;
}

.price-note {
  margin-top: 1.8rem;
  font-weight: 550;
}

/* --------------------------------------------------------------------------
   Needs assessment
   -------------------------------------------------------------------------- */

.assess-form { margin-top: 2rem; }

.assess-form fieldset {
  border: 0;
  margin: 0 0 1.6rem;
  padding: 0;
}

.assess-form legend {
  font-weight: 700;
  margin-bottom: 0.7rem;
  padding: 0;
}

.legend-hint {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--accent-deep);
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip { position: relative; }

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 550;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.chip span:hover { border-color: var(--accent); color: var(--ink); }

.chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
}

.chip input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.assess-result {
  margin-top: 2rem;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.assess-result h3 { margin-top: 0; }

.assess-result .ar-cost {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.8rem 0;
}
.assess-result .ar-cost em {
  font-style: normal;
  color: var(--accent-deep);
}

.assess-result ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.assess-result li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-soft);
}
.assess-result li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.assess-result .ar-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

/* --------------------------------------------------------------------------
   Contact / demo form
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-top: 2rem;
  align-items: start;
}
@media (max-width: 56em) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.field .hint {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.field textarea { min-height: 8rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.form-status {
  margin: 0.9rem 0 0;
  font-weight: 600;
}
.form-status[data-state="ok"] { color: var(--accent-deep); }
.form-status[data-state="error"] { color: #b3261e; }
@media (prefers-color-scheme: dark) {
  .form-status[data-state="error"] { color: #ff8f88; }
}

/* Thank-you card that replaces the form after a successful submission */
.form-success {
  text-align: center;
  padding: 2rem 1rem;
}
.form-success:focus { outline: none; }
.form-success .fs-check {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p {
  color: var(--ink-soft);
  max-width: 34rem;
  margin-inline: auto;
}
.form-success .fs-note {
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Optional needs questions folded into the demo form. Collapsed by default so
   the modal stays short; the questions inside are cloned from #assessment and
   inherit the .chips / .chip styling already defined above. */
.demo-extra {
  border-top: 1px solid var(--line);
  margin: 0.2rem 0 1rem;
  padding-top: 0.9rem;
}
.demo-extra summary {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--ink);
  list-style: none;
}
.demo-extra summary::-webkit-details-marker { display: none; }
.demo-extra summary::before {
  content: "+";
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
  line-height: 1.35rem;
  text-align: center;
  align-self: center;
}
.demo-extra[open] summary::before { content: "\2013"; }
.demo-extra summary .hint {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.demo-extra summary:hover { color: var(--accent-deep); }

#demo-extra-slot { margin-top: 1.1rem; }
#demo-extra-slot fieldset {
  border: 0;
  margin: 0 0 1.2rem;
  padding: 0;
}
#demo-extra-slot legend {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  padding: 0;
}
#demo-extra-slot .chip span {
  min-height: 2.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.92rem;
}

/* Shown instead of the block when the visitor already ran the needs check. */
.demo-extra-used {
  margin: 0.2rem 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Demo modal

   The demo form is moved into #demo-modal by main.js, so the "Request a demo"
   links open it in place rather than scrolling ten screens down the page.
   .demo-cta takes the form's spot in the section once that swap has happened.
   -------------------------------------------------------------------------- */

.demo-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.demo-cta p { color: var(--ink-soft); }

html.modal-open { overflow: hidden; }

.modal {
  width: min(38rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(90dvh, 52rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: auto;
  overscroll-behavior: contain;
}
/* The dialog takes focus on open so its title is announced; it is a container,
   not a control, so it should not also draw a focus ring. */
.modal:focus { outline: none; }

.modal::backdrop {
  background: rgba(38, 34, 28, 0.55);
  background: var(--scrim);
}

.modal-inner { padding: clamp(1.3rem, 4vw, 1.9rem); }

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.modal-head .kicker { margin-bottom: 0.35rem; }

.modal-title {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  margin-bottom: 0;
}

.modal-close {
  margin-left: auto;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
}
.modal-close:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.modal-lede {
  color: var(--ink-soft);
  margin: 0.9rem 0 1.2rem;
}

/* Tighter than the inline form: worth a little compression to keep the submit
   button above the fold on a laptop, so nobody has to scroll to send. */
.modal .field { margin-bottom: 0.85rem; }
.modal .field textarea { min-height: 5rem; }

/* The form arrives already styled as a standalone card — flatten it so it
   doesn't read as a card inside a card. */
.modal .contact-form {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.modal .form-success { padding: 0.5rem 0; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
}
@keyframes scrim-in {
  from { opacity: 0; }
}
.modal[open] { animation: modal-in 0.18s ease-out; }
.modal[open]::backdrop { animation: scrim-in 0.18s ease-out; }

/* --------------------------------------------------------------------------
   About + placeholders
   -------------------------------------------------------------------------- */

.placeholder-slot {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  background: transparent;
}
.placeholder-slot strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   About story
   -------------------------------------------------------------------------- */

.about-story {
  max-width: 46rem;
  font-size: 1.1rem;
}
.about-story p:last-of-type {
  font-weight: 650;
  color: var(--accent-deep);
}
.about-sig {
  font-style: italic;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding-block: 2.8rem 2.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 48em) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}
/* Tagline sitting under the footer brand mark. */
.site-footer .brand + p { margin-top: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent-deep); text-decoration: underline; }

.land-ack {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-style: italic;
}

.fineprint {
  margin-top: 1.4rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (JS adds .reveal; no-JS and reduced-motion see content
   immediately because the hidden state is only applied under .js)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}
