:root {
  --ink: #0a0a4f;
  --muted: #555b73;
  --line: #dfe1eb;
  --paper: #ffffff;
  --soft: #f6f7fb;
  --primary: #0a0a4f;
  --primary-soft: #e8e9f6;
  --secondary: #ffb902;
  --secondary-dark: #b87900;
  --shadow: 0 18px 60px rgba(10, 10, 79, 0.13);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 48px);
  color: #ffffff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(10, 10, 79, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 216px;
  min-height: 44px;
  gap: 0;
  min-width: 0;
  font-weight: 700;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-dark {
  display: none;
}

.site-header.is-scrolled .brand-logo-light,
.site-header.menu-active .brand-logo-light {
  display: none;
}

.site-header.is-scrolled .brand-logo-dark,
.site-header.menu-active .brand-logo-dark {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  color: currentColor;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88svh;
  padding: 132px clamp(18px, 4vw, 48px) 96px;
  overflow: hidden;
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(10, 10, 79, 0.94) 0%, rgba(10, 10, 79, 0.78) 42%, rgba(10, 10, 79, 0.28) 100%),
    url("assets/hero-tax-assistant.png");
  background-position: center;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--secondary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--secondary);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.3vw, 23px);
}

.hero-actions,
.final-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary,
.plan-button {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 12px 26px rgba(255, 185, 2, 0.27);
}

.button-primary:hover,
.plan-button:hover {
  background: #e9a900;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.58);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(64px, 9vw, 110px) clamp(18px, 4vw, 48px);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.two-column,
.benefits-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.section-heading p,
.pricing-heading p,
.pain-list p,
.solution-grid p,
.faq-list p {
  color: var(--muted);
}

.problem-section {
  background: var(--soft);
}

.pain-list {
  display: grid;
  gap: 14px;
}

.pain-list article,
.solution-grid article,
.price-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.pain-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 22px;
  align-items: start;
}

.pain-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
  grid-row: 1 / span 2;
}

.pain-list h3,
.pain-list p {
  grid-column: 2;
}

.pain-list p,
.solution-grid p,
.price-card ul,
.faq-list p {
  margin-bottom: 0;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.solution-grid article {
  padding: 24px;
  box-shadow: 0 12px 34px rgba(10, 10, 79, 0.06);
}

.icon {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  margin-bottom: 18px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.benefits-section {
  background: var(--primary);
  color: #ffffff;
}

.benefits-section .section-kicker {
  color: var(--secondary);
}

.benefit-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.benefit-list li {
  position: relative;
  padding: 18px 18px 18px 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
}

.features-section {
  background: #ffffff;
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feature-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
}

.pricing-section {
  background: #f8fbfc;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(10, 10, 79, 0.07);
}

.price-card.featured {
  border-color: var(--secondary);
  box-shadow: var(--shadow);
}

.price-card.enterprise {
  border-color: rgba(10, 10, 79, 0.35);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 9px;
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.price {
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.price-card ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin-bottom: 24px;
  color: var(--muted);
}

.price-card .button {
  width: 100%;
  margin-top: auto;
}

.faq-section {
  background: #ffffff;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0 18px;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  font-weight: 900;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--secondary-dark);
  font-size: 24px;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  padding-bottom: 18px;
}

.final-cta {
  padding: clamp(56px, 8vw, 86px) clamp(18px, 4vw, 48px);
  background: var(--primary);
  color: #ffffff;
}

.final-cta h2 {
  flex: 1 1 520px;
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 48px);
  background: #050536;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-main {
  padding-top: 0;
}

.page-hero {
  padding: clamp(72px, 10vw, 118px) clamp(18px, 4vw, 48px);
  background: var(--primary);
  color: #ffffff;
}

.page-hero .section-inner {
  width: min(920px, 100%);
}

.page-hero .eyebrow {
  color: var(--secondary);
}

.page-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.content-section {
  padding: clamp(54px, 8vw, 84px) clamp(18px, 4vw, 48px);
  background: var(--paper);
}

.content-card {
  width: min(900px, 100%);
  margin: 0 auto;
}

.content-card h2 {
  margin-top: 34px;
  font-size: clamp(24px, 3vw, 34px);
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: var(--muted);
}

.content-card ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.support-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.support-card h3 {
  color: var(--primary);
}

.support-card a {
  color: var(--primary);
  font-weight: 900;
}

.auth-body,
.dashboard-body {
  min-height: 100vh;
  background: var(--soft);
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 18px;
  background:
    linear-gradient(135deg, rgba(10, 10, 79, 0.96), rgba(10, 10, 79, 0.78)),
    url("assets/hero-tax-assistant.png") center / cover;
}

.auth-panel {
  width: min(460px, 100%);
  padding: clamp(26px, 5vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.auth-logo {
  display: block;
  width: 230px;
  max-width: 100%;
  margin-bottom: 30px;
}

.auth-panel h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 6vw, 48px);
}

.auth-copy,
.auth-alt {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.auth-form label,
.client-form label {
  display: grid;
  gap: 7px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.auth-form input,
.client-table input,
.client-table select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.auth-alt {
  margin: 18px 0 0;
  font-weight: 700;
}

.auth-alt a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--secondary);
  text-decoration-thickness: 3px;
}

.notice {
  padding: 13px 14px;
  border-radius: var(--radius);
  margin: 16px 0;
  font-weight: 800;
}

.notice-success {
  border: 1px solid rgba(10, 10, 79, 0.18);
  background: var(--primary-soft);
  color: var(--primary);
}

.notice-error {
  border: 1px solid rgba(185, 28, 28, 0.22);
  background: #fff1f1;
  color: #9f1239;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  color: var(--ink);
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 26px 18px;
  background: var(--primary);
  color: #ffffff;
}

.dashboard-logo {
  display: block;
  width: 210px;
  margin-bottom: 32px;
}

.dashboard-nav {
  display: grid;
  gap: 8px;
}

.dashboard-nav a,
.dashboard-logout {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 900;
}

.dashboard-nav a {
  color: rgba(255, 255, 255, 0.82);
}

.dashboard-nav a.is-active,
.dashboard-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.dashboard-logout {
  margin-top: auto;
  background: var(--secondary);
  color: var(--primary);
}

.dashboard-main {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-topbar h1 {
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 56px);
}

.account-chip {
  display: grid;
  gap: 2px;
  min-width: min(280px, 100%);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(10, 10, 79, 0.06);
}

.account-chip span {
  color: var(--muted);
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-grid article,
.dashboard-card,
.user-plan-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(10, 10, 79, 0.06);
}

.metric-grid article {
  padding: 18px;
}

.metric-grid span,
.user-plan-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.dashboard-card {
  padding: clamp(18px, 3vw, 28px);
}

.dashboard-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-card-head h2,
.user-status-card h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 38px);
}

.client-table-wrap {
  overflow-x: auto;
}

.client-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.client-table th,
.client-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.client-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.client-table td strong,
.client-table td span,
.client-table td small {
  display: block;
}

.client-table td span,
.client-table td small,
.empty-state,
.user-status-card p {
  color: var(--muted);
}

.table-button {
  min-height: 42px;
  padding: 10px 14px;
  background: var(--primary);
  color: #ffffff;
}

.table-button:hover {
  background: #050536;
}

.user-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.user-plan-grid article {
  padding: 18px;
}

.user-plan-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

@media (max-width: 1180px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .nav-cta {
    border-color: var(--line);
  }

  .hero {
    align-items: flex-end;
    min-height: 86svh;
    padding-top: 112px;
  }

  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(10, 10, 79, 0.45) 0%, rgba(10, 10, 79, 0.9) 66%, rgba(10, 10, 79, 0.96) 100%),
      url("assets/hero-tax-assistant.png");
  }

  .two-column,
  .benefits-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .solution-grid,
  .pricing-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-body {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    min-height: auto;
  }

  .dashboard-logo {
    width: 190px;
  }

  .dashboard-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-logout {
    margin-top: 16px;
  }

  .dashboard-topbar,
  .dashboard-card-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .brand {
    width: 170px;
  }

  h1 {
    font-size: clamp(36px, 13vw, 52px);
  }

  .hero-actions .button,
  .final-cta .button {
    width: 100%;
  }

  .section {
    padding-block: 58px;
  }

  .pain-list article {
    grid-template-columns: 1fr;
  }

  .pain-list span,
  .pain-list h3,
  .pain-list p {
    grid-column: auto;
    grid-row: auto;
  }

  .solution-grid,
  .pricing-grid,
  .support-grid,
  .metric-grid,
  .user-plan-grid,
  .dashboard-nav {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: auto;
  }
}
