
    :root {
      --primary: #0F4C81;
      --primary-dark: #0a3560;
      --secondary: #1F9D6A;
      --accent: #F59E0B;
      --danger: #EF4444;
      --bg: #F8F9FA;
      --card-bg: #FFFFFF;
      --text: #1a1a2e;
      --text-muted: #6B7280;
      --border: #E5E7EB;
      --shadow: 0 2px 12px rgba(0,0,0,0.08);
      --radius: 12px;
      --radius-sm: 8px;
    }

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

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg);
      color: var(--text);
      font-size: 16px;
      line-height: 1.6;
    }

    /* ========== NAV ========== */
    nav {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: var(--card-bg);
      border-bottom: 1px solid var(--border);
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .nav-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--primary);
      text-decoration: none;
      cursor: pointer;
    }

    .nav-logo .logo-icon {
      width: 36px;
      height: 36px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      flex-shrink: 0;
    }
    .nav-logo .logo-icon img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

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

    .nav-links a, .nav-links button.nav-link-btn {
      padding: 0.5rem 0.85rem;
      border-radius: var(--radius-sm);
      color: var(--text);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      background: none;
      border: none;
      font-family: inherit;
      transition: background 0.15s, color 0.15s;
    }

    .nav-links a:hover, .nav-links button.nav-link-btn:hover {
      background: var(--bg);
      color: var(--primary);
    }

    .nav-links a.active {
      color: var(--primary);
      background: rgba(15,76,129,0.08);
    }

    /* Dropdown */
    .nav-dropdown {
      position: relative;
    }

    .nav-dropdown-menu {
      display: none;
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      min-width: 300px;
      padding: 0.5rem;
      z-index: 9999;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
      display: block;
    }

    .nav-dropdown-menu a {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.6rem 0.85rem;
      border-radius: var(--radius-sm);
      color: var(--text);
      text-decoration: none;
      font-size: 0.875rem;
      font-weight: 500;
      transition: background 0.15s;
    }

    .nav-dropdown-menu a:hover {
      background: var(--bg);
      color: var(--primary);
    }

    .nav-cta {
      background: var(--primary) !important;
      color: white !important;
      padding: 0.5rem 1.1rem !important;
      border-radius: var(--radius-sm) !important;
      font-weight: 600 !important;
      transition: background 0.15s !important;
    }

    .nav-cta:hover {
      background: var(--primary-dark) !important;
      color: white !important;
    }

    /* Hamburger */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 0.5rem;
    }

    .hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--text);
      border-radius: 2px;
      transition: all 0.25s;
    }

    .mobile-menu {
      display: none;
      flex-direction: column;
      padding: 1rem 1.5rem 1.5rem;
      border-top: 1px solid var(--border);
      gap: 0.25rem;
    }

    .mobile-menu.open { display: flex; }

    .mobile-menu a, .mobile-menu button.mobile-nav-btn {
      padding: 0.6rem 0.75rem;
      border-radius: var(--radius-sm);
      color: var(--text);
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 500;
      cursor: pointer;
      background: none;
      border: none;
      font-family: inherit;
      text-align: left;
      transition: background 0.15s;
    }

    .mobile-menu a:hover, .mobile-menu button.mobile-nav-btn:hover {
      background: var(--bg);
      color: var(--primary);
    }

    /* ========== PAGE SECTIONS ========== */
    .page-section { display: none; }
    .page-section.active { display: block; }

    /* ========== HERO ========== */
    .hero {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: white;
      padding: 5rem 1.5rem 4rem;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -10%;
      width: 600px;
      height: 600px;
      background: rgba(255,255,255,0.04);
      border-radius: 50%;
    }

    .hero::after {
      content: '';
      position: absolute;
      bottom: -30%;
      left: -5%;
      width: 400px;
      height: 400px;
      background: rgba(255,255,255,0.03);
      border-radius: 50%;
    }

    .hero-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
      position: relative;
      z-index: 1;
    }

    .hero h1 {
      font-size: 2.5rem;
      font-weight: 800;
      line-height: 1.2;
      margin-bottom: 1.25rem;
    }

    .hero p {
      font-size: 1.1rem;
      opacity: 0.9;
      margin-bottom: 2rem;
      line-height: 1.7;
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .btn {
      padding: 0.75rem 1.5rem;
      border-radius: var(--radius-sm);
      font-weight: 600;
      font-size: 0.95rem;
      cursor: pointer;
      border: none;
      font-family: inherit;
      transition: all 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      text-decoration: none;
    }

    .btn-primary {
      background: white;
      color: var(--primary);
    }

    .btn-primary:hover {
      background: #f0f4ff;
      transform: translateY(-1px);
      box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }

    .btn-secondary {
      background: rgba(255,255,255,0.15);
      color: white;
      border: 1.5px solid rgba(255,255,255,0.4);
    }

    .btn-secondary:hover {
      background: rgba(255,255,255,0.25);
      transform: translateY(-1px);
    }

    .btn-green {
      background: var(--secondary);
      color: white;
    }

    .btn-green:hover {
      background: #178a5a;
      transform: translateY(-1px);
      box-shadow: 0 4px 16px rgba(31,157,106,0.3);
    }

    .btn-outline {
      background: transparent;
      color: var(--primary);
      border: 1.5px solid var(--primary);
    }

    .btn-outline:hover {
      background: var(--primary);
      color: white;
    }

    .btn-full { width: 100%; justify-content: center; }

    /* Fit Score Card */
    .fit-score-card {
      background: white;
      border-radius: 20px;
      padding: 2rem;
      box-shadow: 0 20px 60px rgba(0,0,0,0.2);
      animation: float 3s ease-in-out infinite;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }

    .fit-score-circle {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: conic-gradient(var(--secondary) 280deg, #e5e7eb 280deg);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1rem;
      position: relative;
    }

    .fit-score-circle::before {
      content: '';
      width: 90px;
      height: 90px;
      border-radius: 50%;
      background: white;
      position: absolute;
    }

    .fit-score-number {
      position: relative;
      z-index: 1;
      font-size: 1.75rem;
      font-weight: 800;
      color: var(--primary);
    }

    .fit-score-label {
      text-align: center;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--secondary);
      margin-bottom: 1.25rem;
    }

    .fit-score-details {
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }

    .fit-detail {
      display: flex;
      justify-content: space-between;
      font-size: 0.85rem;
    }

    .fit-detail .label { color: #6B7280; }
    .fit-detail .value { font-weight: 600; color: var(--text); }

    /* ========== SECTIONS ========== */
    section {
      padding: 5rem 1.5rem;
    }

    .section-inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    .section-title {
      font-size: 2rem;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 0.75rem;
      text-align: center;
    }

    .section-subtitle {
      font-size: 1.05rem;
      color: var(--text-muted);
      text-align: center;
      max-width: 620px;
      margin: 0 auto 3rem;
    }

    /* ========== HOW IT WORKS ========== */
    .how-it-works { background: white; }

    .steps-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
    }

    .step-card {
      text-align: center;
      padding: 2rem 1.5rem;
      border-radius: var(--radius);
      border: 1px solid var(--border);
      background: var(--bg);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .step-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow);
    }

    .step-icon {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }

    .step-number {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      background: var(--primary);
      color: white;
      border-radius: 50%;
      font-size: 0.8rem;
      font-weight: 700;
      margin-bottom: 1rem;
    }

    .step-card h3 {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 0.6rem;
      color: var(--text);
    }

    .step-card p {
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* ========== TOOL CARDS ========== */
    .tools-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 1.5rem;
    }
    /* Top row: 3 cards each span 2 cols */
    .tools-grid .tool-card:nth-child(1) { grid-column: span 2; }
    .tools-grid .tool-card:nth-child(2) { grid-column: span 2; }
    .tools-grid .tool-card:nth-child(3) { grid-column: span 2; }
    /* Bottom row: 2 cards centered (cols 2-3 and 4-5 of 6) */
    .tools-grid .tool-card:nth-child(4) { grid-column: 2 / span 2; }
    .tools-grid .tool-card:nth-child(5) { grid-column: 4 / span 2; }

    @media (max-width: 1100px) {
      .tools-grid { grid-template-columns: repeat(4, 1fr); }
      .tools-grid .tool-card:nth-child(1) { grid-column: span 2; }
      .tools-grid .tool-card:nth-child(2) { grid-column: span 2; }
      .tools-grid .tool-card:nth-child(3) { grid-column: span 2; }
      .tools-grid .tool-card:nth-child(4) { grid-column: span 2; }
      .tools-grid .tool-card:nth-child(5) { grid-column: span 4; }
    }
    @media (max-width: 768px) {
      .tools-grid { grid-template-columns: 1fr; gap: 1rem; }
      .tools-grid .tool-card:nth-child(n) { grid-column: span 1 !important; }
    }

    .tool-card {
      background: var(--card-bg);
      border-radius: var(--radius);
      padding: 2rem 1.75rem 1.75rem;
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      transition: transform 0.2s, box-shadow 0.2s;
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
    }
    .tool-card::before {
      content: '';
      display: block;
      height: 4px;
      border-radius: 4px 4px 0 0;
      position: absolute;
      top: 0; left: 0; right: 0;
    }
    .tool-card.tc-teal::before   { background: #0F4C81; }
    .tool-card.tc-green::before  { background: #1F9D6A; }
    .tool-card.tc-indigo::before { background: #4f46e5; }
    .tool-card.tc-red::before    { background: #e11d48; }
    .tool-card.tc-gold::before   { background: #d97706; }

    .tool-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 28px rgba(0,0,0,0.13);
    }

    .tool-icon-wrap {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      margin-bottom: 1.1rem;
      flex-shrink: 0;
    }
    .ti-teal   { background: #e0f0fa; }
    .ti-green  { background: #d1fae5; }
    .ti-indigo { background: #ede9fe; }
    .ti-red    { background: #ffe4e6; }
    .ti-gold   { background: #fef3c7; }

    /* legacy .tool-icon kept for other uses */
    .tool-icon {
      font-size: 2.25rem;
      margin-bottom: 1rem;
      text-align: center;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      padding: 0.25rem 0.65rem;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
      margin-bottom: 0.75rem;
    }

    .badge-green  { background: #d1fae5; color: #065f46; }
    .badge-blue   { background: #dbeafe; color: #1e40af; }
    .badge-amber  { background: #fef3c7; color: #92400e; }
    .badge-red    { background: #fee2e2; color: #991b1b; }
    .badge-indigo { background: #ede9fe; color: #3730a3; }
    .badge-gold   { background: #fef3c7; color: #92400e; }

    .tool-card h3 {
      font-size: 1.05rem;
      font-weight: 700;
      margin-bottom: 0.55rem;
      color: var(--text);
    }

    .tool-card p {
      font-size: 0.875rem;
      color: var(--text-muted);
      line-height: 1.65;
      flex: 1;
      margin-bottom: 1.4rem;
    }

    /* About page tool cards — same style, no fixed col spans */
    .about-tools-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1.25rem;
      margin-top: 1.25rem;
    }
    .about-tools-grid .tool-card {
      flex: 0 0 calc(33.333% - 0.84rem);
      min-width: 260px;
      box-sizing: border-box;
    }
    @media (max-width: 900px) {
      .about-tools-grid .tool-card {
        flex: 0 0 calc(50% - 0.63rem);
        min-width: 0;
      }
    }
    @media (max-width: 500px) {
      .about-tools-grid .tool-card {
        flex: 0 0 100%;
        min-width: 0;
      }
    }

    /* ========== STATS ========== */
    .why-matters { background: var(--primary); color: white; }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-bottom: 2.5rem;
    }

    .stat-card {
      background: rgba(255,255,255,0.1);
      border-radius: var(--radius);
      padding: 1.75rem;
      text-align: center;
      border: 1px solid rgba(255,255,255,0.15);
    }

    .stat-value {
      font-size: 2rem;
      font-weight: 800;
      margin-bottom: 0.25rem;
    }

    .stat-label {
      font-size: 0.85rem;
      opacity: 0.85;
      margin-bottom: 0.5rem;
    }

    .stat-sublabel {
      font-size: 0.8rem;
      opacity: 0.65;
    }

    .stat-amber .stat-value { color: var(--accent); }
    .stat-blue .stat-value { color: #93c5fd; }
    .stat-red .stat-value { color: #fca5a5; }

    .why-text {
      max-width: 800px;
      margin: 0 auto;
      text-align: center;
      opacity: 0.9;
      font-size: 1rem;
      line-height: 1.8;
    }

    /* ========== BENEFITS ========== */
    .benefits-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }

    .benefit-tile {
      background: white;
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-weight: 600;
      font-size: 0.95rem;
      box-shadow: var(--shadow);
      transition: transform 0.2s;
    }

    .benefit-tile:hover { transform: translateY(-2px); }

    .benefit-check {
      width: 28px;
      height: 28px;
      background: #d1fae5;
      color: #065f46;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      flex-shrink: 0;
    }

    /* ========== TRUST ========== */
    .trust-section { background: white; }

    .trust-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-bottom: 1.5rem;
    }

    .trust-card {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.5rem;
      text-align: center;
      background: var(--bg);
    }

    .trust-icon { font-size: 2rem; margin-bottom: 0.75rem; }

    .trust-card h4 {
      font-weight: 700;
      margin-bottom: 0.4rem;
      color: var(--text);
    }

    .trust-card p { font-size: 0.85rem; color: var(--text-muted); }

    .disclaimer {
      text-align: center;
      font-size: 0.8rem;
      color: var(--text-muted);
      font-style: italic;
    }

    /* ========== EMAIL SIGNUP ========== */
    .signup-section {
      background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
      border-top: 1px solid #bae6fd;
      border-bottom: 1px solid #bae6fd;
    }

    .signup-card {
      max-width: 560px;
      margin: 0 auto;
      text-align: center;
    }

    .signup-card h2 { margin-bottom: 0.5rem; }
    .signup-card p { color: var(--text-muted); margin-bottom: 1.5rem; }

    .input-row {
      display: flex;
      gap: 0.75rem;
    }

    .input-row input {
      flex: 1;
    }

    .signup-note {
      margin-top: 0.75rem;
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    /* ========== INPUTS ========== */
    input[type="text"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
      width: 100%;
      padding: 0.7rem 1rem;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      font-family: inherit;
      font-size: 0.95rem;
      color: var(--text);
      background: white;
      outline: none;
      transition: border-color 0.15s;
    }

    input:focus, select:focus, textarea:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(15,76,129,0.1);
    }

    textarea { resize: vertical; }

    label {
      display: block;
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 0.4rem;
    }

    .form-group { margin-bottom: 1.1rem; }

    .helper-text {
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-top: 0.3rem;
    }

    /* Range slider */
    input[type="range"] {
      -webkit-appearance: none;
      width: 100%;
      height: 6px;
      border-radius: 3px;
      background: #e5e7eb;
      outline: none;
      border: none;
      padding: 0;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--primary);
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(15,76,129,0.3);
    }

    .range-display {
      display: flex;
      justify-content: space-between;
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 0.3rem;
    }

    .range-value {
      font-weight: 700;
      color: var(--primary);
      font-size: 1rem;
    }

    /* ========== FAQ ========== */
    .faq-section { background: white; }

    .faq-list { max-width: 760px; margin: 0 auto; }

    .faq-item {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      margin-bottom: 0.75rem;
      overflow: hidden;
    }

    .faq-question {
      padding: 1.1rem 1.25rem;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: 600;
      font-size: 0.95rem;
      background: white;
      transition: background 0.15s;
      border: none;
      width: 100%;
      text-align: left;
      font-family: inherit;
      color: var(--text);
    }

    .faq-question:hover { background: var(--bg); }

    .faq-chevron {
      font-size: 1rem;
      transition: transform 0.25s;
      color: var(--text-muted);
      flex-shrink: 0;
    }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }

    .faq-answer-inner {
      padding: 0 1.25rem 1.1rem;
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.7;
    }

    .faq-item.open .faq-chevron { transform: rotate(180deg); }
    .faq-item.open .faq-answer { max-height: 300px; }

    /* ========== FOOTER ========== */
    footer {
      background: var(--primary-dark);
      color: white;
      padding: 3.5rem 1.5rem 0;
    }

    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-top {
      display: grid;
      grid-template-columns: 1.6fr 1.8fr 1fr 1fr;
      gap: 2.5rem;
      padding-bottom: 2.5rem;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .footer-brand .logo { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
    .footer-brand p { font-size: 0.85rem; opacity: 0.7; line-height: 1.6; max-width: 260px; }

    .footer-col h5 {
      font-weight: 700;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      opacity: 0.5;
      margin-bottom: 1rem;
    }

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

    .footer-col ul li { margin-bottom: 0.5rem; }

    .footer-col ul li a {
      color: rgba(255,255,255,0.8);
      text-decoration: none;
      font-size: 0.875rem;
      transition: color 0.15s;
      cursor: pointer;
    }

    .footer-col ul li a:hover { color: white; }

    .footer-social {
      display: flex;
      gap: 0.75rem;
      margin-top: 1rem;
    }

    .social-btn {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: rgba(255,255,255,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-decoration: none;
      font-size: 0.85rem;
      transition: background 0.15s;
    }

    .social-btn:hover { background: rgba(255,255,255,0.2); }

    .footer-bottom {
      padding: 1.5rem 0;
      text-align: center;
      font-size: 0.8rem;
      opacity: 0.6;
    }

    /* ========== CALCULATOR PAGES ========== */
    .page-header {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: white;
      padding: 3.5rem 1.5rem;
      margin-bottom: 2rem;
    }

    .page-header-inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    .page-header h1 {
      font-size: 2rem;
      font-weight: 800;
      margin-bottom: 0.5rem;
    }

    .page-header p { opacity: 0.85; font-size: 1rem; }

    .info-banner {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      background: #fffbeb;
      border: 1px solid #fcd34d;
      border-radius: var(--radius-sm);
      padding: 0.9rem 1.25rem;
      margin-top: 1.5rem;
      color: #92400e;
      font-size: 0.875rem;
    }

    .calc-layout {
      max-width: 1200px;
      margin: 0 auto;
      padding: 3rem 1.5rem;
      display: grid;
      grid-template-columns: 1fr 1.4fr;
      gap: 2rem;
      align-items: start;
    }

    .card {
      background: var(--card-bg);
      border-radius: var(--radius);
      padding: 1.75rem;
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }

    .card h3 {
      font-size: 1rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 1.25rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .card-section {
      margin-bottom: 1.5rem;
    }

    .card-section-title {
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
    }

    /* Results */
    .results-panel { display: none; }
    .results-panel.visible { display: block; }

    .fit-score-large {
      text-align: center;
      margin-bottom: 1.5rem;
    }

    .fit-score-big-circle {
      width: 140px;
      height: 140px;
      border-radius: 50%;
      background: conic-gradient(var(--secondary) 281deg, #e5e7eb 281deg);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 0.75rem;
      position: relative;
    }

    .fit-score-big-circle::before {
      content: '';
      width: 104px;
      height: 104px;
      border-radius: 50%;
      background: white;
      position: absolute;
    }

    .fit-score-big-number {
      position: relative;
      z-index: 1;
      font-size: 2.25rem;
      font-weight: 800;
      color: var(--primary);
    }

    .fit-score-big-label {
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--secondary);
    }

    .area-card {
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem;
      margin-bottom: 1rem;
      transition: border-color 0.2s;
    }

    .area-card.best {
      border-color: var(--secondary);
      background: #f0fdf4;
    }

    .area-card-header {
      display: flex;
      justify-content: space-between;
      align-items: start;
      margin-bottom: 0.75rem;
    }

    .area-name {
      font-weight: 700;
      font-size: 0.95rem;
    }

    .best-badge {
      background: var(--secondary);
      color: white;
      font-size: 0.7rem;
      font-weight: 700;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
    }

    .area-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.5rem;
    }

    .area-stat {
      font-size: 0.8rem;
    }

    .area-stat .as-label { color: var(--text-muted); }
    .area-stat .as-value { font-weight: 600; }

    .score-badge {
      display: inline-flex;
      align-items: center;
      padding: 0.25rem 0.6rem;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 700;
    }

    .score-green { background: #d1fae5; color: #065f46; }
    .score-amber { background: #fef3c7; color: #92400e; }
    .score-red { background: #fee2e2; color: #991b1b; }
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
    @media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }
    .score-badge.score-excellent { background: #d1fae5; color: #065f46; }
    .score-badge.score-good      { background: #dcfce7; color: #166534; }
    .score-badge.score-moderate  { background: #fef3c7; color: #92400e; }
    .score-badge.score-caution   { background: #ffedd5; color: #9a3412; }
    .score-badge.score-high      { background: #fee2e2; color: #991b1b; }

    .map-placeholder {
      border: 2px dashed var(--border);
      border-radius: var(--radius);
      padding: 3rem 1.5rem;
      text-align: center;
      color: var(--text-muted);
      background: #f9fafb;
      margin-top: 1.5rem;
      font-size: 0.9rem;
    }

    .map-placeholder .map-icon { font-size: 2rem; margin-bottom: 0.5rem; }

    /* Costs calculator */
    .costs-layout {
      max-width: 900px;
      margin: 0 auto;
      padding: 3rem 1.5rem;
    }

    .results-summary-card {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: white;
      border-radius: var(--radius);
      padding: 2rem;
      margin-bottom: 1.5rem;
      text-align: center;
    }

    .results-summary-card h2 { font-size: 1rem; opacity: 0.8; margin-bottom: 0.25rem; }
    .results-summary-card .big-number { font-size: 2.75rem; font-weight: 800; }
    .results-summary-card .sub-numbers { display: flex; justify-content: center; gap: 2rem; margin-top: 1rem; flex-wrap: wrap; }
    .results-summary-card .sub-item { font-size: 0.875rem; opacity: 0.85; }
    .results-summary-card .sub-item strong { display: block; font-size: 1.1rem; opacity: 1; }

    .breakdown-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .breakdown-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem;
      text-align: center;
      box-shadow: var(--shadow);
    }

    .breakdown-card .bd-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.25rem; }
    .breakdown-card .bd-value { font-size: 1.5rem; font-weight: 800; color: var(--primary); }

    .warning-banner {
      background: #fffbeb;
      border: 1px solid var(--accent);
      border-radius: var(--radius-sm);
      padding: 1rem 1.25rem;
      font-size: 0.875rem;
      color: #92400e;
      margin-bottom: 1.5rem;
      display: flex;
      gap: 0.6rem;
    }

    /* Rent Ready Pack */
    .pack-layout {
      max-width: 900px;
      margin: 0 auto;
      padding: 3rem 1.5rem;
    }

    .progress-bar-wrap {
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
      margin-bottom: 2rem;
      box-shadow: var(--shadow);
    }

    .progress-bar-label {
      display: flex;
      justify-content: space-between;
      font-size: 0.875rem;
      font-weight: 600;
      margin-bottom: 0.75rem;
    }

    .progress-bar-track {
      height: 10px;
      background: #e5e7eb;
      border-radius: 5px;
      overflow: hidden;
    }

    .progress-bar-fill {
      height: 100%;
      width: 43%;
      background: var(--secondary);
      border-radius: 5px;
      transition: width 0.4s ease;
    }

    .checklist-section { margin-bottom: 2rem; }

    .checklist-section-title {
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      margin-bottom: 0.75rem;
    }

    .checklist-item {
      display: flex;
      align-items: center;
      gap: 0.9rem;
      padding: 0.9rem 1rem;
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      margin-bottom: 0.5rem;
      cursor: pointer;
      transition: border-color 0.15s;
    }

    .checklist-item:hover { border-color: var(--primary); }

    .checklist-item.complete { border-color: var(--secondary); background: #f0fdf4; }

    .checklist-item input[type="checkbox"] {
      width: 18px;
      height: 18px;
      accent-color: var(--secondary);
      cursor: pointer;
      flex-shrink: 0;
    }

    .checklist-item-content { flex: 1; }
    .checklist-item-title { font-weight: 600; font-size: 0.9rem; }
    .checklist-item-helper { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }

    .status-badge {
      padding: 0.2rem 0.6rem;
      border-radius: 20px;
      font-size: 0.7rem;
      font-weight: 700;
    }

    .status-complete { background: #d1fae5; color: #065f46; }
    .status-needed { background: #f3f4f6; color: #6b7280; }

    .templates-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
      margin-bottom: 2rem;
    }

    .template-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.5rem;
      text-align: center;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
      transition: transform 0.18s, box-shadow 0.18s;
    }
    .template-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,76,129,0.12); }
    .template-card .t-icon { font-size: 2rem; margin-bottom: 0.75rem; }
    .template-card h4 { font-weight: 700; margin-bottom: 0.4rem; font-size: 0.95rem; }
    .template-card p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
    .template-card .file-type-badge {
      display: inline-block;
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      padding: 2px 8px;
      border-radius: 20px;
      margin-bottom: 0.75rem;
    }
    .file-type-badge.docx { background: #dbeafe; color: #1e40af; }
    .file-type-badge.pdf  { background: #fee2e2; color: #991b1b; }

    /* ── Download Email Gate Modal ─────────────────────────────────────── */
    #dl-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(15,20,40,0.55);
      backdrop-filter: blur(3px);
      z-index: 9999;
      align-items: center;
      justify-content: center;
    }
    #dl-modal-overlay.open { display: flex; }
    #dl-modal {
      background: white;
      border-radius: 16px;
      padding: 2rem 2rem 1.75rem;
      width: min(420px, 92vw);
      box-shadow: 0 24px 60px rgba(0,0,0,0.25);
      text-align: center;
      position: relative;
    }
    #dl-modal .dl-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
    #dl-modal h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--primary); }
    #dl-modal .dl-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.5; }
    #dl-modal input[type="email"] {
      width: 100%;
      padding: 0.75rem 1rem;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      font-size: 0.95rem;
      margin-bottom: 0.75rem;
      outline: none;
      box-sizing: border-box;
      transition: border-color 0.2s;
    }
    #dl-modal input[type="email"]:focus { border-color: var(--primary); }
    #dl-modal .dl-error { font-size: 0.8rem; color: #dc2626; margin-bottom: 0.6rem; min-height: 1.1em; }
    #dl-modal .dl-privacy { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.75rem; }
    #dl-modal .btn-close-modal {
      position: absolute; top: 0.9rem; right: 1rem;
      background: none; border: none; font-size: 1.3rem;
      cursor: pointer; color: var(--text-muted); line-height: 1;
    }
    #dl-modal .btn-close-modal:hover { color: var(--primary); }
    .dl-success-msg { display:none; text-align:center; padding: 0.5rem 0; }
    .dl-success-msg .big-tick { font-size: 2.5rem; margin-bottom: 0.5rem; }
    .dl-success-msg h3 { color: var(--secondary); margin-bottom: 0.4rem; }
    .dl-success-msg p { font-size: 0.85rem; color: var(--text-muted); }

    .tips-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
    }

    .tip-card {
      background: #fffbeb;
      border: 1px solid #fcd34d;
      border-radius: var(--radius);
      padding: 1.25rem;
    }

    .tip-card .tip-icon { font-size: 1.25rem; margin-bottom: 0.5rem; }
    .tip-card p { font-size: 0.875rem; color: #78350f; line-height: 1.6; }

    /* About */
    .about-layout {
      max-width: 820px;
      margin: 0 auto;
      padding: 3rem 1.5rem;
    }

    .about-section { margin-bottom: 2.5rem; }

    .about-section h2 {
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 1rem;
      padding-bottom: 0.75rem;
      border-bottom: 2px solid var(--border);
    }

    .about-section p {
      font-size: 0.95rem;
      line-height: 1.8;
      color: var(--text-muted);
      margin-bottom: 0.75rem;
    }

    .roadmap-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
    }

    .roadmap-card {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.5rem;
      background: var(--bg);
    }

    .roadmap-card h4 {
      font-weight: 700;
      margin-bottom: 1rem;
      font-size: 0.9rem;
      color: var(--primary);
    }

    .roadmap-card ul { list-style: none; }
    .roadmap-card ul li { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.4rem; line-height: 1.5; }

    /* Contact */
    .contact-layout {
      max-width: 700px;
      margin: 0 auto;
      padding: 3rem 1.5rem;
    }

    .contact-info-row {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .contact-info-item {
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem;
      font-size: 0.9rem;
    }

    .contact-info-item strong { display: block; margin-bottom: 0.2rem; }

    /* ========== MODAL ========== */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.5);
      z-index: 5000;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }

    .modal-overlay.open { display: flex; }

    .modal {
      background: white;
      border-radius: var(--radius);
      padding: 2rem;
      max-width: 480px;
      width: 100%;
      position: relative;
      box-shadow: 0 20px 60px rgba(0,0,0,0.2);
      animation: modalIn 0.25s ease;
    }

    @keyframes modalIn {
      from { opacity: 0; transform: scale(0.95) translateY(10px); }
      to { opacity: 1; transform: scale(1) translateY(0); }
    }

    .modal-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: none;
      border: none;
      font-size: 1.25rem;
      cursor: pointer;
      color: var(--text-muted);
      line-height: 1;
      padding: 0.25rem;
    }

    .modal-close:hover { color: var(--text); }

    .modal h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.35rem; }
    .modal .modal-sub { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; }

    .checkbox-group {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .checkbox-group label {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: 400;
      font-size: 0.875rem;
      cursor: pointer;
    }

    .checkbox-group input[type="checkbox"] {
      width: 16px;
      height: 16px;
      accent-color: var(--primary);
    }

    .modal-success {
      text-align: center;
      padding: 1.5rem 0;
    }

    .modal-success .success-icon { font-size: 3rem; margin-bottom: 0.75rem; }
    .modal-success h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
    .modal-success p { font-size: 0.9rem; color: var(--text-muted); }

    /* ========== CTA SECTION ========== */
    .cta-section {
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 2rem;
      text-align: center;
      margin-top: 2rem;
      box-shadow: var(--shadow);
    }

    .cta-section h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
    .cta-section p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.25rem; }

    /* ========== RESPONSIVE ========== */
    @media (max-width: 900px) {
      .hero-inner { grid-template-columns: 1fr; }
      .fit-score-card { display: none; }
      .steps-grid { grid-template-columns: 1fr; }
      .tools-grid { grid-template-columns: repeat(4, 1fr); }
      .tools-grid .tool-card:nth-child(1) { grid-column: span 2; }
      .tools-grid .tool-card:nth-child(2) { grid-column: span 2; }
      .tools-grid .tool-card:nth-child(3) { grid-column: span 2; }
      .tools-grid .tool-card:nth-child(4) { grid-column: span 2; }
      .tools-grid .tool-card:nth-child(5) { grid-column: span 4; }
      .stats-grid { grid-template-columns: 1fr; }
      .benefits-grid { grid-template-columns: 1fr; }
      .trust-grid { grid-template-columns: 1fr; }
      .footer-top { grid-template-columns: 1fr 1fr; }
      .calc-layout { grid-template-columns: 1fr; }
      .breakdown-grid { grid-template-columns: 1fr; }
      .templates-grid { grid-template-columns: 1fr; }
      .tips-grid { grid-template-columns: 1fr; }
      .roadmap-grid { grid-template-columns: 1fr; }
      .input-row { flex-direction: column; }
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .hero h1 { font-size: 1.85rem; }
      .section-title { font-size: 1.6rem; }
    }

    @media (max-width: 600px) {
      .footer-top { grid-template-columns: 1fr; }
      .area-stats { grid-template-columns: 1fr; }
      .results-summary-card .sub-numbers { flex-direction: column; gap: 0.75rem; }
    }

    /* ========== UTILITIES ========== */
    .text-center { text-align: center; }
    .mt-1 { margin-top: 0.5rem; }
    .mt-2 { margin-top: 1rem; }
    .mt-3 { margin-top: 1.5rem; }
    .mb-1 { margin-bottom: 0.5rem; }
    .mb-2 { margin-bottom: 1rem; }
    .mb-3 { margin-bottom: 1.5rem; }
    .hidden { display: none !important; }

    /* Results container */
    #costs-results { display: none; }
    #costs-results.show { display: block; }

    .divider {
      border: none;
      border-top: 1px solid var(--border);
      margin: 1.75rem 0;
    }

    /* ========== LEGAL PAGES ========== */
    .legal-page { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
    .legal-hero {
      background: linear-gradient(135deg, var(--primary) 0%, #1a6fa8 100%);
      color: white;
      border-radius: var(--radius);
      padding: 2.5rem 2rem 2rem;
      margin-bottom: 2.5rem;
    }
    .legal-hero .legal-tag {
      display: inline-block;
      background: rgba(255,255,255,0.18);
      color: white;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 0.25rem 0.7rem;
      border-radius: 20px;
      margin-bottom: 0.9rem;
    }
    .legal-hero h1 { font-size: 1.9rem; font-weight: 800; margin: 0 0 0.5rem; }
    .legal-hero .legal-meta { font-size: 0.85rem; opacity: 0.8; margin-top: 0.75rem; }
    .legal-hero .legal-meta span { margin-right: 1.2rem; }
    .legal-body { display: flex; flex-direction: column; gap: 1.5rem; }
    .legal-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.75rem 2rem;
      box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    }
    .legal-card h2 {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--primary);
      margin: 0 0 1rem;
      padding-bottom: 0.6rem;
      border-bottom: 2px solid #e8f0f8;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .legal-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 1.2rem 0 0.4rem; }
    .legal-card p { font-size: 0.92rem; color: #4a5568; line-height: 1.75; margin: 0 0 0.75rem; }
    .legal-card p:last-child { margin-bottom: 0; }
    .legal-card ul { margin: 0.5rem 0 0.75rem 1.2rem; padding: 0; }
    .legal-card ul li { font-size: 0.92rem; color: #4a5568; line-height: 1.7; margin-bottom: 0.3rem; }
    .legal-card.highlight { border-left: 4px solid var(--primary); background: #f0f7ff; }
    .legal-card.warning { border-left: 4px solid #f59e0b; background: #fffbeb; }
    .legal-card.warning h2 { color: #b45309; border-color: #fde68a; }
    .legal-contact-box {
      background: var(--primary);
      color: white;
      border-radius: var(--radius);
      padding: 1.75rem 2rem;
      margin-top: 0.5rem;
      text-align: center;
    }
    .legal-contact-box h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.4rem; }
    .legal-contact-box p { font-size: 0.88rem; opacity: 0.85; margin: 0; }
    .legal-contact-box a { color: #7dd3fc; text-decoration: underline; }
    .legal-toc {
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
      margin-bottom: 2rem;
    }
    .legal-toc p {
      font-size: 0.75rem;
      font-weight: 700;
      color: #6b7280;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      margin: 0 0 0.75rem;
    }
    .legal-toc-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .legal-toc a {
      display: inline-flex;
      align-items: center;
      font-size: 0.82rem;
      font-weight: 500;
      color: var(--primary);
      background: #fff;
      border: 1.5px solid #dbeafe;
      border-radius: 999px;
      padding: 0.3rem 0.85rem;
      text-decoration: none;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
      white-space: nowrap;
    }
    .legal-toc a:hover {
      background: var(--primary);
      color: #fff;
      border-color: var(--primary);
      text-decoration: none;
    }
    @media (max-width: 600px) {
      .legal-page { padding: 2rem 1rem 4rem; }
      .legal-hero { padding: 1.75rem 1.25rem; }
      .legal-hero h1 { font-size: 1.5rem; }
      .legal-card { padding: 1.25rem; }
      .legal-toc { padding: 1rem 1.1rem; }
      .legal-toc-links { gap: 0.4rem; }
      .legal-toc a { font-size: 0.78rem; padding: 0.28rem 0.7rem; }
    }

    /* ========== LISTINGS PREVIEW ========== */
    .listings-preview-section { background: var(--bg); }
    .listings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
    .listing-card { background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
    .listing-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
    /* CSO Widget Styles */
    .cso-widget { background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; margin: 2rem 0; }
    .cso-inline-badge {
      display: inline-flex;
      align-items: center;
      font-size: 0.72rem;
      font-weight: 600;
      padding: 0.15rem 0.45rem;
      border-radius: 20px;
      margin-left: 0.4rem;
      vertical-align: middle;
      transition: opacity 0.3s;
    }
    .cso-badge-up { background: #fee2e2; color: #dc2626; }
    .cso-badge-down { background: #dcfce7; color: #16a34a; }
    .cso-badge-neutral { background: #f3f4f6; color: #6b7280; }
    .cso-widget-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
    .cso-widget-title { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
    .cso-widget-badge { font-size: 0.75rem; font-weight: 600; background: #e0f2fe; color: #0369a1; padding: 0.2rem 0.7rem; border-radius: 20px; }
    .cso-widget-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; width: 100%; }
    .cso-chart-wrap { position: relative; height: 260px; width: 100%; overflow: hidden; }
    .cso-chart-wrap canvas { height: 260px !important; max-height: 260px; width: 100% !important; display: block; }
    .cso-loading { display: flex; align-items: center; justify-content: center; height: 200px; color: var(--text-muted); font-size: 0.9rem; gap: 0.5rem; }
    .cso-loading::before { content: ''; width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
    .cso-error { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.85rem; }
    .cso-attribution { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.75rem; text-align: right; }
    .cso-attribution a { color: var(--primary); }
    .cso-section { padding: 2rem 1.5rem; }
    .cso-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 1.5rem; }
    .costs-breakdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
    .col-dashboard { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border-radius: var(--radius); padding: 2rem 1.5rem; }
    .col-stat-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
    .col-stat-chip { background: white; border-radius: 12px; padding: 0.6rem 1rem; font-size: 0.82rem; font-weight: 600; color: var(--text-main); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.15rem; }
    .col-stat-chip .chip-label { font-weight: 400; color: var(--text-muted); font-size: 0.75rem; }
    .col-stat-chip .chip-val { color: var(--primary); font-size: 1.05rem; }
    .col-stat-chip.chip-up .chip-val { color: #dc2626; }
    .col-stat-chip.chip-down .chip-val { color: #16a34a; }
    .listing-thumb { height: 160px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; position: relative; }
    .listing-body { padding: 1.25rem; }
    .listing-price { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
    .listing-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--text-muted); margin: 0.5rem 0; }
    .listing-area { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
    .listing-footer { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.25rem; border-top: 1px solid var(--border); background: var(--bg); }
    .ber-badge { font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: 4px; font-weight: 700; background: #22c55e; color: white; }
    .ber-badge.ber-c { background: #eab308; color: #1a1a1a; }
    .ber-badge.ber-d { background: #f97316; color: white; }
    .listing-skeleton { background: var(--card-bg); border-radius: var(--radius); height: 280px; animation: shimmer 1.5s infinite; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; }
    .fit-score-badge { font-size: 0.8rem; padding: 0.25rem 0.6rem; border-radius: 20px; background: #dcfce7; color: #16a34a; font-weight: 600; }
    .badge-coming-soon { background: #fef3c7; color: #92400e; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }
    .listings-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
    @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

    /* ========== LOADING STATES ========== */
    .btn-loading { opacity: 0.7; pointer-events: none; }
    .btn-loading::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 8px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; vertical-align: middle; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .api-note { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-top: 0.5rem; }
    /* ===== SAFETY SCORE PAGE ===== */
    .safety-hero { background: linear-gradient(135deg, #0F4C81 0%, #1a6fa8 100%); color: #fff; padding: 3rem 0 2rem; text-align: center; }
    .safety-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
    .safety-hero p { opacity: 0.88; font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
    .safety-controls { background: #fff; border-bottom: 1px solid var(--border); padding: 1.25rem 0; position: sticky; top: 64px; z-index: 10; }
    .safety-controls .container { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
    .safety-city-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
    .city-tab { padding: 0.45rem 1.1rem; border-radius: 999px; border: 2px solid var(--border); background: #fff; font-size: 0.875rem; font-weight: 600; cursor: pointer; color: var(--text-muted); transition: all 0.15s; }
    .city-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
    .city-tab:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
    .safety-sort { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
    .safety-sort select { padding: 0.3rem 0.6rem; border-radius: 8px; border: 1px solid var(--border); font-size: 0.875rem; }
    .safety-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; padding: 2rem 0; }
    .safety-card { background: #fff; border-radius: 16px; padding: 1.4rem; box-shadow: 0 2px 12px rgba(0,0,0,0.07); border: 1px solid var(--border); transition: transform 0.15s, box-shadow 0.15s; cursor: default; }
    .safety-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.11); }
    .safety-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
    .safety-area-name { font-size: 1.05rem; font-weight: 700; color: var(--text); }
    .safety-score-badge { display: flex; flex-direction: column; align-items: center; background: var(--bg); border-radius: 12px; padding: 0.4rem 0.75rem; min-width: 58px; }
    .safety-score-num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
    .safety-score-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
    .score-excellent .safety-score-num { color: #1F9D6A; }
    .score-good .safety-score-num { color: #34b67a; }
    .score-moderate .safety-score-num { color: #f59e0b; }
    .score-caution .safety-score-num { color: #ef7c2a; }
    .score-high .safety-score-num { color: #e53e3e; }
    .safety-meter { height: 8px; border-radius: 999px; background: #e5e7eb; margin-bottom: 1rem; overflow: hidden; }
    .safety-meter-fill { height: 100%; border-radius: 999px; transition: width 0.6s ease; }
    .score-excellent .safety-meter-fill { background: #1F9D6A; }
    .score-good .safety-meter-fill { background: #34b67a; }
    .score-moderate .safety-meter-fill { background: #f59e0b; }
    .score-caution .safety-meter-fill { background: #ef7c2a; }
    .score-high .safety-meter-fill { background: #e53e3e; }
    .safety-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; }
    .breakdown-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-muted); }
    .breakdown-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
    .dot-violent { background: #e53e3e; }
    .dot-property { background: #f59e0b; }
    .dot-drugs { background: #8b5cf6; }
    .dot-antisocial { background: #3b82f6; }
    .dot-other { background: #9ca3af; }
    .safety-source { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
    .safety-empty { text-align: center; padding: 3rem; color: var(--text-muted); }
    .safety-legend { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.8rem; padding: 1rem 0 0; }
    .legend-item { display: flex; align-items: center; gap: 0.35rem; }
    .legend-dot { width: 10px; height: 10px; border-radius: 50%; }
    .safety-disclaimer { background: #fff8e1; border: 1px solid #f6cc5a; border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 1.5rem; font-size: 0.82rem; color: #7a5a00; }
    .safety-disclaimer strong { color: #5a3e00; }
    @media (max-width: 600px) {
      .safety-grid { grid-template-columns: 1fr; }
      .safety-controls .container { flex-direction: column; align-items: flex-start; }
      .safety-sort { margin-left: 0; }
    }

    /* ============================================================
       ENHANCED MOBILE RESPONSIVENESS — comprehensive overrides
       ============================================================ */

    /* Map responsive height (inline height overridden here) */
    #commute-map { height: 420px; width: 100%; z-index: 0; position: relative; }
    .leaflet-container { z-index: 0 !important; }
    /* Prevent Leaflet tiles from being clipped by card overflow */
    #commute-map-card { overflow: visible !important; }
    #commute-map-card > .card { overflow: visible; }

    /* ── 900px: Tablet / large mobile ── */
    @media (max-width: 900px) {
      section { padding: 3rem 1rem; }
      .hero   { padding: 3rem 1rem 2.5rem; }
      .page-header { padding: 2.25rem 1rem; }
      .page-header h1 { font-size: 1.65rem; }
      .page-header p  { font-size: 0.9rem; }
      .calc-layout    { padding: 2rem 1rem; }
      .costs-layout   { padding: 2rem 1rem; }
      .pack-layout    { padding: 2rem 1rem; }
      .about-layout   { padding: 2rem 1rem; }
      .contact-layout { padding: 2rem 1rem; }
      .cso-section    { padding: 2rem 1rem !important; }
      footer          { padding: 2.5rem 1rem 0; }
    }

    /* ── 600px: Mobile ── */
    @media (max-width: 600px) {
      /* Hero */
      .hero { padding: 2.5rem 1rem 2rem; }
      .hero h1 { font-size: 1.65rem; line-height: 1.25; }
      .hero p  { font-size: 0.95rem; margin-bottom: 1.5rem; }
      .hero-actions { gap: 0.5rem; }
      .hero-actions .btn { font-size: 0.875rem; padding: 0.65rem 1.1rem; }

      /* Typography */
      .section-title    { font-size: 1.35rem; }
      .section-subtitle { font-size: 0.9rem; margin-bottom: 2rem; }

      /* Sections */
      section { padding: 2.5rem 1rem; }

      /* Page header */
      .page-header { padding: 2rem 1rem; }
      .page-header h1 { font-size: 1.4rem; }

      /* Calculator layouts */
      .calc-layout, .costs-layout, .pack-layout,
      .about-layout, .contact-layout { padding: 1.75rem 1rem; }

      /* Cards */
      .card   { padding: 1.25rem; }
      .area-card { padding: 1rem; }
      .checklist-item { padding: 0.75rem; }
      .breakdown-card { padding: 1rem; }
      .breakdown-card .bd-value { font-size: 1.25rem; }
      .template-card  { padding: 1.25rem; }
      .tip-card       { padding: 1rem; }
      .roadmap-card   { padding: 1.25rem; }
      .step-card      { padding: 1.5rem 1rem; }
      .cta-section    { padding: 1.5rem 1rem; }

      /* Grids → single column on mobile */
      .templates-grid { grid-template-columns: 1fr; }
      .tips-grid      { grid-template-columns: 1fr; }
      .cso-grid       { grid-template-columns: 1fr; }
      .listings-grid  { grid-template-columns: 1fr; }

      /* Results summary card */
      .results-summary-card { padding: 1.5rem 1rem; }
      .results-summary-card .big-number { font-size: 2.25rem; }

      /* Daft.ie button full-width */
      .area-card a[href*="daft.ie"] {
        width: 100%;
        justify-content: center;
        padding: 0.55rem 1rem;
      }

      /* Map legend wraps on mobile */
      #commute-map-card > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
      }
      #commute-map { height: 280px; }

      /* Info banner wraps */
      .info-banner { flex-wrap: wrap; }

      /* Inline tool-layout divs */
      div[style*="max-width:1100px"][style*="padding:0 1.5rem"],
      div[style*="max-width:860px"][style*="padding:0 1.5rem"],
      div[style*="max-width:680px"][style*="padding:0 1.5rem"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
      }

      /* Footer */
      footer { padding: 2rem 1rem 0; }
      .footer-top { gap: 1.5rem; }

      /* About section */
      .about-section h2 { font-size: 1.2rem; }

      /* Contact */
      .contact-info-row { gap: 0.75rem; }

      /* Modal */
      .modal { padding: 1.75rem 1.25rem; }
    }

    /* ── 480px: Small phones ── */
    @media (max-width: 540px) {
      .costs-breakdown-grid { grid-template-columns: 1fr; }
      .costs-breakdown-grid #costs-chart-legend { font-size: 0.95rem; }
    }

    @media (max-width: 480px) {
      /* Hero CTA buttons stack */
      .hero h1 { font-size: 1.45rem; }
      .hero-actions { flex-direction: column; }
      .hero-actions .btn { width: 100%; justify-content: center; }

      /* Typography */
      .section-title { font-size: 1.25rem; }
      section { padding: 2rem 0.875rem; }

      /* Page header */
      .page-header { padding: 1.75rem 0.875rem; }
      .page-header h1 { font-size: 1.25rem; }

      /* Calculator layouts */
      .calc-layout, .costs-layout, .pack-layout,
      .about-layout, .contact-layout { padding: 1.5rem 0.875rem; }

      /* Cards further reduced */
      .card   { padding: 1rem; }
      .area-card { padding: 0.875rem; }

      /* Breakdown → single column on very small phones */
      .breakdown-grid { grid-template-columns: 1fr; }
      .breakdown-card { text-align: left; display: flex; justify-content: space-between; align-items: center; }
      .breakdown-card .bd-label { margin-bottom: 0; font-size: 0.875rem; }
      .breakdown-card .bd-value { font-size: 1.4rem; }

      /* Results summary */
      .results-summary-card .big-number { font-size: 2rem; }
      .results-summary-card .sub-numbers { gap: 1rem; }

      /* Map */
      #commute-map { height: 240px; }

      /* Fit score circle scale down */
      .fit-score-big-circle { width: 110px; height: 110px; }
      .fit-score-big-circle::before { width: 82px; height: 82px; }
      .fit-score-big-number { font-size: 1.9rem; }

      /* CTA section */
      .cta-section .btn { width: 100%; justify-content: center; }

      /* FAQ */
      .faq-question { padding: 0.875rem 1rem; font-size: 0.875rem; }

      /* Modal */
      .modal { padding: 1.5rem 1rem; }
      .modal h2 { font-size: 1.25rem; }

      /* Footer */
      footer { padding: 1.75rem 0.875rem 0; }

      /* Nav logo on very small screens */
      .nav-logo { font-size: 0.95rem; }
      .nav-logo .logo-icon { width: 30px; height: 30px; }

      /* CSO section */
      .cso-section { padding: 1.5rem 0.875rem !important; }
      .cso-chart-wrap { height: 220px; width: 100%; overflow: hidden; }
      .cso-chart-wrap canvas { height: 220px !important; max-height: 220px; width: 100% !important; display: block; }

      /* Checklist */
      .checklist-item { gap: 0.65rem; }
      .checklist-item-title { font-size: 0.85rem; }

      /* Progress bar */
      .progress-bar-wrap { padding: 1rem; }

      /* Tool cards already 1 col at 900px */
      .tool-card { padding: 1.5rem 1.25rem; }

      /* Safety controls */
      .safety-sort select { width: 100%; }
    }
  
    /* ===== RENTAL REALITY SCORE ===== */
    .rrs-layout {
      display: grid;
      grid-template-columns: 380px 1fr;
      gap: 2rem;
      align-items: start;
    }
    .rrs-form-col { min-width: 0; }
    .rrs-results-col { min-width: 0; }

    /* Empty state */
    .rrs-empty-state {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 340px;
    }
    .rrs-empty-inner {
      text-align: center;
      color: var(--text-muted);
      background: var(--card-bg);
      border: 2px dashed var(--border);
      border-radius: var(--radius);
      padding: 3rem 2rem;
    }
    .rrs-empty-inner h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text); }
    .rrs-empty-inner p  { font-size: 0.9rem; max-width: 320px; margin: 0 auto; }

    /* Score card */
    .rrs-score-card { padding: 1.75rem; }
    .rrs-score-header {
      display: flex;
      align-items: center;
      gap: 1.75rem;
    }
    .rrs-score-circle {
      position: relative;
      width: 120px;
      height: 120px;
      flex-shrink: 0;
    }
    .rrs-ring { width: 120px; height: 120px; transform: rotate(-90deg); }
    .rrs-ring-bg  { fill: none; stroke: #e5e7eb; stroke-width: 10; }
    .rrs-ring-fill {
      fill: none;
      stroke: var(--primary);
      stroke-width: 10;
      stroke-linecap: round;
      transition: stroke-dashoffset 1s ease, stroke 0.4s;
    }
    .rrs-score-num {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      font-size: 2rem;
      font-weight: 800;
      color: var(--primary);
      line-height: 1;
    }
    .rrs-score-meta { flex: 1; }
    .rrs-verdict {
      font-size: 1.4rem;
      font-weight: 800;
      margin-bottom: 0.25rem;
    }
    .rrs-verdict-sub {
      font-size: 0.88rem;
      color: var(--text-muted);
      margin-bottom: 0.75rem;
      line-height: 1.5;
    }
    .rrs-score-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

    /* Pillar bars */
    .rrs-pillars { display: flex; flex-direction: column; gap: 1.25rem; }
    .rrs-pillar-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.4rem;
      font-size: 0.9rem;
      font-weight: 600;
    }
    .rrs-pts { font-weight: 700; color: var(--primary); }
    .rrs-bar-bg {
      height: 10px;
      background: #e5e7eb;
      border-radius: 999px;
      overflow: hidden;
    }
    .rrs-bar-fill {
      height: 100%;
      border-radius: 999px;
      background: var(--primary);
      transition: width 0.8s ease;
    }
    .rrs-pillar-note {
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-top: 0.35rem;
    }

    /* Cost table */
    .rrs-cost-table { display: flex; flex-direction: column; gap: 0.6rem; }
    .rrs-cost-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.9rem;
      padding: 0.5rem 0;
      border-bottom: 1px solid var(--border);
    }
    .rrs-cost-row:last-child { border-bottom: none; }
    .rrs-cost-row.total-row {
      font-weight: 700;
      font-size: 1rem;
      border-top: 2px solid var(--border);
      border-bottom: none;
      margin-top: 0.25rem;
      padding-top: 0.75rem;
    }
    .rrs-cost-row.bti-row {
      font-size: 0.85rem;
      padding-top: 0.25rem;
      padding-bottom: 0;
      border-bottom: none;
    }
    .rrs-cost-label { color: var(--text-muted); }
    .rrs-cost-val   { font-weight: 600; }
    .rrs-cost-warn  { color: #d97706; font-weight: 700; }
    .rrs-cost-ok    { color: var(--secondary); font-weight: 700; }

    /* Recommendations */
    .rrs-recs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
    .rrs-recs li {
      padding: 0.75rem 1rem;
      background: #f8fafc;
      border-left: 4px solid var(--primary);
      border-radius: 0 8px 8px 0;
      font-size: 0.88rem;
      line-height: 1.5;
    }
    .rrs-recs li.rec-warn { border-left-color: #d97706; background: #fffbeb; }
    .rrs-recs li.rec-red  { border-left-color: #ef4444; background: #fef2f2; }
    .rrs-recs li.rec-green { border-left-color: var(--secondary); background: #f0fdf4; }

    /* Score colour variants */
    .rrs-ring-fill.score-excellent { stroke: #1F9D6A; }
    .rrs-ring-fill.score-good      { stroke: #0F4C81; }
    .rrs-ring-fill.score-moderate  { stroke: #f59e0b; }
    .rrs-ring-fill.score-caution   { stroke: #f97316; }
    .rrs-ring-fill.score-high-risk { stroke: #ef4444; }

    .rrs-verdict.score-excellent { color: #1F9D6A; }
    .rrs-verdict.score-good      { color: #0F4C81; }
    .rrs-verdict.score-moderate  { color: #d97706; }
    .rrs-verdict.score-caution   { color: #f97316; }
    .rrs-verdict.score-high-risk { color: #ef4444; }

    /* Responsive */
    @media (max-width: 900px) {
      .rrs-layout { grid-template-columns: 1fr; }
      .rrs-empty-state { min-height: 180px; }
    }
    @media (max-width: 480px) {
      .rrs-score-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    }

    