/* ============================================================
   CardAccount — style.css
   Dark theme · wine / sand / blush palette
   ============================================================ */

:root {
  --bg: #130F10;
  --bg-2: #1A1417;
  --bg-3: #22191E;
  --surface: #241A20;
  --text: #F4EDEE;
  --muted: #CDBAC0;
  --wine: #9F1239;
  --wine-bright: #BE123C;
  --wine-dark: #7F0E2E;
  --sand: #E8C99B;
  --blush: #F3D9D0;
  --border: #35242C;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #130F10;
  color: #F4EDEE;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--sand);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--wine {
  background-color: var(--wine);
  color: #FFFFFF;
}

.btn--wine:hover {
  background-color: var(--wine-bright);
  color: #FFFFFF;
}

.btn--ghost {
  background-color: transparent;
  color: var(--blush);
  border: 1px solid var(--wine-bright);
}

.btn--ghost:hover {
  background-color: var(--wine-dark);
  color: #FFFFFF;
}

/* ---------- Calculator navigation ---------- */
.calc-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #150F12;
  border-bottom: 1px solid var(--border);
}

.calc-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand__wordmark {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
}

.calc-icon {
  width: 42px;
  height: 52px;
  border: 2px solid var(--wine-bright);
  border-radius: 8px;
  background-color: var(--bg-3);
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 6px;
}

.calc-icon__display {
  height: 8px;
  border-radius: 3px;
  background-color: var(--sand);
}

.calc-icon__keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  flex: 1;
}

.calc-icon__dot {
  background-color: var(--wine-bright);
  border-radius: 2px;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-links a:hover {
  color: var(--sand);
}

.nav-cta {
  flex: 0 0 auto;
  background-color: var(--wine);
  color: #FFFFFF;
  padding: 11px 24px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-cta:hover {
  background-color: var(--wine-bright);
  color: #FFFFFF;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--text);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 8px 24px 20px;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  color: var(--text);
  padding: 13px 0;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a.mobile-menu__cta {
  color: var(--blush);
  border-bottom: none;
  padding-bottom: 6px;
}

/* ---------- Receipt hero ---------- */
.receipt-hero {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 60% 55% at 78% 18%, #3A0F21 0%, transparent 70%);
  padding: 96px 24px 120px;
  border-bottom: 1px solid var(--border);
}

.receipt-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--sand);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 18px;
}

.hero-title {
  color: var(--text);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 34rem;
  margin: 0 0 34px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.receipt {
  position: relative;
  width: 260px;
  max-width: 100%;
  background: linear-gradient(180deg, #F3D9D0 0%, #E8C99B 100%);
  border-radius: 14px;
  padding: 30px 22px 24px;
  box-shadow: 0 0 60px rgba(159, 18, 57, 0.55), 0 30px 60px rgba(0, 0, 0, 0.55);
  transform: rotate(-2deg);
  margin-left: auto;
}

.receipt__perforation {
  border-top: 2px dashed #9F1239;
  margin-bottom: 22px;
}

.receipt__line {
  display: block;
  height: 11px;
  border-radius: 5px;
  background-color: #9F1239;
  margin-bottom: 16px;
}

.receipt__line--1 {
  width: 68%;
}

.receipt__line--2 {
  width: 92%;
}

.receipt__line--3 {
  width: 58%;
}

.receipt__total {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 3px solid #9F1239;
}

.receipt__total-bar {
  height: 18px;
  width: 58%;
  border-radius: 5px;
  background-color: #7F0E2E;
}

.receipt__check {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #9F1239;
}

.receipt__check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 11px;
  height: 5px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg);
}

/* ---------- Section heading helpers ---------- */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-kicker {
  color: var(--sand);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.section-title {
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- Statement row ---------- */
.statement-section {
  background-color: var(--bg);
  padding: 104px 24px;
}

.statement-section__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.statement-kicker {
  color: var(--sand);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 16px;
}

.statement-title {
  color: var(--text);
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.18;
  font-weight: 800;
  margin: 0 0 22px;
}

.statement-body {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto 20px;
}

.statement-body:last-child {
  margin-bottom: 0;
}

/* ---------- Stats ---------- */
.stats-section {
  background-color: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}

.stats-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.stat {
  text-align: center;
  padding: 24px 16px;
}

.stat__number {
  display: block;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--sand);
  line-height: 1;
}

.stat__label {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 12px;
}

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

/* ---------- Process ---------- */
.process-section {
  background-color: var(--bg);
  padding: 104px 24px;
}

.process-section__inner {
  max-width: 900px;
  margin: 0 auto;
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
  padding-bottom: 48px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--wine-bright);
  border-radius: 50%;
  color: var(--blush);
  font-weight: 800;
  font-size: 1.15rem;
  background-color: var(--bg-2);
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 66px;
  height: 46px;
  width: 2px;
  background-color: var(--border);
}

.process-step__body h3 {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 6px 0 8px;
}

.process-step__body p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
  max-width: 640px;
}

/* ---------- Comparison table ---------- */
.comparison-section {
  background-color: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 104px 24px;
}

.comparison-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tier-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.tier {
  background-color: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
}

.tier--featured {
  border: 2px solid var(--wine-bright);
  box-shadow: 0 0 0 4px rgba(159, 18, 57, 0.18);
}

.tier__name {
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
}

.tier__tag {
  color: var(--sand);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 8px 0 24px;
}

.tier__list {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  flex: 1;
}

.tier__list li {
  color: var(--muted);
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.tier__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 11px;
  height: 5px;
  border-left: 2px solid var(--wine-bright);
  border-bottom: 2px solid var(--wine-bright);
  transform: rotate(-45deg);
}

/* ---------- Bento grid ---------- */
.bento-section {
  background-color: var(--bg);
  padding: 104px 24px;
}

.bento-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 20px;
  grid-template-areas:
    "book  book  tax     payroll"
    "book  book  advis   compli"
    "report report report report";
}

.bento-cell {
  background-color: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.bento-cell:hover {
  border-color: var(--wine-bright);
}

.bento-cell--book {
  grid-area: book;
}

.bento-cell--tax {
  grid-area: tax;
}

.bento-cell--payroll {
  grid-area: payroll;
}

.bento-cell--advis {
  grid-area: advis;
}

.bento-cell--compli {
  grid-area: compli;
}

.bento-cell--report {
  grid-area: report;
}

.bento-cell__index {
  color: var(--wine-bright);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.bento-cell h3 {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 12px 0 10px;
}

.bento-cell p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.bento-cell--report h3 {
  font-size: 1.5rem;
}

/* ---------- Split CTA ---------- */
.split-cta {
  background-color: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 104px 24px;
}

.split-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.split-cta__title {
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
}

.split-cta__body {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 26px;
}

.split-cta__contact p {
  margin: 0 0 8px;
}

.split-cta__contact a {
  color: var(--sand);
  text-decoration: none;
  font-weight: 600;
}

.split-cta__contact a:hover {
  color: var(--blush);
}

.contact-form {
  background-color: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__field span {
  color: var(--blush);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  background-color: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--wine-bright);
  outline-offset: 1px;
}

.contact-form__status {
  color: var(--sand);
  font-size: 0.95rem;
  min-height: 1.4em;
  margin: 0;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--bg);
  border-top: 2px solid var(--wine-bright);
  padding-top: 64px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.footer__col h3 {
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__col li {
  margin-bottom: 11px;
}

.footer__col a,
.footer__col span {
  color: var(--muted);
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--sand);
}

.footer__col--about p {
  color: var(--muted);
  line-height: 1.7;
  margin: 18px 0 0;
}

.brand--footer {
  margin-bottom: 0;
}

.brand--footer .calc-icon {
  width: 32px;
  height: 40px;
  gap: 5px;
  padding: 5px;
}

.brand--footer .calc-icon__display {
  height: 6px;
}

.footer__legal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__legal p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.footer__legal a {
  color: var(--blush);
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--sand);
}

/* ---------- Scroll reveal ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .receipt-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .receipt {
    margin: 0 auto;
  }

  .stats-section__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .tier-table {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "book  book"
      "book  book"
      "tax   payroll"
      "advis compli"
      "report report";
  }

  .split-cta__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

@media (max-width: 560px) {
  .stats-section__inner {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "book"
      "tax"
      "payroll"
      "advis"
      "compli"
      "report";
  }

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

  .footer__legal {
    flex-direction: column;
  }

  .process-step {
    grid-template-columns: 52px 1fr;
    gap: 20px;
  }

  .process-step__num {
    width: 52px;
    height: 52px;
    font-size: 1rem;
  }

  .process-step:not(:last-child)::after {
    left: 25px;
    top: 54px;
    height: 46px;
  }
}
