/* ============================================================
   TMG Books — Dark Editorial Preview
   Built on TMG Brand Library tokens
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Brand tokens */
  --black: #000000;
  --near-black: #0A0A0A;
  --charcoal: #141414;
  --dark-surface: #1A1A1A;
  --gold: #DDD68C;
  --gold-dim: rgba(221, 214, 140, 0.15);
  --gold-glow: rgba(221, 214, 140, 0.08);
  --cream: #F2F1E6;
  --cream-dark: #E8E7D9;
  --white: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-muted-dark: #4D5156;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(221, 214, 140, 0.25);

  /* Typography */
  --font-body: 'Roboto', sans-serif;
  --font-display: 'Roboto', sans-serif;

  /* Fluid type */
  --text-hero: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --text-h2: clamp(2rem, 3.5vw + 0.5rem, 3.5rem);
  --text-h3: clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem);
  --text-h4: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
  --text-body-lg: clamp(1rem, 0.5vw + 0.875rem, 1.25rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-xs: 0.75rem;

  /* Spacing */
  --section-pad: clamp(5rem, 10vw, 9rem);
  --container-max: 1200px;
  --container-narrow: 880px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  background-color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Sticky Nav --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.site-nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav__wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

.site-nav__wordmark span {
  color: var(--gold);
  font-weight: 600;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.site-nav__link {
  font-size: var(--text-small);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--gold);
}

.site-nav__cta {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--black);
  background: var(--gold);
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.site-nav__cta:hover {
  background: var(--white);
  color: var(--black);
}

/* Mobile nav */
.site-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.site-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .site-nav__links { display: none; }
  .site-nav__toggle { display: block; }
  .site-nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
  }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--black);
  padding-top: 72px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero__kicker {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.75rem;
}

.hero__headline .word {
  display: inline-block;
  overflow: hidden;
}

.hero__headline .word-inner {
  display: inline-block;
  transform: translateY(110%);
}

.hero__accent {
  color: var(--gold);
}

.hero__sub {
  font-size: var(--text-body-lg);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2.5rem;
  opacity: 0;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  opacity: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--gold {
  font-size: var(--text-body);
  color: var(--black);
  background: var(--gold);
  padding: 0.875rem 2.25rem;
  border-radius: 999px;
}

.btn--gold:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.btn--ghost {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  padding: 0.875rem 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
  color: var(--white);
  border-color: var(--white);
}

.btn--ghost-dark {
  font-size: var(--text-body);
  color: var(--black);
  background: transparent;
  padding: 0.875rem 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn--ghost-dark:hover {
  background: var(--black);
  color: var(--white);
}

/* --- Section scaffolding --- */
.section {
  padding: var(--section-pad) 0;
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--charcoal {
  background: var(--charcoal);
  color: var(--white);
}

.section--cream {
  background: var(--cream);
  color: #0A1015;
}

.section__kicker {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section--cream .section__kicker {
  color: #8A8460;
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section__subtitle {
  font-size: var(--text-body-lg);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section--cream .section__subtitle {
  color: var(--text-muted-dark);
}

.section__header {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

/* Gold rule */
.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 1.5rem 0;
}

/* --- Your Month With Us --- */
.month-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.month-step {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: border-color 0.3s ease;
}

.month-step:hover {
  border-color: var(--border-gold);
}

.month-step__number {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1rem;
}

.month-step__title {
  font-size: var(--text-h4);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.month-step__desc {
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

.month-step__gold-line {
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.month-step:hover .month-step__gold-line {
  opacity: 1;
}

@media (max-width: 768px) {
  .month-steps {
    grid-template-columns: 1fr;
  }
}

/* --- Dashboard mockup --- */
.dashboard-section {
  padding: var(--section-pad) 0;
  background: var(--near-black);
  position: relative;
  overflow: hidden;
}

.dashboard-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.dashboard-header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  position: relative;
  z-index: 2;
}

.dashboard-frame {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  background: var(--dark-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
}

.dashboard-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-frame__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-frame__dot:first-child { background: #FF5F57; }
.dashboard-frame__dot:nth-child(2) { background: #FFBD2E; }
.dashboard-frame__dot:nth-child(3) { background: #28C840; }

.dashboard-frame__title {
  margin-left: 0.75rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.dashboard-body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-top__title {
  font-size: var(--text-h4);
  font-weight: 600;
}

.dashboard-top__period {
  font-size: var(--text-small);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

/* KPI row */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
}

.kpi-card__label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.kpi-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.kpi-card__trend {
  font-size: var(--text-xs);
  margin-top: 0.35rem;
  color: #28C840;
}

.kpi-card__trend--neutral {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dashboard bottom grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Revenue sparkline card */
.sparkline-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
}

.sparkline-card__title {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sparkline-svg {
  width: 100%;
  height: 120px;
}

.sparkline-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline-area {
  fill: url(#goldGradient);
  opacity: 0.3;
}

.sparkline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.sparkline-labels span {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Deadlines card */
.deadlines-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
}

.deadlines-card__title {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.deadline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.deadline-item:last-child {
  border-bottom: none;
}

.deadline-item__name {
  font-size: var(--text-small);
  color: var(--white);
  font-weight: 400;
}

.deadline-item__date {
  font-size: var(--text-xs);
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}

.deadline-item__status {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.deadline-item__status--filed {
  background: rgba(40, 200, 64, 0.12);
  color: #28C840;
}

.deadline-item__status--upcoming {
  background: var(--gold-dim);
  color: var(--gold);
}

/* --- Pricing Comparison --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card--highlight {
  border: 2px solid var(--gold);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--gold);
  color: var(--black);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card__name {
  font-size: var(--text-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-dark);
  margin-bottom: 0.75rem;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  color: #0A1015;
  line-height: 1.1;
}

.pricing-card__price-note {
  font-size: var(--text-xs);
  color: var(--text-muted-dark);
  margin-top: 0.35rem;
  margin-bottom: 1.5rem;
}

.pricing-card__divider {
  width: 100%;
  height: 1px;
  background: #E5E5E5;
  margin-bottom: 1.5rem;
}

.pricing-card__features {
  flex: 1;
  margin-bottom: 1.5rem;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-small);
  color: #4D5156;
  padding: 0.4rem 0;
  line-height: 1.5;
}

.pricing-card__feature-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.pricing-card__feature-icon--check {
  color: #28C840;
}

.pricing-card__feature-icon--x {
  color: #ccc;
}

.pricing-card__feature-icon--warn {
  color: #DDD68C;
}

.pricing-disclaimer {
  text-align: center;
  margin-top: 2rem;
  font-size: var(--text-xs);
  color: var(--text-muted-dark);
  font-style: italic;
}

/* --- Value section (your month with us) --- */

/* --- CTA Band --- */
.cta-band {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--black);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 60%);
  pointer-events: none;
}

.cta-band__content {
  position: relative;
  z-index: 2;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.cta-band__sub {
  font-size: var(--text-body-lg);
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-band__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer__brand span {
  color: var(--gold);
  font-weight: 600;
}

.site-footer__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer__link {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.site-footer__link:hover {
  color: var(--gold);
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

.site-footer__location {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

/* --- Animations (GSAP controlled) --- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-fade {
  opacity: 0;
}

/* Dashboard animate-in states */
.kpi-card__value[data-count] {
  opacity: 0;
}

/* Sparkline bars animation */
.bar-group rect {
  transform-origin: bottom;
  transform: scaleY(0);
}

/* Preview badge */
.preview-badge {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
