:root {
  --ink: #12233f;
  --ink-2: #233855;
  --muted: #67748a;
  --line: #dce3eb;
  --surface: #ffffff;
  --soft: #f5f8fb;
  --accent: #1b7ff2;
  --accent-2: #0ea5e9;
  --accent-soft: #e9f4ff;
  --success: #11845b;
  --warn: #bd5b14;
  --shadow: 0 24px 70px rgba(18, 35, 63, .12);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

body.modal-open { overflow: hidden; }

a { color: inherit; }

button, input, select, textarea { font: inherit; }

button { cursor: pointer; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.narrow { max-width: 820px; }

.centered { text-align: center; }

.section { padding: 92px 0; }

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

.section-dark {
  background: var(--ink);
  color: #fff;
}

.section-accent {
  background: linear-gradient(135deg, #e9f4ff 0%, #f4fbff 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220,227,235,.75);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(27,127,242,.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(27,127,242,.24);
}

.button-small {
  padding: 10px 14px;
  font-size: 14px;
}

.button-outline {
  background: #fff;
  color: var(--accent);
  border: 1px solid #b9d7fa;
  box-shadow: none;
}

.button-dark {
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(18,35,63,.16);
}

.hero {
  padding-top: 78px;
  overflow: hidden;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  gap: 68px;
  align-items: center;
}

.hero h1 {
  margin: 10px 0 22px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -.055em;
  max-width: 800px;
}

.hero-lede {
  max-width: 690px;
  font-size: 19px;
  color: var(--ink-2);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.text-link {
  font-weight: 700;
  text-decoration: none;
}

.microcopy {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow.light { color: #8dccff; }

.dashboard-shell {
  position: relative;
  border: 1px solid #dbe5ef;
  border-radius: 28px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dashboard-shell::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(27,127,242,.13), rgba(27,127,242,0) 70%);
  z-index: -1;
  top: -120px;
  right: -130px;
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.dashboard-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-top h2 {
  margin: 3px 0 0;
  font-size: 20px;
  letter-spacing: -.02em;
}

.status-pill {
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
}

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

.metric-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}

.metric-card > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 7px;
}

.metric-card strong {
  display: block;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.metric-card small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}

.metric-card.emphasis {
  border-color: #ffd5bd;
  background: #fff9f5;
}

.metric-card.tax {
  border-color: #b8e9d8;
  background: #f4fcf9;
}

.mini-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.mini-row {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.mini-row:last-child { border-bottom: 0; }

.mini-title,
.mini-sub,
.mini-amount span { display: block; }

.mini-title { font-weight: 800; font-size: 13px; }
.mini-sub { color: var(--muted); font-size: 11px; margin-top: 2px; }
.mini-amount { text-align: right; font-size: 12px; }
.mini-amount strong { display: block; }
.mini-amount .due { color: var(--warn); }
.mini-amount .paid { color: var(--success); }

.section-heading {
  margin-bottom: 42px;
  max-width: 780px;
}

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

.section-heading h2,
.tax-section h2,
.founder h2,
.final-cta h2 {
  margin: 10px 0 14px;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.section-heading p,
.tax-section p,
.founder p,
.final-cta p {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

.section-dark p { color: #cbd5e1; }

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

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
}

.feature-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.feature-card h3 {
  margin: 12px 0 8px;
  font-size: 23px;
  letter-spacing: -.03em;
}

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

.workflow {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 11px;
}

.workflow span {
  padding: 7px 9px;
  background: var(--soft);
  border-radius: 8px;
  font-weight: 700;
}

.workflow b { color: #9aa8ba; }

.tax-card {
  background: #fff;
  color: var(--ink);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0,0,0,.17);
}

.tax-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
}

.tax-line span { color: var(--muted); }
.tax-line strong { font-size: 23px; letter-spacing: -.03em; }

.progress-track {
  height: 12px;
  background: #edf1f5;
  border-radius: 99px;
  overflow: hidden;
  margin: 14px 0;
}

.progress-track span {
  display: block;
  width: 76%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
}

.tax-due {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 18px;
}

.tax-due strong { color: var(--warn); }

.account-list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.account-list span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.account-list b { color: var(--ink); }

.disclaimer {
  margin-top: 20px !important;
  font-size: 12px !important;
  color: #91a3b8 !important;
  max-width: 600px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin: 0 auto;
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 18px 50px rgba(27,127,242,.1);
}

.popular-label {
  position: absolute;
  top: -13px;
  right: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.plan-name {
  color: var(--muted);
  font-weight: 800;
}

.price {
  margin: 10px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price strong {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.05em;
}

.price span { color: var(--muted); }

.price-top p {
  color: var(--muted);
  font-size: 14px;
  min-height: 48px;
}

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

.price-card li {
  position: relative;
  padding-left: 23px;
  font-size: 14px;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 900;
}

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

.annual-note {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin: 11px 0 0;
}

.founder-grid { grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); }

.founder-action {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.founder-action span {
  color: var(--muted);
  font-size: 12px;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: -2px;
  font-size: 22px;
  color: var(--accent);
}

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

.faq details p {
  color: var(--muted);
  margin: 12px 0 0;
}

.final-cta {
  padding-top: 70px;
}

.final-cta p {
  margin: 0 auto 25px;
  max-width: 650px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.muted { color: #9aa8ba; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal.is-open { display: block; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 43, .68);
  backdrop-filter: blur(7px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 28px), 680px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(0,0,0,.3);
  padding: 26px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.modal-header h2 {
  margin: 7px 0 0;
  font-size: 30px;
  letter-spacing: -.04em;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

#tally-frame {
  width: 100%;
  min-height: 560px;
  border: 0;
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }

  .hero-grid,
  .split,
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero { padding-top: 54px; }

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

  .dashboard-shell { max-width: 680px; }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid { max-width: 560px; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--container)); }

  .nav { min-height: 64px; }

  .brand span:last-child { display: none; }

  .hero h1 { font-size: 40px; }

  .hero-lede { font-size: 17px; }

  .dashboard-shell,
  .feature-card,
  .price-card,
  .tax-card { padding: 20px; }

  .metric-grid { grid-template-columns: 1fr; }

  .mini-row { align-items: flex-start; }

  .section-heading h2,
  .tax-section h2,
  .founder h2,
  .final-cta h2 { font-size: 32px; }

  .workflow { gap: 5px; }

  .modal-dialog {
    width: 100%;
    min-height: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
    padding: 20px 16px;
  }

  #tally-frame { min-height: 650px; }
}
