/* TuitionDesk marketing homepage — TBOS Inter layout (index.html only) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #0d0d0d;
  --ink-muted: #5a5a5a;
  --ink-faint: #999;
  --surface: #f4f7ff;
  --white: #ffffff;
  --accent: #1d4ed8;
  --accent-dark: #1638a8;
  --accent-light: #eff4ff;
  --danger: #dc2626;
  --danger-light: #fff1f1;
  --gold: #c4850a;
  --gold-light: #fff8eb;
  --green: #1a6b3c;
  --border: rgba(29, 78, 216, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --tbos-page-gutter: clamp(16px, 4vw, 48px);
  /* Main story sections: readable column (nav stays full width) */
  --tbos-content-max: min(1120px, calc(100vw - 2 * var(--tbos-page-gutter)));
}

html {
  scroll-behavior: smooth;
}

body.tbos-home {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Only when the fixed CTA bar is present (e.g. index.html) */
body.tbos-home:has(.sticky-footer-cta) {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0));
}

body.tbos-home main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  flex: 1 0 auto;
  box-sizing: border-box;
}

.hero {
  padding: 48px var(--tbos-page-gutter) 40px;
  width: 100%;
  max-width: var(--tbos-content-max);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-sizing: border-box;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(32px, 9vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(15px, 4vw, 17px);
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: none;
  margin: 0 auto 32px;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  width: 100%;
  max-width: 340px;
  transition: background 0.15s, transform 0.12s;
  letter-spacing: -0.01em;
}

/* Anchors: beat browser :visited / parent link rules (e.g. .story-prose a). */
a.btn-primary,
a.btn-primary:visited {
  color: #fff;
}

a.btn-primary:hover,
a.btn-primary:active,
a.btn-primary:focus-visible {
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.hero-meta {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 500;
}

.hero-meta strong {
  color: var(--ink-muted);
  font-weight: 600;
}

.hero-proof {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.proof-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
}

.proof-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.proof-stat-label {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 500;
  line-height: 1.3;
}

.section-divider {
  height: 1px;
  background: var(--border);
  max-width: var(--tbos-content-max);
  margin-left: auto;
  margin-right: auto;
}

.pain {
  padding: 56px var(--tbos-page-gutter);
  width: 100%;
  max-width: min(640px, var(--tbos-content-max));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  text-align: center;
}

.pain h2,
.pain .section-eyebrow {
  text-align: center;
}

.pain-list,
.pain-item,
.pain-callout {
  text-align: left;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.pain h2 {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.pain-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pain-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  padding: 15px 18px;
}

.pain-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: var(--danger-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.pain-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.pain-text strong {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--danger);
}

.pain-callout {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  border-left: 4px solid var(--danger);
}

.pain-callout strong {
  color: #fbbf24;
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.roi-strip {
  background: var(--gold-light);
  border-top: 1px solid rgba(196, 133, 10, 0.2);
  border-bottom: 1px solid rgba(196, 133, 10, 0.2);
  padding: 40px var(--tbos-page-gutter);
  text-align: center;
  box-sizing: border-box;
}

.roi-strip h3 {
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.roi-math {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.roi-box {
  background: var(--white);
  border: 1px solid rgba(196, 133, 10, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  text-align: center;
}

.roi-box-num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.roi-box-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 4px;
}

.roi-vs {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
}

.roi-box.loss .roi-box-num {
  color: var(--danger);
}

.roi-box.gain .roi-box-num {
  color: var(--green);
}

.roi-note {
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0;
}

.features {
  padding: 56px var(--tbos-page-gutter);
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.features h2 {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.features-sub {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.feature-group {
  margin-bottom: 26px;
}

.feature-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.feature-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-card.optional {
  border-style: dashed;
  border-color: rgba(29, 78, 216, 0.25);
  background: var(--accent-light);
}

.feature-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.feature-dot.money {
  background: var(--accent);
}

.feature-dot.sched {
  background: #0891b2;
}

.feature-dot.auto {
  background: var(--green);
}

.feature-dot.ops {
  background: var(--gold);
}

.feature-dot.growth {
  background: #5a4fcf;
}

.feature-dot.opt {
  background: rgba(29, 78, 216, 0.35);
}

.feature-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.feature-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(29, 78, 216, 0.12);
  border-radius: 4px;
  padding: 1px 5px;
  margin-top: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plans {
  padding: 56px var(--tbos-page-gutter);
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.plans-inner {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.plans h2 {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.plans-sub {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.plan-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: var(--surface);
  position: relative;
}

.plan-card.featured {
  border: 2px solid var(--accent);
  background: var(--white);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.plan-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.plan-for {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.plan-price {
  text-align: right;
}

.plan-price-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan-price-period {
  font-size: 12px;
  color: var(--ink-faint);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
}

.plan-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.trust {
  padding: 56px var(--tbos-page-gutter);
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-sizing: border-box;
}

.trust h2 {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.trust-sub {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 32px;
}

.trust-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: left;
}

.trust-item.opt-item {
  border-style: dashed;
  border-color: rgba(29, 78, 216, 0.25);
  background: var(--accent-light);
}

.trust-icon {
  font-size: 20px;
  margin-bottom: 8px;
}

.trust-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.trust-desc {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.opt-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(29, 78, 216, 0.12);
  border-radius: 4px;
  padding: 2px 6px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.testimonials {
  background: #0f1e4a;
  padding: 56px var(--tbos-page-gutter);
  box-sizing: border-box;
}

.testimonials-inner {
  width: 100%;
  max-width: var(--tbos-content-max);
  margin-left: auto;
  margin-right: auto;
}

.testimonials h2 {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.testi-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testi-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.testi-quote {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0 0 12px;
}

.testi-quote .highlight {
  color: #93c5fd;
  font-weight: 600;
}

.testi-author {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.final-cta {
  padding: 64px var(--tbos-page-gutter);
  text-align: center;
  width: 100%;
  max-width: var(--tbos-content-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.final-cta h2 {
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.final-cta h2 em {
  font-style: normal;
  color: var(--accent);
}

.final-cta-sub {
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 28px;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn-primary {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
  display: block;
}

/* Fixed bottom CTA — stays visible above content (all breakpoints) */
.sticky-footer-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  box-sizing: border-box;
  padding: 12px var(--tbos-page-gutter) calc(12px + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.sticky-footer-cta .btn-primary,
.sticky-footer-cta .btn-large {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: min(340px, 100%);
  text-align: center;
  display: inline-block;
}

.btn-large {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.final-cta-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.perk {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.perk::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

.tbos-footer {
  border-top: 1px solid var(--border);
  padding: 24px var(--tbos-page-gutter);
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
  box-sizing: border-box;
  max-width: var(--tbos-content-max);
  margin-left: auto;
  margin-right: auto;
}

.tbos-footer a {
  color: var(--ink-muted);
  text-decoration: none;
}

.tbos-footer a:hover {
  color: var(--accent);
}

.section-wrap {
  width: 100%;
  max-width: var(--tbos-content-max);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 520px) {
  .hero-cta-group {
    flex-direction: row;
    justify-content: center;
  }

  .btn-primary {
    width: auto;
  }
}

@media (min-width: 640px) {
  .hero {
    padding: 80px var(--tbos-page-gutter) 60px;
  }

  .plan-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 520px) {
  .hero-proof {
    grid-template-columns: 1fr;
  }
}
