:root {
  /* Roles mapped to brand tokens (brand.css, generated from brand/tokens.json). */
  --navy: var(--kw-midnight);
  --navy-2: var(--kw-midnight2);
  --blue: var(--kw-blue);
  --green: var(--kw-green);
  --ink: var(--kw-ink);
  --muted: var(--kw-ink-muted);
  --line: var(--kw-line);
  --bg: var(--kw-white);
  --bg-soft: var(--kw-mist);
  --radius: var(--kw-radius-card);
  --grad: var(--kw-gradient);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Poppins, Inter, system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .6em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.section-lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }

.btn { display: inline-block; border: 0; border-radius: 999px; padding: 14px 26px; font: 600 1rem Inter, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(61, 139, 242, .3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(61, 139, 242, .4); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }

/* Beta bar */
.beta-bar { background: var(--navy); text-align: center; font-size: .9rem; padding: 8px 16px; }
.beta-bar a { color: #fff; text-decoration: none; font-weight: 500; }
.beta-bar a:hover { text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 80px; background: radial-gradient(1200px 500px at 85% -10%, rgba(43, 196, 138, .12), transparent 60%), radial-gradient(900px 500px at 0% 0%, rgba(61, 139, 242, .1), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.5rem; }
.tv { margin: 0; }
.tv-screen { background: #0b1222; padding: 10px; border-radius: 14px; box-shadow: 0 30px 60px rgba(20, 33, 61, .25); }
.tv-screen img { border-radius: 6px; }
.tv-stand { width: 28%; height: 14px; margin: 0 auto; background: linear-gradient(#cfd6e2, #aeb8c8); border-radius: 0 0 10px 10px; }
.tv figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* Sections */
section { padding: 88px 0; }
.problem, .features { background: var(--bg-soft); }
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li p { color: var(--muted); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font: 700 1.1rem Poppins, sans-serif; margin-bottom: 14px; }

.spotlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spotlight.alt { background: var(--bg-soft); }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); }
.checks li::after { content: "✓"; position: absolute; left: 4px; top: 0; color: #fff; font-size: .8rem; font-weight: 700; line-height: 1.9; }

/* Request mock */
.mock-pair { position: relative; min-height: 340px; }
.mock-tv { background: var(--navy); color: #fff; border-radius: 14px; padding: 36px; width: 82%; text-align: center; box-shadow: 0 24px 50px rgba(20, 33, 61, .25); }
.mock-tv img { margin: 0 auto 10px; }
.mock-title { font: 700 1.6rem Poppins, sans-serif; margin: 0 0 6px; }
.mock-sub { color: #a9b4c8; margin: 0; }
.mock-phone { position: absolute; right: 0; bottom: 0; width: 56%; background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 20px 45px rgba(20, 33, 61, .2); border: 1px solid var(--line); }
.mock-note { font-size: .95rem; margin-bottom: 14px; }
.mock-buttons { display: flex; gap: 8px; }
.pill { flex: 1; text-align: center; border-radius: 999px; padding: 8px 0; font-weight: 600; font-size: .9rem; background: var(--bg-soft); color: var(--ink); }
.pill-yes { background: var(--green); color: #fff; }
.pill-no { background: #ffe6e3; color: #b3261e; }

/* Real screenshots */
.shot-tv { margin: 0; background: #0b1222; padding: 8px; border-radius: 14px; box-shadow: 0 24px 50px rgba(20, 33, 61, .25); }
.shot-tv img { border-radius: 6px; }
.shot-pair { position: relative; padding-bottom: 90px; }
.shot-pair .shot-tv { width: 88%; }
.shot-phone { position: absolute; right: 0; bottom: 0; width: 40%; margin: 0; background: #fff; padding: 8px; border-radius: 26px; box-shadow: 0 20px 45px rgba(20, 33, 61, .25); border: 1px solid var(--line); }
.shot-phone img { border-radius: 18px; }

/* Hub mock */
.mock-hub { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--navy); border-radius: 16px; padding: 24px; box-shadow: 0 24px 50px rgba(20, 33, 61, .25); }
.hub-col { background: var(--navy-2); border-radius: 12px; padding: 18px; color: #f2f4f8; }
.hub-head { font: 600 1rem Poppins, sans-serif; margin-bottom: 12px; color: #7fb2ff; }
.chore { display: flex; justify-content: space-between; background: rgba(255, 255, 255, .06); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; font-size: .95rem; }
.chore.done { text-decoration: line-through; color: #a9b4c8; }
.chore span { color: #ffc94d; text-decoration: none; }
.hub-stars { font-size: .85rem; color: #a9b4c8; margin: 12px 0 0; }
.event { display: flex; align-items: center; gap: 10px; font-size: .95rem; margin-bottom: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-a { background: var(--blue); } .dot-b { background: var(--green); } .dot-c { background: #ffc94d; }

/* Privacy */
.privacy { background: var(--navy); color: #fff; }
.privacy p { color: #c7d0e0; font-size: 1.1rem; }
.privacy-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stats li { display: flex; align-items: baseline; gap: 16px; background: var(--navy-2); border-radius: 12px; padding: 16px 20px; }
.stats strong { font: 700 2rem Poppins, sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 1.2em; }
.stats span { color: #c7d0e0; }

/* Pricing */
.price-card h3 { font-size: 1.4rem; }
.price { font-weight: 600; color: var(--blue); }
.price-num { font: 700 2.2rem Poppins, sans-serif; color: var(--ink); margin-right: 6px; }
.fine { font-size: .88rem; color: var(--muted); margin-top: 1rem; }
.price-card.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.price-card .checks li { color: var(--ink); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Kinwell Neighbors */
.neighbors { background: var(--bg-soft); }
.neighbors-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.neighbor-form { display: flex; flex-direction: column; gap: 8px; }
.neighbor-form h3 { margin-bottom: 8px; }
.neighbor-form label { font-weight: 600; font-size: .9rem; margin-top: 6px; }
.neighbor-form input, .neighbor-form select { font: 400 1rem Inter, sans-serif; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.neighbor-form .btn { margin-top: 12px; }
@media (max-width: 900px) { .neighbors-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Waitlist */
.waitlist { text-align: center; background: radial-gradient(800px 400px at 50% 0%, rgba(61, 139, 242, .1), transparent 70%); }
.waitlist-cat { margin: 0 auto 12px; }
.waitlist p { color: var(--muted); }
.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.waitlist-form input[type=email], .waitlist-form input[type=text], .waitlist-form select { font: 400 1rem Inter, sans-serif; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.waitlist-form input[type=email] { flex: 1 1 260px; max-width: 340px; }
.waitlist-form input[name=zip] { width: 130px; }
.hp { position: absolute; left: -9999px; }
.form-msg { min-height: 1.6em; margin-top: 14px; font-weight: 600; }
.form-msg.ok { color: #1a8f5f; }
.form-msg.err { color: #b3261e; }

/* Footer */
.footer { background: var(--navy); color: #a9b4c8; padding: 36px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* Phones and tablets */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner .btn-sm { margin-left: auto; }
  .hero-grid, .spotlight-grid, .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .spotlight-grid.reverse > :first-child { order: 2; }
  .cards.three, .cards.two, .steps { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .mock-pair { min-height: 0; }
  .shot-pair { padding-bottom: 0; }
  .shot-pair .shot-tv { width: 100%; }
  .shot-phone { position: static; width: 70%; margin: 16px auto 0; }
  .mock-tv { width: 100%; padding: 28px 20px; }
  .mock-phone { position: static; width: 100%; margin-top: 16px; }
  .mock-hub { grid-template-columns: 1fr; padding: 16px; }
}
