/* ═══════════════════════════════════════════════════════════
   DoorTaxCalc — style.css  ·  redesign v2
   Warm charcoal · amber-gold · Bricolage Grotesque
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── Backgrounds ── */
  --bg:          #0e0c09;
  --bg2:         #0b0908;
  --surface:     #181510;
  --surface2:    #131109;

  /* ── Borders ── */
  --border:      #2e2820;
  --border2:     #3e3828;

  /* ── Text ── */
  --text:        #f0e8d8;
  --text-muted:  #b0a088;
  --muted:       #6e5f4a;

  /* ── Accent: warm amber-gold ── */
  --accent:      #f5a623;
  --accent-dark: #d48f1a;
  --accent-dim:  rgba(245,166,35,.1);
  --accent-glow: rgba(245,166,35,.22);

  /* ── Semantic ── */
  --green:       #4ade80;
  --green-dim:   rgba(74,222,128,.1);
  --red:         #f87171;
  --red-dim:     rgba(248,113,113,.1);

  /* ── Typography ── */
  --font-display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --font:         'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

  /* ── Shape ── */
  --radius:    8px;
  --radius-lg: 14px;

  /* ── Shadows ── */
  --shadow:    0 4px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 60px rgba(0,0,0,.7);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::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.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,12,9,.93);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 62px;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  color: var(--text); text-decoration: none;
  letter-spacing: -.015em;
}
.logo-icon {
  width: 22px; height: 22px; color: var(--accent); flex-shrink: 0;
  stroke: currentColor; fill: none;
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  transition: color .2s; font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--accent); color: #1a0e00 !important;
  padding: 7px 18px; border-radius: 7px; font-weight: 700; font-size: 13px;
  letter-spacing: .02em;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(245,166,35,.22);
}
.btn-nav:hover {
  background: var(--accent-dark); text-decoration: none !important;
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,166,35,.38);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(245,166,35,.09) 0%, transparent 68%),
    radial-gradient(ellipse 40% 30% at 85% 100%, rgba(245,166,35,.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(245,166,35,.13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 85%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 58px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(15px, 2.5vw, 18px); color: var(--text-muted);
  max-width: 580px; margin: 0 auto 28px; line-height: 1.65; font-weight: 400;
}
.trust-badges {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px;
}
.badge {
  background: rgba(245,166,35,.08); border: 1px solid rgba(245,166,35,.22);
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px; letter-spacing: .03em;
}
.social-proof {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted); margin-top: 10px;
}
.social-proof::before {
  content: '';
  display: inline-block; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
  animation: pulse-dot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
.social-proof span { color: var(--accent); font-weight: 700; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.65); }
}

/* ── CALCULATOR SECTION ──────────────────────────────────── */
.section-calc { padding: 20px 0 88px; }
.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: 30px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.calc-form-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 60%, transparent 100%);
}
.card-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; margin-bottom: 26px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
  letter-spacing: -.015em;
}

/* Fields */
.field-group { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label {
  display: block; font-size: 11px; font-weight: 700; color: var(--text-muted);
  margin-bottom: 7px; letter-spacing: .07em; 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: 13px; color: var(--muted);
  font-size: 15px; pointer-events: none; z-index: 1;
}

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, background .15s;
  appearance: none; -webkit-appearance: none;
}
input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  border-color: var(--accent); background: #0c0a07;
  box-shadow: 0 0 0 3px var(--accent-dim);
}
input[type="number"]:hover:not(:focus),
input[type="text"]:hover:not(:focus),
input[type="email"]:hover:not(:focus),
select:hover:not(:focus) {
  border-color: var(--border2);
}
.input-wrap input[type="number"] { padding-left: 30px; }

.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='%236e5f4a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 34px; cursor: pointer;
}

.error-banner {
  background: var(--red-dim); 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: #1a0e00; font-weight: 800; font-size: 15px;
  border: none; border-radius: var(--radius); padding: 14px 24px; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; letter-spacing: .01em; font-family: var(--font);
  box-shadow: 0 2px 8px rgba(245,166,35,.25);
}
.btn-primary:hover {
  background: var(--accent-dark); transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,166,35,.38);
  text-decoration: none;
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(245,166,35,.2); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #e8920c 100%);
  color: #1a0e00; font-weight: 800; font-size: 15px;
  border: none; border-radius: var(--radius); padding: 14px 24px; cursor: pointer;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); letter-spacing: .01em;
  box-shadow: 0 2px 12px rgba(245,166,35,.3);
}
.btn-accent:hover { opacity: .93; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,166,35,.42); }

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

.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; font-family: var(--font);
}
.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; font-family: var(--font);
}
.free-badge {
  text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px;
}

.loader {
  width: 18px; height: 18px;
  border: 2px solid rgba(26,14,0,.25); border-top-color: #1a0e00;
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESULTS CARD ────────────────────────────────────────── */
.results-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  animation: revealResults .45s cubic-bezier(.22,.68,0,1.12) both;
}
@keyframes revealResults {
  from { opacity: 0; transform: translateY(22px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* Summary grid */
.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;
  transition: border-color .2s;
}
.summary-card.summary-main {
  background: linear-gradient(135deg, rgba(245,166,35,.1) 0%, rgba(245,166,35,.04) 100%);
  border-color: rgba(245,166,35,.28); grid-column: span 2;
  box-shadow: inset 0 1px 0 rgba(245,166,35,.1), 0 0 0 0 transparent;
}
.summary-label {
  font-size: 10px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.summary-value {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px); font-weight: 800;
  color: var(--text); letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.summary-card.summary-main .summary-value {
  font-size: clamp(30px, 5.5vw, 46px);
}
.summary-value.accent { color: var(--accent); }
.summary-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Breakdown */
.breakdown-section { margin-bottom: 28px; }
.breakdown-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 10px;
}
.breakdown-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; overflow: hidden;
  transition: border-color .2s;
}
.breakdown-item:hover { border-color: var(--border2); }
.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; color: var(--text-muted);
}
.breakdown-item summary::-webkit-details-marker { display: none; }
.breakdown-item summary:hover { background: rgba(255,255,255,.03); color: var(--text); }
.breakdown-item summary::after {
  content: '›'; font-size: 18px; color: var(--muted);
  transform: rotate(90deg); transition: transform .22s, color .22s; flex-shrink: 0;
}
.breakdown-item[open] summary::after { transform: rotate(-90deg); color: var(--accent); }
.breakdown-item[open] summary { border-bottom: 1px solid var(--border); color: var(--text); }

.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; color: var(--text-muted); }
.breakdown-table td:last-child {
  text-align: right; font-variant-numeric: tabular-nums;
  font-weight: 600; color: var(--text);
}
.breakdown-table .total-row td {
  font-weight: 700; color: var(--text);
  background: rgba(245,166,35,.05);
}
.breakdown-table .total-row td:last-child { color: var(--accent); }
.breakdown-table .deduct-row td:last-child { color: var(--green); }

/* Bracket table */
.bracket-table-wrap { padding: 0 16px 14px; }
.bracket-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.bracket-table th {
  text-align: left; font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
  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 schedule */
.quarterly-section { margin-bottom: 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.quarterly-section h3 {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  margin-bottom: 6px; letter-spacing: -.015em;
}
.quarterly-note { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.55; }
.quarterly-table {
  width: 100%; min-width: 380px; 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: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
}
.quarterly-table td { padding: 12px 14px; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.quarterly-table tr:hover td { background: rgba(245,166,35,.03); }
.quarterly-table .q-amount {
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  color: var(--accent); letter-spacing: -.02em;
}
.quarterly-table .q-due { font-weight: 600; color: var(--text); }

/* Affiliate strip */
.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, transform .15s;
}
.affiliate-card:hover {
  border-color: rgba(245,166,35,.35); background: rgba(245,166,35,.04);
  text-decoration: none; transform: translateX(2px);
}
.aff-icon { font-size: 22px; flex-shrink: 0; }
.aff-text { display: flex; flex-direction: column; gap: 2px; }
.aff-text strong { font-size: 13px; font-weight: 700; color: var(--text); }
.aff-text span { font-size: 12px; color: var(--muted); }

/* PDF export */
.export-section { margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }

.pdf-locked-note {
  background: linear-gradient(135deg, rgba(245,166,35,.09) 0%, rgba(245,166,35,.04) 100%);
  border: 1px solid rgba(245,166,35,.28); border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.pdf-locked-note span {
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.pdf-locked-note .link-btn {
  font-size: 13px; font-weight: 700; white-space: nowrap;
}

.export-status { font-size: 13px; color: var(--accent); font-weight: 600; }

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

/* ── HOW IT WORKS ────────────────────────────────────────── */
.section-how { padding: 88px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px); font-weight: 800;
  text-align: center; letter-spacing: -.03em; margin-bottom: 8px;
  line-height: 1.15;
}
.section-sub {
  text-align: center; color: var(--text-muted); font-size: 16px; margin-bottom: 52px;
}
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.step-card:hover { border-color: rgba(245,166,35,.28); transform: translateY(-3px); }
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.step-card:hover::before { transform: scaleX(1); }
.step-num {
  font-family: var(--font-display); font-size: 60px; font-weight: 900;
  color: rgba(245,166,35,.1); line-height: 1; margin-bottom: 12px;
  user-select: none; letter-spacing: -.04em;
}
.step-card h3 {
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -.015em;
}
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── WHY FREE ────────────────────────────────────────────── */
.section-why { padding: 40px 0 88px; }
.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: 36px; flex-shrink: 0; }
.why-text h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  margin-bottom: 10px; letter-spacing: -.02em;
}
.why-text p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ── PRICING ─────────────────────────────────────────────── */
.section-pricing {
  padding: 88px 0;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(245,166,35,.04) 0%, transparent 70%),
              var(--surface2);
}
.pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  max-width: 720px; margin: 0 auto 52px;
}
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; position: relative;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.pricing-card-pro {
  border-color: rgba(245,166,35,.32);
  background: linear-gradient(160deg, rgba(245,166,35,.08) 0%, rgba(245,166,35,.02) 50%, transparent 100%);
  box-shadow: inset 0 1px 0 rgba(245,166,35,.1);
}
.pricing-badge {
  display: inline-block; background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 14px;
}
.pricing-badge-pro {
  background: rgba(245,166,35,.15); border-color: rgba(245,166,35,.38); color: var(--accent);
}
.pricing-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -.02em;
}
.price {
  font-family: var(--font-display); font-size: 46px; font-weight: 900;
  letter-spacing: -.04em; margin-bottom: 4px; color: var(--text);
}
.price-period { font-size: 20px; font-weight: 400; color: var(--muted); }
.price-desc { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.pricing-features {
  list-style: none; margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 9px;
}
.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; font-family: var(--font);
}
.email-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* License section */
.license-section { max-width: 520px; margin: 0 auto; text-align: center; }
.license-section h3 {
  font-size: 15px; font-weight: 600; margin-bottom: 14px; 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: 12px; padding: 10px 14px; outline: none;
  transition: border-color .2s; letter-spacing: .05em;
}
.license-input:focus { border-color: var(--accent); }
.license-status { font-size: 13px; min-height: 20px; font-weight: 500; }

/* ── FAQ ─────────────────────────────────────────────────── */
.section-faq { padding: 88px 0; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--border2); }
.faq-item[open] { border-color: rgba(245,166,35,.22); }
.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; color: var(--text-muted);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255,255,255,.025); color: var(--text); }
.faq-item summary::after {
  content: '+'; font-size: 22px; color: var(--accent); font-weight: 300;
  flex-shrink: 0; margin-left: 14px; line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); color: var(--text); }
.faq-item p { padding: 14px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.faq-item p strong { color: var(--text); }
.faq-item p em { color: var(--accent); font-style: normal; font-weight: 600; }
.faq-item p br + strong { display: inline; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--surface2); border-top: 1px solid var(--border);
  padding: 52px 0 32px;
}
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.footer-logo {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  display: block; margin-bottom: 8px; letter-spacing: -.015em; color: var(--text);
}
.footer-desc { font-size: 13px; color: var(--muted); max-width: 300px; line-height: 1.55; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  transition: color .2s; font-weight: 500;
}
.footer-links a:hover { color: var(--text); }
.footer-legal {
  font-size: 12px; color: var(--muted); line-height: 1.65;
  border-top: 1px solid var(--border); padding-top: 18px;
}
.footer-legal em { opacity: .65; font-style: normal; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(14,12,9,.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .22s 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: 38px; max-width: 600px; width: 100%;
  position: relative; box-shadow: var(--shadow-lg);
  animation: slideUp .28s cubic-bezier(.22,.68,0,1.1) both;
}
@keyframes slideUp {
  from { transform: translateY(24px) scale(.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); width: 30px; height: 30px; border-radius: 50%;
  font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-icon {
  width: 48px; height: 48px; margin-bottom: 16px;
  background: var(--accent-dim); border: 1px solid rgba(245,166,35,.22);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.modal-icon svg {
  width: 24px; height: 24px; color: var(--accent);
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.modal-title {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  margin-bottom: 6px; letter-spacing: -.025em;
}
.modal-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 26px; line-height: 1.55; }
.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;
  transition: border-color .2s;
}
.modal-plan-accent {
  border-color: rgba(245,166,35,.3);
  background: linear-gradient(135deg, rgba(245,166,35,.07), transparent);
}
.modal-plan-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--accent); background: rgba(245,166,35,.15); border: 1px solid rgba(245,166,35,.3);
  padding: 2px 8px; border-radius: 20px; width: fit-content;
}
.modal-plan-name { font-size: 16px; font-weight: 700; }
.modal-plan-price {
  font-family: var(--font-display); font-size: 26px; font-weight: 900; letter-spacing: -.025em;
}
.modal-plan-price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.modal-features {
  list-style: none; display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; color: var(--text-muted); margin-bottom: 4px;
}
.modal-features li { padding-left: 16px; position: relative; }
.modal-features li::before {
  content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.modal-email {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 13px;
  padding: 8px 12px; outline: none; margin-bottom: 6px; font-family: var(--font);
}
.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 26px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; animation: slideToast .3s ease;
  white-space: nowrap; box-shadow: var(--shadow-lg); font-family: var(--font);
}
@keyframes slideToast {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.toast-success {
  background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.38);
  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 FIXES (≤599px) ───────────────────────────────── */
@media (max-width: 599px) {
  /* Nav */
  .nav-links { gap: 12px; }
  .nav-links a:not(.btn-nav):not([href="/blog/"]) { display: none; }

  /* Hero */
  .hero { padding: 40px 0 30px; }

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

  /* Cards */
  .calc-form-card,
  .results-card  { padding: 20px 16px; }
  .why-card      { flex-direction: column; gap: 12px; padding: 24px 20px; }
  .step-card     { padding: 22px 18px; }
  .pricing-card  { padding: 24px 20px; }
  .modal-box     { padding: 28px 20px; }

  /* Fields */
  .field-row { grid-template-columns: 1fr; }

  /* Modal */
  .modal-plans { grid-template-columns: 1fr; }

  /* License */
  .license-row   { flex-wrap: wrap; }
  .license-input { flex-basis: 100%; }

  /* PDF locked: stack on mobile */
  .pdf-locked-note { flex-direction: column; gap: 10px; }

  /* Toast */
  .toast {
    left: 14px; right: 14px; bottom: 14px;
    transform: none; white-space: normal; text-align: center;
  }
}

/* ── EXTRA SMALL (≤380px) ────────────────────────────────── */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card.summary-main { grid-column: unset; }
  .nav-logo span { font-size: 16px; }
}
