/* MyTaxFile Online — Design System
 * Modern fintech, clean SaaS, AI-native
 */

:root {
  /* Brand */
  --brand-50:  #EEF2FF;
  --brand-100: #E0E7FF;
  --brand-300: #93A4FF;
  --brand-500: #4C6FFF;
  --brand-600: #2D5BFF;
  --brand-700: #1E3FCC;
  --brand-900: #14288A;

  /* Accent */
  --accent-50:  #E8FBF1;
  --accent-500: #22C58B;
  --accent-600: #16A974;

  /* Warm */
  --warm-500: #FF8A4C;
  --warn-500: #F5A524;
  --danger-500: #E5484D;
  --info-500: #0EA5E9;

  /* Ink */
  --ink-900: #0B1020;
  --ink-800: #161B33;
  --ink-700: #2A2F45;
  --ink-500: #5B6478;
  --ink-400: #7A839A;
  --ink-300: #A0A8BD;
  --ink-200: #CFD3DF;
  --ink-100: #E6E8EF;

  /* Surfaces */
  --bg-0:    #FFFFFF;
  --bg-50:   #F7F8FB;
  --bg-100:  #F1F3F8;
  --stroke:  #E6E8EF;
  --stroke-strong: #CFD3DF;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(11,16,32,.05);
  --shadow-sm: 0 4px 12px rgba(11,16,32,.06);
  --shadow-md: 0 8px 24px rgba(11,16,32,.08);
  --shadow-lg: 0 16px 40px rgba(11,16,32,.10);
  --shadow-brand: 0 12px 32px rgba(45,91,255,.18);

  /* Radii */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;

  /* Type */
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; }
html,body,h1,h2,h3,h4,h5,p,ul,ol,li,figure,figcaption,blockquote,dl,dd { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-700);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01","cv11";
}
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input,select,textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* Typography */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  line-height: 1.08;
}
.h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 700; letter-spacing: -0.025em; color: var(--ink-900); line-height: 1.05; }
.h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink-900); line-height: 1.12; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.015em; color: var(--ink-900); }
.h4 { font-size: 20px; font-weight: 600; color: var(--ink-900); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--brand-700); text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-500); box-shadow: 0 0 0 4px rgba(45,91,255,.18);
}
.lead { font-size: 18px; color: var(--ink-500); line-height: 1.55; }
.muted { color: var(--ink-500); }
.tabular { font-variant-numeric: tabular-nums; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.row { display: flex; align-items: center; gap: 16px; }
.between { display: flex; align-items: center; justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-weight: 600; font-size: 15px;
  transition: transform .12s ease, box-shadow .2s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand-600); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary {
  background: #fff; color: var(--ink-900);
  border-color: var(--stroke-strong);
}
.btn-secondary:hover { border-color: var(--ink-700); }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { background: var(--bg-100); }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--r-md); }

/* Cards */
.card {
  background: var(--bg-0);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--ink-100); }
.card-flat { box-shadow: none; }
.card-tinted { background: linear-gradient(180deg, var(--brand-50) 0%, #fff 70%); }
.card-money {
  background: linear-gradient(180deg, #fff, #fff), linear-gradient(135deg, var(--brand-500), var(--accent-500));
  position: relative;
}
.card-money::before {
  content: ""; position: absolute; inset: 0; padding: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* Pills + badges */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--bg-100); color: var(--ink-700);
  border: 1px solid var(--stroke);
}
.pill-success { background: var(--accent-50); color: var(--accent-600); border-color: rgba(34,197,139,.25); }
.pill-warn    { background: #FEF6E1; color: #8A5B00; border-color: rgba(245,165,36,.25); }
.pill-danger  { background: #FCEAEA; color: #A4262C; border-color: rgba(229,72,77,.25); }
.pill-brand   { background: var(--brand-50); color: var(--brand-700); border-color: rgba(45,91,255,.18); }
.pill-info    { background: #E6F4FB; color: #075985; border-color: rgba(14,165,233,.18); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-300); }
.dot-success { background: var(--accent-500); box-shadow: 0 0 0 4px rgba(34,197,139,.18); }
.dot-warn    { background: var(--warn-500); box-shadow: 0 0 0 4px rgba(245,165,36,.18); }
.dot-danger  { background: var(--danger-500); box-shadow: 0 0 0 4px rgba(229,72,77,.18); }

/* Top nav */
.topnav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--stroke);
}
.topnav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink-900); letter-spacing: -.01em; font-size: 18px;
}
.brand-mark .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  position: relative; box-shadow: var(--shadow-sm);
}
.brand-mark .logo::after {
  content: ""; position: absolute; inset: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,.92);
  clip-path: polygon(0 60%, 30% 60%, 30% 30%, 60% 30%, 60% 0, 100% 0, 100% 100%, 0 100%);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-weight: 500; color: var(--ink-700); font-size: 14.5px;
  position: relative;
}
.nav-link:hover { background: var(--bg-100); color: var(--ink-900); }
.nav-link.has-menu::after {
  content: ""; display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; margin-left: 6px; opacity: .65;
}

/* Megamenu */
.has-menu { position: relative; }
.megamenu {
  position: absolute; top: calc(100% + 8px); left: -24px;
  background: #fff; border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 18px;
  width: 720px;
  box-shadow: var(--shadow-lg);
  display: none;
  grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
.has-menu:hover .megamenu { display: grid; }
.megamenu .mm-col h5 {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  color: var(--ink-500); letter-spacing: .04em;
  padding: 8px 10px;
}
.megamenu .mm-link {
  display: block; padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--ink-700); font-size: 14px;
}
.megamenu .mm-link:hover { background: var(--bg-100); color: var(--ink-900); }

/* Hero */
.hero {
  position: relative; padding: 84px 0 88px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; left: -10%; top: -20%;
  width: 70%; height: 70%;
  background: radial-gradient(closest-side, rgba(45,91,255,.18), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -10%; bottom: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(closest-side, rgba(34,197,139,.15), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  position: relative;
}
.hero h1 { margin-bottom: 18px; }
.hero p.lead { margin-bottom: 28px; max-width: 560px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trust {
  margin-top: 28px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--ink-500); font-size: 13.5px;
}
.hero .trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-200); }

/* Snapshot mock */
.snapshot {
  position: relative;
  border-radius: var(--r-2xl);
  background: linear-gradient(180deg, #fff, #FAFBFF);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  transform: rotate(-1deg);
}
.snapshot::before {
  content: ""; position: absolute; inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(45,91,255,.18), rgba(34,197,139,.18));
  z-index: -1; filter: blur(10px);
}
.snapshot-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--ink-500); margin-bottom: 14px;
}
.snapshot-numbers {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px;
}
.snap-stat {
  background: var(--bg-50); border: 1px solid var(--stroke);
  border-radius: var(--r-md); padding: 12px;
}
.snap-stat .label { font-size: 12px; color: var(--ink-500); margin-bottom: 4px; }
.snap-stat .value {
  font-size: 22px; font-weight: 700; color: var(--ink-900);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.snap-stat.refund { background: linear-gradient(180deg, var(--accent-50), #fff); border-color: rgba(34,197,139,.25); }
.snap-stat.refund .value { color: var(--accent-600); }
.snap-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px dashed var(--stroke); font-size: 14px;
}
.snap-row:last-child { border-bottom: 0; }
.snap-row .name { color: var(--ink-700); display: flex; align-items: center; gap: 8px; }
.snap-row .val { color: var(--ink-900); font-weight: 600; font-variant-numeric: tabular-nums; }
.snap-progress {
  height: 8px; border-radius: 999px; background: var(--bg-100); overflow: hidden;
  margin-top: 10px;
}
.snap-progress > span {
  display: block; height: 100%; width: 92%;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
  border-radius: inherit;
  animation: shimmer 2.5s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { opacity: 1 } 50% { opacity: .8 } }

/* Sections */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 12px; }
.section-head .lead { max-width: 640px; margin: 0 auto; }

/* Step cards */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step .num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-50); color: var(--brand-700);
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

/* Service grid (homepage) */
.service-tabs { display: flex; gap: 6px; padding: 6px; background: var(--bg-100); border-radius: 12px; width: fit-content; margin: 0 auto 32px; }
.service-tab {
  padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14px;
  color: var(--ink-500);
}
.service-tab.active { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-xs); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  display: block; padding: 22px;
  background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-lg);
  transition: all .2s ease;
}
.service-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.service-card .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-50); color: var(--brand-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.service-card h4 { margin-bottom: 6px; font-size: 17px; }
.service-card p { font-size: 14px; color: var(--ink-500); }
.service-card .arrow { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--brand-700); }

/* Personas */
.persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.persona { padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--stroke); background: #fff; }
.persona .emoji { font-size: 22px; margin-bottom: 8px; }
.persona h5 { font-weight: 600; margin-bottom: 4px; color: var(--ink-900); }
.persona p { font-size: 13.5px; color: var(--ink-500); }

/* AI promo */
.ai-promo {
  background: linear-gradient(135deg, #0B1020 0%, #14288A 80%);
  border-radius: var(--r-2xl); color: #fff; padding: 56px;
  position: relative; overflow: hidden;
}
.ai-promo::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 200px at 80% 20%, rgba(34,197,139,.25), transparent 60%),
              radial-gradient(600px 300px at 10% 80%, rgba(76,111,255,.25), transparent 60%);
  pointer-events: none;
}
.ai-promo .h2 { color: #fff; }
.ai-promo .lead { color: rgba(255,255,255,.78); }
.ai-promo .prompts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.ai-promo .prompt-chip {
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 14px;
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { padding: 28px; border-radius: var(--r-xl); border: 1px solid var(--stroke); background: #fff; display: flex; flex-direction: column; gap: 18px; }
.price-card.featured { border-color: var(--brand-500); box-shadow: var(--shadow-md); position: relative; }
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand-600); color: #fff; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.price-card .plan-name { font-weight: 700; color: var(--ink-900); font-size: 18px; }
.price-card .plan-amount { font-size: 36px; font-weight: 700; color: var(--ink-900); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-card .plan-amount .per { font-size: 14px; color: var(--ink-500); font-weight: 500; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.price-card li { display: flex; gap: 10px; color: var(--ink-700); }
.price-card li::before { content: "✓"; color: var(--accent-600); font-weight: 700; }

/* Trust strip */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 28px; border: 1px solid var(--stroke); background: var(--bg-50);
  border-radius: var(--r-lg);
}
.trust-strip .item { text-align: center; }
.trust-strip .num { font-size: 28px; font-weight: 700; color: var(--ink-900); letter-spacing: -.02em; }
.trust-strip .lbl { font-size: 13px; color: var(--ink-500); margin-top: 4px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--stroke); padding: 18px 4px;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-weight: 600; color: var(--ink-900);
  font-size: 16.5px;
}
.faq-q::after {
  content: "+"; color: var(--ink-500); font-size: 22px; line-height: 1; font-weight: 400;
  transition: transform .2s ease;
}
.faq-item[open] .faq-q::after { content: "−"; }
.faq-a { padding-top: 10px; color: var(--ink-500); font-size: 15px; line-height: 1.65; }

/* Final CTA band */
.cta-band {
  position: relative; padding: 56px; border-radius: var(--r-2xl);
  background: linear-gradient(135deg, var(--brand-600) 0%, #6E5BFF 60%, var(--accent-500) 100%);
  color: #fff; text-align: center; overflow: hidden;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.86); margin-bottom: 24px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); }
.cta-band .btn-primary:hover { background: var(--brand-50); }

/* Footer */
footer.site {
  padding: 64px 0 32px; border-top: 1px solid var(--stroke); background: var(--bg-50);
}
footer.site .ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
footer.site h6 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); margin-bottom: 14px; font-weight: 600; }
footer.site a { display: block; padding: 4px 0; color: var(--ink-700); font-size: 14.5px; }
footer.site a:hover { color: var(--brand-700); }
footer.site .legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--stroke);
  display: flex; justify-content: space-between; color: var(--ink-500); font-size: 13px;
  flex-wrap: wrap; gap: 16px;
}

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--ink-700); }
.input, .select, .textarea {
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--stroke-strong); background: #fff;
  font-size: 15px; color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(45,91,255,.15);
}
.checkbox { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; font-size: 14px; color: var(--ink-700); }
.checkbox input { margin-top: 3px; accent-color: var(--brand-600); }

/* Auth screens */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-form-side { padding: 48px; display: flex; flex-direction: column; justify-content: center; max-width: 480px; margin: 0 auto; width: 100%; }
.auth-poster {
  background: linear-gradient(160deg, #0B1020 0%, #14288A 70%, #1E3FCC 100%);
  position: relative; overflow: hidden; padding: 56px;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff;
}
.auth-poster::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 80% 20%, rgba(34,197,139,.18), transparent 60%),
              radial-gradient(500px 220px at 20% 80%, rgba(76,111,255,.25), transparent 60%);
  pointer-events: none;
}
.auth-poster h2 { color: #fff; max-width: 420px; }
.auth-poster .quote { color: rgba(255,255,255,.82); font-size: 15.5px; line-height: 1.6; max-width: 420px; }

/* Service page hero (lighter than home) */
.svc-hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--bg-50), #fff);
  border-bottom: 1px solid var(--stroke);
  position: relative;
}
.svc-hero h1 { margin-bottom: 14px; }
.svc-hero .ctas { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.svc-hero-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 48px; align-items: center; }
.svc-card-stack { display: grid; gap: 14px; }

/* Bullet rows */
.bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bullet { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--stroke); border-radius: var(--r-md); background: #fff; }
.bullet .ico { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-50); color: var(--accent-600); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; }
.bullet .t { font-size: 14.5px; color: var(--ink-700); }
.bullet .t b { color: var(--ink-900); }

/* Steps numbered */
.steps-num { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.steps-num .step-n { padding: 16px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--stroke); text-align: left; font-size: 14px; color: var(--ink-700); }
.steps-num .step-n .n { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-size: 12px; margin-bottom: 6px; }

/* Doc checklist */
.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.doc-list .doc { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-50); border: 1px solid var(--stroke); font-size: 14px; }
.doc-list .doc::before { content: "📄"; }

/* Dashboard */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--bg-50); }
.sidebar { background: #fff; border-right: 1px solid var(--stroke); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand-mark { padding: 6px 8px 16px; }
.sidebar .nav-group { margin-top: 10px; }
.sidebar .nav-group h6 { padding: 10px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--ink-400); text-transform: uppercase; }
.sidebar .side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--ink-700);
}
.sidebar .side-link.active { background: var(--brand-50); color: var(--brand-700); }
.sidebar .side-link:hover { background: var(--bg-100); }
.sidebar .side-link .badge { margin-left: auto; background: var(--brand-100); color: var(--brand-700); font-size: 11px; padding: 1px 7px; border-radius: 999px; font-weight: 700; }

.app-topbar {
  position: sticky; top: 0; z-index: 5;
  background: rgba(247,248,251,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px;
}
.app-topbar .search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--stroke); border-radius: 10px;
  padding: 8px 12px; min-width: 360px; color: var(--ink-500); font-size: 14px;
}
.app-topbar .search kbd {
  margin-left: auto; padding: 1px 6px; border-radius: 4px;
  background: var(--bg-100); color: var(--ink-500); font-size: 11px; border: 1px solid var(--stroke);
}
.app-topbar .actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--stroke); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-700); position: relative; }
.icon-btn:hover { background: var(--bg-100); }
.icon-btn .ndot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--danger-500); border-radius: 50%; border: 2px solid #fff; }
.avatar { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-500), var(--accent-500)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }

.app-canvas { padding: 28px; max-width: 1280px; }
.welcome { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.welcome h2 { font-size: 24px; font-weight: 700; color: var(--ink-900); }
.welcome .sub { color: var(--ink-500); font-size: 14.5px; margin-top: 2px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { padding: 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--stroke); }
.kpi .lbl { font-size: 13px; color: var(--ink-500); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 28px; font-weight: 700; color: var(--ink-900); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12.5px; color: var(--accent-600); font-weight: 600; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.kpi.refund { background: linear-gradient(180deg, var(--accent-50), #fff); border-color: rgba(34,197,139,.25); }
.kpi.refund .val { color: var(--accent-600); }

.dashboard-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.panel { background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h3 { font-size: 15.5px; font-weight: 700; color: var(--ink-900); }
.panel-head a { font-size: 13px; color: var(--brand-700); font-weight: 600; }

.checklist { display: flex; flex-direction: column; gap: 8px; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--stroke); background: var(--bg-0); }
.task .check { width: 22px; height: 22px; border: 2px solid var(--stroke-strong); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.task.done .check { background: var(--accent-500); border-color: var(--accent-500); color: #fff; }
.task.done .check::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 800; }
.task .info { flex: 1; }
.task .info .t { font-size: 14.5px; font-weight: 600; color: var(--ink-900); }
.task .info .s { font-size: 13px; color: var(--ink-500); }
.task .when { font-size: 12px; color: var(--ink-500); }

.filings-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.filing-mini { padding: 16px; border-radius: var(--r-md); border: 1px solid var(--stroke); background: #fff; }
.filing-mini .pill { margin-bottom: 8px; }
.filing-mini h4 { font-size: 15px; margin-bottom: 4px; color: var(--ink-900); }
.filing-mini p { font-size: 13px; color: var(--ink-500); }
.filing-mini .progress { margin-top: 12px; height: 6px; border-radius: 999px; background: var(--bg-100); overflow: hidden; }
.filing-mini .progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--accent-500)); }

.reminder { display: flex; gap: 12px; padding: 12px; border-radius: 10px; background: var(--bg-50); border: 1px solid var(--stroke); }
.reminder .when-pill { background: #fff; border: 1px solid var(--stroke); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-700); height: fit-content; }
.reminder .body .t { font-weight: 600; color: var(--ink-900); font-size: 14px; }
.reminder .body .s { font-size: 13px; color: var(--ink-500); }

.tip-card { background: linear-gradient(135deg, var(--brand-50), #fff); border: 1px solid rgba(45,91,255,.18); border-radius: 12px; padding: 14px; }
.tip-card .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-700); margin-bottom: 6px; }
.tip-card .t { color: var(--ink-900); font-size: 14.5px; font-weight: 600; }
.tip-card .s { font-size: 13px; color: var(--ink-500); margin-top: 4px; }

/* AI Snapshot page */
.snap-page { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }
.snap-large {
  background: linear-gradient(180deg, #fff, #FAFBFF);
  border: 1px solid var(--stroke); border-radius: var(--r-xl); padding: 28px;
}
.snap-meta { display: flex; align-items: center; gap: 10px; color: var(--ink-500); font-size: 13px; margin-bottom: 8px; }
.snap-large h2 { margin-bottom: 18px; }
.big-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.big-stat { padding: 16px; border: 1px solid var(--stroke); border-radius: 12px; background: #fff; }
.big-stat .l { font-size: 12.5px; color: var(--ink-500); margin-bottom: 6px; }
.big-stat .v { font-size: 24px; font-weight: 700; color: var(--ink-900); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.big-stat.ok { background: linear-gradient(180deg, var(--accent-50), #fff); border-color: rgba(34,197,139,.25); }
.big-stat.ok .v { color: var(--accent-600); }

.flag-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--stroke); border-radius: 10px; background: var(--bg-50); margin-bottom: 8px; }
.flag-row .ic { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; }
.flag-row.danger { background: #FCEAEA; border-color: rgba(229,72,77,.2); }
.flag-row.danger .ic { background: rgba(229,72,77,.15); color: var(--danger-500); }
.flag-row.warn { background: #FEF6E1; border-color: rgba(245,165,36,.25); }
.flag-row.warn .ic { background: rgba(245,165,36,.18); color: #8A5B00; }
.flag-row.ok { background: var(--accent-50); border-color: rgba(34,197,139,.25); }
.flag-row.ok .ic { background: rgba(34,197,139,.18); color: var(--accent-600); }
.flag-row .t { font-size: 14px; color: var(--ink-900); font-weight: 600; }
.flag-row .s { font-size: 13px; color: var(--ink-500); }

/* AI assistant panel */
.ai-panel { background: linear-gradient(180deg, #0B1020, #14288A); color: #fff; border-radius: var(--r-xl); padding: 22px; position: relative; overflow: hidden; }
.ai-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 90% 10%, rgba(34,197,139,.2), transparent 60%); pointer-events: none; }
.ai-panel h3 { color: #fff; }
.ai-msg { background: rgba(255,255,255,.07); padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55; }
.ai-msg + .ai-msg { margin-top: 8px; }
.ai-input { display: flex; gap: 8px; margin-top: 14px; }
.ai-input input { flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; padding: 12px; border-radius: 10px; font-size: 14px; }
.ai-input input::placeholder { color: rgba(255,255,255,.5); }
.ai-input button { background: #fff; color: var(--brand-700); padding: 12px 16px; border-radius: 10px; font-weight: 600; }

/* Upload page */
.upload-zone {
  border: 2px dashed var(--stroke-strong); background: var(--bg-50);
  border-radius: var(--r-xl); padding: 56px; text-align: center;
  transition: all .2s ease;
}
.upload-zone.drag, .upload-zone:hover { border-color: var(--brand-500); background: var(--brand-50); }
.upload-zone .ic { font-size: 36px; margin-bottom: 8px; }
.upload-zone h3 { margin-bottom: 6px; }
.upload-zone p { color: var(--ink-500); font-size: 14px; }
.upload-zone .btn { margin-top: 16px; }

.docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.doc-tile { background: #fff; border: 1px solid var(--stroke); border-radius: 12px; padding: 14px; }
.doc-tile .thumb { aspect-ratio: 1.4/1; background: linear-gradient(135deg, var(--bg-100), #fff); border: 1px solid var(--stroke); border-radius: 8px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--ink-300); }
.doc-tile h5 { font-size: 13.5px; font-weight: 600; color: var(--ink-900); margin-bottom: 2px; }
.doc-tile p { font-size: 12px; color: var(--ink-500); }
.doc-tile .pill { margin-top: 8px; }

/* Pipeline */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px; background: #fff; border: 1px solid var(--stroke); border-radius: 12px; }
.pipeline .step-p { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--bg-50); border: 1px solid var(--stroke); font-size: 13px; }
.pipeline .step-p.done { background: var(--accent-50); border-color: rgba(34,197,139,.25); }
.pipeline .step-p.active { background: var(--brand-50); border-color: rgba(45,91,255,.22); }
.pipeline .step-p .lbl { font-size: 11px; color: var(--ink-500); }
.pipeline .step-p .t { font-weight: 600; color: var(--ink-900); }

/* ============ Mobile nav (hamburger + drawer) ============ */
.hamburger {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-100); border: 1px solid var(--stroke);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--ink-900); border-radius: 1px;
  position: relative;
}
.hamburger span::before,
.hamburger span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--ink-900); border-radius: 1px;
  transition: transform .2s ease, top .2s ease;
}
.hamburger span::before { top: -6px; }
.hamburger span::after  { top:  6px; }
.hamburger.open span { background: transparent; }
.hamburger.open span::before { top: 0; transform: rotate(45deg); }
.hamburger.open span::after  { top: 0; transform: rotate(-45deg); }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11,16,32,.45);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.mobile-drawer.open { opacity: 1; visibility: visible; }
.mobile-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: #fff;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-panel .drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.mobile-drawer-panel .drawer-section {
  margin-top: 12px;
  border-top: 1px solid var(--stroke); padding-top: 12px;
}
.mobile-drawer-panel .drawer-section h6 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-400); font-weight: 700;
  padding: 4px 8px;
}
.mobile-drawer-panel a.drawer-link {
  display: block; padding: 12px 12px;
  border-radius: 10px;
  color: var(--ink-900); font-weight: 500; font-size: 15px;
  min-height: 44px;
}
.mobile-drawer-panel a.drawer-link:hover,
.mobile-drawer-panel a.drawer-link:active { background: var(--bg-100); }
.mobile-drawer-panel .drawer-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }

/* ============ Mobile bottom-tab nav (app) ============ */
.bottom-tabs {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-top: 1px solid var(--stroke);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: stretch;
}
.bottom-tabs a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px;
  font-size: 11px; font-weight: 600;
  color: var(--ink-500);
  border-radius: 10px;
  min-height: 56px;
}
.bottom-tabs a .ico { font-size: 20px; line-height: 1; }
.bottom-tabs a.active { color: var(--brand-700); background: var(--brand-50); }
.bottom-tabs a.fab {
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  color: #fff;
  margin: -10px 4px 0;
  border-radius: 14px;
  box-shadow: var(--shadow-brand);
}
.bottom-tabs a.fab .ico { font-size: 22px; }

/* ============ Sticky bottom CTA (mobile only) ============ */
.sticky-cta {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30;
  background: var(--brand-600); color: #fff;
  padding: 14px 18px; border-radius: 14px;
  box-shadow: var(--shadow-brand);
  font-weight: 600; text-align: center;
  border: 1px solid rgba(255,255,255,.15);
}
.sticky-cta:active { transform: translateY(1px); }

/* ============ Responsive breakpoints ============ */
@media (max-width: 960px) {
  .hero-grid, .svc-hero-grid, .snap-page { grid-template-columns: 1fr; }
  .steps, .service-grid, .pricing-grid, .persona-grid, .kpi-grid, .filings-row, .docs-grid, .pipeline, .big-stats, .ai-promo .prompts { grid-template-columns: 1fr 1fr; }
  .ai-promo { padding: 32px; }
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-poster { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .app-topbar .search { display: none; }
  .app-topbar { padding: 12px 16px; }
  .app-canvas { padding: 20px 16px 100px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .bullets, .doc-list { grid-template-columns: 1fr; }
  .steps-num { grid-template-columns: 1fr 1fr; }
  footer.site .ft-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .topnav-inner { padding: 12px 16px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .hero { padding: 56px 0 64px; }
  .snapshot { padding: 18px; transform: none; }
  .hero .trust { font-size: 12.5px; }
  .megamenu { display: none !important; } /* hover megamenu disabled on touch */
  .bottom-tabs.show { display: flex; }
  body.app-on-mobile { padding-bottom: 80px; }
}
@media (max-width: 560px) {
  .h1 { font-size: clamp(32px, 8vw, 40px); }
  .h2 { font-size: clamp(24px, 6.4vw, 32px); }
  .lead { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
  .kpi-grid, .filings-row, .docs-grid, .big-stats, .pipeline, .service-grid, .persona-grid, .pricing-grid, .ai-promo .prompts, .steps-num, .grid[style*="repeat(3"], .grid[style*="repeat(4"] { grid-template-columns: 1fr !important; }
  footer.site .ft-grid { grid-template-columns: 1fr; }
  .cta-band, .ai-promo, .auth-form-side { padding: 28px 20px; }
  .cta-band .h2 { font-size: 24px; }
  .ai-promo .h2 { font-size: 26px; }
  .price-card { padding: 22px; }
  .price-card.featured::before { font-size: 11px; padding: 3px 10px; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px; }
  .trust-strip .num { font-size: 22px; }
  .service-tabs { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .service-tab { white-space: nowrap; }
  .upload-zone { padding: 36px 20px; }
  .snapshot-numbers { grid-template-columns: 1fr 1fr; }
  .snap-stat .value { font-size: 20px; }
  .big-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .big-stat .v { font-size: 20px; }
  .welcome { gap: 12px; }
  .welcome h2 { font-size: 22px; }
  .auth-form-side { padding: 24px 18px; }
  .ctas, .row { flex-wrap: wrap; }
  .btn-lg { padding: 14px 20px; font-size: 15px; min-height: 48px; }
  .btn { min-height: 44px; }
  .filing-mini, .panel { padding: 16px; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  /* Ensure inline grids in dashboard right-rail wrap */
  .reminder, .task { padding: 12px; }
  .field { gap: 4px; }
}
@media (max-width: 380px) {
  .h1 { font-size: 30px; line-height: 1.08; }
  .snapshot-numbers { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .big-stats { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
}

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; } .mt-6 { margin-top: 40px; } .mt-8 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 24px; } .mb-6 { margin-bottom: 40px; }
.hidden { display: none !important; }
