/* Housify marketing site — matches the app: Figtree, indigo brand, light + dark.
   Static CSS, no build step. One sheet for every page. */
:root {
  --bg: #f7f8fb;
  --paper: #ffffff;
  --fg: #16161d;
  --muted: #5e6072;
  --faint: #9a9cad;
  --rule: #e4e6ee;
  --brand: #4f46e5;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --accent-grad: linear-gradient(135deg, #6366f1, #4338ca);
  --positive: #15803d;
  --shadow: 0 1px 2px rgba(20, 20, 40, .06), 0 12px 32px rgba(20, 20, 40, .08);
  --radius: 14px;
  --font: 'Figtree', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1017; --paper: #171824; --fg: #eceef6; --muted: #a9acc0; --faint: #6f7288; --rule: #262838;
    --brand: #8b86ff; --brand-600: #8b86ff; --brand-700: #a7a3ff; --brand-50: #1d1e34; --brand-100: #262853;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1017; --paper: #171824; --fg: #eceef6; --muted: #a9acc0; --faint: #6f7288; --rule: #262838;
  --brand: #8b86ff; --brand-600: #8b86ff; --brand-700: #a7a3ff; --brand-50: #1d1e34; --brand-100: #262853;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .8rem; }
.wrap { width: min(1120px, 100% - 2rem); margin: 0 auto; }
.narrow { width: min(760px, 100% - 2rem); margin: 0 auto; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 1.2rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--fg); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: .2rem; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); font-weight: 600; padding: .45rem .7rem; border-radius: 8px; font-size: .95rem; }
.nav a:hover { color: var(--fg); background: var(--brand-50); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); }
.nav .btn { margin-left: .4rem; }
/* The nav's link colours must not reach the buttons inside it. */
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--accent-grad); }
.nav a.btn-ghost { color: var(--fg); }
.nav a.btn-ghost:hover { background: var(--paper); color: var(--brand); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 8px; padding: .4rem .6rem; color: var(--fg); font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .6rem 1rem 1rem; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { margin: .4rem 0 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1.15rem; border-radius: 10px; font-weight: 700; font-size: .98rem; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .28); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(79, 70, 229, .34); }
.btn-ghost { background: var(--paper); color: var(--fg); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1.05rem; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }
.hero-note { font-size: .9rem; color: var(--faint); }
.shot { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--rule); overflow: hidden; background: var(--paper); }
.shot img { width: 100%; }
.hero-shots { position: relative; }
.hero-shots .phone { position: absolute; right: -4%; bottom: -8%; width: 30%; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--rule); overflow: hidden; background: var(--paper); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-shots .phone { display: none; }
}

/* Sections */
section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem; min-width: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.2rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card ul { color: var(--muted); margin: .6rem 0 0; padding-left: 1.1rem; font-size: .95rem; }
.card li { margin: .25rem 0; }

/* Feature rows (alternating text + screenshot) */
.feature-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; padding: 2.4rem 0; border-top: 1px solid var(--rule); }
.feature-row:first-of-type { border-top: 0; }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy p { color: var(--muted); }
.feature-copy ul { padding-left: 1.1rem; color: var(--muted); }
.feature-copy li { margin: .3rem 0; }
@media (max-width: 900px) { .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 1.4rem; } .feature-row.flip .feature-copy { order: 0; } }

/* Stats / proof */
.band { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: left; }
.stats b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* CTA */
.cta { background: var(--accent-grad); color: #fff; border-radius: 20px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta h2 { color: #fff; margin-bottom: .4rem; }
.cta p { color: rgba(255,255,255,.85); margin: 0; }
.cta .btn-ghost { background: #fff; color: var(--brand-700); border-color: transparent; }
.cta .actions { display: flex; gap: .8rem; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } .cta .actions { justify-content: flex-start; } }

/* Pricing / contact */
.plan { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 2rem; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.plan .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.plan ul { padding-left: 1.1rem; color: var(--muted); }
.check { color: var(--positive); font-weight: 700; }
.contact-box { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.6rem; }
.contact-box dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; }
.contact-box dd { margin: .2rem 0 1rem; font-size: 1.05rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; }
.copy-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.copy-btn { font: inherit; font-size: .85rem; font-weight: 600; padding: .3rem .6rem; border-radius: 8px; border: 1px solid var(--rule); background: var(--paper); color: var(--fg); cursor: pointer; }

/* Prose (legal, about) */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; }
.prose strong { color: var(--fg); }
.updated { color: var(--faint); font-size: .9rem; }

/* FAQ */
details { border-top: 1px solid var(--rule); padding: 1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 1.2rem; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: .6rem 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 calc(2rem + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .93rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }
.site-footer .legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .86rem; color: var(--faint); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
