:root {
  --brand: #006847;
  --brand-deep: #004d35;
  --brand-soft: #e8f4ef;
  --brand-wash: #f2fbf6;
  --gold: #f4c95d;
  --gold-soft: #fff5dc;
  --gold-wash: #fffbef;
  --terra: #a9482f;
  --terra-soft: #fff0ea;
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6b7280;
  --paper: #ffffff;
  --cream: #faf8f3;
  --mist: #f4f7f5;
  --line: #e5e7eb;
  --shadow: 0 16px 38px rgba(17, 24, 39, 0.1);
  --shadow-soft: 0 8px 22px rgba(17, 24, 39, 0.08);
  --radius: 8px;
  --radius-lg: 14px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fffdf8;
  color: var(--ink);
  font-family:
    'DM Sans',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sell-tax-courses-page {
  padding-top: calc(44px + var(--topbar-height, 78px));
}

.sell-tax-courses-page .topbar {
  top: 44px;
}

.sell-contact-banner {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1100;
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 8px 20px;
  background: #6b8ca3;
  color: #ffffff;
  text-align: center;
}

.sell-contact-banner p {
  color: inherit;
  font-size: 0.875rem;
  font-weight: 700;
}

a {
  color: inherit;
}

.page {
  padding-top: 0;
}

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

.section {
  padding: clamp(64px, 8vw, 96px) 0;
}

.section-muted {
  background: var(--gold-wash);
  border-top: 1px solid rgba(244, 201, 93, 0.38);
  border-bottom: 1px solid rgba(244, 201, 93, 0.38);
}

.section-cream {
  background: var(--brand-wash);
  border-top: 1px solid rgba(0, 104, 71, 0.12);
  border-bottom: 1px solid rgba(0, 104, 71, 0.12);
}

.section-brand {
  background: var(--brand-deep);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  color: var(--brand-deep);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

p {
  margin: 0;
}

.lead {
  max-width: 760px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.26rem);
  font-weight: 650;
}

.hero .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-lead {
  max-width: 720px;
  color: var(--brand-deep);
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  line-height: 1.52;
  font-weight: 700;
}

.hero-detail {
  max-width: 680px;
  margin-top: 16px;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  font-weight: 560;
  line-height: 1.68;
  color: var(--ink-soft);
}

.hero-price-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 600;
  text-align: center;
}

.hero-proof {
  max-width: 720px;
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 104, 71, 0.22);
  color: var(--brand-deep);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}

.body-copy {
  color: var(--ink-soft);
  font-size: 1.04rem;
  font-weight: 560;
}

.hero {
  padding: 82px 0 78px;
  background: var(--gold-soft);
  border-bottom: 5px solid var(--brand);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::after {
  right: max(24px, calc(50% - 610px));
  bottom: 30px;
  width: 160px;
  height: 14px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: -34px 20px 0 rgba(0, 104, 71, 0.18);
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.feature-card,
.option-card {
  border: 1px solid rgba(0, 104, 71, 0.12);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero .actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  border-color: rgba(0, 104, 71, 0.28);
  background: var(--paper);
  color: var(--brand-deep);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.center h2::after,
.setup-layout .section-heading h2::after {
  content: "";
  display: block;
  width: 68px;
  height: 5px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: var(--gold);
}

.section-heading p {
  margin-top: 16px;
}

.setup-section {
  background: var(--brand-wash);
  border-top: 1px solid rgba(0, 104, 71, 0.12);
  border-bottom: 1px solid rgba(0, 104, 71, 0.14);
}

.tracking-section {
  background: var(--brand-wash);
}

.tracking-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(26px, 5vw, 60px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.tracking-callout h2 {
  color: var(--brand-deep);
}

.tracking-callout p {
  max-width: 66ch;
  margin-top: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.tracking-callout .btn {
  max-width: 280px;
}

.setup-layout {
  max-width: 1040px;
}

.setup-layout .section-heading {
  max-width: 720px;
  margin-right: auto;
  margin-bottom: 26px;
  margin-left: auto;
  text-align: center;
}

.section-brand h2,
.section-brand .body-copy {
  color: rgba(255, 255, 255, 0.92);
}

.section-brand .feature-card {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.96);
}

section[aria-labelledby="course-flow-heading"] {
  background: var(--paper);
}

section[aria-labelledby="curriculum-heading"] {
  background: var(--terra-soft);
  border-top: 1px solid rgba(169, 72, 47, 0.14);
  border-bottom: 1px solid rgba(169, 72, 47, 0.14);
}

section[aria-labelledby="course-flow-heading"] h2,
section[aria-labelledby="curriculum-heading"] h2,
section[aria-labelledby="pricing-heading"] h2,
section[aria-labelledby="options-heading"] h2,
.setup-section h2 {
  color: var(--brand-deep);
}

.partnership-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.partnership-copy {
  max-width: 680px;
  margin-bottom: 0;
}

.partnership-copy .body-copy {
  max-width: 62ch;
  font-size: clamp(1.04rem, 1.4vw, 1.16rem);
  line-height: 1.72;
}

.partnership-copy strong {
  color: #ffffff;
  font-weight: 900;
}

.partnership-offer {
  display: flex;
  align-self: stretch;
}

.partnership-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.partnership-card::before {
  content: "";
  width: 58px;
  height: 6px;
  margin-bottom: 28px;
  border-radius: 6px;
  background: var(--gold);
}

.partnership-card h3 {
  color: var(--brand-deep);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.partnership-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.72;
}

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

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

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}

.feature-card,
.option-card {
  padding: 24px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p,
.option-card p {
  color: var(--ink-soft);
  font-weight: 560;
}

.option-card {
  display: flex;
  align-items: center;
  min-height: 120px;
  color: var(--brand-deep);
  font-weight: 800;
  line-height: 1.35;
}

.course-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 104, 71, 0.16);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 104, 71, 0.32);
  box-shadow: 0 22px 46px rgba(17, 24, 39, 0.13);
}

.course-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--brand-soft);
}

.course-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-top: 5px solid var(--brand);
}

.course-card:nth-child(2) .course-card-body {
  border-top-color: var(--gold);
}

.course-card:nth-child(3) .course-card-body {
  border-top-color: var(--terra);
}

.course-card h3 {
  color: var(--brand-deep);
  font-size: 1.42rem;
}

.course-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 560;
  line-height: 1.62;
}

.course-price {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 104, 71, 0.12);
}

.course-price-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 750;
}

.course-price-row strong {
  color: var(--brand-deep);
  font-weight: 950;
  white-space: nowrap;
}

.pricing-note {
  max-width: 680px;
  margin: 20px auto 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid rgba(0, 104, 71, 0.18);
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.pricing-note p {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 560;
  line-height: 1.58;
}

.course-flow {
  max-width: 900px;
  margin: 0 auto;
  padding: 6px 28px;
  border: 1px solid rgba(0, 104, 71, 0.16);
  border-radius: var(--radius-lg);
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
}

.course-flow-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 104, 71, 0.12);
}

.course-flow-item:last-child {
  border-bottom: 0;
}

.course-flow-item h3 {
  color: var(--brand-deep);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.35;
}

.course-flow-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
  font-weight: 560;
  line-height: 1.7;
}

.check-list {
  display: grid;
  gap: 12px;
  max-width: 840px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 18px 22px 18px 52px;
  border: 1px solid rgba(0, 104, 71, 0.12);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 560;
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 50%;
  width: 8px;
  height: 5px;
  margin-top: -4px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.setup-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 36px;
  max-width: none;
  gap: 0;
  padding: 8px 28px;
  border: 1px solid rgba(0, 104, 71, 0.16);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.setup-list li {
  display: flex;
  min-height: 78px;
  align-items: center;
  padding: 20px 0 20px 46px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(0, 104, 71, 0.14);
  background: transparent;
  box-shadow: none;
  color: var(--brand-deep);
  font-weight: 700;
}

.setup-list li:last-child {
  border-bottom: 0;
}

.setup-list li::before {
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius);
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 104, 71, 0.12);
}

.setup-list li::after {
  left: 7px;
  border-color: #ffffff;
}

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

.curriculum-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.faq-item {
  border: 1px solid rgba(0, 104, 71, 0.14);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.045);
}

.faq-item:nth-child(even) {
  background: var(--brand-wash);
}

.curriculum-list .faq-item:nth-child(even) {
  background: var(--paper);
}

.faq-item[open] {
  border-color: rgba(244, 201, 93, 0.72);
  background: var(--gold-wash);
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  color: var(--brand-deep);
  font-size: 1.02rem;
  font-weight: 900;
  list-style: none;
}

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

.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.faq-item p {
  padding: 0 22px 22px;
  color: var(--ink-soft);
  font-weight: 560;
}

.final-cta {
  background: var(--brand-deep);
  color: #ffffff;
  text-align: center;
  border-top: 8px solid var(--gold);
}

.final-cta .container {
  max-width: 850px;
}

.final-cta p {
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  font-weight: 650;
}

.final-cta .hero-price-note {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 600;
}

.final-cta .actions {
  justify-content: center;
}

.final-cta .btn-primary,
.final-cta .btn-secondary {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--brand-deep);
}

.logo-link {
  color: var(--brand-deep);
  font-weight: 900;
  text-decoration-color: rgba(0, 104, 71, 0.32);
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .partnership-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tracking-callout {
    grid-template-columns: 1fr;
  }

  .partnership-card {
    min-height: 0;
  }
}

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

  .hero {
    padding-top: 48px;
  }

  .card-grid,
  .card-grid--2,
  .setup-list,
  .curriculum-list,
  .options-grid {
    grid-template-columns: 1fr;
  }

  .setup-list {
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .partnership-card {
    padding: 26px;
  }

  .course-flow-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tracking-callout .btn {
    width: 100%;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sell-tax-courses-page *,
  .sell-tax-courses-page *::before,
  .sell-tax-courses-page *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
  }
}
