/* ============================================
   PromptsUnlocked — Styles v5
   Clean hierarchy, mobile-first, social proof
   ============================================ */

:root {
  --canvas: #f5efe5;
  --canvas-strong: #efe5d6;
  --surface: rgba(255, 252, 246, 0.78);
  --surface-strong: #fffaf2;
  --surface-muted: #f1e7d9;
  --card: rgba(255, 251, 245, 0.92);
  --card-hover: #fffdf8;
  --card-elevated: #f8f1e6;

  --ink: #18202b;
  --ink-soft: #4f5966;
  --ink-faint: #7d8692;
  --accent: #b4462c;
  --accent-deep: #8e311d;
  --accent-pale: rgba(180, 70, 44, 0.12);
  --accent-border: rgba(180, 70, 44, 0.22);
  --success: #2b7a55;

  --line: rgba(24, 32, 43, 0.1);
  --line-strong: rgba(24, 32, 43, 0.16);
  --shadow-soft: 0 14px 40px rgba(78, 56, 27, 0.08);
  --shadow-card: 0 12px 30px rgba(78, 56, 27, 0.08);
  --shadow-hover: 0 18px 40px rgba(78, 56, 27, 0.12);

  --cat-content: #3072c6;
  --cat-sales: #1f8f5f;
  --cat-research: #ab6a16;
  --cat-code: #7a49c4;
  --cat-email: #0f8090;
  --cat-strategy: #b4462c;

  --max-width: 1200px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(180, 70, 44, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(35, 86, 156, 0.06), transparent 30%),
    linear-gradient(180deg, #fbf6ee 0%, #f5efe5 35%, #efe6d8 100%);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

/* ---- Typography tokens ---- */

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading-tight {
  max-width: 680px;
}

.section-heading h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 12px 0 12px;
}

.section-heading p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 680px;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(247, 240, 229, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  font-size: 15px;
}

.search-input,
.restore-input {
  width: 260px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  padding: 13px 16px 13px 40px;
  border-radius: 999px;
  outline: none;
  transition: all 0.25s var(--ease-out);
}

.restore-input {
  width: 100%;
  padding-left: 18px;
  border-radius: 14px;
  background: var(--surface-strong);
}

.search-input::placeholder,
.restore-input::placeholder {
  color: var(--ink-faint);
}

.search-input:focus,
.restore-input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 4px rgba(180, 70, 44, 0.12);
}

/* ---- Buttons ---- */

.btn-buy,
.btn-cta-buy,
.restore-btn,
.btn-modal-copy,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.btn-buy,
.btn-cta-buy,
.btn-modal-copy {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(180, 70, 44, 0.18);
}

.btn-buy:hover,
.btn-cta-buy:hover,
.btn-modal-copy:hover,
.restore-btn:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-buy {
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.btn-cta-buy,
.btn-modal-copy {
  padding: 18px 32px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 800;
}

.btn-secondary {
  padding: 18px 26px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-weight: 700;
}

.checkout-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.checkout-disabled:hover {
  transform: none;
}

.checkout-pending,
.checkout-loading [data-checkout-link] {
  cursor: progress;
}

.checkout-pending {
  opacity: 0.88;
  box-shadow: none;
}

.checkout-pending:hover {
  transform: none;
}

/* ---- Hero ---- */

.hero {
  padding: 80px 0 48px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(42px, 6.5vw, 72px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.06em;
  max-width: 14ch;
  margin-bottom: 20px;
}

.hero-sub {
  max-width: 580px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-meta {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-panel {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 243, 233, 0.92));
  border: 1px solid rgba(180, 70, 44, 0.18);
  box-shadow: 0 26px 56px rgba(78, 56, 27, 0.12);
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.hero-panel-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.panel-stat {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 38px;
  line-height: 1;
  color: var(--accent-deep);
}

.panel-label {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

/* ---- Compatibility strip ---- */

.compat-strip {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.compat-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}

.compat-badges {
  display: flex;
  gap: 6px;
}

.compat-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

.compat-sep {
  color: var(--ink-faint);
}

/* ---- Library intro ---- */

.library-intro {
  padding: 72px 0 22px;
}

.library-intro-shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.library-intro-shell h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-top: 10px;
}

.library-intro-note {
  max-width: 340px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---- Filters ---- */

.filters {
  position: sticky;
  top: 78px;
  z-index: 90;
  padding: 18px 0;
  background: rgba(245, 239, 229, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.filter-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filter-count {
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.72;
}

.results-meta {
  padding: 22px 0 10px;
}

.results-count {
  font-size: 14px;
  color: var(--ink-soft);
}

.results-count strong {
  color: var(--ink);
}

/* ---- Prompt grid ---- */

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  padding: 16px 0 24px;
}

.prompt-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  animation: cardIn 0.38s var(--ease-out) both;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

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

.prompt-card.locked .card-prompt-text {
  position: relative;
  max-height: 96px;
  overflow: hidden;
}

.prompt-card.locked .card-prompt-text::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0), rgba(255, 250, 242, 1));
}

.card-header,
.card-footer,
.card-actions,
.card-models,
.modal-models,
.modal-actions {
  display: flex;
  align-items: center;
}

.card-header,
.card-footer {
  justify-content: space-between;
  gap: 12px;
}

.card-header {
  margin-bottom: 14px;
}

.card-cat {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cat-content { background: rgba(48, 114, 198, 0.12); color: var(--cat-content); }
.cat-sales { background: rgba(31, 143, 95, 0.12); color: var(--cat-sales); }
.cat-research { background: rgba(171, 106, 22, 0.12); color: var(--cat-research); }
.cat-code { background: rgba(122, 73, 196, 0.12); color: var(--cat-code); }
.cat-email { background: rgba(15, 128, 144, 0.12); color: var(--cat-email); }
.cat-strategy { background: rgba(180, 70, 44, 0.12); color: var(--cat-strategy); }

.card-badge-free,
.card-badge-locked {
  font-size: 11px;
  font-weight: 800;
}

.card-badge-free { color: var(--success); }
.card-badge-locked { color: var(--ink-faint); }

.card-title,
.modal-title,
.empty-state h3,
.cta-title {
  font-family: 'Fraunces', serif;
  letter-spacing: -0.04em;
}

.card-title {
  font-size: 26px;
  line-height: 1.08;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.card-prompt-text,
.modal-prompt,
.bonus-body {
  font-family: 'JetBrains Mono', monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.card-prompt-text,
.modal-prompt {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.card-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.card-models,
.modal-models {
  gap: 8px;
  flex-wrap: wrap;
}

.model-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.card-actions {
  gap: 8px;
}

.btn-copy,
.btn-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.btn-copy:hover,
.btn-fav:hover {
  border-color: var(--accent-border);
  color: var(--accent-deep);
}

.btn-copy.copied,
.btn-modal-copy.copied {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.btn-fav.favorited {
  color: var(--accent);
  border-color: var(--accent-border);
  background: rgba(180, 70, 44, 0.08);
}

.var-highlight {
  background: var(--accent-pale);
  color: var(--accent-deep);
  padding: 1px 4px;
  border-radius: 6px;
  font-weight: 700;
}

/* ---- Social proof ---- */

.social-proof-section {
  padding: 80px 0 40px;
}

.social-proof-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.social-proof-header h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-top: 12px;
}

.social-proof-header strong {
  color: var(--accent);
}

.social-proof-note {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.proof-card-title {
  margin-top: 14px;
  font-size: 21px;
  line-height: 1.25;
}

.proof-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.proof-list li + li {
  margin-top: 8px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

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

.testimonial-stars {
  color: #e8a838;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.testimonial-author span {
  display: block;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---- Argument section ---- */

.argument-section {
  padding: 60px 0 70px;
}

.argument-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.argument-card {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.argument-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-pale);
  color: var(--accent-deep);
  font-size: 22px;
  margin-bottom: 16px;
}

.argument-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.argument-card p {
  color: var(--ink-soft);
}

/* ---- Bonus section ---- */

.bonus-section {
  padding: 70px 0;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.bonus-card {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.bonus-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.bonus-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--accent-pale);
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 14px;
}

.bonus-card-state {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-deep);
}

.bonus-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.bonus-card p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.bonus-body {
  min-height: 140px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.7;
}

.bonus-card.locked .bonus-body {
  position: relative;
  overflow: hidden;
}

.bonus-card.locked .bonus-body::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0), rgba(255, 250, 242, 1));
}

.bonus-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.bonus-meta {
  font-size: 13px;
  color: var(--ink-faint);
}

.bonus-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.bonus-copy:hover {
  border-color: var(--accent-border);
  color: var(--accent-deep);
}

/* ---- Workflow / How it works ---- */

.workflow-section {
  padding: 70px 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.workflow-card {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.workflow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: var(--accent-pale);
  color: var(--accent-deep);
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 20px;
}

.workflow-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.workflow-card p {
  color: var(--ink-soft);
}

/* ---- CTA section ---- */

.cta-section {
  padding: 70px 0;
}

.cta-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 242, 231, 0.9));
  border: 1px solid rgba(180, 70, 44, 0.16);
  box-shadow: 0 30px 60px rgba(78, 56, 27, 0.1);
}

.cta-title {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.02;
  margin: 12px 0 14px;
}

.cta-sub {
  max-width: 620px;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.cta-price-note {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.buyer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.buyer-tools[hidden] {
  display: none !important;
}

.buyer-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.buyer-tool-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent-deep);
}

.email-capture,
.restore-access {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
}

.email-capture {
  margin-bottom: 16px;
}

.email-lead,
.restore-access-lead {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.email-note,
.restore-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.subscribe-input {
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: all 0.25s var(--ease-out);
}

.subscribe-input::placeholder {
  color: var(--ink-faint);
}

.subscribe-input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 4px rgba(180, 70, 44, 0.12);
}

.subscribe-btn {
  padding: 13px 18px;
  border-radius: 14px;
  border: none;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.subscribe-btn:hover {
  transform: translateY(-1px);
}

.subscribe-thanks {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--success);
}

.restore-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.restore-btn {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.restore-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* ---- FAQ ---- */

.faq-section {
  padding: 60px 0 80px;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 800px;
}

.faq-item {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  padding: 20px 22px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 22px;
  padding-right: 28px;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 2px;
  color: var(--accent);
  font-size: 24px;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  margin-top: 12px;
  font-size: 15px;
  max-width: 760px;
  color: var(--ink-soft);
}

/* ---- Price anchoring ---- */

.cta-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.price-anchor {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
}

.price-anchor s {
  color: var(--ink-faint);
  text-decoration: line-through;
  margin-right: 4px;
}

.btn-cta-buy s {
  color: rgba(255, 255, 255, 0.6);
  margin-right: 4px;
}

/* ---- Guarantee badge ---- */

.guarantee-badge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(43, 122, 85, 0.06);
  border: 1px solid rgba(43, 122, 85, 0.16);
  max-width: 520px;
}

.guarantee-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.guarantee-badge strong {
  display: block;
  font-size: 14px;
  color: var(--success);
  margin-bottom: 2px;
}

.guarantee-badge span {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---- Footer ---- */

.site-footer {
  padding: 28px 0 42px;
  color: var(--ink-faint);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--ink-faint);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ---- Modal ---- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 32, 43, 0);
  backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
  transition: background 0.3s var(--ease-out), backdrop-filter 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.modal-overlay.active {
  background: rgba(24, 32, 43, 0.48);
  backdrop-filter: blur(12px);
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 28px;
  background: #fffaf3;
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(24, 32, 43, 0.22);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s var(--ease-spring);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}

.modal-title {
  font-size: 34px;
  line-height: 1.02;
  margin: 10px 0 10px;
}

.modal-desc {
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.modal-prompt {
  margin-bottom: 20px;
  font-size: 13px;
}

.modal-prompt-locked {
  position: relative;
  max-height: 150px;
  overflow: hidden;
}

.modal-prompt-locked::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0), rgba(255, 250, 243, 1));
}

.modal-actions {
  gap: 12px;
}

/* ---- Scroll to top ---- */

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(24, 32, 43, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease-out);
  z-index: 120;
  font-size: 18px;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Toast ---- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 80px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  z-index: 260;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s var(--ease-out);
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- Loading / Empty states ---- */

.loading-state,
.empty-state {
  padding: 80px 20px;
  text-align: center;
  color: var(--ink-faint);
}

.empty-state h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.empty-state-icon {
  font-size: 38px;
  margin-bottom: 12px;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 3px solid rgba(24, 32, 43, 0.12);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

/* ---- Unlocked state ---- */

.btn-unlocked {
  background: var(--success) !important;
  box-shadow: none !important;
  opacity: 0.85;
}

/* ---- Payment verification overlay ---- */

.payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 32, 43, 0.56);
  backdrop-filter: blur(16px);
}

.payment-overlay[hidden] {
  display: none;
}

.payment-overlay-card {
  text-align: center;
  padding: 40px 48px;
  border-radius: 28px;
  background: #fffaf3;
  box-shadow: 0 26px 70px rgba(24, 32, 43, 0.22);
}

.payment-overlay-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 18px;
  margin-bottom: 8px;
}

.payment-overlay-card p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---- Animations ---- */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 980px) {
  .hero-shell,
  .cta-shell {
    grid-template-columns: 1fr;
  }

  .testimonial-grid,
  .argument-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .bonus-grid {
    grid-template-columns: 1fr;
  }

  .library-intro-shell {
    flex-direction: column;
    align-items: start;
  }

  .hero-panel {
    max-width: 420px;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .site-header {
    padding: 14px 0;
  }

  .nav-inner {
    gap: 12px;
  }

  .nav-actions {
    gap: 10px;
  }

  .search-input {
    width: 150px;
  }

  .btn-buy .btn-text {
    display: none;
  }

  .checkout-loading .btn-buy .btn-text,
  .checkout-pending .btn-text {
    display: inline;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 32px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(36px, 10vw, 52px);
  }

  .hero-sub {
    font-size: 17px;
  }

  .filters {
    top: 67px;
  }

  .prompt-grid {
    grid-template-columns: 1fr;
  }

  .restore-form {
    flex-direction: column;
  }

  .restore-btn {
    width: 100%;
  }

  .compat-inner {
    font-size: 13px;
    gap: 8px;
  }

  .compat-sep {
    display: none;
  }

  .compat-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 780px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .cta-price-row {
    flex-direction: column;
    align-items: stretch;
  }

  .price-anchor {
    text-align: center;
  }

  .guarantee-badge {
    max-width: none;
  }
}

@media (max-width: 540px) {
  .btn-cta-buy,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .section-heading h2,
  .library-intro-shell h2,
  .cta-title {
    font-size: 30px;
  }

  .social-proof-header h2 {
    font-size: 28px;
  }

  .card-title,
  .bonus-card h3,
  .argument-card h3,
  .workflow-card h3 {
    font-size: 22px;
  }

  .faq-item summary {
    font-size: 19px;
  }

  .modal-card {
    padding: 22px;
  }

  .modal-title {
    font-size: 28px;
  }

  .testimonial-card {
    padding: 22px;
  }

  .testimonial-text {
    font-size: 14px;
  }
}
