/* ============================================================
   DIGITAL WITH THEJAS — Resources Library Styles
   resources.css — imported AFTER main.css
   ============================================================ */

/* ============================================================
   SHARED: Nav active state for Resources page
   ============================================================ */
.nav-active {
  color: var(--color-dark) !important;
  font-weight: 600 !important;
}

/* ============================================================
   SHARED: Book cover color themes
   ============================================================ */
.book-cover--navy {
  background: linear-gradient(160deg, #0f1f3d 0%, #1a3160 100%);
  color: #fff;
}

.book-cover--purple {
  background: linear-gradient(160deg, #3d1eb5 0%, #6C3BFF 100%);
  color: #fff;
}

.book-cover--gold {
  background: linear-gradient(160deg, #92500e 0%, #d4820a 100%);
  color: #fff;
}

.book-cover--teal {
  background: linear-gradient(160deg, #0d4f52 0%, #0a8c8f 100%);
  color: #fff;
}

.book-cover--rose {
  background: linear-gradient(160deg, #7c1d3e 0%, #c2355a 100%);
  color: #fff;
}

.book-cover--slate {
  background: linear-gradient(160deg, #1e293b 0%, #334155 100%);
  color: #fff;
}

/* ============================================================
   HERO — Resources page
   ============================================================ */
.res-hero {
  padding-top: calc(var(--navbar-height) + var(--space-20));
  padding-bottom: var(--space-24);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.res-hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(108,59,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

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

.res-hero__content {
  max-width: 580px;
}

.res-hero__heading {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-5);
  color: var(--color-dark);
}

.res-hero__sub {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: var(--space-3);
  max-width: 500px;
}

.res-hero__tagline {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-purple);
  margin-bottom: var(--space-8);
}

.res-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---- Book Stack Visual ---- */
.res-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.book-stack {
  position: relative;
  width: 280px;
  height: 340px;
}

.book-stack__item {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: transform var(--transition-slow);
}

.book-stack__item--1 {
  width: 200px; height: 270px;
  top: 30px; left: 40px;
  z-index: 4;
  transform: rotate(-3deg);
}

.book-stack__item--2 {
  width: 190px; height: 255px;
  top: 10px; left: 75px;
  z-index: 3;
  transform: rotate(5deg);
}

.book-stack__item--3 {
  width: 180px; height: 240px;
  top: 50px; left: 10px;
  z-index: 2;
  transform: rotate(-8deg);
}

.book-stack__item--4 {
  width: 175px; height: 235px;
  top: 70px; left: 90px;
  z-index: 1;
  transform: rotate(10deg);
}

.book-stack:hover .book-stack__item--1 { transform: rotate(-3deg) translateY(-8px); }
.book-stack:hover .book-stack__item--2 { transform: rotate(5deg) translateY(-4px); }
.book-stack:hover .book-stack__item--3 { transform: rotate(-8deg) translateY(-2px); }

.book-cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  gap: var(--space-2);
  position: relative;
}

.book-cover__eyebrow {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  font-family: var(--font-body);
}

.book-cover__title {
  font-size: var(--text-base);
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.book-cover__sub {
  font-size: var(--text-xs);
  opacity: 0.7;
  font-family: var(--font-body);
}

.book-cover__lines {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.book-cover__lines span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
}

.book-cover__lines span:first-child { width: 80%; }
.book-cover__lines span:nth-child(2) { width: 60%; }
.book-cover__lines span:last-child  { width: 40%; }

.book-stack__badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--color-purple);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-purple);
  z-index: 10;
  font-family: var(--font-body);
}

/* ============================================================
   RESOURCE LIBRARY SECTION
   ============================================================ */
.res-library {
  background: var(--color-white);
}

.res-library__header {
  margin-bottom: var(--space-8);
}

/* ---- Filters ---- */
.res-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
}

.res-filter {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.res-filter:hover {
  border-color: var(--color-purple);
  color: var(--color-purple);
  background: var(--color-purple-light);
}

.res-filter.active {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: var(--color-white);
  box-shadow: var(--shadow-purple);
}

.res-filter:focus-visible {
  outline: 3px solid var(--color-purple);
  outline-offset: 3px;
}

/* ---- Resource Grid ---- */
.res-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* ---- Resource Card ---- */
.res-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.res-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--color-border);
}

/* Hidden state for filtered cards */
.res-card[hidden] {
  display: none !important;
}

/* Card cover mockup — compact banner, no dead space */
.res-card__cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: #0f1f3d; /* fallback while the artwork loads */
}

/* Generated cover artwork — sits behind the title overlay */
.res-card__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform var(--transition-base);
}

.res-card:hover .res-card__art {
  transform: scale(1.06);
}

/* Readability scrim so the title always holds against the artwork */
.res-card__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 26, 0.55) 0%,
    rgba(6, 12, 26, 0.18) 45%,
    rgba(6, 12, 26, 0.55) 100%
  );
  pointer-events: none;
}

.res-card__mockup {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  position: relative;
  z-index: 2;
}

.res-card__mockup-eyebrow {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
  font-family: var(--font-body);
  color: #fff;
}

.res-card__mockup-title {
  font-size: var(--text-base);
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 2px;
  text-shadow: 0 1px 12px rgba(6, 12, 26, 0.45);
  max-width: 72%;
}

.res-card__mockup-sub {
  font-size: var(--text-xs);
  opacity: 0.65;
  font-family: var(--font-body);
  color: #fff;
  margin-top: auto; /* pins sub + lines to the bottom of the cover */
}

.res-card__mockup-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.res-card__mockup-lines span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
}

/* Kept short so they read as an accent, not lines drawn across the artwork */
.res-card__mockup-lines span:nth-child(1) { width: 42%; }
.res-card__mockup-lines span:nth-child(2) { width: 28%; }
.res-card__mockup-lines span:nth-child(3) { width: 16%; }

/* Card body */
.res-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.res-card__category {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

.res-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  line-height: 1.3;
  font-family: var(--font-heading);
}

.res-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
  flex: 1;
}

.res-card__btn {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  padding: 0.6rem 1.25rem;
  justify-content: center;
  width: 100%;
}

/* ---- Empty state ---- */
.res-empty {
  text-align: center;
  padding: var(--space-16);
  color: var(--color-muted);
  font-size: var(--text-base);
}

/* ============================================================
   FEATURED RESOURCE SECTION
   ============================================================ */
.res-featured {
  background: var(--color-bg);
}

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

/* Large book mockup */
.res-featured__mockup {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
}

.res-featured__mockup-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.65;
  color: #fff;
  font-family: var(--font-body);
}

.res-featured__mockup-title {
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  font-family: var(--font-heading);
}

.res-featured__mockup-sub {
  font-size: var(--text-sm);
  opacity: 0.75;
  color: #fff;
  line-height: 1.5;
  font-family: var(--font-body);
}

.res-featured__mockup-divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin-block: var(--space-3);
}

.res-featured__mockup-topics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}

.res-featured__mockup-topics span {
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.14);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
}

.res-featured__mockup-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: rgba(0,0,0,0.18);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* Content side */
.res-featured__content .section-heading {
  margin-top: var(--space-3);
}

.res-featured__topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-block: var(--space-6);
}

.res-featured__topic {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark);
}

.res-featured__topic svg {
  color: var(--color-purple);
  flex-shrink: 0;
}

.res-featured__btn {
  margin-top: var(--space-2);
}

/* ============================================================
   WHY THESE GUIDES SECTION
   ============================================================ */
.res-why {
  background: var(--color-white);
}

.res-why__header {
  margin-bottom: var(--space-12);
}

.res-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.res-why__card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-base);
}

.res-why__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-purple-mid);
}

.res-why__icon {
  width: 56px;
  height: 56px;
  background: var(--color-purple-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-purple);
  margin: 0 auto var(--space-5);
}

.res-why__card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  color: var(--color-dark);
}

.res-why__card p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
}

/* ============================================================
   RESOURCES PAGE — Audit CTA Banner
   ============================================================ */
.res-audit-cta {
  background: linear-gradient(135deg, #4A1FDB 0%, #6C3BFF 50%, #8B5CF6 100%);
  padding-block: var(--space-16);
}

.res-audit-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.res-audit-cta__content h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  color: var(--color-white);
  margin-bottom: var(--space-3);
  letter-spacing: -0.03em;
}

.res-audit-cta__content p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  max-width: 520px;
}

.res-audit-cta__btn {
  flex-shrink: 0;
}

/* ============================================================
   MODAL — Email Capture
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modal-overlay.modal-opening {
  opacity: 1;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.modal-overlay.modal-opening .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-border-light);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.modal__close:hover {
  background: var(--color-border);
  color: var(--color-dark);
}

.modal__book-preview {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-purple-light);
  border: 1px solid var(--color-purple-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  margin-bottom: var(--space-6);
}

.modal__book-icon {
  width: 40px;
  height: 40px;
  background: var(--color-purple);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.modal__book-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-purple);
  font-family: var(--font-heading);
  line-height: 1.3;
}

.modal__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
}

.modal__subtitle {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

/* Form inside modal */
.modal .form-group {
  margin-bottom: var(--space-4);
}

.modal .form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.modal .form-group input[type="text"],
.modal .form-group input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-dark);
  background: var(--color-bg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  font-family: var(--font-body);
}

.modal .form-group input[type="text"]:focus,
.modal .form-group input[type="email"]:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(108,59,255,0.1);
  background: var(--color-white);
}

.modal .form-group input::placeholder {
  color: #BBBBBB;
}

/* Validation error */
.form-error {
  display: block;
  font-size: var(--text-xs);
  color: #dc2626;
  margin-top: var(--space-1);
  font-family: var(--font-body);
}

/* display:block above would override the hidden attribute — keep hidden errors hidden */
.form-error[hidden] {
  display: none;
}

.form-group input.input-error {
  border-color: #dc2626;
}

/* Checkbox */
.form-group--checkbox {
  margin-top: var(--space-4);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-bg);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition-fast);
  position: relative;
  display: block;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--color-purple);
  border-color: var(--color-purple);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
  outline: 3px solid var(--color-purple);
  outline-offset: 2px;
}

.checkbox-text {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.55;
}

/* Submit button */
.modal__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-5);
}

.modal__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* Body scroll lock when modal open */
body.modal-open {
  overflow: hidden;
}

/* ============================================================
   THANK-YOU PAGE — Hero
   ============================================================ */
.thanks-hero {
  padding-top: calc(var(--navbar-height) + var(--space-20));
  padding-bottom: var(--space-16);
  background: var(--color-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.thanks-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,59,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.thanks-hero__inner {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.thanks-hero__icon {
  width: 80px;
  height: 80px;
  background: var(--color-purple-light);
  border: 2px solid var(--color-purple-mid);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-purple);
  margin-bottom: var(--space-2);
}

.thanks-hero__heading {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-dark);
  line-height: 1.1;
  margin-bottom: 0;
}

.thanks-hero__sub {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* Download card */
.thanks-download {
  width: 100%;
  max-width: 480px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.thanks-download__card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.thanks-download__icon {
  width: 52px;
  height: 52px;
  background: var(--color-purple-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-purple);
  flex-shrink: 0;
}

.thanks-download__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.thanks-download__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.thanks-download__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-dark);
  font-family: var(--font-heading);
}

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

/* Fallback */
.thanks-fallback {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.thanks-fallback__link {
  color: var(--color-purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   THANK-YOU PAGE — Audit Section
   ============================================================ */
.thanks-audit {
  background: var(--color-white);
}

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

.thanks-audit__includes {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-block: var(--space-6);
}

.thanks-audit__include {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-dark);
}

.thanks-audit__include svg {
  color: var(--color-purple);
  flex-shrink: 0;
}

/* Fake browser card visual */
.thanks-audit__card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.thanks-audit__card-header {
  background: var(--color-border-light);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.thanks-audit__card-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.thanks-audit__card-dot--red    { background: #FF5F57; }
.thanks-audit__card-dot--yellow { background: #FFBD2E; }
.thanks-audit__card-dot--green  { background: #28C840; }

.thanks-audit__card-url {
  flex: 1;
  background: var(--color-bg);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-left: var(--space-2);
  font-family: var(--font-body);
}

.thanks-audit__card-body {
  background: linear-gradient(160deg, var(--color-purple-light) 0%, #fff 60%);
  padding: var(--space-8) var(--space-6);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.thanks-audit__card-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-purple);
  font-family: var(--font-body);
}

.thanks-audit__card-heading {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-family: var(--font-heading);
}

.thanks-audit__card-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: auto;
}

.thanks-audit__card-items span {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-family: var(--font-body);
}

/* ============================================================
   THANK-YOU PAGE — More Resources
   ============================================================ */
.section--sm {
  padding-block: var(--space-10);
}

.thanks-more {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
}

.thanks-more__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  text-align: center;
}

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

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .res-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .res-hero__content {
    max-width: 100%;
  }

  .res-hero__actions {
    justify-content: center;
  }

  .res-hero__sub {
    margin-inline: auto;
  }

  .res-hero__visual {
    margin-inline: auto;
  }

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

  .res-featured__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .res-featured__mockup {
    margin-inline: auto;
  }

  .res-featured__topics {
    justify-content: center;
  }

  .res-featured__topic {
    justify-content: center;
  }

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

  .res-audit-cta__inner {
    flex-direction: column;
    text-align: center;
  }

  .res-audit-cta__content p {
    margin-inline: auto;
  }

  .thanks-audit__inner {
    grid-template-columns: 1fr;
  }

  .thanks-audit__visual {
    max-width: 420px;
    margin-inline: auto;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  .res-hero {
    padding-top: calc(var(--navbar-height) + var(--space-12));
    padding-bottom: var(--space-16);
  }

  .book-stack {
    width: 220px;
    height: 280px;
  }

  .book-stack__item--1 { width: 160px; height: 215px; top: 20px; left: 30px; }
  .book-stack__item--2 { width: 150px; height: 200px; top: 8px;  left: 60px; }
  .book-stack__item--3 { width: 145px; height: 190px; top: 40px; left: 5px;  }
  .book-stack__item--4 { width: 140px; height: 185px; top: 55px; left: 75px; }

  .res-filters {
    gap: var(--space-2);
  }

  .res-filter {
    font-size: var(--text-xs);
    padding: 0.4rem 1rem;
  }

  .res-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .res-why__grid {
    grid-template-columns: 1fr;
  }

  .res-audit-cta {
    padding-block: var(--space-12);
  }

  .res-audit-cta__content h2 {
    font-size: var(--text-2xl);
  }

  .res-audit-cta__btn {
    width: 100%;
    justify-content: center;
  }

  .modal {
    padding: var(--space-7) var(--space-6);
    border-radius: var(--radius-xl);
  }

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

  .thanks-audit__inner {
    grid-template-columns: 1fr;
  }

  .thanks-more__inner {
    flex-direction: column;
  }

  .res-featured__inner {
    grid-template-columns: 1fr;
  }

  .res-featured__topics {
    grid-template-columns: 1fr;
  }
}

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

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .book-stack__item,
  .modal,
  .modal-overlay,
  .res-card__art {
    transition: none !important;
    animation: none !important;
  }

  .res-card:hover .res-card__art {
    transform: scale(1.01);
  }
}
