:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --ink: #1f2933;
  --muted: #687385;
  --line: #d9e0e8;
  --paper: #fbfcfd;
  --panel: #ffffff;
  --navy: #17324d;
  --teal: #0f766e;
  --amber: #b7791f;
  --red: #b42318;
  --green: #277452;
  --blue-soft: #e7f0f8;
  --teal-soft: #e3f4f1;
  --amber-soft: #fff3d6;
  --red-soft: #ffe8e5;
  --shadow: 0 18px 45px rgba(30, 45, 65, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef4f8 0%, #fbfcfd 34%);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

select {
  font: inherit;
}

button {
  cursor: pointer;
}

body.locked {
  overflow: auto;
}

.homepage {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 52%, #ffffff 100%);
}

.homepage[hidden] {
  display: none;
}

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 9px 18px;
  background: #07111f;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 800;
}

.homepage-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(217, 224, 232, 0.65);
}

.homepage-nav div,
.homepage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.homepage-nav a,
.primary-link,
.secondary-link {
  border-radius: 6px;
  padding: 11px 15px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.homepage-nav .nav-cta,
.primary-link {
  background: var(--navy);
  color: white;
}

.secondary-link {
  border: 1px solid var(--line);
  background: white;
}

.homepage-main {
  margin: 0 auto;
}

.homepage-hero {
  padding: 86px 24px 96px;
  background:
    radial-gradient(circle at 84% 18%, rgba(15, 118, 110, 0.34), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #12243a 100%);
  color: white;
}

.homepage-hero > div,
.homepage-explainer,
.homepage-pricing,
.homepage-signup-band,
.homepage-copy-section,
.homepage-grid,
.homepage-center-action {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.homepage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: center;
}

.homepage-kicker {
  margin-bottom: 16px;
  color: #34d399 !important;
  font-weight: 800;
}

.homepage-hero h1 {
  color: white;
}

.homepage-hero p {
  max-width: 620px;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.55;
}

.homepage-preview {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.homepage-preview article,
.homepage-grid article {
  border: 0;
  border-radius: 0;
  padding: 18px;
  background: transparent;
  box-shadow: none;
}

.homepage-preview article {
  background: rgba(255, 255, 255, 0.06);
}

.homepage-preview strong {
  color: white !important;
}

.homepage-preview span,
.homepage-preview small {
  display: block;
  color: var(--muted);
}

.homepage-preview strong {
  display: block;
  margin: 8px 0;
  color: var(--navy);
  font-size: 1.7rem;
}

.homepage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding: 70px 24px 0;
}

.homepage-grid article {
  padding: 0 4px;
}

.homepage-grid h2 {
  position: relative;
  padding-top: 18px;
}

.homepage-grid h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
}

.homepage-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.homepage-copy-section,
.homepage-section-heading {
  width: min(820px, 100%);
  padding: 78px 24px 0;
  text-align: center;
}

.homepage-section-heading {
  margin-left: auto;
  margin-right: auto;
}

.homepage-benefits .homepage-section-heading,
.homepage-how .homepage-section-heading,
.homepage-pricing .homepage-section-heading,
.homepage-faq .homepage-section-heading {
  padding-left: 0;
  padding-right: 0;
}

.homepage-copy-section p,
.homepage-explainer p,
.homepage-section-heading p,
.homepage-signup-band p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.homepage-copy-section p + p,
.homepage-explainer p + p {
  margin-top: 14px;
}

.homepage-trust {
  width: min(1060px, calc(100% - 48px));
  margin: 34px auto 0;
  text-align: center;
}

.homepage-trust p {
  color: var(--muted);
}

.homepage-trust div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.homepage-trust span {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 900;
}

.homepage-product-shot {
  width: min(1120px, calc(100% - 48px));
  margin: 54px auto 0;
}

.product-shot-frame {
  overflow: hidden;
  border: 1px solid rgba(217, 224, 232, 0.9);
  border-radius: 8px;
  background: white;
  box-shadow: 0 28px 70px rgba(30, 45, 65, 0.15);
}

.product-shot-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  background: #f8fafc;
}

.product-shot-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.product-shot-bar span:nth-child(1) {
  background: #ef4444;
}

.product-shot-bar span:nth-child(2) {
  background: #f59e0b;
}

.product-shot-bar span:nth-child(3) {
  background: #10b981;
}

.product-shot-bar strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.product-shot-content {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.75fr));
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(180deg, #eef4f8 0%, #fbfcfd 42%);
}

.shot-main-card,
.shot-stat,
.shot-table,
.shot-advice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.shot-main-card {
  background: var(--navy);
  color: white;
}

.shot-main-card small,
.shot-main-card p {
  color: rgba(255, 255, 255, 0.72);
}

.shot-main-card strong {
  display: block;
  margin: 8px 0;
  font-size: 2.4rem;
  line-height: 1;
}

.shot-stat small,
.shot-main-card small {
  display: block;
  font-weight: 800;
}

.shot-stat small,
.shot-table span,
.shot-advice p {
  color: var(--muted);
}

.shot-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 1.35rem;
}

.shot-stat.warning strong {
  color: var(--amber);
}

.shot-table {
  grid-column: span 2;
  display: grid;
  gap: 8px;
}

.shot-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf1f5;
  padding-bottom: 8px;
}

.shot-table div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.shot-table strong {
  color: var(--navy);
}

.shot-advice {
  grid-column: span 2;
  background: var(--teal-soft);
}

.shot-advice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
}

.shot-advice p {
  margin-bottom: 0;
  line-height: 1.45;
}

.homepage-center-action {
  padding: 34px 24px 72px;
  text-align: center;
}

.homepage-benefits {
  padding: 78px 24px;
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef7f5 100%);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 34px auto 0;
}

.benefit-list article {
  border: 0;
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(30, 45, 65, 0.07);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.benefit-list article:hover,
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(30, 45, 65, 0.12);
}

.benefit-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.benefit-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.homepage-fit {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 76px 24px 10px;
}

.homepage-fit p,
.homepage-fit li {
  color: var(--muted);
  line-height: 1.5;
}

.homepage-fit ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.homepage-fit li {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 0;
  background: transparent;
}

.homepage-fit li::before {
  content: "✓ ";
  color: var(--teal);
  font-weight: 900;
}

.homepage-how {
  padding: 72px 24px 18px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  width: min(1100px, 100%);
  margin: 34px auto 0;
}

.how-steps article {
  position: relative;
  padding-left: 58px;
}

.how-steps span {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 900;
}

.how-steps p {
  color: var(--muted);
  line-height: 1.45;
}

.homepage-explainer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 34px;
  align-items: center;
  padding: 76px 24px;
}

.threshold-highlight {
  border-radius: 8px;
  padding: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(52, 211, 153, 0.22), transparent 36%),
    #07111f;
  color: white;
  box-shadow: 0 22px 54px rgba(7, 17, 31, 0.22);
}

.threshold-highlight span,
.threshold-highlight p {
  color: #cbd5e1;
}

.threshold-highlight strong {
  display: block;
  margin: 8px 0 16px;
  font-size: 3rem;
}

.homepage-pricing {
  padding: 76px 24px;
}

.homepage-plan-prompt {
  width: min(860px, calc(100% - 48px));
  margin: 12px auto 0;
  border: 0;
  border-radius: 8px;
  padding: 32px;
  background:
    linear-gradient(135deg, #e3f4f1 0%, #ffffff 100%);
  box-shadow: 0 18px 44px rgba(30, 45, 65, 0.08);
  text-align: center;
}

.homepage-plan-prompt p {
  color: var(--muted);
  line-height: 1.5;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.pricing-card {
  border: 0;
  border-radius: 8px;
  padding: 32px;
  background: white;
  box-shadow: 0 18px 48px rgba(30, 45, 65, 0.09);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.pricing-card.featured {
  box-shadow:
    0 0 0 2px var(--teal),
    0 20px 54px rgba(15, 118, 110, 0.13);
}

.pricing-card p,
.pricing-card li {
  color: var(--muted);
  line-height: 1.45;
}

.price-line {
  display: flex;
  align-items: end;
  gap: 6px;
  margin: 20px 0;
}

.price-line strong {
  color: var(--navy);
  font-size: 3rem;
  line-height: 1;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.pricing-card li::before {
  content: "✓ ";
  color: var(--teal);
  font-weight: 900;
}

.full-link {
  display: block;
  text-align: center;
}

.secondary-link.dark {
  background: #07111f;
  color: white;
}

.homepage-signup-band {
  max-width: none;
  padding: 82px 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(15, 118, 110, 0.28), transparent 28%),
    #07111f;
  color: white;
  text-align: center;
}

.homepage-faq {
  padding: 70px 24px;
  background: #f8fafc;
}

.faq-list {
  display: grid;
  gap: 10px;
  width: min(860px, 100%);
  margin: 30px auto 0;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-list summary {
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.homepage-signup-band h2 {
  color: white;
}

.homepage-signup-band p,
.homepage-signup-band small {
  color: #cbd5e1;
}

.homepage-email-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(640px, 100%);
  margin: 24px auto 12px;
}

.homepage-email-form input {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
}

.homepage-email-form button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  background: var(--teal);
  color: white;
  font-weight: 900;
}

.homepage-footer {
  padding: 32px 24px;
  background: white;
  text-align: center;
  color: var(--muted);
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 36px;
  align-items: center;
  padding: 42px;
  overflow: auto;
  background: linear-gradient(135deg, #f6fbfa 0%, #e8f1f7 100%);
}

.auth-screen.hidden {
  display: none;
}

.auth-copy {
  max-width: 760px;
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.hero-logo {
  height: 132px;
  margin-bottom: 24px;
}

.header-logo {
  height: 78px;
  margin-bottom: 18px;
}

.nav-logo {
  height: 58px;
}

.auth-intro {
  max-width: 590px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.price-card,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.price-card {
  max-width: 360px;
  padding: 18px;
}

.price-card span,
.price-card small {
  display: block;
  color: var(--muted);
}

.price-card strong {
  display: block;
  margin: 8px 0;
  color: var(--navy);
  font-size: 2rem;
}

.auth-card {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 84px);
  overflow: auto;
  padding: 24px;
}

#authSubmit {
  position: sticky;
  bottom: 0;
  margin-top: 2px;
  box-shadow: 0 -8px 18px rgba(255, 255, 255, 0.88);
}

.auth-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.auth-card input {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: white;
}

.auth-card select,
.settings-grid select,
.settings-grid input {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: white;
}

.trial-note {
  border: 1px solid #aed8cf;
  border-radius: 8px;
  padding: 12px;
  background: var(--teal-soft);
}

.trial-note strong,
.trial-note span {
  display: block;
}

.trial-note strong {
  color: var(--teal);
  margin-bottom: 4px;
}

.trial-note span {
  color: var(--muted);
  line-height: 1.4;
}

.plan-select {
  display: grid;
  gap: 10px;
}

.plan-select label {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
}

.plan-select input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.plan-select span,
.plan-select strong {
  display: block;
}

.plan-select strong {
  color: var(--navy);
  margin-bottom: 3px;
}

.auth-card button,
.product-nav button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.mobile-primary {
  display: none;
}

.auth-card .text-button {
  min-height: auto;
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: var(--teal);
  text-align: left;
}

.auth-error {
  min-height: 20px;
  color: var(--red) !important;
  font-weight: 700;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.billing-gate,
.legal-page,
.onboarding-overlay {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #eef4f8 0%, #fbfcfd 42%);
  padding: 28px;
}

.billing-gate-card,
.legal-content,
.onboarding-card {
  width: min(780px, 100%);
  margin: 70px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: auto;
  background: rgba(238, 244, 248, 0.94);
}

.onboarding-card {
  width: min(980px, calc(100% - 32px));
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.onboarding-steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}

.onboarding-steps strong {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
}

.onboarding-steps p {
  color: var(--muted);
  line-height: 1.45;
}

.onboarding-steps select,
.onboarding-steps textarea,
.accountant-grid input {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: white;
  font: inherit;
}

.onboarding-steps textarea {
  min-height: 96px;
  resize: vertical;
}

.onboarding-actions {
  margin-top: 14px;
}

.billing-gate-card p,
.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.55;
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.legal-content h2 {
  margin-top: 24px;
}

.homepage-footer a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.app-shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.product-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.product-nav strong,
.product-nav span {
  display: block;
}

.account-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.product-nav span {
  color: var(--muted);
  font-size: 0.85rem;
}

.account-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.settings-panel {
  margin-bottom: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-integration {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.settings-integration .panel-heading p {
  max-width: 760px;
}

.settings-integration .source-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.settings-summary span,
.settings-summary strong {
  display: block;
}

.settings-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.settings-summary strong {
  margin-top: 7px;
  color: var(--navy);
}

.billing-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.wide-button.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
}

.subscription-pill {
  border: 1px solid #aed8cf;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--teal-soft);
  color: var(--teal) !important;
  font-weight: 800;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.08rem;
}

h3 {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.threshold-control,
.panel,
.status-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.threshold-control {
  border-radius: 8px;
  padding: 16px;
}

.threshold-control strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}

.threshold-control small {
  color: var(--muted);
  line-height: 1.35;
}

.trust-note {
  margin: -8px 0 18px;
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 12px 14px;
  background: var(--teal-soft);
  color: #285c58;
  font-size: 0.9rem;
  line-height: 1.45;
}

label,
.label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.money-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: white;
}

.money-input input {
  width: 100%;
  border: 0;
  padding: 10px 0;
  outline: 0;
}

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

.status-card {
  min-height: 132px;
  border-radius: 8px;
  padding: 18px;
}

.status-card.primary {
  background: var(--navy);
  color: white;
}

.status-card.primary .label,
.status-card.primary small {
  color: rgba(255, 255, 255, 0.74);
}

.status-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1;
}

.status-card small {
  color: var(--muted);
  line-height: 1.35;
}

.monthly-review-panel {
  margin-bottom: 18px;
}

.dashboard-tools-panel {
  margin-bottom: 18px;
}

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

.dashboard-tools button,
.invoice-row button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: white;
  color: var(--navy);
  font-weight: 800;
}

.monthly-review-panel .panel-heading {
  align-items: center;
}

.compact-button {
  width: auto;
  min-width: 220px;
  margin-top: 0;
}

.compact-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.review-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.review-steps span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.review-steps span.complete {
  border-color: #aed8cf;
  background: var(--teal-soft);
  color: var(--teal);
}

.review-steps span.warning,
.review-steps span.watch {
  border-color: #f1cf8d;
  background: var(--amber-soft);
  color: var(--amber);
}

.review-steps span.danger {
  border-color: #ffb8ae;
  background: var(--red-soft);
  color: var(--red);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  gap: 18px;
}

.panel {
  border-radius: 8px;
  padding: 18px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.panel-heading p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.panel-heading.compact {
  margin-bottom: 12px;
}

.panel-heading.compact h2 {
  margin: 0;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--teal);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.month-list {
  display: grid;
  gap: 10px;
}

.month-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.month-row.reviewed {
  border-color: #aed8cf;
  background: #f6fcfa;
}

.month-display {
  display: grid;
  gap: 5px;
}

.month-display span {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.month-display em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.month-row.reviewed .month-display em {
  color: var(--teal);
}

.month-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: white;
}

.review-month-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: white;
  color: var(--navy);
  font-weight: 800;
}

.month-row.reviewed .review-month-btn {
  border-color: #aed8cf;
  background: var(--teal-soft);
  color: var(--teal);
}

.remove-btn {
  width: 40px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--muted);
  cursor: pointer;
}

.side-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.planning-grid {
  margin-top: 18px;
}

.invoice-list {
  display: grid;
  gap: 10px;
}

.invoice-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(140px, 0.8fr) minmax(130px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.invoice-row input {
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: white;
}

.edge-case-list {
  display: grid;
  gap: 10px;
}

.edge-case-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
}

.edge-case-list input {
  width: 18px;
  height: 18px;
}

.accountant-panel {
  margin-top: 18px;
}

.accountant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.4fr);
  gap: 12px;
}

.accountant-report {
  overflow: auto;
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
  color: var(--ink);
  font: 0.88rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.source-options {
  display: grid;
  gap: 10px;
}

.source-option {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.source-option strong,
.source-option span {
  display: block;
}

.source-option span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.source-option.active {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.integration-status {
  margin-top: 12px;
  border-radius: 8px;
  padding: 12px;
  background: var(--blue-soft);
  color: var(--muted);
  line-height: 1.4;
}

.integration-status strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.integration-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.integration-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.integration-actions button:disabled,
.month-row input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.integration-actions button.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
}

.action-list {
  display: grid;
  gap: 10px;
}

.action-item {
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 12px;
  background: var(--teal-soft);
}

.action-item.warning {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.action-item.danger {
  border-left-color: var(--red);
  background: var(--red-soft);
}

.action-item strong {
  display: block;
  margin-bottom: 4px;
}

.action-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.reminder-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.reminder-form input {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
}

.reminder-form button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--navy);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.reminder-output {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.notification-options {
  display: grid;
  gap: 10px;
}

.notification-options label {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
}

.notification-options input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.wide-button {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--navy);
  color: white;
  font-weight: 800;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  margin-top: 18px;
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tip-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}

.tip-grid p,
.guide-text {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: white;
  color: var(--muted);
  cursor: pointer;
}

.tab.active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 800;
}

.risk-clear {
  color: var(--green);
}

.risk-warning {
  color: var(--amber);
}

.risk-danger {
  color: var(--red);
}

.trade-guide-panel {
  margin-top: 18px;
}

.trade-search {
  width: min(100%, 360px);
}

.trade-search input {
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: white;
}

.trade-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.trade-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.trade-chip.active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.trade-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trade-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}

.trade-card h3 {
  color: var(--navy);
}

.trade-card p {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.trade-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 980px) {
  .auth-screen,
  .homepage-hero,
  .homepage-grid,
  .homepage-explainer,
  .homepage-fit,
  .pricing-grid,
  .benefit-list,
  .how-steps,
  .onboarding-steps,
  .product-shot-content,
  .topbar,
  .workspace-grid,
  .lower-grid,
  .trade-results,
  .dashboard-tools,
  .invoice-row,
  .accountant-grid,
  .review-steps,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .settings-integration .source-options {
    grid-template-columns: 1fr;
  }

  .auth-screen {
    position: static;
    min-height: 100vh;
    padding: 24px;
  }

  .auth-card {
    max-height: none;
  }

  .mobile-primary {
    display: block;
  }

  .status-card {
    min-height: 112px;
  }
}

@media (max-width: 620px) {
  .homepage {
    padding: 18px;
  }

  .trust-strip {
    align-items: center;
    flex-direction: column;
    gap: 4px;
    margin: -18px -18px 0;
  }

  .homepage-nav {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 0;
  }

  .homepage-email-form {
    grid-template-columns: 1fr;
  }

  .homepage-product-shot {
    width: min(100% - 24px, 1120px);
  }

  .shot-table,
  .shot-advice {
    grid-column: auto;
  }

  .app-shell {
    width: min(100% - 20px, 1380px);
    padding-top: 18px;
  }

  .onboarding-card {
    width: min(100%, 980px);
    margin: 28px auto;
  }

  .month-row,
  .reminder-form,
  .settings-grid,
  .tip-grid {
    grid-template-columns: 1fr;
  }

  .compact-button {
    width: 100%;
  }

  .product-nav,
  .account-actions,
  .billing-actions,
  .integration-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-actions {
    display: flex;
  }

  .hero-logo {
    height: 88px;
  }

  .header-logo {
    height: 58px;
  }

  .nav-logo {
    height: 44px;
  }
}


.dashboard-nav {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(30, 45, 65, 0.08);
}

.dashboard-nav-link {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.dashboard-nav-link.active,
.dashboard-nav-link:hover {
  border-color: #aed8cf;
  background: var(--teal-soft);
  color: var(--teal);
}

.risk-overview {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 14px;
  background: #ffffff;
}

.risk-overview-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
  padding: 22px;
  background: #07111f;
  color: white;
}

.risk-overview-copy h2 {
  margin: 12px 0 10px;
  color: white;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.risk-overview-copy p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.45;
}

.risk-pill {
  align-self: flex-start;
  border-radius: 999px;
  padding: 8px 12px;
  background: #dcfce7;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
}

.risk-pill.risk-warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.risk-pill.risk-danger {
  background: var(--red-soft);
  color: var(--red);
}

.risk-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.risk-overview-grid article {
  display: grid;
  align-content: center;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--paper);
}

.risk-overview-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.risk-overview-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: clamp(1.28rem, 2.2vw, 2rem);
  line-height: 1.05;
}

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

.status-card {
  min-height: 104px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(30, 45, 65, 0.06);
}

.status-card strong {
  font-size: clamp(1.22rem, 2vw, 1.8rem);
}

.status-card:nth-child(1),
.status-card:nth-child(2) {
  display: none;
}

.completion-feedback {
  margin-top: 12px;
  border: 1px solid #aed8cf;
  border-radius: 8px;
  padding: 12px;
  background: var(--teal-soft);
  color: #285c58;
  line-height: 1.45;
}

.history-toggle {
  margin-top: 10px;
}

.simulation-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.simulation-controls input {
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
}

.simulation-output {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  border: 1px solid #c8d7e4;
  border-radius: 8px;
  padding: 12px;
  background: var(--blue-soft);
  color: var(--muted);
  line-height: 1.4;
}

.simulation-output strong {
  color: var(--navy);
}

.collapsible-panel {
  padding: 0;
  overflow: hidden;
}

.collapsible-panel details {
  padding: 18px;
}

.collapsible-panel summary {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 950;
  cursor: pointer;
}

.collapsible-panel details[open] summary {
  margin-bottom: 14px;
}

.trade-guide-body > p {
  color: var(--muted);
  line-height: 1.45;
}

.floating-review-btn {
  display: none;
}

.billing-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .risk-overview,
  .risk-overview-grid,
  .simulation-controls {
    grid-template-columns: 1fr;
  }

  .billing-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .dashboard-nav {
    top: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .dashboard-nav-link {
    flex: 0 0 auto;
  }

  .risk-overview {
    position: sticky;
    top: 58px;
    z-index: 8;
    padding: 10px;
  }

  .risk-overview-copy {
    padding: 16px;
  }

  .risk-overview-grid article:not(:first-child) {
    display: none;
  }

  .floating-review-btn {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 20;
    display: block;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: var(--teal);
    color: white;
    font-weight: 950;
    box-shadow: 0 14px 34px rgba(15, 118, 110, 0.28);
  }
}


.app-page[hidden] {
  display: none !important;
}

.dashboard-nav-link.active {
  pointer-events: none;
}


.auth-card[data-mode="signin"] #signupBusinessNameGroup,
.auth-card[data-mode="signin"] #signupBusinessTypeGroup,
.auth-card[data-mode="signin"] #planSelect,
.auth-card[data-mode="signin"] #trialNote,
.auth-card[data-mode="forgot"] #signupBusinessNameGroup,
.auth-card[data-mode="forgot"] #signupBusinessTypeGroup,
.auth-card[data-mode="forgot"] #planSelect,
.auth-card[data-mode="forgot"] #trialNote,
.auth-card[data-mode="reset"] #signupBusinessNameGroup,
.auth-card[data-mode="reset"] #signupBusinessTypeGroup,
.auth-card[data-mode="reset"] #planSelect,
.auth-card[data-mode="reset"] #trialNote {
  display: none !important;
}
