:root {
  --deep-forest: #102E20;
  --forest-green: #215E3D;
  --accent-green: #52D87B;
  --light-green-tint: rgba(82, 216, 123, 0.12);
  --dark-bg: #0E1012;
  --card-bg: #16181B;
  --card-hover: #1C1F24;
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #F4F5F7;
  --text-secondary: #A0AEC0;
  --text-muted: #718096;
  --max-width: 1160px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --blueprint: #9CC7FF;
  --blueprint-bg: #0A121C;
  --line: rgba(255, 255, 255, 0.10);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.85;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(14, 16, 18, 0.85);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand span.aus {
  color: var(--text-primary);
}

.brand span.bava {
  color: var(--accent-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.desktop-nav {
  display: block;
}

.btn-header {
  background: var(--forest-green);
  color: #FFFFFF !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.btn-header:hover {
  background: #2b7a4f;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(14, 16, 18, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 49;
}

.mobile-nav-drawer.open {
  max-height: 440px;
}

.mobile-drawer-inner {
  padding: 12px 16px 24px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-drawer-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--light-green-tint);
  border: 1px solid rgba(82, 216, 123, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* A quiet text link under the App Store badge, so the badge is the one main action. */
.btn-features {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

.btn-features:hover {
  color: var(--text-primary);
}

.appstore-badge-link {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.appstore-badge-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.appstore-badge-link img {
  display: block;
  width: 160px;
  height: 53px;
  border-radius: 10px;
}

/* Feature Grid */
.features-section {
  padding: 20px 0 60px;
}

#features {
  scroll-margin-top: 80px;
}

#report {
  scroll-margin-top: 98px;
}

#download {
  scroll-margin-top: 90px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(82, 216, 123, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--light-green-tint);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Report Highlight Card */
.highlight-card {
  background: linear-gradient(145deg, #16181B 0%, #102E20 100%);
  border: 1px solid rgba(82, 216, 123, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.highlight-content h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
}

.highlight-content p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
}

.highlight-list {
  list-style: none;
}

.highlight-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.highlight-list li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: 800;
}

.highlight-preview {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: ui-monospace, Menlo, Monaco, monospace;
  font-size: 13px;
  color: #A0AEC0;
}

.preview-tag {
  color: var(--accent-green);
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-block;
}

/* Legal / Policy Articles */
.legal-page {
  padding: 60px 0 100px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 24px;
}

.legal-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 14px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text-primary);
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-box {
  background: var(--card-bg);
  border-left: 4px solid var(--accent-green);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

.legal-box p {
  margin-bottom: 0;
  color: var(--text-primary);
}

/* Support Form & FAQ */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
}

.support-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.support-card h3 {
  margin-bottom: 12px;
}

.support-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.contact-pill {
  display: inline-block;
  background: var(--light-green-tint);
  color: var(--accent-green);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #0A0B0C;
  border-top: 1px solid var(--card-border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive / Mobile Web (mweb) */
@media (max-width: 840px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-nav-drawer {
    display: block;
  }
  .header-inner {
    height: 64px;
  }
  .header-right {
    gap: 12px;
  }
  .grid-3,
  .grid-2,
  .support-grid,
  .highlight-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .site-header {
    height: auto;
  }

  .header-inner {
    height: 60px;
  }

  .brand {
    font-size: 18px;
    gap: 10px;
  }

  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }

  .btn-header {
    padding: 7px 14px;
    font-size: 12px;
  }

  .hero {
    padding: 44px 0 36px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.22;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .btn-features {
    font-size: 14px;
  }

  .appstore-badge-link img {
    width: 150px;
    height: 50px;
  }

  .features-section {
    padding: 16px 0 36px;
  }

  .grid-3 {
    gap: 16px;
  }

  .card {
    padding: 20px;
  }

  .card-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
    margin-bottom: 14px;
  }

  .card h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .card p {
    font-size: 13.5px;
    line-height: 1.5;
  }

  /* Full Report Highlight Card on Mobile */
  .highlight-card {
    padding: 24px 18px;
    margin: 20px 0 36px;
    gap: 20px;
    border-radius: var(--radius-md);
  }

  .highlight-content h3 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .highlight-content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .highlight-list li {
    font-size: 13px;
    gap: 8px;
    margin-bottom: 10px;
    line-height: 1.4;
  }

  .highlight-preview {
    padding: 16px 14px;
    font-size: 11.5px;
    line-height: 1.6;
    border-radius: var(--radius-sm);
    word-break: break-word;
  }

  #report {
    scroll-margin-top: 76px;
  }

  /* Footer on Mobile */
  .site-footer {
    padding: 36px 0 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 28px;
  }

  .footer-brand p {
    max-width: 100%;
    font-size: 13px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 11.5px;
    line-height: 1.5;
  }

  /* Legal and Support Pages on Mobile */
  .legal-page {
    padding: 32px 0 60px;
  }

  .legal-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .legal-header h1 {
    font-size: 26px;
    line-height: 1.2;
  }

  .legal-content h2 {
    font-size: 19px;
    margin: 24px 0 10px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 14px;
  }

  .legal-box {
    padding: 16px;
    margin: 18px 0;
    font-size: 13.5px;
  }

  .support-grid {
    gap: 16px;
    margin-top: 24px;
  }

  .support-card {
    padding: 20px;
  }

  .support-card h3 {
    font-size: 18px;
  }

  .contact-pill {
    display: block;
    width: 100%;
    text-align: center;
  }
}


/* ==========================================================================
   Home page, 2026-11: blueprint studio and sharper sections
   ========================================================================== */

h1, h2, h3 {
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.eyebrow,
.panel-label,
.stage-tag,
.step-num,
.preview-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent-green);
  margin-bottom: 14px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-head h2,
.report-copy h2,
.cta-section h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
}

/* Intro */
.intro {
  padding: 72px 0 40px;
  background:
    linear-gradient(rgba(14, 16, 18, 0), var(--dark-bg) 92%),
    repeating-linear-gradient(0deg, rgba(156, 199, 255, 0.045) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(156, 199, 255, 0.045) 0 1px, transparent 1px 48px);
}

.intro h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.03;
  max-width: 880px;
}

.intro-lead {
  margin-top: 20px;
  max-width: 640px;
  font-size: 18px;
  color: var(--text-secondary);
}

.intro-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  scroll-margin-top: 96px;
}

/* Studio */
.studio-section {
  padding: 40px 0 72px;
  scroll-margin-top: 72px;
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
}

.studio-stage {
  position: relative;
  min-height: 520px;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(60, 110, 190, 0.20), rgba(10, 18, 28, 0) 70%),
    var(--blueprint-bg);
  border-right: 1px solid var(--line);
}

.studio-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}

.studio.is-dragging canvas {
  cursor: grabbing;
}

.studio-stage canvas:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent-green);
}

.stage-tag {
  position: absolute;
  left: 16px;
  color: rgba(156, 199, 255, 0.75);
  pointer-events: none;
}

.stage-tag-top { top: 14px; }
.stage-tag-bottom { bottom: 14px; }

.studio-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-label {
  color: var(--text-muted);
}

.value-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.value-number {
  font-size: clamp(34px, 4.4vw, 46px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.value-range {
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.stat-rows {
  border-top: 1px solid var(--line);
}

.stat-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.stat-rows dt {
  color: var(--text-secondary);
}

.stat-rows dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.stat-rows dd[data-kind="gain"] { color: var(--accent-green); }
.stat-rows dd[data-kind="loss"] { color: #F5A524; }

.reno-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
}

.config-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.config-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.size-readout {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-green);
}

.size-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 6px 0 2px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent-green) var(--pct, 33.33%),
    rgba(255, 255, 255, 0.14) var(--pct, 33.33%)
  );
  outline: none;
  cursor: pointer;
}

.size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-green);
  border: 2px solid #0E1012;
  box-shadow: 0 0 0 1px rgba(98, 232, 140, 0.5), 0 2px 6px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.size-slider::-webkit-slider-thumb:hover,
.size-slider:active::-webkit-slider-thumb {
  transform: scale(1.12);
}

.size-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-green);
  border: 2px solid #0E1012;
  box-shadow: 0 0 0 1px rgba(98, 232, 140, 0.5), 0 2px 6px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.size-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(98, 232, 140, 0.4);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.seg-group {
  display: grid;
  gap: 6px;
}

.seg-2 { grid-template-columns: repeat(2, 1fr); }

.seg-group button {
  min-height: 36px;
  padding: 6px 4px;
  white-space: nowrap;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.seg-group button:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.seg-group button[aria-pressed="true"] {
  color: #06140B;
  background: var(--accent-green);
  border-color: var(--accent-green);
}

.seg-group button:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

.preset-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.presets button,
.clear-btn {
  white-space: nowrap;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.presets button {
  min-height: 44px;
  padding: 8px 6px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.clear-btn {
  font-size: 12px;
  padding: 5px 10px;
}

.clear-btn:disabled {
  visibility: hidden;
}

.presets button:hover,
.clear-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

.presets button[aria-pressed="true"] {
  color: #06140B;
  background: var(--accent-green);
  border-color: var(--accent-green);
}

.preset-hint {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  min-height: 2.9em;
}

.audience-section {
  padding: 0 0 56px;
}

.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

.audience article {
  padding: 26px 28px;
}

.audience article + article {
  border-left: 1px solid var(--line);
}

.audience h3 {
  font-size: 19px;
  margin: 6px 0 8px;
}

.audience p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.reno-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.reno {
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  text-align: left;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.reno:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

.reno[aria-pressed="true"] {
  color: var(--text-primary);
  border-color: var(--accent-green);
  background: var(--light-green-tint);
}

.reno:focus-visible,
.clear-btn:focus-visible,
.presets button:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

.reno-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.reno-cost {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.reno[aria-pressed="true"] .reno-cost {
  color: var(--accent-green);
}

.studio-note {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
  opacity: 0.75;
}

/* Steps */
.steps-section,
.report-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.steps li {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.steps li:last-child {
  border-right: 0;
}

.step-num {
  display: block;
  color: var(--accent-green);
  margin-bottom: 16px;
}

.steps h3,
.feature h3 {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 8px;
}

.steps p,
.feature p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Features */
.features-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature {
  background: var(--dark-bg);
  padding: 28px 24px;
  transition: background-color 0.2s ease;
}

.feature:hover {
  background: var(--card-bg);
}

/* Full Report */
.report-section {
  scroll-margin-top: 72px;
}

.report-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.report-copy p {
  margin-top: 12px;
  color: var(--text-secondary);
}

.check-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent-green);
  border-bottom: 2px solid var(--accent-green);
  transform: rotate(-45deg);
}

.report-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  padding: 24px;
}

.report-preview .preview-tag {
  display: block;
  color: var(--accent-green);
  margin-bottom: 14px;
}

.preview-title {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 12px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-secondary);
}

.preview-row span:last-child {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Closing call to action */
.cta-section {
  padding: 72px 0 80px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: radial-gradient(60% 120% at 50% 100%, rgba(82, 216, 123, 0.10), rgba(14, 16, 18, 0) 70%);
}

.cta-section p {
  margin: 12px 0 24px;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .studio {
    grid-template-columns: 1fr;
  }

  /* The house stays pinned under the header while you pick renovations,
     so you can always see it light up and the value marker climb. */
  .studio {
    overflow: visible;
  }

  .studio-stage {
    position: sticky;
    top: 61px;
    z-index: 5;
    min-height: 0;
    height: clamp(230px, 40vh, 380px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background-color: var(--blueprint-bg);
  }

  .audience {
    grid-template-columns: 1fr;
  }

  .audience article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .steps li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps li:last-child {
    border-bottom: 0;
  }

  .report-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .intro {
    padding: 44px 0 24px;
  }

  .intro-lead {
    font-size: 16px;
  }

  .studio-section {
    padding: 28px 0 48px;
  }

  .studio-panel {
    padding: 16px 14px;
    gap: 14px;
  }

  .value-block {
    display: none;
  }

  .stat-rows {
    border-top: 0;
  }

  .stat-rows > div {
    padding: 8px 0;
  }

  .stat-rows > div:first-child {
    padding-top: 0;
  }

  .stage-tag {
    left: 12px;
    font-size: 9.5px;
  }

  .stage-tag-top { top: 10px; }
  .stage-tag-bottom { bottom: 10px; }

  .reno {
    min-height: 48px;
  }

  .audience-section {
    padding-bottom: 40px;
  }

  .audience article {
    padding: 20px 18px;
  }

  .steps-section,
  .features-section,
  .report-section {
    padding: 40px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------------------------------------------------------------------
   Planner, 2026-11-12: the whole card fits a desktop window (house and
   totals on top, the 12 renovations in a strip below), amber for picks
   that cost more than they add, and pinned totals on phones.
   --------------------------------------------------------------------- */
.studio {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
}

.studio-stage {
  min-height: 0;
  height: clamp(288px, calc(100vh - 342px), 470px);
}

.studio-panel {
  padding: 12px 22px;
  gap: 9px;
  justify-content: center;
}

.value-number {
  font-size: clamp(30px, 3.4vw, 40px);
}

.stat-rows > div {
  padding: 7px 0;
}

.preset-hint {
  min-height: 2.9em;
}

.studio-picks {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 22px 14px;
  border-top: 1px solid var(--line);
}

.reno-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.reno {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  min-height: 46px;
  padding: 6px 10px;
}

.reno-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reno-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.reno-cost {
  font-size: inherit;
}

.reno[aria-pressed="true"] .reno-cost {
  color: var(--text-secondary);
}

.reno[aria-pressed="true"] .reno-adds {
  color: var(--accent-green);
}

/* Costs more than it adds: amber instead of green. */
.reno[aria-pressed="true"][data-kind="loss"] {
  border-color: #F5A524;
  background: rgba(245, 165, 36, 0.10);
}

.reno[aria-pressed="true"][data-kind="loss"] .reno-adds {
  color: #F5A524;
}

.stage-stats {
  display: none;
}

@media (max-width: 900px) {
  .studio {
    grid-template-columns: 1fr;
  }

  .studio-stage {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .studio-stage canvas {
    position: static;
    height: clamp(200px, 34vh, 340px);
  }

  /* The three totals stay pinned under the house while you scroll the list. */
  .stage-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(9, 16, 24, 0.9);
  }

  .stage-stats > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 7px 12px 8px;
  }

  .stage-stats > div + div {
    border-left: 1px solid var(--line);
  }

  .stage-stats span {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .stage-stats b {
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .stage-stats b[data-kind="gain"] { color: var(--accent-green); }
  .stage-stats b[data-kind="loss"] { color: #F5A524; }

  .value-block,
  .stat-rows {
    display: none;
  }

  .studio-picks {
    padding: 4px 14px 16px;
    border-top: 0;
  }

  .reno-list {
    grid-template-columns: 1fr 1fr;
  }

  .reno {
    min-height: 52px;
  }

  .preset-hint {
    min-height: 0;
  }
}

/* ---------------------------------------------------------------------
   Phone fixes, 2026-11-12: everything inside the planner card lines up on
   one left and right edge, the three sample-plan buttons never spill on
   narrow phones, and the pinned house takes less of the screen.
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
  .studio-stage {
    top: var(--header-h, 61px);
  }

  .studio-stage canvas {
    height: clamp(180px, 29vh, 300px);
  }

  .studio-panel {
    padding: 14px 14px 6px;
    gap: 10px;
  }

  .studio-picks {
    padding: 6px 14px 16px;
  }

  .stage-stats > div {
    padding: 7px 14px 8px;
  }

  .stage-tag {
    left: 14px;
  }

  .presets {
    gap: 6px;
  }

  .presets button {
    min-width: 0;
    padding: 8px 2px;
    font-size: 13px;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .reno {
    min-width: 0;
    padding: 7px 10px;
  }

  .reno-meta {
    gap: 4px;
  }
}

@media (max-width: 370px) {
  .presets button {
    font-size: 12px;
  }

  .reno-name {
    font-size: 12.5px;
  }

  .reno-meta {
    font-size: 10px;
  }

  .stage-stats b {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  /* Names wrap onto a second line instead of being cut off. */
  .reno-name {
    white-space: normal;
    overflow: visible;
  }

  .stage-stats span {
    white-space: nowrap;
  }
}

@media (max-width: 370px) {
  .stage-tag {
    font-size: 8.5px;
    letter-spacing: 0.06em;
  }

  .stage-stats > div {
    padding: 7px 10px 8px;
  }

  .stage-stats span {
    font-size: 8.5px;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 900px) {
  /* Phones show just "+$1.5k" on each renovation; desktop keeps "net +$1.5k". */
  .reno-net-word {
    display: none;
  }
}
