:root {
  --cream: #f5f3ec;
  --card: #ffffff;
  --teal-dark: #1f4a41;
  --teal: #2c6b5c;
  --teal-light: #dcebe6;
  --amber: #d9a441;
  --amber-dark: #b8842e;
  --ink: #1a1a1a;
  --gray: #6b6b6b;
  --border: #e4e0d4;

  /* motion tokens */
  --dur-1: 120ms;
  --dur-2: 180ms;
  --dur-3: 240ms;
  --ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
  --ease-out-quad: cubic-bezier(.25, .46, .45, .94);
  --ease-in-out-cubic: cubic-bezier(.645, .045, .355, 1);
}

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

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
}

.headline-font {
  font-family: Georgia, "Times New Roman", serif;
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* NAV */
nav.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--teal-dark);
  cursor: pointer;
}
.logo .mark {
  width: 32px; height: 32px;
  background: var(--teal-dark);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
  font-weight: 900;
}
.logo .wordmark { white-space: nowrap; }
.logo .ai { color: var(--amber-dark); margin-left: 1px; }
nav .links { display: flex; gap: 28px; font-weight: 500; color: var(--ink); }
nav a { position: relative; }
nav .links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--amber);
  transition: width var(--dur-2) var(--ease-out-cubic);
}
nav .links a:hover::after { width: 100%; }

.search-wrap { position: relative; flex: 1; max-width: 620px; margin: 0 32px; }
.search-wrap .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: 0.5; }
.search-wrap input {
  width: 100%; padding: 10px 14px 10px 36px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); font-size: 14px; outline: none;
  transition: border-color var(--dur-2) ease, box-shadow var(--dur-2) ease;
}
.search-wrap input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(44,107,92,0.12); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 32px rgba(0,0,0,0.12);
  max-height: 340px; overflow-y: auto; z-index: 50;
  opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out-quart), transform var(--dur-2) var(--ease-out-quart);
}
.search-results.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.search-result-item { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--cream); }
.search-result-item .sr-name { font-weight: 600; }
.search-result-item .sr-price { color: var(--teal); font-weight: 700; white-space: nowrap; }
.search-empty { padding: 16px; font-size: 13px; color: var(--gray); text-align: center; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  position: relative;
  transform: translateY(0) scale(1);
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
  transition: transform var(--dur-2) var(--ease-out-cubic),
              box-shadow var(--dur-2) var(--ease-out-cubic),
              background var(--dur-1) ease;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 20px rgba(31,74,65,0.18); }
}
.btn:active { transform: translateY(-1px) scale(0.97); transition-duration: var(--dur-1); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.btn-primary { background: var(--teal-dark); color: #fff; }
.btn-primary:hover { background: var(--teal); }
.btn-amber { background: var(--amber); color: #1a1a1a; box-shadow: 0 2px 0 rgba(184,132,46,0.4); }
.btn-amber:hover { background: var(--amber-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--teal-dark); color: var(--teal-dark); box-shadow: none; }
.link-arrow { transition: transform var(--dur-1) var(--ease-out-quad), opacity var(--dur-1) ease; display: inline-block; }
.link-arrow:hover { transform: translateX(4px); opacity: 0.75; }

/* Nav action buttons — booksgoat.ai style */
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-shop { display: inline-flex; align-items: center; gap: 6px; }
.btn-shop .arrow-up { transition: transform var(--dur-2) var(--ease-out-cubic); display: inline-block; }
.btn-shop:hover .arrow-up { transform: translate(2px, -2px); }
.btn-quote {
  display: inline-flex; align-items: center; gap: 6px; position: relative; padding-right: 26px;
}
.btn-quote .spark-ico { color: var(--amber); }
.btn-quote .dim { opacity: 0.6; font-weight: 500; font-size: 13px; }
.btn-quote .notify-dot {
  position: absolute; top: -4px; right: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--amber); border: 2px solid var(--cream);
  animation: notifyPulse 2s ease-in-out infinite;
}
@keyframes notifyPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.btn-outline-3d {
  background: var(--card); color: var(--teal-dark); border: 1.5px solid var(--teal-dark);
  box-shadow: 0 2px 0 rgba(31,74,65,0.18);
}
.btn-outline-3d:hover { background: var(--teal-light); }
.btn-cart {
  background: var(--card); border: 1px solid var(--border); color: var(--ink);
  box-shadow: none; padding: 12px 20px; cursor: default;
}
.btn-cart:hover { transform: none; box-shadow: none; }
@media (max-width: 1100px) { .btn-quote .dim { display: none; } }

/* HERO */
.hero { padding: 64px 32px 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: stretch; }
.hero-grid > div:first-child { display: flex; flex-direction: column; }
.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #3aa17e; display: inline-block; }
h1.hero-title {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 500;
}
h1.hero-title .accent { color: var(--amber-dark); font-style: italic; }
h1.hero-title .accent2 { color: var(--teal-dark); font-style: italic; }

.badge-row { display: flex; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.badge {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; min-width: 200px;
}
.badge .icon { font-size: 22px; }
.badge .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); font-weight: 700; }
.badge .value { font-weight: 800; font-size: 16px; }

/* Tiered pricing card */
.pricing-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px;
}
.pricing-card .title { font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.pricing-card .book-name { font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.qty-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.qty-big { font-size: 40px; font-weight: 800; }
.tier-chip { background: var(--teal-light); color: var(--teal-dark); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 13px; }
input[type=range] { width: 100%; accent-color: var(--teal-dark); margin: 14px 0 6px; }
.slider-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray); margin-bottom: 20px; }
.price-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.price-box { background: var(--cream); border-radius: 14px; padding: 16px; }
.price-box.save { background: #e6f4ee; }
.price-box .label { font-size: 11px; text-transform: uppercase; color: var(--gray); font-weight: 700; letter-spacing: 0.05em; }
.price-box .amt { font-size: 24px; font-weight: 800; margin-top: 4px; }
.price-box .sub { font-size: 12px; color: var(--gray); }
.price-box.save .amt { color: #1f7a52; }
.fine-print { font-size: 12px; color: var(--gray); border-top: 1px solid var(--border); padding-top: 12px; }
.hero-ctas { display: flex; gap: 20px; margin-top: 22px; align-items: center; }
.link-arrow { font-weight: 700; color: var(--teal-dark); }

/* AI quote box */
.quote-card {
  background: var(--teal-dark); color: #fff; border-radius: 24px; padding: 40px 36px;
  height: 100%; display: flex; flex-direction: column;
  box-shadow: 0 24px 48px rgba(31,74,65,0.25);
}
.quote-card .top-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.quote-card .top-row .live { color: var(--amber); }
.quote-card .online { color: #6fd6a8; display: flex; align-items: center; gap: 6px; }
.quote-card .online .dot { width: 7px; height: 7px; border-radius: 50%; background: #6fd6a8; }
.quote-card h3 { font-size: 24px; font-weight: 700; margin: 16px 0 18px; line-height: 1.25; }
.quote-card h3 .hl { color: var(--amber); }
.quote-input-row {
  display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 14px; padding: 8px 8px 8px 16px; margin-bottom: 16px;
}
.quote-input-row input {
  flex: 1; background: transparent; border: none; outline: none; color: #fff; font-size: 15px; padding: 10px 0;
}
.quote-input-row input::placeholder { color: rgba(255,255,255,0.55); }
.quote-spark { color: var(--amber); font-size: 16px; animation: sparkPulse 2.2s ease-in-out infinite; }
@keyframes sparkPulse { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
.typing-cursor { display: inline-block; width: 2px; background: rgba(255,255,255,0.6); margin-left: 1px; animation: blink 0.9s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pill {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 8px 14px; font-size: 13px;
  cursor: pointer; transition: transform var(--dur-2) var(--ease-out-cubic), background var(--dur-1) ease;
}
.pill:hover { transform: translateY(-2px); background: rgba(255,255,255,0.16); }
.quote-checks { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; margin-top: auto; }
.quote-checks .row { display: flex; gap: 10px; align-items: flex-start; }
.quote-result { margin-top: 18px; background: rgba(255,255,255,0.06); border-radius: 14px; padding: 16px; font-size: 14px; display: none; }
.quote-result.show { display: block; }
.quote-result .big { font-size: 22px; font-weight: 800; color: var(--amber); }

/* TRUST */
.trust-section { background: var(--teal-dark); color: #fff; padding: 72px 32px; margin-top: 60px; }
.trust-eyebrow { color: var(--amber); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.trust-title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; margin: 0 0 40px; max-width: 700px; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.trust-card { border-radius: 20px; padding: 30px; }
.trust-card.left { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); }
.trust-card.right { background: linear-gradient(135deg, #1c4038, #0f2b25); border: 1px solid rgba(111,214,168,0.3); }
.trust-card .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; color: var(--amber); margin-bottom: 10px; }
.trust-card.right .label { color: #6fd6a8; }
.trust-card .headline { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.trust-card .desc { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.value-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.value-pills span { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; padding: 8px 14px; font-size: 13px; }
.profit-ring-row { display: flex; align-items: center; gap: 20px; margin-top: 6px; }
.ring { width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; font-weight: 800; }
.ring .pct { font-size: 18px; color: #6fd6a8; }
.ring .lbl { font-size: 9px; color: rgba(255,255,255,0.6); text-transform: uppercase; }
.profit-line { font-size: 13px; color: rgba(255,255,255,0.75); }
.profit-line b { color: #fff; }

/* FBA FINDER */
.fba-section { padding: 72px 32px; }
.fba-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; flex-wrap: wrap; gap: 20px; }
.fba-eyebrow { color: var(--amber-dark); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.fba-title { font-size: clamp(28px, 3vw, 38px); font-weight: 700; max-width: 480px; margin: 0 0 8px; }
.fba-sub { color: var(--gray); font-size: 15px; max-width: 420px; }
.live-badge { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gray); }
.live-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #3aa17e; }
.refresh-btn { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }

.book-row {
  display: flex; justify-content: center; overflow-x: auto; overflow-y: visible;
  padding: 50px 40px 60px;
}
.book-cover {
  min-width: 128px; width: 128px; height: 184px; border-radius: 8px; background: var(--card);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16); cursor: pointer;
  transform-origin: bottom center;
  transform: rotate(var(--rot, 0deg));
  margin-left: -46px;
  transition: transform var(--dur-3) var(--ease-out-cubic),
              box-shadow var(--dur-3) var(--ease-out-cubic),
              filter var(--dur-2) ease;
  background-size: cover; background-position: center; position: relative; border: 1px solid var(--border);
  display: flex; align-items: flex-end; overflow: hidden;
  filter: brightness(0.94) saturate(0.92);
  flex-shrink: 0;
}
.book-cover:first-child { margin-left: 0; }
.book-cover:hover, .book-cover.active {
  transform: translateY(-22px) scale(1.12) rotate(0deg);
  box-shadow: 0 28px 48px rgba(0,0,0,0.26);
  z-index: 10;
  filter: brightness(1) saturate(1.05);
}
.book-cover .fallback-title {
  font-size: 10px; font-weight: 700; padding: 8px; color: #fff; background: rgba(0,0,0,0.55); width: 100%;
}
.book-cover.no-cover {
  display: flex; align-items: center; justify-content: center; padding: 14px;
}
.book-cover.no-cover .placeholder-title {
  color: #fff; font-weight: 800; font-size: 13px; line-height: 1.3; text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.book-cover.no-cover .placeholder-mark {
  position: absolute; bottom: 10px; right: 10px; font-size: 9px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55); font-weight: 700; text-transform: uppercase;
}

.fba-detail {
  background: var(--teal-dark); color: #fff; border-radius: 20px; padding: 26px 30px; display: none;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-3) var(--ease-out-cubic), transform var(--dur-3) var(--ease-out-cubic);
}
.fba-detail.show { display: block; opacity: 1; transform: translateY(0); }
.fba-detail .cat { font-size: 11px; color: var(--amber); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; }
.fba-detail .name { font-size: 22px; font-weight: 700; margin: 6px 0 2px; }
.fba-detail .author { color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 20px; }
.fba-boxes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.fba-box { background: rgba(255,255,255,0.06); border-radius: 14px; padding: 16px; }
.fba-box .l { font-size: 11px; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 700; }
.fba-box .v { font-size: 22px; font-weight: 800; margin-top: 4px; }
.fba-box.cost { border: 1px solid rgba(217,164,65,0.4); }
.fba-box.cost .v { color: var(--amber); }
.fba-box.profit .v { color: #6fd6a8; }
.fba-actions { display: flex; gap: 12px; }
.fba-actions .btn-amber { flex: 1; text-align: center; }

/* GUARANTEE / FAQ */
.guarantee-section { background: #12302a; color: #fff; padding: 72px 32px; }
.guarantee-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.guarantee-desc { color: rgba(255,255,255,0.65); max-width: 640px; margin: 18px 0 40px; font-size: 15px; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 48px; }
.stat {
  text-align: left; padding: 22px 24px; border-radius: 20px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 2px 0 rgba(0,0,0,0.12);
  cursor: default; user-select: none;
}
.stat .num { font-size: 30px; font-weight: 800; }
.stat .lbl { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 4px; }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.12); padding: 20px 0; cursor: pointer; }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; gap: 10px; }
.faq-plus { font-size: 20px; color: rgba(255,255,255,0.5); transition: transform var(--dur-2) var(--ease-out-cubic); flex-shrink: 0; margin-left: auto; }
.faq-item.open .faq-plus { transform: rotate(45deg); color: var(--amber); }
.faq-tag { background: rgba(255,255,255,0.1); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.7); }
.faq-tag.fba { background: rgba(111,214,168,0.15); color: #6fd6a8; }
.faq-a {
  max-height: 0; overflow: hidden; color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6;
  transition: max-height var(--dur-3) var(--ease-in-out-cubic), opacity var(--dur-2) ease, margin-top var(--dur-3) ease;
  opacity: 0; margin-top: 0;
}
.faq-item.open .faq-a { max-height: 200px; opacity: 1; margin-top: 12px; }

footer { background: var(--teal-dark); color: rgba(255,255,255,0.65); padding: 40px 32px; font-size: 13px; text-align: center; }
footer b { color: #fff; }
footer .footer-links { margin-top: 14px; }
footer .footer-links a { color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 2px; }
footer .footer-links a:hover { color: #fff; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .fba-boxes { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .search-wrap { display: none; }
}
