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

:root {
  --ink: #2e1a0e;
  --paper: #F2E0D0;
  --warm-mid: #8C6954;
  --warm-light: #BF926B;
  --warm-pale: #EDD5C0;
  --accent: #BF4B23;
  --text-body: #3a2318;
  --text-muted: #906e5a;
  --card-bg: #FAF3EC;
  --border: #E8D5C4;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
}

/* ---- HEADER ---- */
header {
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.tagline-header {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- HERO ---- */
.hero {
  padding: 5rem 3rem 3rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.eyebrow-text {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 700px;
  text-align: center;
  align-items: center;
}

.hero h1 em {
  font-style: italic;
  color: var(--warm-mid);
}

.hero p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 520px;
  font-weight: 300;
  margin-bottom: 3rem;
}

/* Decorative books illustration */
.hero-books {
  position: absolute;
  right: 2rem;
  top: 3rem;
  display: flex;
  gap: 5px;
  align-items: flex-end;
  opacity: 0.18;
}

.deco-book {
  border-radius: 3px 2px 2px 3px;
  border-left: 3px solid rgba(0,0,0,0.2);
}

/* ---- INPUT SECTION ---- */
.input-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 3rem 4rem;
}

.input-wrapper {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}

.input-wrapper:focus-within {
  border-color: var(--warm-mid);
  box-shadow: 0 0 0 4px rgba(140,105,84,0.08), 0 8px 32px rgba(46,26,14,0.06);
}

.input-label {
  padding: 1.25rem 1.5rem 0.5rem;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

textarea {
  width: 100%;
  min-height: 140px;
  padding: 0.5rem 1.5rem 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  display: block;
  overflow: hidden;
  box-sizing: border-box;
}

textarea::placeholder { color: var(--warm-light); }

.input-footer {
  position: relative;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--warm-pale);
}

.char-count {
  font-size: 11px;
  color: var(--warm-light);
}

.find-btn {
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 10px;
  padding: 9px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.find-btn:hover { background: var(--accent); }
.find-btn:active { transform: scale(0.97); }
.find-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-arrow {
  font-size: 16px;
  transition: transform 0.2s;
}
.find-btn:hover .btn-arrow { transform: translateX(3px); }

/* ---- LOADING ---- */
.loading-section {
  display: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 3rem 5rem;
  text-align: center;
}

.loading-section.active { display: block; }

.book-spines {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
  margin-bottom: 2rem;
  height: 72px;
}

.spine {
  border-radius: 4px 3px 3px 4px;
  animation: spineWave 1.4s ease-in-out infinite;
}

.spine:nth-child(1) { width: 16px; height: 52px; background: #8C6954; animation-delay: 0s; }
.spine:nth-child(2) { width: 14px; height: 64px; background: #BF4B2E; animation-delay: 0.2s; }
.spine:nth-child(3) { width: 18px; height: 44px; background: #6b4a38; animation-delay: 0.4s; }
.spine:nth-child(4) { width: 13px; height: 58px; background: #BF926B; animation-delay: 0.6s; }
.spine:nth-child(5) { width: 16px; height: 50px; background: #a07055; animation-delay: 0.8s; }
.spine:nth-child(6) { width: 15px; height: 68px; background: #2e1a0e; animation-delay: 1.0s; }

@keyframes spineWave {
  0%, 100% { transform: scaleY(1) translateY(0); opacity: 0.7; }
  50% { transform: scaleY(1.1) translateY(-4px); opacity: 1; }
}

.loading-headline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}

.loading-sub {
  font-size: 13px;
  color: var(--text-muted);
}


/* ---- NEW RESULT LAYOUT ---- */
/* ---- NEW RESULT LAYOUT ---- */
.result-section {
  display: none; 
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  animation: fadeUp 0.6s ease both;
}

.result-section.active { display: block; }

.result-headline {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  margin-bottom: 4rem;
  color: var(--text-body);
}

.result-container {
  display: flex;
  gap: 5rem;
  align-items: center;
  justify-content: center;
}

/* Left Side: Standalone Book Cover */
.result-cover-side {
  flex-shrink: 0;
}

.book-cover {
  width: 340px; 
  height: 510px;
  border-radius: 8px;
  box-shadow: 25px 25px 60px rgba(0,0,0,0.25);
  background: var(--ink);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right Side: White Details Card */
.result-info-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 3rem;
  flex: 1;
  max-width: 580px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}

.info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

/* Circular Progress Bar */
.match-score-circle {
  text-align: center;
  width: 90px;
}

.circular-chart { display: block; margin: 0 auto 8px; max-width: 100%; }
.circle-bg { fill: none; stroke: #eee; stroke-width: 2.5; }
.circle { fill: none; stroke: #4caf50; stroke-width: 2.5; stroke-linecap: round; }
.percentage { fill: #333; font-family: 'Outfit'; font-size: 9px; text-anchor: middle; font-weight: 600; }
.match-label { font-size: 10px; text-transform: uppercase; font-weight: 600; color: #999; }

/* User Recap Pills */
.user-recap {
  margin: 1.5rem 0;
}

.recap-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.recap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.recap-tag {
  background: rgba(191,115,115,0.08);
  color: #BF4B2E;
  border: 1px solid rgba(191,115,115,0.15);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 400;
}

/* Why Description Box */
.why-box {
  background: #faf5f0;
  border: 1px solid #ead8cc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #4a3025;
}

.book-cover .cover-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
  width: 100%;
  height: 100%;
}

.book-cover:hover {
  transform: scale(1.02);
}

.cover-fallback-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  line-height: 1.3;
}

.cover-fallback-line {
  width: 30px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

.cover-fallback-author {
  font-size: 9px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}


/* Right Side: White Details Card */
.result-info-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 3rem;
  flex: 1;
  max-width: 580px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}

.info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

/* Circular Progress Bar */
.match-score-circle {
  text-align: center;
  width: 90px;
}

.circular-chart { display: block; margin: 0 auto 8px; max-width: 100%; }
.circle-bg { fill: none; stroke: #eee; stroke-width: 2.5; }
.circle { fill: none; stroke: #4caf50; stroke-width: 2.5; stroke-linecap: round; }
.percentage { fill: #333; font-family: 'Outfit'; font-size: 9px; text-anchor: middle; font-weight: 600; }
.match-label { font-size: 10px; text-transform: uppercase; font-weight: 600; color: #999; }

.match-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(191,115,115,0.12);
  color: #c47a7a;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  border: 1px solid rgba(191,115,115,0.25);
}

.match-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.book-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  color: #F5F0E8;
  line-height: 1.1;
  margin-bottom: 6px;
}

.book-author {
  font-size: 14px;
  color: rgba(245,240,232,0.5);
  font-weight: 300;
  letter-spacing: 0.02em;
}


.section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--warm-pale);
  max-width: 40px;
}

.why-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
  font-weight: 300;
  margin-bottom: 2rem;
}

.why-box {
  background: #faf5f0;
  border: 1px solid #ead8cc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #4a3025;
}

.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 8px;
  font-weight: 400;
}

.quote-attr {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--warm-pale);
}

.tag {
  font-size: 12px;
  background: var(--warm-pale);
  color: var(--warm-mid);
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
}

/* Action buttons */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-share {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.03em;
}

.btn-share:hover { background: #a85e5e; }
.btn-share:active { transform: scale(0.97); }

.btn-retry {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.btn-retry:hover { background: var(--warm-pale); border-color: var(--warm-mid); color: var(--text-body); }

/* ---- SHARE TOAST ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
  white-space: nowrap;
  pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); }


/* ---- FEEDBACK SECTION ---- */
.feedback-section {
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 0 2rem;
  animation: fadeUp 0.5s ease both;
}

.feedback-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.feedback-question {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.feedback-buttons {
  display: flex;
  gap: 10px;
}

.feedback-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.feedback-btn .feedback-icon {
  font-size: 15px;
  line-height: 1;
}

.feedback-btn--yes:hover {
  background: #f0faf4;
  border-color: #4caf50;
  color: #2e7d32;
}

.feedback-btn--no:hover {
  background: #fdf2f0;
  border-color: var(--accent);
  color: var(--accent);
}

.feedback-btn.selected-yes {
  background: #f0faf4;
  border-color: #4caf50;
  color: #2e7d32;
  font-weight: 500;
}

.feedback-btn.selected-no {
  background: rgba(191,115,115,0.08);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}

.feedback-thanks {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--warm-mid);
  font-style: italic;
  letter-spacing: 0.02em;
}

.deep-dive-section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.dive-headline {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-body);
}

.dive-container {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.dive-left, .dive-right { flex: 1; }

/* The "You Said" Card */
.input-display-card {
  background: rgba(191,115,115,0.08);
  padding: 2rem;
  border-radius: 20px;
  position: relative;
}

.input-display-card p {
  font-style: italic;
  line-height: 1.6;
  color: var(--accent);
  font-size: 1.1rem;
}

/* The Tag Blurbs */
.dive-tag-group {
  margin-bottom: 2rem;
}

.dive-tag-name {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

.dive-tag-blurb {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5a3828;
}

@media (max-width: 768px) {
  .dive-container { flex-direction: column; }
}


.quote-carousel-section {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.carousel-container {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.quote-display {
  flex: 0 0 40%;
}

.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: -1rem;
}

#book-quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}

.chapters-wrapper {
  flex: 1;
  overflow: hidden;
}

.chapters-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
}

.chapter-block {
  flex: 0 0 200px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  scroll-snap-align: start;
}

.chapter-block.current {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(191,115,115,0.15);
  transform: translateY(-5px);
}

.chapter-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.chapter-block.current .chapter-num { color: var(--accent); }

.chapter-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}



.tiktok-section {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--paper); /* Matches your body background */
  animation: fadeUp 0.8s ease both;
}

.tiktok-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  color: var(--text-body);
  margin-bottom: 1rem;
}

.tiktok-subhead {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.tiktok-explore-btn {
  display: inline-block;
  background: var(--accent); /* #bf4b2e */
  color: white;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  transition: transform 0.2s, background 0.2s;
  margin-bottom: 4rem;
}

.tiktok-explore-btn:hover {
  background: #a85e5e;
  transform: translateY(-2px);
}

.phone-container {
  max-width: 320px;
  margin: 0 auto;
}

.phone-mockup {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}


/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

footer strong {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--warm-mid);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  /* Result layout: stack cover above card */
  .result-container {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
  }

  .result-cover-side {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .book-cover {
    width: 220px;
    height: 330px;
  }

  .result-info-card {
    max-width: 100%;
    width: 100%;
  }

  /* Quote carousel: stack vertically */
  .carousel-container {
    flex-direction: column;
    gap: 2rem;
  }

  .quote-display {
    flex: none;
    width: 100%;
  }

  #book-quote-text {
    font-size: 1.6rem;
  }
}

@media (max-width: 600px) {
  header { padding: 1.25rem 1.5rem; }
  .tagline-header { display: none; }

  /* Hero */
  .hero { padding: 2.5rem 1.25rem 1.5rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); margin-bottom: 1rem; }
  .hero p { font-size: 14px; margin-bottom: 2rem; }
  .hero-books { display: none; }

  /* Input section */
  .input-section { padding: 0 1.25rem 3rem; }
  textarea { min-height: 120px; font-size: 14px; }

  /* Loading */
  .loading-section { padding: 2rem 1.25rem 3rem; }

  /* Result section */
  .result-section { padding: 2.5rem 1.25rem 4rem; }
  .result-headline { font-size: 2.2rem; margin-bottom: 2rem; }

  .book-cover {
    width: 180px;
    height: 270px;
    box-shadow: 12px 12px 32px rgba(0,0,0,0.2);
  }

  .result-info-card { padding: 1.5rem; border-radius: 16px; }

  .info-card-header { gap: 1rem; }

  #result-title { font-size: 1.4rem; }
  #result-author { font-size: 0.85rem; }

  /* Actions */
  .actions { flex-direction: column; }
  .btn-share, .btn-retry { justify-content: center; width: 100%; }

  /* Deep dive */
  .deep-dive-section { padding: 0 1.25rem; }
  .dive-headline { font-size: 1.8rem; margin-bottom: 1.5rem; }
  .input-display-card p { font-size: 0.95rem; }

  /* Quote carousel */
  .quote-carousel-section { padding: 0 1.25rem; margin: 3rem auto; }
  #book-quote-text { font-size: 1.4rem; }
  .quote-mark { font-size: 3.5rem; }

  /* TikTok section */
  .tiktok-headline { font-size: 2.5rem; }
  .tiktok-subhead { font-size: 14px; }
  .tiktok-explore-btn { padding: 14px 28px; font-size: 15px; }

  /* Buy section */
  .buy-section { padding: 60px 1.25rem; }
  .buy-btn { width: 100%; max-width: 300px; }

  /* Feedback */
  .feedback-section { padding: 0 1.25rem; }

  /* Footer */
  footer { padding: 1.5rem 1.25rem; }
}

/* ── Rating display ─────────────────────────────────────────── */
.result-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
 
.result-rating .stars {
  color: #BF4B2E;
  font-size: 1rem;
  letter-spacing: 1px;
  line-height: 1;
}
 
.result-rating .rating-number {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #2e1a0e;
}
 
.result-rating .rating-count {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: #7a5040;
}
 

/* ── Buy section ─────────────────────────────────────────────── */
.buy-section {
  padding: 80px 24px;
  text-align: center;
  background: #EDD5C0;
}

.buy-content {
  max-width: 560px;
  margin: 0 auto;
}

.buy-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--text-body);
  margin: 0 0 12px;
  line-height: 1.1;
}

.buy-subhead {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #7a5040;
  margin: 0 0 48px;
}

.buy-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.buy-btn {
  display: inline-block;
  width: 240px;
  padding: 18px 32px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.15s;
}

.buy-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.buy-btn--thrift {
  background: #0d8c72;
  color: #ffffff;
}

.buy-btn--amazon {
  background: #1a2e44;
  color: #ffffff;
}

.buy-btn--bn {
  background: #575555;
  color: #ffffff;
}
