/* =========================================================
   QuickBiz Tax Tools — Global Stylesheet
   ========================================================= */

/* --- Variables ----------------------------------------- */
:root {
  --primary:        #1d4ed8;
  --primary-dark:   #1e3a8a;
  --primary-light:  #dbeafe;
  --primary-hover:  #1e40af;
  --teal:           #0d9488;
  --teal-light:     #ccfbf1;
  --success:        #059669;
  --success-light:  #d1fae5;
  --warning:        #d97706;
  --warning-light:  #fef3c7;
  --danger:         #dc2626;
  --danger-light:   #fee2e2;
  --bg:             #f8fafc;
  --surface:        #ffffff;
  --border:         #e2e8f0;
  --border-dark:    #cbd5e1;
  --text:           #0f172a;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  --font:           system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius:         8px;
  --radius-lg:      12px;
  --radius-xl:      16px;
  --shadow-sm:      0 1px 2px rgba(0,0,0,.05);
  --shadow:         0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:      0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --container:      1240px;
  --nav-h:          64px;
}

/* --- Reset --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
main { flex: 1; }

/* --- Typography ---------------------------------------- */
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.375rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.125rem; color: var(--text-muted); line-height: 1.75; }

/* --- Layout -------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-lg { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 600px; margin: 0.75rem auto 0; color: var(--text-muted); font-size: 1.0625rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* --- Navigation ---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  white-space: nowrap;
  text-decoration: none;
}
.site-logo .logo-mark {
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color .15s, background .15s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); text-decoration: none; }
.dropdown { position: relative; }
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.dropdown-toggle:hover, .dropdown.open .dropdown-toggle { color: var(--primary); background: var(--primary-light); }
.dropdown-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 0.5rem;
  display: none;
  z-index: 200;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .12s;
}
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.dropdown-menu .menu-icon { font-size: 1rem; width: 20px; text-align: center; }
.dropdown-divider { height: 1px; background: var(--border); margin: 0.4rem 0; }
.nav-cta {
  margin-left: auto;
  padding: 0.45rem 1.1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s;
}
.nav-cta:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  color: var(--text);
  cursor: pointer;
}
.nav-hamburger svg { width: 24px; height: 24px; }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 100vw);
  height: 100%;
  background: #fff;
  padding: 1.25rem;
  overflow-y: auto;
}
.mobile-nav-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.mobile-nav-close button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.mobile-nav-section { margin-bottom: 1.5rem; }
.mobile-nav-section h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.mobile-nav-section a {
  display: block;
  padding: 0.5rem 0.25rem;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

/* --- Buttons ------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-light); text-decoration: none; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #0f766e; color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border-dark); }
.btn-ghost:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; color: #fff; text-decoration: none; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* --- Cards --------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 1.5rem; }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg); }

/* Tool/Calculator cards */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none;
  display: block;
  color: var(--text);
}
.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}
.tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.icon-blue { background: var(--primary-light); }
.icon-teal { background: var(--teal-light); }
.icon-green { background: var(--success-light); }
.icon-amber { background: var(--warning-light); }
.tool-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.tool-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.5; }
.tool-card .badge { margin-top: 0.75rem; }

/* --- Badges -------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-blue { background: var(--primary-light); color: var(--primary); }
.badge-teal { background: var(--teal-light); color: var(--teal); }
.badge-green { background: var(--success-light); color: var(--success); }
.badge-amber { background: var(--warning-light); color: var(--warning); }
.badge-red { background: var(--danger-light); color: var(--danger); }

/* --- Alerts / Callouts --------------------------------- */
.alert {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border-left: 4px solid;
  font-size: 0.9rem;
}
.alert-info { background: var(--primary-light); border-color: var(--primary); color: #1e3a8a; }
.alert-warning { background: var(--warning-light); border-color: var(--warning); color: #92400e; }
.alert-success { background: var(--success-light); border-color: var(--success); color: #064e3b; }
.alert-danger { background: var(--danger-light); border-color: var(--danger); color: #7f1d1d; }
.alert strong { display: block; margin-bottom: 0.25rem; }

/* --- Forms --------------------------------------------- */
.form-group { margin-bottom: 1.25rem; }
.form-group:last-child { margin-bottom: 0; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-control {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.form-control.with-prefix { padding-left: 2.25rem; }
.form-control.with-suffix { padding-right: 2.5rem; }
.input-wrapper { position: relative; }
.input-prefix, .input-suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: none;
}
.input-prefix { left: 0.75rem; }
.input-suffix { right: 0.75rem; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px; padding-right: 2.5rem; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.checkbox-group { display: flex; align-items: flex-start; gap: 0.6rem; }
.checkbox-group input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; cursor: pointer; }
.checkbox-group label { font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }

/* --- Calculator Layout --------------------------------- */
.calc-page { padding: 2.5rem 0 4rem; }
.calc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.calc-breadcrumb a { color: var(--text-muted); }
.calc-breadcrumb a:hover { color: var(--primary); }
.calc-breadcrumb span { color: var(--text-light); }
.calc-title-area { margin-bottom: 2rem; }
.calc-title-area h1 { margin-bottom: 0.5rem; }
.calc-title-area p { color: var(--text-muted); font-size: 1.0625rem; max-width: 640px; }
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.calc-layout.wide { grid-template-columns: 3fr 2fr; }
.calc-form-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.calc-form-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.calc-form-header h2 { font-size: 1.125rem; margin: 0; }
.calc-form-header .header-icon { font-size: 1.5rem; }
.calc-form-body { padding: 1.5rem; }
.calc-submit {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
}
.calc-results-panel { position: sticky; top: 80px; }
.results-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.results-header {
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  color: #fff;
  padding: 1.5rem;
}
.results-header h3 { font-size: 1rem; opacity: 0.85; margin-bottom: 0.5rem; }
.results-main-value {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.results-sub { font-size: 0.875rem; opacity: 0.8; margin-top: 0.4rem; }
.results-body { padding: 1.25rem 1.5rem; }
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.result-row:last-child { border-bottom: none; }
.result-row .label { color: var(--text-muted); }
.result-row .value { font-weight: 600; }
.result-row .value.positive { color: var(--success); }
.result-row .value.negative { color: var(--danger); }
.result-row .value.highlight { color: var(--primary); font-size: 1rem; }
.results-placeholder {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-light);
}
.results-placeholder .placeholder-icon { font-size: 3rem; margin-bottom: 1rem; }
.results-placeholder p { font-size: 0.9rem; }
.results-disclaimer {
  padding: 1rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* --- Tax Info Callout ---------------------------------- */
.tax-callout {
  background: var(--primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}
.tax-callout h4 { font-size: 0.875rem; color: var(--primary); margin-bottom: 0.4rem; }
.tax-callout ul { list-style: none; margin: 0; }
.tax-callout ul li {
  font-size: 0.8rem;
  color: #1e40af;
  padding: 0.2rem 0;
  display: flex;
  gap: 0.4rem;
}
.tax-callout ul li::before { content: "•"; color: var(--primary); }

/* Accordion (FAQ) */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: background .15s;
}
.accordion-trigger:hover { background: var(--bg); }
.accordion-trigger .chevron { transition: transform .25s; font-size: 0.75rem; color: var(--text-muted); }
.accordion-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.accordion-content.open { max-height: 500px; }
.accordion-content-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.accordion-content-inner ul { list-style: disc; margin-left: 1.25rem; }
.accordion-content-inner ul li { margin-bottom: 0.4rem; }

/* --- Hero Section -------------------------------------- */
.hero {
  background: linear-gradient(160deg, #eff6ff 0%, #f0fdf4 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231d4ed8' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bfdbfe;
  border-radius: 100px;
  padding: 0.3rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero h1 { max-width: 750px; margin: 0 auto 1rem; }
.hero .lead { max-width: 560px; margin: 0 auto 2rem; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 1.75rem; font-weight: 800; color: var(--primary); line-height: 1; }
.hero-stat .label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; }

/* --- Stats Bar ----------------------------------------- */
.stats-bar {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 0;
}
.stats-bar-inner {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
}
.stat-item .stat-check { font-size: 1rem; }

/* --- Feature Section ----------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.feature-item { text-align: center; padding: 1.5rem; }
.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-item h4 { font-size: 0.9375rem; margin-bottom: 0.4rem; }
.feature-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* --- Tax Calendar ------------------------------------- */
.tax-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.tax-date-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-left: 4px solid;
}
.tax-date-card.q1 { border-left-color: #3b82f6; }
.tax-date-card.q2 { border-left-color: #10b981; }
.tax-date-card.q3 { border-left-color: #f59e0b; }
.tax-date-card.q4 { border-left-color: #ef4444; }
.tax-date-card.annual { border-left-color: #8b5cf6; }
.tax-date { font-size: 0.8125rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem; }
.tax-date-card h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.tax-date-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* --- Video Tutorial Cards ------------------------------ */
.video-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.video-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; color: var(--text); }
.video-thumbnail {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e3a8a, #0d9488);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.video-play-btn {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding-left: 4px;
  transition: transform .2s;
}
.video-card:hover .video-play-btn { transform: scale(1.1); }
.video-duration {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.video-info { padding: 1rem; }
.video-info .topic-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.video-info h4 { font-size: 0.9375rem; line-height: 1.35; margin-bottom: 0.3rem; }
.video-info p { font-size: 0.8125rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* --- Guide / Article Cards ----------------------------- */
.guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.guide-card:hover { box-shadow: var(--shadow-md); }
.guide-card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.guide-card h3 { font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.35; }
.guide-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; line-height: 1.6; }
.guide-card .read-more { font-size: 0.875rem; font-weight: 600; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.guide-card .read-more:hover { text-decoration: underline; }

/* --- Breadcrumb --------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-light); }

/* --- CTA Banner ---------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.85; margin-bottom: 1.75rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f9ff; color: var(--primary-dark); text-decoration: none; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

/* --- Ad Placeholder ----------------------------------- */
.ad-container {
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  gap: 0.25rem;
}
.ad-container .ad-size { font-size: 0.65rem; opacity: 0.7; }
.ad-leaderboard { width: 100%; height: 90px; max-width: 728px; margin: 1.5rem auto; }
.ad-rectangle { width: 300px; height: 250px; }
.ad-large-rect { width: 100%; max-width: 336px; height: 280px; margin: 1.5rem auto; }
.ad-inline { width: 100%; height: 90px; margin: 1.5rem 0; }

/* --- Invoice / Receipt / Work Order ------------------- */
.generator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.generator-form-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.gen-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.gen-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gen-header h2 { font-size: 1.05rem; margin: 0; }
.gen-body { padding: 1.5rem; }
.gen-actions {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.line-items-table { width: 100%; border-collapse: collapse; margin-bottom: 0.75rem; font-size: 0.875rem; }
.line-items-table th { text-align: left; padding: 0.4rem 0.5rem; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.line-items-table td { padding: 0.4rem 0.5rem; vertical-align: middle; }
.line-items-table td input { border: 1px solid var(--border-dark); border-radius: 4px; padding: 0.35rem 0.5rem; width: 100%; font-size: 0.875rem; }
.line-items-table td input:focus { outline: none; border-color: var(--primary); }
.line-items-table .col-desc { width: 40%; }
.line-items-table .col-qty { width: 15%; }
.line-items-table .col-rate { width: 20%; }
.line-items-table .col-amount { width: 18%; }
.line-items-table .col-del { width: 7%; text-align: center; }
.del-line-btn { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1rem; padding: 0; line-height: 1; }
.del-line-btn:hover { color: #7f1d1d; }
.add-line-btn { font-size: 0.85rem; color: var(--primary); background: none; border: 1px dashed var(--primary); border-radius: var(--radius); padding: 0.4rem 1rem; cursor: pointer; }
.add-line-btn:hover { background: var(--primary-light); }
.invoice-totals { margin-top: 1rem; }
.invoice-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.invoice-total-row:last-child { border-bottom: 2px solid var(--text); font-weight: 700; font-size: 1rem; padding-top: 0.6rem; }
.invoice-total-row.total-due { font-size: 1.1rem; padding-top: 0.75rem; }

/* Invoice Preview */
.invoice-preview-panel {
  position: sticky;
  top: 80px;
}
.invoice-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
}
.invoice-preview-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.invoice-preview-logo { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.invoice-preview-label { font-size: 1.5rem; font-weight: 800; color: var(--text); text-align: right; }
.invoice-preview-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.invoice-preview-info h5 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.35rem; }
.invoice-preview-info p { font-size: 0.8rem; margin-bottom: 0; line-height: 1.6; }
.invoice-preview-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.82rem; }
.invoice-preview-table th { background: var(--bg); text-align: left; padding: 0.5rem 0.75rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.invoice-preview-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
.invoice-preview-totals { margin-left: auto; max-width: 220px; }
.preview-total-row { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.82rem; }
.preview-total-row.grand-total { font-weight: 800; font-size: 1rem; border-top: 2px solid var(--text); padding-top: 0.4rem; margin-top: 0.4rem; }
.invoice-preview-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-muted); }

/* --- Guide / Article Layout --------------------------- */
.article-page { padding: 3rem 0 5rem; }
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }
.article-header { margin-bottom: 2rem; }
.article-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.75rem; flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: 0.3rem; }
.article-content h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.article-content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.6rem; }
.article-content p { margin-bottom: 1rem; line-height: 1.75; }
.article-content ul, .article-content ol { margin: 0.75rem 0 1rem 1.5rem; }
.article-content li { margin-bottom: 0.4rem; line-height: 1.7; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.article-content table th { background: var(--bg); padding: 0.65rem 1rem; text-align: left; font-weight: 600; border: 1px solid var(--border); font-size: 0.85rem; }
.article-content table td { padding: 0.65rem 1rem; border: 1px solid var(--border); }
.article-content table tr:nth-child(even) td { background: #fafbfc; }
.article-sidebar { position: sticky; top: 80px; }
.sidebar-toc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.5rem; }
.sidebar-toc h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.75rem; }
.sidebar-toc a { display: block; font-size: 0.875rem; color: var(--text-muted); padding: 0.3rem 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.sidebar-toc a:last-child { border-bottom: none; }
.sidebar-toc a:hover { color: var(--primary); }

/* --- Footer ------------------------------------------- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { color: #e2e8f0; font-size: 1.2rem; font-weight: 800; margin-bottom: 0.75rem; display: block; text-decoration: none; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #e2e8f0; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-col a { display: block; color: #94a3b8; font-size: 0.875rem; padding: 0.25rem 0; text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: #e2e8f0; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
}
.footer-bottom .disclaimer { max-width: 600px; font-size: 0.75rem; line-height: 1.5; opacity: 0.7; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #64748b; font-size: 0.8125rem; text-decoration: none; }
.footer-links a:hover { color: #94a3b8; }

/* --- Tutorials Page ----------------------------------- */
.tutorial-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn { padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.85rem; font-weight: 600; cursor: pointer; border: 1.5px solid var(--border-dark); background: #fff; color: var(--text-muted); transition: all .15s; }
.filter-btn:hover, .filter-btn.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* --- Cheatsheet / Quick Reference -------------------- */
.cheatsheet {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cheatsheet-header {
  background: linear-gradient(135deg, var(--teal) 0%, #1d4ed8 100%);
  color: #fff;
  padding: 1rem 1.5rem;
  font-weight: 700;
}
.cheatsheet table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.cheatsheet table td, .cheatsheet table th { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); }
.cheatsheet table th { background: var(--bg); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.cheatsheet table tr:last-child td { border-bottom: none; }

/* --- Progress / Step indicators ----------------------- */
.steps { display: flex; gap: 0; margin-bottom: 2rem; counter-reset: step; }
.step { flex: 1; text-align: center; position: relative; }
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  position: relative;
  z-index: 1;
}
.step::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}
.step:last-child::after { display: none; }
.step h4 { font-size: 0.875rem; margin-bottom: 0.25rem; }
.step p { font-size: 0.8rem; color: var(--text-muted); }

/* --- Responsive ---------------------------------------- */
@media (max-width: 1024px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-results-panel { position: static; }
  .generator-layout { grid-template-columns: 1fr; }
  .invoice-preview-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-stats { gap: 2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 2.5rem 0; }
  .section-lg { padding: 3.5rem 0; }
  .cta-banner { padding: 2rem 1.5rem; }
  .stats-bar-inner { gap: 1rem; }
  .tax-calendar-grid { grid-template-columns: 1fr 1fr; }
  .invoice-preview { padding: 1rem; }
  .invoice-preview-info { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step::after { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .tax-calendar-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .gen-actions { flex-direction: column; }
  .calc-submit { flex-direction: column; }
}

/* --- Print Styles -------------------------------------- */
@media print {
  .site-header, .site-footer, .no-print, .ad-container,
  .generator-form-panel, .gen-actions, .breadcrumb,
  nav, footer { display: none !important; }
  body { background: #fff; }
  .invoice-preview-panel { position: static; }
  .invoice-preview { box-shadow: none; border: none; padding: 0; }
  .generator-layout { display: block; }
  @page { size: letter; margin: 0.5in; }
}

/* --- Utilities ---------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.fw-bold { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.bg-surface { background: var(--surface); }
.bg-bg { background: var(--bg); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.border { border: 1px solid var(--border); }
.p-4 { padding: 1.5rem; }
.p-3 { padding: 1rem; }
.tag {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}
