/* HouseRunner marketing site: shared design system.
   Forest/ember brand tokens; used by every page. */

:root {
  --forest: #2E5E3F;
  --forest-deep: #1E3D29;
  --forest-mid: #3D7A52;
  --ember: #D27F4D;
  --ember-cta: #A85B28;
  --ember-cta-hover: #8F4A20;
  --ember-text: #A85B28;
  --amber: #E8B66F;
  --surface: #F5F2EE;
  --surface-2: #EFEAE2;
  --white: #FFFFFF;
  --border: #E5E1DA;
  --ink: #1E2820;
  --ink-2: #4C574E;
  --ink-3: #6B756C;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(30, 40, 32, .04), 0 8px 24px rgba(30, 40, 32, .06);
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest); text-underline-offset: 2px; }
img { max-width: 100%; }

h1, h2, h3 { letter-spacing: -.02em; color: var(--forest-deep); line-height: 1.12; }
h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); }
h3 { font-size: 1.14rem; letter-spacing: -.01em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--forest-mid); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--forest-mid); outline-offset: 2px; border-radius: 6px;
}

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip-link:focus { left: 12px; top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 1rem; font-weight: 600; padding: 13px 22px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, transform .04s ease, border-color .15s ease;
}
.btn-primary { background: var(--ember-cta); color: var(--white); }
.btn-primary:hover { background: var(--ember-cta-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--forest-deep); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--forest-mid); background: var(--white); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: rgba(245, 242, 238, .85); backdrop-filter: saturate(140%) blur(6px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.2rem; color: var(--forest-deep); text-decoration: none; }
.brand img { display: block; }
.nav-links { display: none; margin-left: 12px; gap: 22px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: .96rem; font-weight: 500; }
.nav-links a:hover { color: var(--forest); }
.nav-links a[aria-current="page"] { color: var(--forest-deep); font-weight: 600; }
.site-header .btn { margin-left: auto; }
@media (min-width: 820px) { .nav-links { display: inline-flex; } }

/* Hero */
.hero { padding: clamp(40px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); position: relative; background: radial-gradient(70% 90% at 92% -10%, rgba(46, 94, 63, .07), transparent 60%), radial-gradient(55% 75% at -8% 112%, rgba(210, 127, 77, .06), transparent 55%); }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero.split .wrap { grid-template-columns: 1.05fr .95fr; } }
.hero .eyebrow { margin-bottom: 16px; display: block; }
h1 { font-size: clamp(2.15rem, 6vw, 3.4rem); margin-bottom: 18px; color: var(--forest-deep); }
.hero .lead { font-size: clamp(1.05rem, 2.3vw, 1.28rem); color: var(--ink-2); max-width: 34em; margin-bottom: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--forest); margin-bottom: 24px; }
.status .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--forest-mid); }

/* Waitlist form */
.waitlist-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; }
.waitlist-form input[type="email"], .waitlist-form input[type="text"] { min-width: 0; font-size: 1rem; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white); color: var(--ink); }
.waitlist-form input[type="email"] { grid-column: 1 / -1; }
.waitlist-form .btn { grid-column: 1 / -1; }
.waitlist-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-form input::placeholder { color: var(--ink-3); }
.waitlist-form input:focus { outline: none; border-color: var(--forest-mid); box-shadow: 0 0 0 3px rgba(61, 122, 82, .18); }
.form-note { margin-top: 10px; font-size: .86rem; color: var(--ink-2); min-height: 1.2em; max-width: 460px; }
.form-note.ok { color: var(--forest); font-weight: 600; }
.form-note.err { color: #9A3324; font-weight: 600; }
.secondary-cta { display: inline-block; margin-top: 18px; font-size: .96rem; font-weight: 600; color: var(--forest); text-decoration: none; }
.secondary-cta:hover { text-decoration: underline; }

/* Hero art (decorative cards) */
.hero-art { display: none; }
@media (min-width: 900px) { .hero-art { display: block; } }
.glass { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.glass + .glass { margin-top: 14px; }
.glass-row { display: flex; align-items: center; gap: 12px; }
.glass-ico { flex: none; width: 40px; height: 40px; border-radius: 11px; background: rgba(46, 94, 63, .09); color: var(--forest); display: flex; align-items: center; justify-content: center; }
.glass-t { font-weight: 600; color: var(--forest-deep); font-size: .98rem; }
.glass-s { font-size: .86rem; color: var(--ink-2); }
.glass-tag { margin-left: auto; font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(210, 127, 77, .14); color: var(--ember-text); }

/* Sections */
section { padding: clamp(48px, 7vw, 76px) 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head p { color: var(--ink-2); margin-top: 12px; font-size: 1.05rem; }
.band-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--forest); color: var(--white); font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: .98rem; }

/* Feature grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.card .ico { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(46, 94, 63, .08); color: var(--forest); margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .98rem; }

/* Why / compare */
.why { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.why-item h3 { margin-bottom: 10px; }
.why-item .old { font-size: .92rem; color: var(--ink-3); margin-bottom: 6px; }
.why-item .new { font-size: .98rem; color: var(--ink); }

/* Trust */
.trust-list { list-style: none; display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 720px; margin: 0 auto; }
@media (min-width: 720px) { .trust-list { grid-template-columns: 1fr 1fr; } }
.trust-list li { display: flex; gap: 12px; align-items: flex-start; }
.trust-list .ico { flex: none; color: var(--forest); margin-top: 2px; }
.trust-list b { color: var(--forest-deep); }
.trust-list span { color: var(--ink-2); font-size: .98rem; }

/* Platform section (verticals) */
.vgrid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .vgrid { grid-template-columns: repeat(3, 1fr); } }
.vcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .06s ease, box-shadow .15s ease, border-color .15s ease; }
.vcard:hover { transform: translateY(-2px); border-color: var(--forest-mid); box-shadow: 0 2px 4px rgba(30, 40, 32, .05), 0 14px 32px rgba(30, 40, 32, .09); }
.vcard .ico { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(46, 94, 63, .08); color: var(--forest); margin-bottom: 16px; }
.vcard h3 { margin-bottom: 8px; }
.vcard p { color: var(--ink-2); font-size: .98rem; flex: 1; }
.vcard .go { margin-top: 16px; font-weight: 600; color: var(--forest); font-size: .95rem; }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; margin-bottom: 14px; text-transform: uppercase; }
.chip-live { background: rgba(46, 94, 63, .12); color: var(--forest); }
.chip-soon { background: rgba(210, 127, 77, .16); color: #8F4A20; }

/* Feature rows (vertical pages) */
.rows { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr; gap: 12px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .row2 { grid-template-columns: 48px 1fr; gap: 20px; align-items: start; } }
.row2 .ico { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(46, 94, 63, .08); color: var(--forest); }
.row2 h3 { margin-bottom: 6px; }
.row2 p { color: var(--ink-2); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--forest-deep); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--forest-mid); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-2); padding: 0 0 18px; font-size: .98rem; }

/* Final CTA */
.final { background: var(--forest-deep); }
.final .wrap { text-align: center; max-width: 640px; }
.final h2 { color: var(--white); }
.final p { color: #CFE0D3; margin: 12px 0 26px; font-size: 1.05rem; }
.final .waitlist-form { margin: 0 auto; }
.final .waitlist-form input { border-color: transparent; }
.final .form-note { margin-left: auto; margin-right: auto; text-align: center; color: #CFE0D3; }
.final .form-note.ok { color: #A8E0B8; }
.final .form-note.err { color: #F1B4A6; }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--surface); }
footer .wrap { display: grid; grid-template-columns: 1fr; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 640px) { footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
footer .brand { margin-bottom: 8px; }
footer .foot-tag { color: var(--ink-2); font-size: .9rem; max-width: 32ch; }
footer nav { display: flex; flex-direction: column; gap: 8px; }
.foot-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: 4px; font-weight: 700; }
footer a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
footer a:hover { color: var(--forest); }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 18px; font-size: .86rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer .legal .spacer { margin-left: auto; }

/* --- Icons + embellishments (polish pass) --- */
.ico-svg { display: block; width: 24px; height: 24px; }
.glass-ico .ico-svg { width: 20px; height: 20px; }
.trust-list .ico .ico-svg { width: 22px; height: 22px; }
.card .ico, .vcard .ico, .row2 .ico, .glass-ico { background: linear-gradient(150deg, rgba(46, 94, 63, .14), rgba(46, 94, 63, .05)); }
.card { transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--forest-mid); box-shadow: 0 2px 4px rgba(30, 40, 32, .05), 0 14px 32px rgba(30, 40, 32, .09); }
.step { transition: border-color .2s ease, transform .12s ease; }
.step:hover { border-color: var(--forest-mid); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .vcard, .card, .step { transition: none; } .vcard:hover, .card:hover, .step:hover { transform: none; } }
@media (max-width: 520px) { .waitlist-form { grid-template-columns: 1fr; } }
