/* ===== DESIGN SYSTEM ===== */
:root {
    --primary: #1a1a2e;
    --primary-light: #2a2a42;
    --primary-lighter: #3a3a56;
    --accent: #d4a03c;
    --accent-hover: #e5b44e;
    --accent-dim: rgba(212, 160, 60, 0.12);
    --bg: #f8f6f1;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-muted: #5a5a72;
    --text-light: #8a8a9a;
    --border: #e8e6e1;
    --green: #2d8a4e;
    --green-bg: rgba(45, 138, 78, 0.08);
    --red: #c0392b;
    --red-bg: rgba(192, 57, 43, 0.08);
    --amber-bg: rgba(212, 160, 60, 0.10);
    --shadow-sm: 0 1px 3px rgba(26,26,46,0.06);
    --shadow-md: 0 4px 14px rgba(26,26,46,0.08);
    --shadow-lg: 0 8px 30px rgba(26,26,46,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; font-weight: 400; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 12px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212,160,60,0.12);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
}
.nav-logo {
    font-family: 'DM Serif Display', serif;
    color: #fff;
    font-size: 1.15rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.nav-logo:hover { text-decoration: none; }
.logo-icon {
    width: 32px; height: 32px;
    background: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; color: var(--primary);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
}
.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}
.nav-cta {
    background: var(--accent) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}
.mobile-menu {
    display: none;
    background: var(--primary-light);
    border-bottom: 1px solid rgba(212,160,60,0.12);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.05); text-decoration: none; }
.mobile-menu a.active { color: var(--accent); }
.mobile-menu .nav-cta-mobile {
    color: var(--accent) !important;
    font-weight: 600;
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
}

/* ===== HERO ===== */
.hero {
    background: var(--primary);
    padding: 56px 0 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at center top, rgba(212,160,60,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.hero-badge {
    display: inline-block;
    background: rgba(212,160,60,0.12);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 100px;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}
.hero h1 {
    color: #fff;
    margin-bottom: 16px;
}
.hero p {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--text);
}
.card-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ===== FORM INPUTS ===== */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}
.input-wrap {
    position: relative;
}
.input-wrap .prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-light);
    pointer-events: none;
    font-weight: 500;
}
.input-wrap .suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-light);
    pointer-events: none;
    font-weight: 500;
}
input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.input-wrap input.has-prefix { padding-left: 28px; }
.input-wrap input.has-suffix { padding-right: 32px; }
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a5a72' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
    background: var(--accent);
    color: var(--primary);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212,160,60,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent-dim);
}
.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== RESULTS PANEL ===== */
.results-panel { display: none; }
.results-panel.visible { display: block; }
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}
.result-row:last-child { border-bottom: none; }
.result-label { color: var(--text-muted); }
.result-value { font-weight: 700; font-size: 1rem; color: var(--text); font-variant-numeric: tabular-nums; }
.result-value.green { color: var(--green); }
.result-value.red { color: var(--red); }
.result-value.accent { color: var(--accent); }
.result-big {
    text-align: center;
    padding: 20px;
    background: var(--accent-dim);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.result-big .result-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2.4rem;
    color: var(--text);
}
.result-big .result-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Verdict Badge */
.verdict-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
}
.verdict-green { background: var(--green-bg); color: var(--green); }
.verdict-amber { background: var(--amber-bg); color: #b8860b; }
.verdict-red { background: var(--red-bg); color: var(--red); }

/* Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}
.comparison-box {
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
}
.comparison-box.old {
    background: var(--red-bg);
    border: 1px solid rgba(192,57,43,0.15);
}
.comparison-box.new {
    background: var(--green-bg);
    border: 1px solid rgba(45,138,78,0.15);
}
.comparison-box .comp-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.comparison-box .comp-value {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
}
.savings-callout {
    text-align: center;
    padding: 12px;
    background: var(--green-bg);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--green);
    font-size: 0.95rem;
    margin-top: 12px;
}

/* ===== SCENARIO TESTER ===== */
.slider-group {
    margin-bottom: 18px;
}
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.slider-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}
.slider-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
}

/* ===== SEO CONTENT ===== */
.content-section {
    padding: 64px 0;
}
.content-section h2 {
    margin-bottom: 20px;
}
.content-section p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}
.content-section p:last-child { margin-bottom: 0; }

.pro-tip {
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px 24px;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}
.pro-tip-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.pro-tip p {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Comparison Tables */
.comp-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 600px;
}
.comp-table thead { background: var(--primary); }
.comp-table th {
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}
.comp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tbody tr:nth-child(even) { background: rgba(248,246,241,0.5); }
.comp-table tbody tr:hover { background: var(--accent-dim); }

/* Ordered/Unordered Lists */
.content-section ol,
.content-section ul {
    margin: 12px 0 20px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.content-section li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.content-section strong { color: var(--text); }

/* ===== FAQ ===== */
.faq-section { padding: 48px 0 64px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    gap: 16px;
    user-select: none;
}
.faq-q:hover { color: var(--accent); }
.faq-q .faq-icon {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--accent-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    color: var(--accent);
    transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s;
}
.faq-item.open .faq-a {
    max-height: 400px;
    padding: 0 22px 18px;
}
.faq-a p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.faq-a a { color: var(--accent); }

/* ===== CTA BANNER ===== */
.cta-banner {
    background: var(--primary);
    padding: 56px 24px;
    text-align: center;
    border-radius: var(--radius);
    margin: 48px 0;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(212,160,60,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.6); margin-bottom: 24px; font-size: 0.95rem; }

.cta-inline {
    background: var(--accent-dim);
    border: 1px solid rgba(212,160,60,0.2);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    margin: 32px 0;
}
.cta-inline p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.9rem; }

/* ===== LEAD MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,26,46,0.55);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px;
    position: relative;
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px; height: 32px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    transition: background 0.2s;
}
.modal-close:hover { background: var(--border); }
.modal h2 { font-size: 1.4rem; margin-bottom: 4px; }
.modal .modal-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.trust-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.trust-badge {
    font-size: 0.78rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}
.trust-badge .badge-icon {
    color: var(--green);
    font-size: 14px;
}
.form-success {
    display: none;
    text-align: center;
    padding: 24px 0;
}
.form-success.visible { display: block; }
.form-success .check-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    background: var(--green-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    color: var(--green);
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== FOOTER ===== */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.5);
    padding: 48px 0 32px;
    margin-top: 64px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}
.footer-brand {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-desc { font-size: 0.85rem; line-height: 1.7; }
.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 14px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}
.breadcrumbs a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 8px; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-24 { gap: 24px; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Page-level layout for content pages */
.page-content {
    padding: 48px 0;
}
.page-content h1 { margin-bottom: 16px; }
.page-content .page-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* Anchor offset for sticky nav */
[id] { scroll-margin-top: 80px; }
