/* NestIQ landing page - one fixed colour scheme, no dependency on global.css or the app tokens. */
:root {
  --ink: #1A2B3C;
  --ink-soft: #243A4F;
  --paper: #FFFFFF;
  --mist: #EEF1F4;
  --line: #D9DEE3;
  --text: #2B3A47;
  --muted: #566674;
  --gold: #C9A96E;
  --gold-deep: #7F6128;
  --green: #1F7A4D;
  --green-bg: #E1F1E8;
  --amber: #7A5410;
  --amber-bg: #FBEFD6;
  --blue: #1D4E89;
  --blue-bg: #E2ECF8;
  --red: #A3312F;
  --red-bg: #FBE4E3;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ───────── Top bar (kept from the previous page, theme switch removed) ───────── */
nav { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; height: 72px; padding: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); background: #fff; border-bottom: 1px solid var(--line); }
.nav-logo { width: 190px; height: 60px; object-fit: cover; object-position: center; }
.nav-links { display: flex; justify-self: center; gap: clamp(20px, 2.8vw, 40px); }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-signin { white-space: nowrap; background: none; border: 0; padding: 8px 4px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.nav-signin:hover { color: var(--gold-deep); }
.nav-cta { white-space: nowrap; text-decoration: none; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; padding: 10px 20px; border-radius: 8px; }
.nav-cta:hover { background: var(--ink-soft); }
.nav-menu { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }

/* ───────── Buttons ───────── */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 14px 26px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #D6B97F; }
.btn-line { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-line:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }

/* ───────── Hero ───────── */
.hero { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -0.015em; max-width: 15em; }
.hero-lead { margin-top: 24px; font-size: 19px; line-height: 1.6; color: #C9D3DC; max-width: 34em; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 30px; font-size: 15px; color: #9FB0BF; max-width: 34em; }

/* The rent ledger: a worked example of one month, drawn like the product's own tables */
.ledger { background: #fff; color: var(--text); border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); overflow: hidden; }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.ledger-title { font-weight: 600; color: var(--ink); font-size: 16px; }
.ledger-tag { font-size: 13px; color: var(--muted); }
.ledger-row { display: grid; grid-template-columns: 70px 1fr 1.15fr; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid #E7EBEF; font-variant-numeric: tabular-nums; font-size: 15px; }
.ledger-row.cols { padding-top: 10px; padding-bottom: 10px; font-size: 13px; color: var(--muted); background: #F6F8FA; font-weight: 500; }
.ledger-unit { font-weight: 600; color: var(--ink); }
.ledger-amt { color: var(--text); }
.chips { position: relative; display: block; height: 26px; }
.chip { position: absolute; left: 0; top: 0; display: inline-block; font-size: 13px; font-weight: 600; line-height: 26px; padding: 0 11px; border-radius: 999px; white-space: nowrap; }
.chip.paid { background: var(--green-bg); color: var(--green); }
.chip.due { background: var(--amber-bg); color: var(--amber); }
.chip.sent { background: var(--blue-bg); color: var(--blue); }
.chip.late { background: var(--red-bg); color: var(--red); }
.chip.paid { opacity: 1; }
.settle .chip.paid { opacity: 0; animation: paidIn .5s ease forwards; animation-delay: var(--d); }
.settle .chip.due.flip { animation: dueOut .35s ease forwards; animation-delay: var(--d); }
@keyframes paidIn { to { opacity: 1; } }
@keyframes dueOut { to { opacity: 0; } }
.ledger-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 16px 22px; background: #F6F8FA; font-size: 14px; color: var(--muted); }
.ledger-foot strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.settle .ledger-foot { animation: footIn .6s ease both; animation-delay: 2.6s; }
@keyframes footIn { from { opacity: .0; } to { opacity: 1; } }

/* ───────── Sections ───────── */
section { scroll-margin-top: 72px; }
.block { padding: clamp(64px, 9vw, 112px) 0; }
.block.mist { background: var(--mist); }
.rule { display: block; width: 44px; height: 3px; background: var(--gold); margin-bottom: 20px; }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.012em; color: var(--ink); max-width: 18em; }
.lede { margin-top: 18px; max-width: 36em; color: var(--muted); font-size: 18px; }

/* What to expect: a real sequence, so it is numbered */
.journey { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 96px); align-items: start; }
.journey-intro { position: sticky; top: 112px; }
.steps { counter-reset: step; border-left: 2px solid var(--line); margin-left: 19px; }
.step { position: relative; padding: 0 0 38px 44px; }
.step:last-child { padding-bottom: 0; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: -21px; top: -4px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--paper); }
.step h3 { font-family: var(--display); font-weight: 500; font-size: 23px; line-height: 1.25; color: var(--ink); }
.step p { margin-top: 8px; max-width: 34em; }
.step .who { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--gold-deep); }

/* Features: ruled index, grouped by what the landlord is trying to do */
.feat-head { margin-bottom: 56px; }
.fgroup { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: clamp(20px, 5vw, 64px); padding: 36px 0; border-top: 1px solid #C7CED5; }
.fgroup:last-child { border-bottom: 1px solid #C7CED5; }
.fgroup > h3 { font-family: var(--display); font-weight: 500; font-size: 26px; color: var(--ink); line-height: 1.2; }
.fgroup > h3 small { display: block; margin-top: 8px; font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); line-height: 1.5; max-width: 16em; }
.frows { display: grid; gap: 26px; }
.frow { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 16px; }
.frow svg { width: 22px; height: 22px; margin-top: 3px; stroke: var(--gold-deep); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.frow h4 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.frow p { margin-top: 4px; color: var(--text); max-width: 38em; }

/* Tenant portal band */
.portal { background: var(--ink); color: #fff; }
.portal h2 { color: #fff; }
.portal .lede { color: #C9D3DC; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 96px); align-items: start; }
.portal-list { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.portal-list li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.portal-list strong { font-weight: 600; color: #fff; }
.portal-list span { color: #C9D3DC; }

/* Security */
.trust { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 96px); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.facts dt { font-weight: 600; color: var(--ink); font-size: 17px; }
.facts dd { margin-top: 6px; color: var(--text); font-size: 16px; }

/* Pricing */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 96px); align-items: start; }
.rates { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rate { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.rate:last-of-type { border-bottom: 0; }
.rate span { font-weight: 500; color: var(--ink); }
.rate b { font-family: var(--display); font-weight: 500; font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rates-note { padding: 16px 24px; background: #F6F8FA; font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); }
.price-points { margin-top: 26px; display: grid; gap: 14px; max-width: 36em; }
.price-points li { padding-left: 20px; position: relative; }
.price-points li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 2px; background: var(--gold-deep); }

/* Call to action */
.cta { background: var(--ink); color: #fff; text-align: left; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; }
.cta h2 { color: #fff; }
.cta p { margin-top: 14px; color: #C9D3DC; max-width: 34em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Footer */
footer { background: #12202E; color: #B5C2CE; padding: 56px 0 28px; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 150px; margin-bottom: 14px; }
.footer-tagline { max-width: 22em; }
footer h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #fff; }
footer li { margin-bottom: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; }
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ───────── Sign-in dialog (markup and behaviour come from global.js) ───────── */
.auth-dialog { position: fixed; inset: 0; margin: auto; border: 0; border-radius: 14px; padding: 0; width: min(440px, calc(100% - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 28px 80px rgba(26,43,60,.35); color: var(--text); background: #fff; }
.auth-dialog::backdrop { background: rgba(18,32,46,.6); backdrop-filter: blur(3px); }
.auth-inner { padding: 32px; position: relative; overflow-y: auto; max-height: calc(100vh - 32px); }
.auth-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 26px; line-height: 1; padding: 4px 8px; }
.auth-inner h2 { font-family: var(--display); font-weight: 500; font-size: 28px; color: var(--ink); margin-bottom: 6px; max-width: none; }
.auth-copy { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.auth-tab { flex: 1; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); cursor: pointer; padding: 10px; font-size: 14px; font-weight: 600; }
.auth-tab.active { color: var(--ink); border-bottom-color: var(--gold); }
.auth-panel[hidden], #authGuest[hidden], #registerForm[hidden], #authSent[hidden], #onboardingForm[hidden], #accountPanel[hidden] { display: none; }
.auth-field { display: grid; gap: 6px; margin: 13px 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.auth-field input, .auth-field textarea, .auth-field select { width: 100%; border: 1px solid #B9C2CB; border-radius: 8px; padding: 11px 12px; color: var(--ink); background: #fff; font: inherit; font-size: 15px; font-weight: 400; }
.auth-field textarea { resize: vertical; }
.auth-field input:focus, .auth-field textarea:focus, .auth-field select:focus { border-color: var(--gold-deep); outline: 2px solid rgba(201,169,110,.45); }
.auth-submit { width: 100%; border: 0; border-radius: 8px; background: var(--ink); color: #fff; cursor: pointer; font-size: 15px; font-weight: 600; padding: 13px; margin-top: 8px; }
.auth-submit:hover { background: var(--ink-soft); }
.auth-status { min-height: 20px; color: var(--muted); font-size: 14px; margin-top: 14px; }
.auth-status.error { color: var(--red); }
.account-list { display: grid; gap: 8px; margin: 14px 0; }
.account-list li { background: var(--mist); border-radius: 8px; padding: 9px 11px; font-size: 14px; }
.auth-inner .nav-signin { font-size: 14px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ───────── Small screens ───────── */
@media (max-width: 960px) {
  nav { grid-template-columns: auto 1fr; }
  .nav-actions { justify-self: end; }
  .nav-menu { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; box-shadow: 0 18px 30px -18px rgba(26,43,60,.3); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero-inner, .journey, .portal-grid, .trust, .price { grid-template-columns: 1fr; }
  .journey-intro { position: static; }
  .fgroup { grid-template-columns: 1fr; gap: 22px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-logo { width: 150px; height: 52px; }
  .nav-cta { padding: 9px 14px; font-size: 14px; }
  .nav-actions { gap: 8px; }
  .ledger-row { grid-template-columns: 52px 1fr; }
  .ledger-row .method { display: none; }
  .ledger-row .chips { grid-column: 1 / -1; }
  .ledger-row.cols span:last-child { display: none; }
  .facts { grid-template-columns: 1fr; }
  .portal-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .settle .chip.paid, .settle .chip.due.flip, .settle .ledger-foot { animation: none; opacity: 1; }
  .settle .chip.due.flip { opacity: 0; }
}


/* ───────── Inner pages ───────── */
.nav-links a[aria-current="page"] { border-bottom-color: var(--gold); }
.phero { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 88px) 0 clamp(52px, 7vw, 84px); }
.phero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.1; letter-spacing: -0.015em; max-width: 17em; }
.phero .hero-lead { max-width: 38em; }
.subnav { position: sticky; top: 72px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px 26px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--muted); padding: 14px 0; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 96px); align-items: center; }
.split.top { align-items: start; }
.split.flip > :first-child { order: 2; }
.checks { margin-top: 26px; display: grid; gap: 13px; max-width: 36em; }
.checks li { position: relative; padding-left: 22px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 12px; width: 9px; height: 2px; background: var(--gold-deep); }
.checks b { color: var(--ink); font-weight: 600; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 40px -28px rgba(26,43,60,.28); }
.block:not(.mist) .panel { background: var(--mist); box-shadow: none; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.panel-head b { color: var(--ink); font-weight: 600; font-size: 16px; }
.panel-head span { font-size: 13px; color: var(--muted); }
.panel-body { padding: 22px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.tile { background: #fff; padding: 20px 22px; }
.tile span { display: block; font-size: 13.5px; color: var(--muted); }
.tile b { display: block; margin-top: 4px; font-family: var(--display); font-weight: 500; font-size: 28px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile em { display: block; margin-top: 2px; font-style: normal; font-size: 13px; color: var(--muted); }
.tile.bad b { color: var(--red); }
.pipe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pipe .chip { position: static; }
.pipe i { font-style: normal; color: var(--muted); }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: 14px; font-weight: 600; border: 1px solid var(--line); }
.panel .tag { background: #fff; }
.calc { display: grid; gap: 0; font-variant-numeric: tabular-nums; }
.calc div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 22px; border-bottom: 1px solid var(--line); font-size: 16px; }
.calc div:last-child { border-bottom: 0; background: #fff; font-weight: 600; color: var(--ink); }
.calc small { display: block; padding: 12px 22px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); background: #F6F8FA; }
.calc span:first-child { color: var(--text); }
.flow { counter-reset: f; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.flow li { counter-increment: f; position: relative; padding: 24px 24px 0 0; }
.flow li::before { content: counter(f); display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 600; font-size: 14px; line-height: 30px; text-align: center; margin: -39px 0 14px; }
.flow h3 { font-family: var(--display); font-weight: 500; font-size: 21px; color: var(--ink); line-height: 1.25; }
.flow p { margin-top: 8px; font-size: 15.5px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.grid3 h3 { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--ink); line-height: 1.25; }
.grid3 p { margin-top: 8px; font-size: 16px; }
.notebox { border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; max-width: 40em; color: var(--text); }
.notebox b { color: var(--ink); }
.more { display: inline-block; margin-top: 26px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.more:hover { color: var(--gold-deep); }
.portal .more { color: #fff; }
.portal .more:hover { color: var(--gold); }
.faq details { border-top: 1px solid #C7CED5; padding: 0; }
.faq details:last-child { border-bottom: 1px solid #C7CED5; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 18px; font-size: 26px; font-weight: 400; color: var(--gold-deep); }
.faq details[open] summary::after { content: '\2212'; }
.faq p { padding: 0 40px 24px 0; max-width: 44em; }
.kenya-list { border-top: 1px solid #C7CED5; }
.kenya-list li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid #C7CED5; }
.kenya-list strong { color: var(--ink); font-weight: 600; }
.stack { display: grid; gap: 22px; }
@media (max-width: 960px) {
  .split, .grid3 { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .subnav { top: 72px; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .kenya-list li { grid-template-columns: 1fr; gap: 4px; }
  .tile b { font-size: 24px; }
  .calc div { padding: 12px 16px; font-size: 15px; }
}

/* ───────── Shared logo (same "Nest IQ" mark as the app sidebar) ───────── */
.nav-logo { width: auto; height: 46px; object-fit: contain; }
@media (max-width: 640px) { .nav-logo { width: auto; height: 38px; } }

/* Homepage plan list */
.rate span small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--muted); }
.rate b { text-align: right; }
.rate b i { font-style: normal; }
.rate b em { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); }

/* ───────── Pricing page ───────── */
.phero .hero-lead { margin-top: 18px; }
.pl-toggles { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.pl-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.pl-seg button { border: 0; background: none; color: #C9D3DC; font-size: 15px; font-weight: 600; padding: 8px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pl-seg button.on { background: var(--gold); color: var(--ink); }
.pl-save { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--green-bg); color: var(--green); }
.pl-seg button.on .pl-save { background: rgba(26,43,60,.14); color: var(--ink); }
.pl-cards-wrap { margin-top: -40px; position: relative; }
.pl-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1080px) { .pl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pl-cards { grid-template-columns: 1fr; } }
.pl-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px 22px; box-shadow: 0 18px 40px -24px rgba(26,43,60,.35); }
.pl-card.pop { border: 2px solid var(--gold); }
.pl-badge { position: absolute; top: -12px; left: 24px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 12px; border-radius: 999px; }
.pl-card h2 { font-size: 28px; }
.pl-tag { margin-top: 6px; font-size: 15px; color: var(--muted); min-height: 48px; line-height: 1.45; }
.pl-price { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.pl-amt { font-family: var(--display); font-size: 38px; font-weight: 500; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.pl-per { font-size: 14px; color: var(--muted); }
.pl-was { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.pl-saving { margin-top: 6px; min-height: 22px; font-size: 14px; font-weight: 600; color: var(--green); }
.pl-card .btn { display: block; text-align: center; margin-top: 16px; padding: 12px 18px; font-size: 15px; }
.pl-card .btn-outline { border: 1.5px solid var(--ink); color: var(--ink); background: #fff; }
.pl-card .btn-outline:hover { background: var(--mist); }
.pl-trust { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.pl-feats { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 15px; }
.pl-feats-head { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.pl-feats li { position: relative; padding-left: 26px; line-height: 1.45; }
.pl-feats li::before { content: ''; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--green-bg) center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F7A4D' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.pl-billing { margin-top: auto; padding-top: 16px; font-size: 13.5px; color: var(--muted); border-top: 1px dashed var(--line); line-height: 1.5; }
.pl-feats + .pl-billing { margin-top: 20px; }
.pl-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.pl-calc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 28px); margin-top: 36px; }
.pl-calc-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.pl-calc label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pl-calc input { font: 500 17px var(--sans); color: var(--ink); padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; min-width: 170px; background: #fff; }
.pl-calc input:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.pl-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pl-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.pl-table th, .pl-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pl-table tr:last-child td { border-bottom: 0; }
.pl-table th { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: #F6F8FA; }
.pl-table td:first-child { font-weight: 600; color: var(--ink); min-width: 220px; }
.pl-table td.yes { color: var(--green); font-weight: 700; }
.pl-table td.no { color: #A3AEB8; }
.pl-feats li.pl-feats-head { padding-left: 0; }
.pl-feats li.pl-feats-head::before { display: none; }

/* ───────── Documents (Terms, Privacy, Refunds, Security policy) ───────── */
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.doc-meta span { font-size: 14px; color: #C9D3DC; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 96px); }
.doc-layout.single { grid-template-columns: minmax(0, 1fr); }
.doc-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 8px; font-size: 14.5px; }
.doc-toc strong { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.doc-toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--text); text-decoration: none; line-height: 1.4; }
.doc-toc a:hover { color: var(--ink); border-left-color: var(--gold); }
.doc { max-width: 760px; color: var(--text); }
.doc section { padding-top: 8px; }
.doc section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.doc h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 16px; max-width: none; }
.doc section > h2 + h2, .doc p + h2, .doc ul + h2, .doc ol + h2 { margin-top: 36px; }
.doc h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink); margin: 26px 0 8px; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; display: grid; gap: 8px; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 9px; height: 2px; background: var(--gold-deep); }
.doc ol { list-style: decimal; padding-left: 22px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.doc .notice { margin: 0 0 32px; padding: 18px 22px; border-radius: 12px; background: var(--amber-bg); border: 1px solid #EBD39F; color: var(--amber); font-size: 15.5px; }
.doc .notice strong, .doc .notice h3 { color: var(--amber); }
.doc .notice h3 { margin-top: 0; }
.doc .notice p:last-child { margin-bottom: 0; }
.doc section .notice { margin-top: 24px; }
.doc .checklist li::before { width: 14px; height: 14px; top: 6px; border-radius: 3px; border: 2px solid var(--gold-deep); background: none; }
.doc .end-marker { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.doc-back { margin-top: 28px; font-size: 15px; }
.doc-back a { color: var(--gold-deep); font-weight: 600; text-decoration: none; }
.doc-related { margin-top: 36px; padding: 18px 22px; border-radius: 12px; background: var(--mist); font-size: 15.5px; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; max-height: none; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
  .doc-toc a { padding: 4px 0 4px 10px; }
}

/* ───────── Forms on marketing pages (Business contact) ───────── */
.form-card { max-width: 640px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 18px 40px -24px rgba(26,43,60,.3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-card label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
.form-card input, .form-card textarea { width: 100%; font: 400 16px var(--sans); color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card input:focus, .form-card textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form-card .btn { margin-top: 24px; }
.form-card .btn:disabled { opacity: .6; cursor: default; }
.form-msg { margin-top: 14px; font-size: 15px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }

/* ───────── Error pages ───────── */
.err-block { min-height: calc(100vh - 72px - 260px); display: grid; place-items: center; text-align: center; padding: clamp(64px, 10vw, 120px) 0; }
.err-code { font-family: var(--display); font-weight: 500; font-size: clamp(88px, 14vw, 150px); line-height: 1; color: var(--gold); letter-spacing: -0.02em; }
.err-code.bad { color: var(--red); }
.err-block h1 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); color: var(--ink); margin-top: 18px; }
.err-block p { margin: 14px auto 0; max-width: 32em; color: var(--muted); font-size: 18px; }
.err-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.err-actions .btn-outline { border: 1.5px solid var(--ink); color: var(--ink); background: #fff; }
.err-id { display: block; margin-top: 26px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--muted); }

/* Continue with Google + two-step sign-in step */
.auth-google { display: none; width: 100%; align-items: center; justify-content: center; gap: 10px; border: 1px solid #B9C2CB; border-radius: 8px; background: #fff; color: #1F1F1F; cursor: pointer; font-size: 15px; font-weight: 600; padding: 12px; margin: 4px 0 2px; font-family: inherit; }
.auth-google.on { display: flex; }
.auth-google:hover { background: #F4F6F8; }
.auth-google svg { width: 18px; height: 18px; flex: 0 0 auto; }
.auth-or { display: none; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 14px 0 6px; }
.auth-or.on { display: flex; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-code { letter-spacing: .3em; font-variant-numeric: tabular-nums; text-align: center; font-size: 20px !important; }
.auth-alt { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 16px; }
.auth-key-btn { background: #fff !important; color: var(--ink) !important; border: 1px solid #B9C2CB !important; }
.auth-key-btn:hover { background: #F4F6F8 !important; }
