/* ═══════════════════════════════════════════════════════════
   DoorTaxCalc — style.css
   Design: dark navy + green accent, financial tool aesthetic
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:          #0a0f1e;
  --bg2:         #07091a;
  --surface:     #111827;
  --surface2:    #0f172a;
  --border:      #1f2937;
  --border2:     #2a3650;
  --text:        #f8fafc;
  --text-muted:  #94a3b8;
  --muted:       #64748b;
  --accent:      #34d399;
  --accent-dark: #059669;
  --accent-glow: rgba(52,211,153,.15);
  --red:         #f87171;

  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.6);
  --font:      'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,15,30,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none;
}
.logo-icon { font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--accent); color: #022c22 !important;
  padding: 6px 16px; border-radius: 6px; font-weight: 600;
  transition: background .2s, transform .1s;
}
.btn-nav:hover { background: var(--accent-dark); text-decoration: none !important; transform: translateY(-1px); }

/* HERO */
.hero {
  padding: 64px 0 40px; text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(52,211,153,.07) 0%, transparent 70%);
}
.hero-badge {
  display: inline-block;
  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3);
  color: var(--accent); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.15; margin-bottom: 16px;
}
.hero-sub {
  font-size: clamp(15px, 2.5vw, 19px); color: var(--text-muted);
  max-width: 600px; margin: 0 auto 24px; line-height: 1.5;
}
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
.badge {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  padding: 5px 14px; border-radius: 20px;
}
.social-proof { font-size: 13px; color: var(--muted); margin-top: 8px; }
.social-proof span { color: var(--accent); font-weight: 700; }

/* CALC SECTION */
.section-calc { padding: 16px 0 80px; }
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }

/* Form card */
.calc-form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow);
}
.card-title {
  font-size: 18px; font-weight: 700; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.field-group { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 6px; letter-spacing: .02em; text-transform: uppercase;
}
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-prefix { position: absolute; left: 12px; color: var(--muted); font-size: 15px; pointer-events: none; }

input[type="number"], input[type="text"], input[type="email"], select {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: var(--font);
  font-size: 15px; padding: 11px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
input[type="number"]:focus, input[type="text"]:focus, input[type="email"]:focus, select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.input-wrap input[type="number"] { padding-left: 28px; }
.field-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.field-hint strong { color: var(--text-muted); }

select {
  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 d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px; cursor: pointer;
}

.error-banner {
  background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.3);
  border-radius: var(--radius); color: var(--red);
  font-size: 14px; padding: 10px 14px; margin-bottom: 16px;
}

/* Buttons */
.btn-primary {
  background: var(--accent); color: #022c22; font-weight: 700; font-size: 16px;
  border: none; border-radius: var(--radius); padding: 13px 24px; cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(52,211,153,.3); }
.btn-primary:active { transform: translateY(0); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #10b981); color: #022c22;
  font-weight: 700; font-size: 16px; border: none; border-radius: var(--radius);
  padding: 13px 24px; cursor: pointer;
  transition: opacity .2s, transform .1s, box-shadow .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-accent:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 24px rgba(52,211,153,.4); }

.btn-secondary {
  background: transparent; color: var(--accent); border: 1px solid var(--accent);
  font-weight: 600; font-size: 14px; border-radius: var(--radius); padding: 10px 20px;
  cursor: pointer; transition: background .2s, color .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-secondary:hover { background: var(--accent); color: #022c22; }

.btn-ghost {
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  font-size: 13px; border-radius: var(--radius); padding: 9px 16px;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }

.btn-full { width: 100%; }

.link-btn { background: none; border: none; color: var(--accent); font-size: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

.free-badge { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }

.loader {
  width: 18px; height: 18px; border: 2px solid rgba(2,44,34,.3); border-top-color: #022c22;
  border-radius: 50%; animation: spin .6s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RESULTS */
.results-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  animation: fadeInUp .4s ease-out;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
.results-header h2 { font-size: 18px; font-weight: 700; }
.tip-label { font-size: 11px; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; }

.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.summary-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.summary-card.summary-main {
  background: linear-gradient(135deg, rgba(52,211,153,.1), rgba(52,211,153,.05));
  border-color: rgba(52,211,153,.25); grid-column: span 2;
}
.summary-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.summary-value { font-size: clamp(22px, 4vw, 32px); font-weight: 800; color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.summary-value.accent { color: var(--accent); }
.summary-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.breakdown-section { margin-bottom: 28px; }
.breakdown-title { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.breakdown-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.breakdown-item summary {
  padding: 12px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; list-style: none;
  background: var(--surface2); user-select: none; transition: background .15s;
}
.breakdown-item summary:hover { background: rgba(255,255,255,.03); }
.breakdown-item summary::after { content: '›'; font-size: 18px; color: var(--muted); transform: rotate(90deg); transition: transform .2s; }
.breakdown-item[open] summary::after { transform: rotate(-90deg); }
.breakdown-item[open] summary { border-bottom: 1px solid var(--border); }

.breakdown-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.breakdown-table tr { border-bottom: 1px solid rgba(255,255,255,.04); }
.breakdown-table tr:last-child { border-bottom: none; }
.breakdown-table td { padding: 9px 16px; }
.breakdown-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.breakdown-table .total-row td { font-weight: 700; color: var(--text); background: rgba(52,211,153,.06); }
.breakdown-table .deduct-row td:last-child { color: var(--accent); }

.bracket-table-wrap { padding: 0 16px 12px; }
.bracket-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.bracket-table th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.bracket-table td { padding: 6px 10px; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,.04); }
.bracket-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.quarterly-section { margin-bottom: 28px; }
.quarterly-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.quarterly-note { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.quarterly-table { width: 100%; border-collapse: collapse; font-size: 13px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.quarterly-table th { background: var(--surface2); padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.quarterly-table td { padding: 11px 14px; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.quarterly-table tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.quarterly-table .q-amount { font-weight: 700; color: var(--accent); }
.quarterly-table .q-due { font-weight: 600; }

.affiliate-strip { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
.affiliate-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; color: var(--text);
  transition: border-color .2s, background .2s;
}
.affiliate-card:hover { border-color: var(--accent); background: rgba(52,211,153,.05); text-decoration: none; }
.aff-icon { font-size: 22px; flex-shrink: 0; }
.aff-text { display: flex; flex-direction: column; gap: 2px; }
.aff-text strong { font-size: 14px; font-weight: 700; }
.aff-text span { font-size: 12px; color: var(--muted); }

.export-section { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.pdf-locked-note { font-size: 13px; color: var(--muted); }
.export-status { font-size: 13px; color: var(--accent); }

.disclaimer { font-size: 12px; color: var(--muted); line-height: 1.5; padding-top: 16px; border-top: 1px solid var(--border); }

/* HOW IT WORKS */
.section-how { padding: 80px 0; }
.section-title { font-size: clamp(22px, 4vw, 36px); font-weight: 800; text-align: center; letter-spacing: -.02em; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--text-muted); font-size: 16px; margin-bottom: 48px; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.step-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; position: relative; overflow: hidden;
}
.step-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.step-num { font-size: 48px; font-weight: 900; color: rgba(52,211,153,.12); line-height: 1; margin-bottom: 12px; }
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* WHY FREE */
.section-why { padding: 40px 0 80px; }
.why-card { display: flex; align-items: flex-start; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.why-icon { font-size: 40px; flex-shrink: 0; }
.why-text h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.why-text p  { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* PRICING */
.section-pricing { padding: 80px 0; background: var(--surface2); }
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 720px; margin: 0 auto 48px; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.pricing-card-pro { border-color: rgba(52,211,153,.35); background: linear-gradient(135deg, rgba(52,211,153,.07), transparent); }
.pricing-badge { display: inline-block; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; }
.pricing-badge-pro { background: rgba(52,211,153,.15); border-color: rgba(52,211,153,.4); color: var(--accent); }
.pricing-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.price { font-size: 40px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 4px; }
.price-period { font-size: 18px; font-weight: 400; color: var(--muted); }
.price-desc { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.pricing-features { list-style: none; margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.pricing-features li { font-size: 14px; color: var(--text-muted); }
.email-field-wrap { margin-bottom: 12px; }
.email-input { width: 100%; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 14px; padding: 10px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.email-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.license-section { max-width: 500px; margin: 0 auto; text-align: center; }
.license-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--text-muted); }
.license-row { display: flex; gap: 8px; margin-bottom: 10px; }
.license-input { flex: 1; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: var(--font-mono); font-size: 13px; padding: 10px 14px; outline: none; transition: border-color .2s; }
.license-input:focus { border-color: var(--accent); }
.license-status { font-size: 13px; min-height: 20px; }

/* FAQ */
.section-faq { padding: 80px 0; }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; user-select: none; transition: background .15s; }
.faq-item summary:hover { background: rgba(255,255,255,.03); }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--accent); font-weight: 300; flex-shrink: 0; margin-left: 12px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item p { padding: 14px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.faq-item p strong { color: var(--text); }
.faq-item p em { color: var(--accent); font-style: normal; }

/* FOOTER */
.footer { background: var(--surface2); border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { font-size: 18px; font-weight: 700; display: block; margin-bottom: 6px; }
.footer-desc { font-size: 13px; color: var(--muted); max-width: 340px; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-legal { font-size: 12px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--border); padding-top: 16px; }
.footer-legal em { opacity: .7; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(7,9,26,.85); backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 36px; max-width: 580px; width: 100%; position: relative; box-shadow: var(--shadow-lg); animation: slideUp .25s ease; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); width: 28px; height: 28px; border-radius: 50%; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-icon { font-size: 36px; margin-bottom: 12px; }
.modal-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.modal-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.modal-plan { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.modal-plan-accent { border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.05); position: relative; }
.modal-plan-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); background: rgba(52,211,153,.15); border: 1px solid rgba(52,211,153,.3); padding: 2px 8px; border-radius: 20px; width: fit-content; }
.modal-plan-name { font-size: 16px; font-weight: 700; }
.modal-plan-price { font-size: 24px; font-weight: 900; }
.modal-plan-price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.modal-features { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.modal-email { width: 100%; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; padding: 8px 12px; outline: none; margin-bottom: 6px; }
.modal-email:focus { border-color: var(--accent); }
.modal-btn { width: 100%; padding: 10px 16px; font-size: 14px; }
.modal-foot { font-size: 13px; color: var(--muted); text-align: center; }

/* TOASTS */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; padding: 14px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 600; animation: slideToast .3s ease; white-space: nowrap; box-shadow: var(--shadow-lg); }
@keyframes slideToast { from { opacity: 0; transform: translateX(-50%) translateY(16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.toast-success { background: rgba(52,211,153,.15); border: 1px solid rgba(52,211,153,.4); color: var(--accent); }
.toast-neutral { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }

/* RESPONSIVE 640px+ */
@media (min-width: 640px) {
  .affiliate-strip { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* RESPONSIVE 1024px+ */
@media (min-width: 1024px) {
  .calc-grid { grid-template-columns: 420px 1fr; }
}

/* ── MOBILE RESPONSIVE FIXES ──────────────────────────────── */

/* Quarterly table: prevent horizontal page overflow */
.quarterly-section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.quarterly-table    { min-width: 380px; }

@media (max-width: 599px) {
  /* Nav: 4 links don't fit — hide anchor-only links, keep Blog + CTA */
  .nav-links { gap: 12px; }
  .nav-links a:not(.btn-nav):not([href="/blog/"]) { display: none; }

  /* Hero tighter on mobile */
  .hero { padding: 36px 0 24px; }

  /* Section vertical rhythm */
  .section-calc    { padding: 12px 0 48px; }
  .section-how,
  .section-faq     { padding: 48px 0; }
  .section-why     { padding: 24px 0 48px; }
  .section-pricing { padding: 48px 0; }
  .footer          { padding: 32px 0 24px; }
  .section-sub     { font-size: 15px; margin-bottom: 28px; }

  /* Reduce card padding so content isn't squeezed */
  .calc-form-card,
  .results-card  { padding: 20px 16px; }
  .why-card      { flex-direction: column; gap: 12px; padding: 24px 20px; }
  .step-card     { padding: 20px 18px; }
  .pricing-card  { padding: 24px 20px; }
  .modal-box     { padding: 28px 20px; }

  /* Stack filing status + state selects vertically */
  .field-row { grid-template-columns: 1fr; }

  /* Modal plans: single column on narrow screens */
  .modal-plans { grid-template-columns: 1fr; }

  /* License row: input fills full width, buttons below */
  .license-row   { flex-wrap: wrap; }
  .license-input { flex-basis: 100%; }

  /* Toast: anchor to screen edges, wrap long text */
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    transform: none;
    white-space: normal;
    text-align: center;
  }
}

/* Extra-small phones (≤380px) */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card.summary-main { grid-column: unset; }
}
