/*-------------------------------------------------------------------------------------
                                        ROOT TOKENS
---------------------------------------------------------------------------------------*/
:root {
    --primary-blue: #0052cc;
    --hero-gradient: linear-gradient(135deg, #0061ff 0%, #0033aa 100%);
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
    --success-bg: #ecfdf5;
    --success-text: #047857;
    --warning-bg: #fff7ed;
    --warning-text: #c2410c;
    --danger-bg: #fef2f2;
    --danger-text: #b91c1c;
  }
  
  /*-------------------------------------------------------------------------------------
                                          BASE
  ---------------------------------------------------------------------------------------*/
  body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.65;
  }
  
  .section-padding {
    padding: 4.5rem 0;
  }
  
  .bg-light {
    background: var(--bg-light);
  }
  
  .left-align {
    text-align: left;
  }
  
  .section-header {
    max-width: 820px;
    margin-bottom: 2rem;
  }
  
  .section-header h2 {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 0.85rem;
  }
  
  .section-header p {
    color: var(--text-muted);
    max-width: 760px;
  }
  
  .prose p {
    margin-bottom: 1.15rem;
    color: var(--text-main);
  }
  
  .prose a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
  }
  
  .prose a:hover {
    text-decoration: underline;
  }
  
  .top-spacer {
    margin-top: 1.5rem;
  }
  
  /*-------------------------------------------------------------------------------------
                                          HERO
  ---------------------------------------------------------------------------------------*/
  .hero {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 40px 0 40px;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.92rem;
    opacity: 0.92;
  }
  
  .breadcrumb a {
    color: rgba(255, 255, 255, 0.96);
    text-decoration: none;
  }
  
  .breadcrumb a:hover {
    text-decoration: underline;
  }
  
  .hero-text {
    max-width: 880px;
  }
  
  .hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.08;
    margin-bottom: 1rem;
  }
  
  /*-------------------------------------------------
                      BUTTONS
  -------------------------------------------------*/
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.35rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid white;
    cursor: pointer;
  }
  
  .btn:hover {
    transform: translateY(-1px);
  }
  
  .btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-sm);
  }
  
  .btn-primary:hover {
    box-shadow: var(--shadow-md);
  }
  
  .btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.26);
  }
  
  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .btn-light {
    background: var(--white);
    color: var(--text-main);
    border: 1px solid var(--border-color);
  }

  .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1rem;
  }
  
  /*-------------------------------------------------------------------------------------
                                    CALCULATOR LAYOUT
  ---------------------------------------------------------------------------------------*/
  .calculator-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 1.5rem;
    align-items: start;
  }
  
  .calculator-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
  }
  
  .calculator-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  
  .card-intro {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
  }
  
  .input-section-label {
    margin: 1.2rem 0 1rem;
  }
  
  .input-section-label span {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--bg-light);
    color: var(--text-main);
    border: 1px solid var(--border-color);
  }
  
  .input-section-label.rent span {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
  }
  
  .input-section-label.buy span {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  
  .form-grid-single {
    grid-template-columns: 1fr;
  }
  
  .comparison-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 0.5rem;
  }
  
  .comparison-column {
    padding: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #fcfdff;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  
  .form-group label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
  }
  
  .form-group input,
  .form-group select {
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--white);
    color: var(--text-main);
    font: inherit;
    transition: var(--transition);
  }
  
  .form-group input:focus,
  .form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
  }
  
  .form-group small {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
  }
  
  /*-------------------------------------------------------------------------------------
                                      FORM MESSAGES
  ---------------------------------------------------------------------------------------*/
  .form-message {
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }
  
  .error-message {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid #fecaca;
  }
  
  .hidden {
    display: none !important;
  }
  
  /*-------------------------------------------------------------------------------------
                                    RESULTS PLACEHOLDER
  ---------------------------------------------------------------------------------------*/
  .results-placeholder {
    min-height: 320px;
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text-muted);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  }
  
  .results-placeholder i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.9rem;
  }
  
  .results-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  /*-------------------------------------------------------------------------------------
                                     STATUS BANNER
  ---------------------------------------------------------------------------------------*/
  .status-banner {
    border-radius: 14px;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color);
  }
  
  .status-banner.general {
    background: #eff6ff;
    border-color: #bfdbfe;
  }
  
  .status-banner.success {
    background: var(--success-bg);
    border-color: #a7f3d0;
  }
  
  .status-banner.warning {
    background: var(--warning-bg);
    border-color: #fdba74;
  }
  
  .status-banner.danger {
    background: var(--danger-bg);
    border-color: #fca5a5;
  }
  
  .status-badge {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  
  /*-------------------------------------------------------------------------------------
                                COMPARISON RESULTS PANELS
  ---------------------------------------------------------------------------------------*/
  .comparison-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  
  .comparison-panel {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 1rem;
    background: var(--white);
  }
  
  .rent-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  }
  
  .buy-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f7fcf8 100%);
  }
  
  .panel-header {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.9rem;
  }
  
  .panel-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
  }
  
  .panel-header h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .panel-header strong {
    font-size: 1.6rem;
    line-height: 1.1;
  }
  
  .panel-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }
  
  .metric-row,
  .snapshot-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .metric-row span,
  .snapshot-row span {
    color: var(--text-muted);
  }
  
  .metric-row strong,
  .snapshot-row strong {
    text-align: right;
  }
  
  /*-------------------------------------------------------------------------------------
                                  SUMMARY / HIGHLIGHT BLOCKS
  ---------------------------------------------------------------------------------------*/
  .results-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
  
  .summary-comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .summary-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }
  
  .summary-item .label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  
  .summary-item strong {
    font-size: 1.08rem;
  }
  
  .summary-item.accent {
    background: #f8fbff;
    border-color: #dbeafe;
  }
  
  .comparison-highlight {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
  
  .highlight-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem;
  }
  
  .highlight-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
  }
  
  .highlight-item strong {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  /*-------------------------------------------------------------------------------------
                                INTERPRETATION / WARNING CARDS
  ---------------------------------------------------------------------------------------*/
  .interpretation-card,
  .formula-summary-card,
  .warning-card {
    border-radius: 14px;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color);
    background: var(--white);
  }
  
  .warning-card {
    background: #fffdf7;
  }
  
  .interpretation-card h4,
  .formula-summary-card h4,
  .warning-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }
  
  /*-------------------------------------------------------------------------------------
                                  EDITORIAL / GLANCE SECTION
  ---------------------------------------------------------------------------------------*/
  .editorial-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 1.4rem;
    align-items: start;
  }
  
  .comparison-glance {
    display: grid;
    gap: 1rem;
  }
  
  .glance-card {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--white);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
  }
  
  .glance-card.rent {
    border-left: 4px solid #3b82f6;
  }
  
  .glance-card.buy {
    border-left: 4px solid #10b981;
  }
  
  .glance-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
  }
  
  .glance-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-main);
  }
  
  .glance-card li + li {
    margin-top: 0.45rem;
  }
  
  /*-------------------------------------------------------------------------------------
                                     INCLUSION / INSIGHT BLOCKS
  ---------------------------------------------------------------------------------------*/
  .inclusion-grid,
  .benefit-grid,
  .tips-grid,
  .examples-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  
  .inclusion-card,
  .benefit-card,
  .tip-card,
  .example-card,
  .insight-card,
  .break-even-card,
  .content-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.3rem;
    box-shadow: var(--shadow-sm);
  }
  
  .inclusion-card h3,
  .benefit-card h3,
  .tip-card h3,
  .example-card h3,
  .break-even-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
  }
  
  .benefit-card i {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.85rem;
  }
  
  .two-column-insight {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: 1.3rem;
    align-items: start;
  }
  
  .break-even-card ul {
    margin: 0;
    padding-left: 1.1rem;
  }
  
  .break-even-card li + li {
    margin-top: 0.45rem;
  }
  
  /*-------------------------------------------------------------------------------------
                                         FAQ
  ---------------------------------------------------------------------------------------*/
  .faq-list {
    display: grid;
    gap: 0.85rem;
  }
  
  .faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
  }
  
  .faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    position: relative;
    padding-right: 1.4rem;
  }
  
  .faq-item summary::-webkit-details-marker {
    display: none;
  }
  
  .faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary-blue);
    font-weight: 800;
  }
  
  .faq-item[open] summary::after {
    content: "–";
  }
  
  .faq-item p {
    margin-top: 0.75rem;
    color: var(--text-muted);
  }
  
  /*-------------------------------------------------------------------------------------
                                   RELATED / CTA / TRUST
  ---------------------------------------------------------------------------------------*/
  .related-grid {
    display: grid;
    gap: 1rem;
  }
  
  .related-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .related-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
  }
  
  .related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
  }
  
  .related-card h3 {
    font-size: 1rem;
    margin-bottom: 0.55rem;
  }
  
  .related-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
  }
  
  .cta-card,
  .trust-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    padding: 2rem;
  }
  
  .cta-card h2,
  .trust-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }
  
  .cta-card p,
  .trust-card p {
    max-width: 820px;
    color: var(--text-muted);
  }
  
  .cta-card .btn {
    margin-top: 1.2rem;
  }
  
  /*-------------------------------------------------------------------------------------
                                        RESPONSIVE
  ---------------------------------------------------------------------------------------*/
  @media (max-width: 1100px) {
    .calculator-shell,
    .editorial-layout,
    .two-column-insight {
      grid-template-columns: 1fr;
    }
  
    .comparison-input-grid,
    .comparison-results-grid,
    .comparison-highlight,
    .related-grid-4 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .inclusion-grid,
    .benefit-grid,
    .tips-grid,
    .examples-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    .section-padding {
      padding: 3.5rem 0;
    }
  
    .hero {
      padding: 20px 0 20px;
    }
  
    .form-grid,
    .comparison-input-grid,
    .comparison-results-grid,
    .results-summary-grid,
    .comparison-highlight,
    .inclusion-grid,
    .benefit-grid,
    .tips-grid,
    .examples-grid,
    .related-grid-4 {
      grid-template-columns: 1fr;
    }
  
    .calculator-card,
    .cta-card,
    .trust-card,
    .content-card,
    .inclusion-card,
    .benefit-card,
    .tip-card,
    .example-card,
    .related-card,
    .comparison-panel,
    .glance-card {
      padding: 1.1rem;
    }

    .button-row,
    .hero-actions {
      flex-direction: column;
      align-items: stretch;
    }
  
    .metric-row,
    .snapshot-row {
      flex-direction: column;
      gap: 0.15rem;
    }
  
    .metric-row strong,
    .snapshot-row strong {
      text-align: left;
    }
  }