:root {
  --primary: #3b6fd4;
  --primary-dark: #2d5bbf;
  --accent: #34a574;
  --bg: #0c1220;
  --bg-card: #111827;
  --bg-input: #0f172a;
  --bg-elevated: #1a2538;
  --text: #e8edf5;
  --text-muted: #8a97ab;
  --text-subtle: #536075;
  --border: #1e2d42;
  --border-light: #263347;
  --success: #34a574;
  --danger: #e05252;
  --warn: #d4922a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
a { color: var(--primary); text-decoration: none; transition: color .15s ease, border-color .15s ease, background .15s ease; }
a:hover { color: #7fa4ef; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Navigation */
nav {
  position: sticky; top: 0; z-index: 80;
  max-width: none; width: 100%; margin: 0; padding: 0;
  background: rgba(12,18,32,.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
nav > .logo, nav > .nav-toggle, nav > .nav-links { position: relative; }
nav { display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; height: 56px; max-width: 100%; background: var(--bg, #0d1b2e); border-bottom: 1px solid var(--border, rgba(255,255,255,0.08)); position: sticky; top: 0; z-index: 200; }
nav > .logo { flex-shrink: 0; margin: 0; }
nav > .nav-links { margin-left: auto; }
.logo { font-size: 1.05rem; font-weight: 800; color: var(--text); letter-spacing: -.035em; }
.logo span { color: var(--accent); margin-left: .03rem; }
.logo:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { color: var(--text-muted); font-size: .84rem; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: transparent; border: 0; width: 38px; height: 38px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #ffffff; margin: 4px auto; border-radius: 2px; transition: transform .15s ease, opacity .15s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-user { position: relative; color: var(--text-muted); font-size: .84rem; font-weight: 600; cursor: default; }
.nav-user-email { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border: 1px solid var(--border); border-radius: 999px; }
.nav-dropdown { display: none; position: absolute; right: 0; top: calc(100% + .5rem); min-width: 160px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: .35rem; }
.nav-user:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: .55rem .7rem; border-radius: 7px; }
.nav-dropdown a:hover { background: var(--bg-elevated); }

/* Buttons */
.btn, .btn-sm, button.btn, input[type='submit'] {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border-radius: 8px; border: 1px solid transparent;
  background: var(--primary); color: white !important;
  font-weight: 700; line-height: 1.2; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn { padding: .72rem 1.1rem; font-size: .9rem; }
.btn-sm { padding: .48rem .85rem; font-size: .8rem; }
.btn:hover, .btn-sm:hover { background: var(--primary-dark); color: white !important; text-decoration: none; transform: none; }
.btn-outline { background: transparent; border-color: var(--border-light); color: var(--text) !important; }
.btn-outline:hover { background: var(--bg-elevated); border-color: var(--primary); color: var(--text) !important; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #c94343; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59,111,212,.18); }

/* Search */
.search-box { max-width: 640px; margin: 0 auto; width: 100%; }
.search-wrap { display: flex; position: relative; border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; background: var(--bg-input); transition: border-color .15s ease, box-shadow .15s ease; }
.search-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,111,212,.12); }
.search-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); padding: .92rem 1rem; font-size: .98rem; }
.search-wrap input::placeholder { color: var(--text-subtle); }
.search-wrap button { border-radius: 0; padding: .9rem 1.2rem; white-space: nowrap; }
.search-tags { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: .85rem; flex-wrap: wrap; }
.search-tags span { color: var(--text-subtle); font-size: .8rem; }
.search-tags a { border: 1px solid var(--border); border-radius: 999px; padding: .22rem .62rem; font-size: .78rem; color: var(--text-muted); background: var(--bg-card); }
.search-tags a:hover { border-color: var(--border-light); color: var(--text); background: var(--bg-elevated); }
.autocomplete-dropdown { position: absolute; top: 100%; left: 0; right: 0; z-index: 100; background: var(--bg-card); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 10px 10px; overflow: hidden; }
.ac-item { padding: .7rem 1rem; color: var(--text-muted); border-bottom: 1px solid var(--border); cursor: pointer; }
.ac-item:hover, .ac-active { background: var(--bg-elevated); color: var(--text); }

/* Layout / hero */
.hero { max-width: 1160px; margin: 0 auto; padding: 5rem 1.5rem 4rem; text-align: center; background: none; }
.hero h1 { max-width: 850px; margin: 0 auto 1rem; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.03; font-weight: 800; letter-spacing: -.055em; }
.hero-sub { max-width: 680px; margin: 0 auto 2rem; color: var(--text-muted); font-size: 1.05rem; }
.eyebrow { display: block; margin-bottom: .75rem; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.accent { color: var(--accent); }
.hero-home { max-width: 1160px; margin: 0 auto; padding: 5rem 1.5rem 4rem; display: grid; grid-template-columns: 1fr .82fr; gap: 3rem; align-items: center; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-visual { border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); padding: 1.25rem; }
.trust-pills { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-top: 1.1rem; }
.trust-pills span, .badge, .data-badge { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: .22rem .65rem; background: var(--bg-card); color: var(--text-muted); font-size: .72rem; font-weight: 700; }
.data-badge { background: rgba(59,111,212,.1); color: #9bb9f4; border-color: rgba(59,111,212,.25); }

/* Sections / cards */
.features, .how-it-works, .cta-section, .conversion-section { max-width: 1160px; margin: 0 auto; padding: 3.75rem 1.5rem; }
.features h2, .how-it-works h2, .cta-section h2, .conversion-section h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 800; margin-bottom: .65rem; }
.section-sub, .conversion-section p { color: var(--text-muted); }
.section-sub { max-width: 560px; margin: 0 auto 2.2rem; text-align: center; font-size: .98rem; }
.feature-grid, .feature-grid-4 { display: grid; gap: 1rem; }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card, .feature-card, .price-card, .pricing-card, .free-paid-card, .section-card, .tool-card, .professional-table-wrap, .cmp-table-wrap, .cmp-verdict-card, .cmp-next-steps, .auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.card, .feature-card, .free-paid-card { padding: 1.35rem; }
.card:hover, .feature-card:hover, .price-card:hover, .pricing-card:hover, .free-paid-card:hover, .section-card:hover { border-color: var(--border-light); }
.card-icon, .feature-icon { display: inline-block; margin-bottom: .65rem; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card h3, .feature-card h3, .free-paid-card h3 { font-size: 1rem; font-weight: 750; letter-spacing: -.025em; margin-bottom: .4rem; }
.card p, .feature-card p, .free-paid-card p { color: var(--text-muted); font-size: .88rem; }
.conversion-muted { background: transparent; }
.conversion-inner { max-width: 1160px; margin: 0 auto; }
.conversion-two-col { display: grid; grid-template-columns: 1fr .8fr; gap: 2rem; align-items: center; }
.report-preview-mock { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; }
.rp-line { height: 10px; border-radius: 999px; background: var(--border-light); margin-bottom: .8rem; }
.rp-strong { width: 70%; background: var(--primary); }
.rp-short { width: 45%; }
.rp-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: .5rem; margin: 1rem 0; }
.rp-metrics span { height: 44px; border-radius: 10px; background: var(--bg-input); border: 1px solid var(--border); }

/* Pricing */
.pricing-grid, .pricing-cards-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pricing-cards-grid { grid-template-columns: repeat(5, 1fr); }
.price-card, .pricing-card { position: relative; padding: 1.6rem; text-align: center; }
.price-card.featured, .pricing-card.featured, .free-paid-featured { border-color: var(--accent); }
.popular-badge, .pricing-recommended-badge, .featured-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: .24rem .65rem; background: rgba(52,165,116,.12); color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.price-amount { font-size: 2rem; font-weight: 800; letter-spacing: -.05em; margin: .75rem 0; }
.pricing-features, .free-paid-card ul { text-align: left; color: var(--text-muted); padding-left: 1rem; margin: 1rem 0; }
.pricing-features li, .free-paid-card li { margin: .4rem 0; }

/* SRP */
.srp-header, .srp-wrap { max-width: 1080px; margin: 0 auto; padding: 2rem 1.5rem 0; }
.srp-tabs { display: flex; gap: .5rem; border-bottom: 1px solid var(--border); margin-top: 1rem; overflow-x: auto; }
.srp-tab { padding: .7rem .9rem; color: var(--text-muted); border-bottom: 2px solid transparent; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.srp-tab:hover, .srp-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.srp-stats, .srp-meta-row { display: flex; align-items: center; gap: .9rem 1.5rem; flex-wrap: wrap; color: var(--text-muted); font-size: .82rem; margin: 1rem 0; }
.srp-results, .srp-grid { max-width: 1080px; margin: 1.25rem auto 0; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.srp-card, .suburb-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.srp-card:hover, .suburb-card:hover { border-color: var(--border-light); transform: none; }
.srp-suburb-link, .suburb-name { color: var(--text); font-size: 1.1rem; font-weight: 750; letter-spacing: -.03em; }
.srp-suburb-link:hover, .suburb-name:hover { color: #9bb9f4; }
.srp-state, .suburb-state-badge { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.srp-price, .suburb-price { font-size: 1.5rem; line-height: 1.15; font-weight: 800; letter-spacing: -.045em; }
.srp-metric-pill, .suburb-tag { border: 1px solid rgba(52,165,116,.22); background: rgba(52,165,116,.1); color: var(--accent); border-radius: 999px; padding: .25rem .6rem; font-size: .75rem; font-weight: 700; }
.srp-yield-locked { border-color: var(--border); background: var(--bg-input); color: var(--text-muted) !important; }
.srp-meta, .suburb-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.srp-meta-tag { font-size: .72rem; color: var(--text-subtle); background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px; padding: .18rem .48rem; }
.srp-card-actions, .suburb-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.srp-action-btn { flex: 1; font-size: .8rem; padding: .55rem .75rem; }
.srp-gate, .srp-empty { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; text-align: center; }
.srp-data-note { max-width: 1080px; margin: 1rem auto 2rem; padding: 0 1.5rem; color: var(--text-subtle); font-size: .75rem; }
.srp-loading { display: flex; flex-direction: column; align-items: center; gap: .8rem; color: var(--text-muted); }
.srp-spinner, .spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Suburb analysis */
.suburb-wrap { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.suburb-breadcrumb { color: var(--text-subtle); font-size: .8rem; margin-bottom: .85rem; }
.suburb-breadcrumb a { color: var(--text-subtle); }
.suburb-hero { margin-bottom: 2rem; }
.suburb-hero h1 { font-size: clamp(2rem,4vw,3rem); line-height: 1.08; letter-spacing: -.05em; font-weight: 800; margin-bottom: .5rem; }
.suburb-hero .sub { color: var(--text-muted); max-width: 720px; }
.metrics-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.metric-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.25rem; }
.metric-card .label, .metric-label { color: var(--text-muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.metric-card .value, .metric-value { color: var(--text); font-size: 1.45rem; font-weight: 800; letter-spacing: -.04em; }
.metric-card .value.accent, .metric-value.good, .stat-val.good, .positive { color: var(--accent); }
.metric-card .value.locked { color: var(--text-subtle); font-size: .88rem; font-weight: 500; }
.metric-card .sub-label { color: var(--text-subtle); font-size: .75rem; }
.suburb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.section-card { padding: 1.25rem 1.5rem; }
.section-card.full { grid-column: 1 / -1; }
.section-card h2 { font-size: 1rem; font-weight: 750; padding-bottom: .65rem; margin-bottom: .9rem; border-bottom: 1px solid var(--border); }
.stat-row { display: flex; justify-content: space-between; gap: 1rem; padding: .52rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.stat-row:last-child { border-bottom: 0; }
.stat-label { color: var(--text-muted); }
.stat-val { color: var(--text); font-weight: 650; text-align: right; }
.stat-val.warn, .warn { color: var(--warn); }
.risk-flags { display: flex; flex-direction: column; gap: .5rem; }
.risk-flag { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .75rem; border-radius: 8px; border: 1px solid var(--border); font-size: .85rem; }
.risk-flag.ok { border-color: rgba(52,165,116,.25); background: rgba(52,165,116,.08); }
.risk-flag.warn { border-color: rgba(212,146,42,.28); background: rgba(212,146,42,.08); }
.risk-flag.neutral { background: var(--bg-elevated); }
.score-wrap { text-align: center; padding: .5rem 0 1rem; }
.score-circle { width: 90px; height: 90px; margin: 0 auto .75rem; border-radius: 50%; display: grid; place-items: center; border: 4px solid var(--border); font-size: 1.8rem; font-weight: 800; }
.score-circle.high { border-color: var(--accent); color: var(--accent); }
.score-circle.mid { border-color: var(--warn); color: var(--warn); }
.score-circle.low { border-color: var(--danger); color: var(--danger); }
.score-circle.none { color: var(--text-subtle); font-size: 1rem; }
.score-label { color: var(--text-muted); font-size: .8rem; }
.unlock-nudge { border: 1px solid rgba(59,111,212,.28); background: rgba(59,111,212,.06); border-radius: 12px; padding: 1.5rem; text-align: center; margin-bottom: 2rem; }
.data-disclaimer { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; color: var(--text-subtle); font-size: .8rem; line-height: 1.55; }
.chart-wrap { height: 200px; margin-top: .5rem; }
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { border-bottom: 1px solid var(--border); padding-bottom: .75rem; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { font-size: .9rem; margin-bottom: .25rem; }
.faq-item p { color: var(--text-muted); font-size: .85rem; }

/* Tools / compare */
.tool-hero, .cmp-page-head, .invest-page-head { max-width: 1080px; margin: 0 auto; padding: 4rem 1.5rem 2rem; }
.tool-shell, .invest-body { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.tool-card, .tool-mini-card { padding: 1.4rem; }
.tool-kicker { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tool-form-grid { display: grid; gap: 1rem; }
.tool-form-grid.two { grid-template-columns: 1fr 1fr; }
.tool-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cmp-page-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); }
.cmp-inputs { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: .8rem; align-items: end; }
.cmp-input-wrap label { display: block; color: var(--text-muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .3rem; }
.cmp-input-wrap input, input, select, textarea { background: var(--bg-input); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: .7rem .85rem; }
.cmp-vs { color: var(--text-subtle); font-weight: 800; }
.cmp-table-wrap { overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 260px 1fr 1fr; border-bottom: 1px solid var(--border); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row-head { background: var(--bg-input); }
.cmp-col-label, .cmp-col-a, .cmp-col-b { padding: .9rem 1rem; }
.cmp-col-label { color: var(--text-muted); font-weight: 700; }
.cmp-best { color: var(--accent); background: rgba(52,165,116,.06); }
.cmp-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.cmp-verdict-card, .cmp-next-steps, .cmp-caveat { padding: 1.25rem; }
.cmp-caveat { border-color: rgba(212,146,42,.25); background: rgba(212,146,42,.07); }

/* Tables / auth / footer */
.auth-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { width: 100%; max-width: 420px; padding: 2.4rem; }
.auth-error { background: rgba(224,82,82,.1); color: #ff8a8a; border: 1px solid rgba(224,82,82,.22); border-radius: 8px; padding: .65rem .9rem; }
.auth-footer { text-align: center; margin-top: 1.25rem; color: var(--text-muted); font-size: .9rem; }
.professional-table-wrap { overflow: auto; }
.professional-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.professional-table th { padding: .8rem 1rem; color: var(--text-muted); background: var(--bg-input); border-bottom: 1px solid var(--border); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; text-align: left; }
.professional-table td { padding: .82rem 1rem; border-bottom: 1px solid var(--border); font-size: .88rem; }
footer { border-top: 1px solid var(--border); background: #09101d; margin-top: 3rem; }
.footer-inner { max-width: 1160px !important; margin: 0 auto; }
footer h4 { font-size: .85rem; letter-spacing: .02em; }
footer a { color: var(--text-muted); font-size: .88rem; }
footer p { color: var(--text-muted); font-size: .86rem; margin: .35rem 0; }

/* Investment hub */
.invest-body { display: grid; gap: 1.5rem; }
.invest-metrics-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.invest-metric-card, .invest-tool-card, .state-suburb-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem; }
.invest-tools-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.invest-tool-card { color: var(--text); }
.invest-tool-card:hover, .state-suburb-card:hover { border-color: var(--border-light); }
.state-suburb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: .8rem; }
.state-suburb-card { display: flex; justify-content: space-between; gap: .75rem; }

/* Utilities */
.loading { text-align: center; padding: 4rem 1.5rem; color: var(--text-muted); }
.error-msg { color: #ff8a8a; text-align: center; padding: 2rem; }
.no-results { color: var(--text-muted); text-align: center; padding: 2rem; }
.negative { color: var(--danger); }
.stats-bar { display: flex; gap: 1.5rem; flex-wrap: wrap; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.stat-num { display: block; font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .8rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .feature-grid-4, .pricing-cards-grid, .invest-tools-row { grid-template-columns: repeat(2,1fr); }
  .hero-home, .conversion-two-col, .tool-hero { grid-template-columns: 1fr; }
  .cmp-row { grid-template-columns: 180px 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { grid-template-columns: 1rem 1fr 1rem; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 61px 0 auto 0; display: none; flex-direction: column; align-items: stretch; background: rgba(12,18,32,.98); border-bottom: 1px solid var(--border); padding: 1rem; gap: .2rem; }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-user-email { padding: .85rem 1rem; border-radius: 8px; }
  .nav-dropdown { position: static; display: block; margin-top: .4rem; }
  .hero { padding: 3.5rem 1rem 2.5rem; }
  .search-wrap { flex-direction: column; }
  .search-wrap button { width: 100%; border-top: 1px solid var(--border); }
  .suburb-cols, .cmp-footer-grid, .tool-form-grid.two { grid-template-columns: 1fr; }
  .cmp-inputs { grid-template-columns: 1fr; }
  .cmp-vs { text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .features, .how-it-works, .cta-section, .conversion-section, .suburb-wrap, .srp-header, .srp-wrap { padding-left: 1rem; padding-right: 1rem; }
  .srp-results, .srp-grid { grid-template-columns: 1fr; padding-left: 1rem; padding-right: 1rem; }
  .feature-grid-4, .pricing-cards-grid, .invest-metrics-grid, .invest-tools-row { grid-template-columns: 1fr; }
  .metrics-strip { grid-template-columns: repeat(2,1fr); }
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-row-head .cmp-col-a, .cmp-row-head .cmp-col-b { display: none; }
}
@media (max-width: 480px) {
  .metrics-strip { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .suburb-actions .btn, .tool-actions .btn { width: 100%; }
}

/* Mobile nav close fix — keep header + hamburger/X visible above overlay */
@media (max-width: 768px) {
  nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 60px !important;
    padding: 0.85rem 1rem !important;
    z-index: 2200 !important;
  }
  nav > .logo {
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: auto !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 2202 !important;
  }
  nav > .nav-toggle {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: auto !important;
    margin-left: auto !important;
    position: relative !important;
    z-index: 2203 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: rgba(15,23,42,.72) !important;
    border: 1px solid rgba(148,163,184,.18) !important;
  }
  nav > .nav-toggle span {
    margin: 0 !important;
    width: 22px !important;
    height: 2px !important;
    flex: 0 0 2px !important;
    background: #ffffff !important;
  }
  nav > .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg) !important; }
  nav > .nav-toggle.open span:nth-child(2) { opacity: 0 !important; transform: scaleX(0) !important; }
  nav > .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg) !important; }
  nav > .nav-links {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.2rem !important;
    padding: 1rem 1.25rem 2rem !important;
    overflow-y: auto !important;
    background: rgba(12,18,32,.985) !important;
    border-top: 1px solid rgba(148,163,184,.12) !important;
    z-index: 2100 !important;
  }
  nav > .nav-links.open { display: flex !important; }
  nav > .nav-links a,
  nav > .nav-links .nav-user-email {
    width: 100% !important;
    display: block !important;
    padding: 0.95rem 1rem !important;
    border-radius: 10px !important;
  }
}

/* Mobile nav overlay height correction */
@media (max-width: 768px) {
  nav > .nav-links.open {
    height: calc(100vh - 60px) !important;
    min-height: calc(100vh - 60px) !important;
    max-height: calc(100vh - 60px) !important;
    box-sizing: border-box !important;
  }
  body.nav-open { overflow: hidden !important; }
}

/* Mobile hamburger menu hardening — keep menu over hero/banner, not blended into page */
@media (max-width: 768px) {
  nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 5000 !important;
    background: #0c1220 !important;
  }
  nav > .nav-toggle {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    z-index: 5003 !important;
  }
  nav > .nav-links {
    top: 60px !important;
    bottom: 0 !important;
    height: calc(100dvh - 60px) !important;
    min-height: calc(100dvh - 60px) !important;
    max-height: calc(100dvh - 60px) !important;
    background: #0c1220 !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.45) !important;
    z-index: 5001 !important;
  }
  nav > .nav-links.open {
    display: flex !important;
    pointer-events: auto !important;
  }
  nav > .nav-links a,
  nav > .nav-links .nav-user-email {
    background: #101827 !important;
    border: 1px solid rgba(148,163,184,.14) !important;
    color: #e8edf5 !important;
    margin-bottom: .35rem !important;
  }
}
