/* =============================================================
   Phlebotomy Homework -- styles.css
   Design foundation: custom properties, reset, base typography
   ============================================================= */

/* -------------------------------------------------------------
   Design Tokens
   ------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg:             #FFFFFF;
  --color-bg-alt:         #F7F8FA;
  --color-accent:         #0A7EA4;
  --color-accent-hover:   #086a8a;
  --color-amber:          #F5A623;
  --color-amber-hover:    #d98e15;
  --color-text:           #1A1A2E;
  --color-text-muted:     #6B7280;
  --color-border:         #E5E7EB;
  --color-white:          #FFFFFF;

  /* Button tokens */
  --btn-bg:               var(--color-accent);
  --btn-bg-hover:         var(--color-amber);
  --btn-text:             var(--color-white);

  /* Typography */
  --font-heading:         'Fraunces', Georgia, serif;
  --font-body:            'Plus Jakarta Sans', system-ui, sans-serif;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1.0625rem;  /* 17px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */

  --leading-tight:  1.25;
  --leading-snug:   1.4;
  --leading-normal: 1.7;
  --leading-loose:  1.9;

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semi:    600;
  --weight-bold:    700;

  /* Spacing */
  --space-1:  0.25rem;   /* 4px  */
  --space-2:  0.5rem;    /* 8px  */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* Section vertical rhythm */
  --section-padding: var(--space-20);

  /* Layout */
  --max-width: 1080px;
  --gutter:    var(--space-6);

  /* Borders */
  --radius-sm: 0.375rem;   /* 6px  */
  --radius-md: 0.75rem;    /* 12px */
  --radius-lg: 1rem;       /* 16px */
  --radius-xl: 1.5rem;     /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(26, 26, 46, 0.06), 0 1px 2px rgba(26, 26, 46, 0.04);
  --shadow-md:  0 4px 12px rgba(26, 26, 46, 0.08), 0 2px 4px rgba(26, 26, 46, 0.04);
  --shadow-lg:  0 10px 30px rgba(26, 26, 46, 0.10), 0 4px 8px rgba(26, 26, 46, 0.06);
  --shadow-card: 0 2px 8px rgba(26, 26, 46, 0.07), 0 1px 3px rgba(26, 26, 46, 0.04);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Z-index scale */
  --z-base:    0;
  --z-above:   10;
  --z-nav:     100;
  --z-modal:   200;
  --z-toast:   300;
}


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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semi);
  line-height: var(--leading-tight);
  color: var(--color-text);
}


/* -------------------------------------------------------------
   Layout Utilities
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-padding);
}

.section--alt {
  background-color: var(--color-bg-alt);
}


/* -------------------------------------------------------------
   Typography Scale
   ------------------------------------------------------------- */
.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }
.text-4xl  { font-size: var(--text-4xl); }
.text-5xl  { font-size: var(--text-5xl); }

.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-amber  { color: var(--color-amber); }

.font-heading { font-family: var(--font-heading); }
.font-body    { font-family: var(--font-body); }

.font-medium { font-weight: var(--weight-medium); }
.font-semi   { font-weight: var(--weight-semi); }
.font-bold   { font-weight: var(--weight-bold); }

.leading-tight  { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }


/* -------------------------------------------------------------
   Buttons
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  line-height: 1;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background-color: var(--btn-bg-hover);
  color: var(--btn-text);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--amber {
  background-color: var(--color-amber);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--amber:hover {
  background-color: var(--color-amber-hover);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
}

.btn--full {
  width: 100%;
}


/* -------------------------------------------------------------
   Badges
   ------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge--amber {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge--teal {
  background-color: #E0F2FE;
  color: #065F7A;
}

.badge--green {
  background-color: #DCFCE7;
  color: #166534;
}

.badge--gray {
  background-color: var(--color-bg-alt);
  color: var(--color-text-muted);
}


/* -------------------------------------------------------------
   Cards
   ------------------------------------------------------------- */
.card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__body {
  padding: var(--space-6);
}


/* -------------------------------------------------------------
   Forms
   ------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(10, 126, 164, 0.15);
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}


/* -------------------------------------------------------------
   Accessibility
   ------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: var(--weight-semi);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* -------------------------------------------------------------
   Divider
   ------------------------------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-8);
}


/* -------------------------------------------------------------
   Responsive helpers
   ------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --section-padding: var(--space-16);
    --gutter: var(--space-4);
  }

  .btn--mobile-full {
    width: 100%;
  }

  .text-5xl { font-size: var(--text-4xl); }
  .text-4xl { font-size: var(--text-3xl); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --gutter: var(--space-5);
  }
}


/* =============================================================
   COMPONENT STYLES
   ============================================================= */


/* -------------------------------------------------------------
   Navbar
   ------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background-color: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar--scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 4rem;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar__logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.navbar__nav {
  flex: 1;
}

.navbar__links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.navbar__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.navbar__link:hover {
  color: var(--color-text);
  text-decoration: none;
}

.navbar__cta {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background-color var(--transition-fast);
}

.navbar__hamburger:hover {
  background-color: var(--color-bg-alt);
}

.hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.navbar__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5) var(--gutter) var(--space-6);
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.mobile-nav.mobile-nav--open {
  display: flex;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav__link {
  display: block;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-nav__link:hover {
  background-color: var(--color-bg-alt);
  text-decoration: none;
}

@media (max-width: 767px) {
  .navbar__nav,
  .navbar__cta {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
    margin-left: auto;
  }
}


/* -------------------------------------------------------------
   Section headers (shared)
   ------------------------------------------------------------- */
.section__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section__heading {
  font-size: var(--text-4xl);
  font-weight: var(--weight-semi);
  margin-bottom: var(--space-4);
}

.section__subhead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

@media (max-width: 767px) {
  .section__heading {
    font-size: var(--text-3xl);
  }
}


/* -------------------------------------------------------------
   Hero
   ------------------------------------------------------------- */
.hero {
  padding-block: var(--space-20) var(--space-24);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-16);
  align-items: center;
}

.hero__badges {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.hero__heading {
  font-size: clamp(var(--text-4xl), 5vw, 3.5rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
}

.hero__heading-em {
  font-style: italic;
  color: var(--color-accent);
}

.hero__subhead {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero__trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.hero__trust-icon {
  flex-shrink: 0;
}

/* PDF visual mockup */
.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.hero__pdf-stack {
  position: relative;
  width: 280px;
  height: 360px;
}

.hero__pdf {
  position: absolute;
  border-radius: var(--radius-md);
  width: 260px;
  height: 340px;
  background-color: var(--color-bg);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.hero__pdf--back {
  top: 16px;
  left: 16px;
  background-color: #EFF6FF;
  border-color: #BFDBFE;
  z-index: 1;
}

.hero__pdf--mid {
  top: 8px;
  left: 8px;
  background-color: #F0FDF4;
  border-color: #BBF7D0;
  z-index: 2;
}

.hero__pdf--front {
  top: 0;
  left: 0;
  z-index: 3;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero__pdf-topbar {
  display: flex;
  gap: 5px;
  align-items: center;
}

.hero__pdf-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-border);
}

.hero__pdf-dot:first-child  { background-color: #FCA5A5; }
.hero__pdf-dot:nth-child(2) { background-color: #FCD34D; }
.hero__pdf-dot:nth-child(3) { background-color: #86EFAC; }

.hero__pdf-title-block {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-3);
}

.hero__pdf-label-small {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__pdf-label-main {
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--color-text);
  font-family: var(--font-heading);
}

.hero__pdf-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.hero__pdf-line {
  height: 10px;
  background-color: var(--color-bg-alt);
  border-radius: 3px;
}

.hero__pdf-free-badge {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  background-color: var(--color-amber);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
}

.hero__book-cover {
  display: block;
  width: 234px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.hero__book-cover-mobile {
  display: none;
}

.hero__visual-caption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}

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

  .hero__visual {
    display: none;
  }

  .hero__book-cover-mobile {
    display: block;
    width: 120px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: var(--space-5) auto var(--space-2);
  }
}

@media (max-width: 767px) {
  .hero {
    padding-block: var(--space-12) var(--space-16);
  }

  .hero__subhead {
    font-size: var(--text-lg);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}


/* -------------------------------------------------------------
   Problem section
   ------------------------------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.problem-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.problem-card__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.problem-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  margin-bottom: var(--space-2);
}

.problem-card__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.problem__nudge {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.problem__nudge-link {
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}

@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}


/* -------------------------------------------------------------
   Solution / About section
   ------------------------------------------------------------- */
.solution__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-12);
  align-items: start;
}

.solution__eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.solution__heading {
  font-size: var(--text-4xl);
  font-weight: var(--weight-semi);
  margin-bottom: var(--space-6);
}

.solution__copy p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: var(--leading-normal);
}

.solution__copy p:last-of-type {
  margin-bottom: var(--space-6);
}

.solution__badges {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.solution__callout {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.solution__callout-heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  margin-top: var(--space-2);
}

.solution__callout p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

@media (max-width: 900px) {
  .solution__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .solution__heading {
    font-size: var(--text-3xl);
  }
}


/* -------------------------------------------------------------
   Free sample section
   ------------------------------------------------------------- */
.sample__inner {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  max-width: 900px;
  margin-inline: auto;
}

.sample__copy {
  flex: 1;
}

.sample__visual {
  flex-shrink: 0;
}

.sample__preview {
  display: block;
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.sample__badge {
  margin-bottom: var(--space-4);
}

.sample__heading {
  font-size: var(--text-4xl);
  font-weight: var(--weight-semi);
  margin-bottom: var(--space-5);
}

.sample__body {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.sample__covers {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.sample__copy .btn {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

@media (max-width: 767px) {
  .sample__inner {
    flex-direction: column;
    text-align: center;
  }

  .sample__visual {
    display: none;
  }

  .sample__heading {
    font-size: var(--text-3xl);
  }

  .sample .btn {
    width: 100%;
  }
}


/* -------------------------------------------------------------
   Chapters grid
   ------------------------------------------------------------- */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.chapter-card .card__body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chapter-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.chapter-card__num {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chapter-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semi);
  margin-bottom: var(--space-3);
  flex: 1;
}

.chapter-card__covers {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-6);
  flex: 1;
}

.chapter-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.chapter-card__price {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.chapter-card__price--free {
  color: #16A34A;
}

.chapter-card__price--soon {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
}

.chapter-card__included {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
}

.chapter-card--free {
  border-color: #FCD34D;
  background-color: #FFFBEB;
}

.chapter-card--free:hover {
  border-color: #F59E0B;
}

.chapter-card--pending {
  opacity: 0.7;
}

.chapter-card--pending:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

/* Bundle */
.bundle {
  margin-block: var(--space-10);
  background-color: var(--color-bg-alt);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.bundle__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}

.bundle__badge {
  margin-bottom: var(--space-3);
}

.bundle__heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semi);
  margin-bottom: var(--space-2);
}

.bundle__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.bundle__includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-5);
  text-align: left;
}

.bundle__includes li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
}

.bundle__includes li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: var(--weight-semi);
  position: absolute;
  left: 0;
}

.bundle__action {
  display: flex;
  justify-content: center;
}

.bundle__pricing {
  text-align: right;
}

.bundle__original {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.bundle__sale {
  display: block;
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

@media (max-width: 767px) {
  .bundle__inner {
    align-items: center;
  }

  .bundle__action {
    width: 100%;
    justify-content: center;
  }

  .bundle__action .btn {
    width: 100%;
  }

  .bundle__pricing {
    text-align: center;
  }
}


/* -------------------------------------------------------------
   Bonuses section
   ------------------------------------------------------------- */
.bonuses__eyebrow-badge {
  display: inline-block;
  margin-bottom: var(--space-4);
}

.bonuses__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.bonus-card {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.bonus-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.bonus-card__icon {
  flex-shrink: 0;
}

.bonus-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  margin-bottom: var(--space-2);
}

.bonus-card__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.bonuses__study {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  text-align: center;
}

.bonuses__study-heading {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semi);
  margin-bottom: var(--space-4);
}

.bonuses__study-list {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  flex-wrap: wrap;
}

.bonuses__study-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
}

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

  .bonuses__study {
    padding: var(--space-6);
  }

  .bonuses__study-list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
}


/* -------------------------------------------------------------
   Guarantee section
   ------------------------------------------------------------- */
.guarantee__inner {
  display: flex;
  gap: var(--space-10);
  align-items: flex-start;
  max-width: 820px;
  margin-inline: auto;
}

.guarantee__icon {
  flex-shrink: 0;
}

.guarantee__heading {
  font-size: var(--text-4xl);
  font-weight: var(--weight-semi);
  margin-bottom: var(--space-5);
}

.guarantee__copy p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: var(--leading-normal);
}

.guarantee__terms {
  font-size: var(--text-sm);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
  margin-top: var(--space-2);
}

@media (max-width: 767px) {
  .guarantee__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .guarantee__heading {
    font-size: var(--text-3xl);
  }

  .guarantee__terms {
    text-align: left;
  }
}


/* -------------------------------------------------------------
   FAQ
   ------------------------------------------------------------- */
.faq__list {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  text-align: left;
  gap: var(--space-4);
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--color-accent);
}

.faq__chevron {
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-text-muted);
}

.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding-bottom: var(--space-5);
}

.faq__answer p {
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

.faq__more {
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.faq__more a {
  font-weight: var(--weight-medium);
}


/* -------------------------------------------------------------
   Contact section
   ------------------------------------------------------------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact__heading {
  font-size: var(--text-4xl);
  font-weight: var(--weight-semi);
  margin-bottom: var(--space-4);
}

.contact__body {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: var(--leading-normal);
}

.contact__address {
  font-style: normal;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact__email:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-required {
  color: #DC2626;
}

.form__status {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.form__status--success {
  background-color: #DCFCE7;
  color: #166534;
}

.form__status--error {
  background-color: #FEE2E2;
  color: #991B1B;
}

@media (max-width: 767px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .contact__heading {
    font-size: var(--text-3xl);
  }
}


/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-10);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.footer__copy {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.footer__disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 420px;
  line-height: var(--leading-normal);
}

.footer__nav {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-shrink: 0;
  padding-top: 2px;
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .footer__inner {
    flex-direction: column;
    gap: var(--space-6);
  }
}


/* -------------------------------------------------------------
   Modal
   ------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-4);
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  background-color: var(--color-bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modal-slide-up var(--transition-slow) ease-out;
}

@keyframes modal-slide-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.modal__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semi);
}

.modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.modal__close:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
}

.modal__body {
  overflow-y: auto;
  padding: var(--space-6);
  -webkit-overflow-scrolling: touch;
}

.modal__body h3 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.modal__body h3:first-of-type {
  margin-top: var(--space-4);
}

.modal__body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-3);
}

@media (min-width: 640px) {
  .modal {
    align-items: center;
  }

  .modal__panel {
    border-radius: var(--radius-xl);
    max-height: 80vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal__panel {
    animation: none;
  }
}
