:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #475569;
    --accent: #0f766e;
    --accent-hover: #115e59;
    --accent-soft: #f0fdfa;
    --accent-border: #99f6e4;
    --primary: #0f172a;
    --primary-hover: #1e293b;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  .container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
  header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
  }
  .brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
  .brand span { color: var(--accent); }
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-border);
  }
  main { padding: 40px 0 64px; }
  h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin: 12px 0 16px;
  }
  h2 {
    font-size: 1.35rem;
    letter-spacing: -0.015em;
    margin: 0 0 14px;
  }
  .lead-copy { color: var(--muted); font-size: 1.05rem; max-width: 720px; margin: 0 0 24px; }
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  }
  .quick-answer {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border: 1px solid var(--accent-border);
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 28px;
  }
  .quick-answer-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 6px;
  }
  .quick-answer p { margin: 0; font-size: 0.98rem; color: #1e293b; }
  .calc-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    margin-bottom: 36px;
    align-items: start;
  }
  @media (max-width: 820px) {
    .calc-grid { grid-template-columns: 1fr; }
  }
  .field { margin-bottom: 16px; }
  .field:last-child { margin-bottom: 0; }
  label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
  }
  select, input[type="text"], input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  select:focus, input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  }
  .result-panel {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 16px;
    padding: 24px;
  }
  .result-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 700;
  }
  .result-cost {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #5eead4;
    margin: 6px 0 4px;
    letter-spacing: -0.02em;
  }
  .result-time {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
  }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
  }
  .btn-dark:hover { background: var(--primary-hover); }
  .btn-dark:disabled { opacity: 0.6; cursor: not-allowed; }
  .lead-box {
    margin-top: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 16px;
  }
  .lead-box h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: #fff;
  }
  .lead-box p {
    margin: 0 0 12px;
    font-size: 0.8rem;
    color: #cbd5e1;
  }
  .lead-box input {
    margin-bottom: 8px;
    background: #fff;
    border-color: transparent;
    font-size: 0.88rem;
    padding: 9px 11px;
  }
  .form-msg {
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 600;
  }
  .form-msg.ok { color: #5eead4; }
  .form-msg.err { color: #fca5a5; }
  .table-wrap { overflow-x: auto; margin-bottom: 36px; }
  table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    font-size: 0.92rem;
  }
  th, td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }
  th {
    background: #f1f5f9;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
  }
  tr:last-child td { border-bottom: none; }
  .faq-list { display: grid; gap: 10px; }
  details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
  }
  summary { font-weight: 700; cursor: pointer; font-size: 0.96rem; }
  details p { margin: 10px 0 0; color: var(--muted); font-size: 0.92rem; }
  .dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
  }
  .dir-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  }
  .dir-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.12);
  }
  .dir-card h3 { margin: 12px 0 8px; font-size: 1.08rem; line-height: 1.32; font-weight: 700; }
  .dir-card p { margin: 0 0 16px; font-size: 0.88rem; color: var(--muted); }
  .dir-link { font-size: 0.86rem; font-weight: 700; color: var(--accent); }
  .card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .range-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    white-space: nowrap;
  }
  .breakdown-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
  }
  .breakdown-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: #e2e8f0;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  }
  .breakdown-row:last-child { border-bottom: none; padding-bottom: 0; }
  .breakdown-row strong { color: #5eead4; font-weight: 700; }
  .hero-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    padding: 52px 0 46px;
    border-bottom: 1px solid #1e293b;
  }
  .hero-dark h1 {
    color: #ffffff;
    margin: 14px 0 14px;
    max-width: 780px;
  }
  .hero-dark .lead-copy {
    color: #cbd5e1;
    margin-bottom: 24px;
  }
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
  }
  .trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
  }
  .trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: 10px;
  }
  .trust-pill span { color: #10b981; font-weight: 800; }
  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
  }
  .filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: #cbd5e1;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
  }
  .filter-btn:hover { color: #fff; border-color: #34d399; }
  .filter-btn.active {
    background: #10b981;
    color: #06281e;
    border-color: #10b981;
    font-weight: 700;
  }
  .search-input {
    min-width: 240px;
    max-width: 300px;
    padding: 8px 13px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
    font-size: 0.88rem;
    outline: none;
  }
  .search-input::placeholder { color: #94a3b8; }
  .search-input:focus { border-color: #10b981; }
  .methodology-section {
    margin-top: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
  }
  .methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 16px;
  }
  @media (max-width: 780px) {
    .methodology-grid { grid-template-columns: 1fr; }
    .search-input { width: 100%; max-width: none; }
  }
  @media (max-width: 640px) {
    header { position: static; }
    .container { padding: 0 16px; }
    .nav-inner { padding: 10px 0; gap: 8px; }
    .brand { font-size: 0.9rem; white-space: nowrap; }
    .badge, .hero-badge { font-size: 0.68rem; padding: 3px 8px; white-space: nowrap; }
    .card, .result-panel, .methodology-section { padding: 16px; }
    .lead-box { padding: 14px; }
    .btn-primary { font-size: 0.85rem; padding: 11px 12px; white-space: nowrap; }
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  }
  .methodology-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
  }
  .methodology-card h3 { margin: 0 0 6px; font-size: 0.96rem; color: var(--text); }
  .methodology-card p { margin: 0; font-size: 0.85rem; color: var(--muted); }
  .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: #475569;
    margin-bottom: 12px;
  }
  .breadcrumbs a { font-weight: 600; color: var(--accent); }
  .breadcrumbs a:hover { text-decoration: underline; }
  .related-section { margin-top: 40px; }
  .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  @media (max-width: 780px) {
    .related-grid { grid-template-columns: 1fr; }
  }
  .related-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.15s, transform 0.15s;
  }
  .related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
  .related-card h3 { margin: 8px 0 6px; font-size: 1rem; line-height: 1.3; }
  .related-card p { margin: 0 0 12px; font-size: 0.84rem; color: var(--muted); }
  footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 24px 0;
    font-size: 0.85rem;
    color: var(--muted);
  }
