/* ===== DESIGN TOKENS ===== */
:root {
  --green: #00c57a;
  --green-dark: #009f62;
  --green-light: #e6fff5;
  --ink: #0d1117;
  --ink-soft: #3d4451;
  --ink-muted: #6b7280;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef0f4;
  --border: #e2e5eb;
  --red: #e53e3e;
  --yellow: #f6ad00;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
  --transition: 0.2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--surface); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { color: var(--ink-soft); margin-bottom: 1rem; }
strong { color: var(--ink); }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px; }
.section { padding: 5rem 0; }
.section + .section { padding-top: 0; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: var(--transition); text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(0,197,122,0.35); }
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 6px 20px rgba(0,197,122,0.45); transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--border); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--green-dark); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green-light); text-decoration: none; }
.btn-large { padding: 1rem 2rem; font-size: 1.05rem; width: 100%; justify-content: center; margin-top: 1.5rem; }
.btn-sm { font-size: 0.85rem; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; background: var(--green); color: #fff; display: inline-block; text-decoration: none; }
.btn-sm:hover { background: var(--green-dark); text-decoration: none; color: #fff; }

/* ===== NAV ===== */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); }
.nav-container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; height: 64px; display: flex; align-items: center; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.logo-icon { font-size: 1.4rem; }
.logo strong { color: var(--green-dark); }
.nav-links { display: flex; align-items: center; gap: 0.5rem; list-style: none; margin-left: auto; }
.nav-links a { padding: 0.5rem 0.75rem; border-radius: 8px; color: var(--ink-soft); font-weight: 500; font-size: 0.9rem; transition: var(--transition); }
.nav-links a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-cta { background: var(--green) !important; color: #fff !important; padding: 0.5rem 1rem !important; }
.nav-cta:hover { background: var(--green-dark) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero { padding: 5rem 0 4rem; background: linear-gradient(135deg, #f0fdf8 0%, #ffffff 60%, #f8f0ff 100%); }
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge { display: inline-flex; background: var(--green-light); color: var(--green-dark); font-size: 0.85rem; font-weight: 600; padding: 0.35rem 0.9rem; border-radius: 100px; margin-bottom: 1rem; }
.hero h1 { margin-bottom: 1.25rem; }
.accent { color: var(--green-dark); }
.hero-sub { font-size: 1.1rem; margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-actions .btn-primary { padding: 0.9rem 1.8rem; }
.hero-stats { display: flex; gap: 2rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--green-dark); }
.stat span { font-size: 0.85rem; color: var(--ink-muted); }

/* Hero Visual */
.saving-preview { background: var(--surface); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.preview-label { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 1rem; }
.preview-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; font-size: 0.95rem; }
.preview-divider { border-top: 2px solid var(--border); margin: 0.5rem 0; }
.preview-item.total { font-weight: 700; }
.preview-item.total span { font-family: var(--font-display); font-size: 1rem; }
.green { color: var(--green-dark); }
.red { color: var(--red); }

/* ===== QUICK TIP BAR ===== */
.quick-tip-bar { background: var(--ink); color: #fff; padding: 0.75rem 1.5rem; }
.qtb-inner { max-width: var(--max-width); margin: 0 auto; display: flex; gap: 0.75rem; align-items: center; font-size: 0.9rem; }
.qtb-label { background: var(--green); color: #fff; padding: 0.2rem 0.6rem; border-radius: 4px; font-weight: 700; font-size: 0.8rem; white-space: nowrap; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--ink-muted); font-size: 1.05rem; }

/* ===== TOOLS GRID ===== */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tools-grid-large { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.tool-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: var(--transition); text-decoration: none; }
.tool-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.tool-card-all { background: var(--surface-2); border-style: dashed; }
.tool-card-lg { padding: 2rem; }
.tool-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.tool-card h3, .tool-card h2 { font-size: 1.1rem; color: var(--ink); margin-bottom: 0.4rem; }
.tool-card p { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 0.75rem; }
.tool-link { font-size: 0.85rem; color: var(--green-dark); font-weight: 600; }

/* ===== AFFILIATE CARDS ===== */
.affiliate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.affiliate-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: relative; transition: var(--transition); }
.affiliate-card.featured { border-color: var(--green); box-shadow: 0 0 0 2px rgba(0,197,122,0.15); }
.affiliate-card:hover { box-shadow: var(--shadow-md); }
.badge-top { position: absolute; top: -10px; left: 1rem; background: var(--green); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 100px; }
.aff-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; margin-top: 0.5rem; }
.aff-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.aff-rating { font-size: 0.8rem; color: var(--yellow); }
.rating-num { color: var(--ink-muted); }
.aff-desc { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.75rem; }
.aff-bonus { background: var(--green-light); color: var(--green-dark); font-size: 0.85rem; font-weight: 600; padding: 0.4rem 0.75rem; border-radius: 6px; margin-bottom: 1rem; display: inline-block; }
.bonus-label { opacity: 0.7; font-weight: 400; }
.aff-btn { display: block; background: var(--green); color: #fff; text-align: center; padding: 0.65rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: var(--transition); text-decoration: none; }
.aff-btn:hover { background: var(--green-dark); text-decoration: none; color: #fff; }

/* ===== GUIDES GRID ===== */
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.guides-grid-full { grid-template-columns: repeat(2, 1fr); }
.guide-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: var(--transition); text-decoration: none; }
.guide-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.guide-card-lg { padding: 2rem; }
.guide-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.guide-cat { background: var(--surface-3); color: var(--ink-soft); font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.guide-time { color: var(--ink-muted); font-size: 0.82rem; }
.guide-date { color: var(--ink-muted); font-size: 0.82rem; }
.guide-card h3, .guide-card h2 { color: var(--ink); margin-bottom: 0.5rem; }
.guide-card p { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 0.75rem; }
.guide-link { font-size: 0.85rem; color: var(--green-dark); font-weight: 600; }

/* ===== TIPS GRID ===== */
.tips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tip-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.tip-category { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-dark); margin-bottom: 0.5rem; }
.tip-card h3 { font-size: 1rem; color: var(--ink); margin-bottom: 0.4rem; }
.tip-card p { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 0.75rem; }
.tip-saving { font-size: 0.85rem; color: var(--green-dark); font-weight: 600; }

/* ===== FAQ ===== */
.faq-section { background: var(--surface-2); }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 1.25rem 1.5rem; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--green-dark); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.5rem 1.25rem; font-size: 0.95rem; margin-bottom: 0; }

/* ===== VIEW ALL WRAP ===== */
.view-all-wrap { text-align: center; margin-top: 2rem; }

/* ===== AD CONTAINER ===== */
.ad-container { padding: 2rem 0; text-align: center; }
.ad-placeholder { background: var(--surface-3); border: 1px dashed var(--border); border-radius: var(--radius); padding: 2rem; color: var(--ink-muted); font-size: 0.85rem; }

/* ===== PAGE HERO ===== */
.page-hero { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 3rem 0; }
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { font-size: 1.1rem; color: var(--ink-muted); }
.disclaimer-small { font-size: 0.8rem; color: var(--ink-muted); margin-top: 0.75rem; }

/* ===== TOOL PAGE ===== */
.tool-page { padding: 2rem 0 5rem; }
.tool-header { margin-bottom: 2.5rem; }
.tool-header h1 { margin-bottom: 0.75rem; }
.tool-intro { font-size: 1.1rem; max-width: 680px; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--ink-muted); }
.tool-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: flex-start; }

/* Calculator Card */
.calculator-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.calculator-card h2 { margin-bottom: 1.5rem; }
.calc-section { margin-bottom: 2rem; }
.calc-section h2 { font-size: 1.2rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.exp-group { margin-bottom: 1.5rem; }
.exp-group h3 { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.75rem; font-weight: 600; }
.input-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.input-row label { color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.input-wrap { display: flex; align-items: center; gap: 0.4rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.75rem; min-width: 140px; font-size: 0.9rem; color: var(--ink-muted); }
.input-wrap input, .input-row input, .input-row select { background: none; border: none; outline: none; width: 100%; font-family: var(--font-body); font-size: 0.9rem; color: var(--ink); }
.input-row select, .input-row > select { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.75rem; font-size: 0.9rem; color: var(--ink); flex: 1; max-width: 280px; }
.expense-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* Results Card */
.results-card { background: var(--surface); border: 2px solid var(--green); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 2rem; }
.results-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.result-box { background: var(--surface-2); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.result-box.highlight { background: var(--green-light); }
.result-box span { display: block; font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.result-box strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }

/* Bar Chart */
.bar-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.bar-label { min-width: 140px; font-size: 0.85rem; color: var(--ink-soft); }
.bar-track { flex: 1; height: 10px; background: var(--surface-3); border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--green-dark)); border-radius: 10px; transition: width 0.5s ease; }
.bar-amt { min-width: 120px; font-size: 0.82rem; color: var(--ink-muted); }

/* Savings Tips Result */
.savings-tips-result h3 { margin-bottom: 1rem; }
.tip-item { background: var(--surface-2); border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; padding: 0.75rem 1rem; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.tip-item a { color: var(--green-dark); }

/* Sidebar */
.tool-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.sidebar-card h3 { font-size: 1rem; margin-bottom: 1rem; }
.sticky-sidebar { position: sticky; top: 80px; }
.sidebar-affiliate { border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1rem; }
.sidebar-affiliate:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-affiliate strong { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--ink); }
.sidebar-affiliate p { font-size: 0.82rem; margin-bottom: 0.5rem; }
.sidebar-bonus { display: block; font-size: 0.8rem; color: var(--green-dark); font-weight: 600; margin-bottom: 0.5rem; }
.related-tools { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.related-tools a { color: var(--ink-soft); font-size: 0.9rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); display: block; }
.related-tools a:hover { color: var(--green-dark); text-decoration: none; }

/* SEO Content */
.seo-content { max-width: 760px; padding: 3rem 0; border-top: 1px solid var(--border); margin-top: 2rem; }
.seo-content h2 { margin-bottom: 1rem; }
.seo-content h3 { margin: 1.5rem 0 0.5rem; }

/* Subscription Tool */
.sub-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.sub-controls h2 { margin-bottom: 0; }
.quick-add-section { margin-bottom: 1.5rem; }
.quick-add-label { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 0.5rem; }
.quick-add-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 100px; padding: 0.3rem 0.75rem; font-size: 0.82rem; cursor: pointer; transition: var(--transition); }
.chip:hover { background: var(--green-light); border-color: var(--green); color: var(--green-dark); }
.sub-row-header { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 40px; gap: 0.5rem; padding: 0.5rem 0; font-size: 0.8rem; color: var(--ink-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem; }
.sub-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 40px; gap: 0.5rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--surface-2); }
.sub-row input, .sub-row select { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.4rem 0.6rem; font-size: 0.85rem; width: 100%; }
.sub-row .input-wrap { min-width: unset; padding: 0.3rem 0.5rem; }
.remove-btn { background: none; border: none; color: var(--ink-muted); cursor: pointer; font-size: 1rem; padding: 0.25rem; border-radius: 4px; }
.remove-btn:hover { color: var(--red); background: #fff5f5; }
.sub-total-bar { display: flex; gap: 2rem; background: var(--surface-2); border-radius: var(--radius); padding: 1rem 1.5rem; margin: 1rem 0; flex-wrap: wrap; }
.sub-total-item { font-size: 0.9rem; }
.sub-total-item span { color: var(--ink-muted); }
.sub-total-item strong { margin-left: 0.4rem; font-size: 1rem; color: var(--ink); }
.sub-total-item.cut strong { color: var(--green-dark); }

/* Analysis */
.analysis-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.as-item { background: var(--surface-2); border-radius: var(--radius); padding: 1rem; text-align: center; }
.as-item span { display: block; font-size: 0.78rem; color: var(--ink-muted); margin-bottom: 0.3rem; }
.as-item strong { font-family: var(--font-display); font-size: 1.2rem; }
.as-item.green strong { color: var(--green-dark); }
.cancel-list, .rarely-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.cancel-list li, .rarely-list li { background: var(--surface-2); padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.9rem; }
.cancel-list a { color: var(--green-dark); margin-left: 0.75rem; font-size: 0.82rem; }

/* Bill Script */
.script-step { display: flex; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.script-step:last-child { border-bottom: none; }
.step-num { background: var(--green); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.step-body h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.step-body p { font-size: 0.92rem; margin-bottom: 0; }
.script-tip { background: var(--green-light); border-left: 3px solid var(--green); padding: 0.75rem 1rem; border-radius: 0 8px 8px 0; font-size: 0.9rem; margin-bottom: 1.5rem; }
.script-actions { display: flex; gap: 0.75rem; margin: 1.5rem 0; }
.success-rates { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.75rem; }
.rate-row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 0.35rem 0; border-bottom: 1px solid var(--surface-3); }
.rate-note { font-size: 0.78rem; color: var(--ink-muted); }

/* Savings goal */
.benchmarks { display: flex; flex-direction: column; gap: 0.4rem; }
.bench-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.35rem 0; border-bottom: 1px solid var(--surface-3); }
.interest-note { background: var(--green-light); border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.9rem; margin-top: 1rem; }
.timeline-chart { margin: 1.5rem 0; }
.tl-label { min-width: 80px; font-size: 0.82rem; color: var(--ink-muted); }
.tl-val { min-width: 160px; font-size: 0.82rem; color: var(--ink-soft); }
.timeline-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }

/* Grocery */
.fact-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.fact-list li { font-size: 0.88rem; color: var(--ink-soft); padding: 0.4rem 0; border-bottom: 1px solid var(--surface-3); }
.saving-opp { background: var(--surface-2); border-radius: var(--radius); padding: 1rem; margin-bottom: 0.75rem; }
.so-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.so-label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.so-tip { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 0; }

/* ===== GUIDE PAGE ===== */
.guide-page { padding: 2rem 0 5rem; }
.guide-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: flex-start; }
.guide-header { margin-bottom: 2rem; }
.guide-header h1 { margin-bottom: 0.75rem; }
.guide-intro { font-size: 1.1rem; max-width: 620px; margin-bottom: 1.5rem; }
.guide-toc { background: var(--surface-2); border-radius: var(--radius); padding: 1.25rem; border-left: 4px solid var(--green); }
.guide-toc strong { display: block; margin-bottom: 0.75rem; font-size: 0.9rem; }
.guide-toc ol { padding-left: 1.25rem; }
.guide-toc li { font-size: 0.9rem; margin-bottom: 0.4rem; }
.guide-body h2 { margin: 2rem 0 1rem; padding-top: 1rem; }
.guide-body h3 { margin: 1.5rem 0 0.5rem; }
.guide-body ul, .guide-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.guide-body li { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.guide-stat { background: var(--green-light); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.95rem; margin: 1.5rem 0; color: var(--ink-soft); }
.guide-tool-promo { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.95rem; margin: 1.5rem 0; }
.guide-tool-promo span { color: var(--ink-muted); margin-right: 0.4rem; }
.guide-affiliate { display: flex; gap: 1.5rem; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.ga-info { flex: 1; }
.ga-info strong { display: block; font-size: 1rem; margin-bottom: 0.3rem; color: var(--ink); }
.ga-info p { font-size: 0.88rem; margin-bottom: 0; }
.ga-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; min-width: 160px; }
.ga-bonus { font-size: 0.8rem; color: var(--green-dark); font-weight: 600; text-align: right; }
.savings-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.savings-table th, .savings-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.savings-table th { background: var(--surface-2); font-family: var(--font-display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.savings-table tr.total-row td { background: var(--green-light); font-weight: 700; }
.guide-sidebar { }

/* ===== DEALS PAGE ===== */
.deals-group { margin-bottom: 3.5rem; }
.deals-group h2 { margin-bottom: 1.5rem; font-size: 1.5rem; }

/* ===== CTA BLOCK ===== */
.cta-block { background: var(--surface-2); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.cta-block h3 { margin-bottom: 0.5rem; }
.cta-block p { font-size: 0.9rem; margin-bottom: 1rem; }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta-aff { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.cta-aff:last-child { border-bottom: none; }
.cta-aff strong { font-size: 0.95rem; color: var(--ink); }
.cta-aff p { font-size: 0.85rem; margin: 0; flex: 1; }

/* ===== ERROR PAGE ===== */
.error-page { text-align: center; padding: 8rem 2rem; }
.error-page h1 { font-size: 6rem; color: var(--green); margin-bottom: 0.5rem; }
.error-page h2 { margin-bottom: 1rem; }
.error-page p { font-size: 1.1rem; margin-bottom: 2rem; }
.error-links { display: flex; gap: 1rem; justify-content: center; }

/* ===== FOOTER ===== */
.site-footer { background: var(--ink); color: #fff; padding: 4rem 0 0; margin-top: 4rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem 3rem; display: grid; grid-template-columns: 1.5fr 2fr; gap: 4rem; }
.footer-brand .logo { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.85rem; max-width: 320px; }
.disclaimer { font-size: 0.78rem !important; color: rgba(255,255,255,0.4) !important; margin-top: 1rem !important; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; opacity: 0.6; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: var(--transition); }
.footer-col a:hover { color: var(--green); text-decoration: none; }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; padding: 1.5rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.8rem; margin-bottom: 0; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.seo-note { font-size: 0.75rem !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { display: none; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .affiliate-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .expense-categories { grid-template-columns: 1fr; }
  .tool-layout { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 1rem; border-radius: 8px; }
  .tools-grid { grid-template-columns: 1fr; }
  .affiliate-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
  .results-summary { grid-template-columns: 1fr; }
  .analysis-summary { grid-template-columns: repeat(2, 1fr); }
  .sub-row-header { display: none; }
  .sub-row { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .input-row { flex-direction: column; align-items: flex-start; }
  .input-row select { max-width: 100%; width: 100%; }
  .ga-info, .cta-aff { flex-direction: column; }
  .ga-cta { align-items: flex-start; }
  .guide-affiliate { flex-direction: column; }
}
