/* ==========================================================
   DM SELLING CODE — Design System
   Ink navy + notification gold/coral, chat-bubble motifs.
   ========================================================== */

:root {
  --ink: #171a2a;
  --ink-soft: #2b2f45;
  --ink-muted: #565b78;
  --paper: #f4f2ec;
  --paper-soft: #ffffff;
  --line: rgba(23, 26, 42, 0.12);
  --gold: #e8a33d;
  --gold-deep: #c8842a;
  --coral: #e8604c;
  --blue: #3854e0;
  --green: #1f9e6d;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 12px 32px rgba(23, 26, 42, 0.08);
  --shadow-soft: 0 4px 14px rgba(23, 26, 42, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }


@media (max-width: 700px) {
  .footer-row {
    align-items: flex-start;
  }
  .footer-contact {
    min-width: 100%;
  }
  .footer-links {
    width: 100%;
  }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

.center { text-align: center; }
.center.lead, p.lead { max-width: 620px; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 0.75em;
}
.eyebrow.center { text-align: center; }

.highlight { color: var(--coral); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--gold);
  box-shadow: 0 10px 24px rgba(23, 26, 42, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23, 26, 42, 0.28); }
.btn-large { padding: 17px 34px; font-size: 1.05rem; }
.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Top bar / header ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper);
}
.topbar p {
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 16px;
  color: #f0ead9;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 9px;
  border-radius: 8px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-sub { font-size: 1.08rem; max-width: 52ch; }
.hero-cta-row { margin: 28px 0 22px; }
.hero-cta-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 10px;
}
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.hero-trust li { position: relative; padding-left: 16px; }
.hero-trust li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* Hero stage: book cover as lead visual, mini chat mockup floats on top as proof */
.hero-visual { display: flex; flex-direction: column; align-items: center; }
.hero-stage {
  position: relative;
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 70px;
}
.hero-cover-img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 28px 54px rgba(23, 26, 42, 0.3);
  transform: rotate(-4deg);
}
.hero-stage .phone.phone-mini {
  position: absolute;
  bottom: 0;
  right: -34px;
  transform: scale(0.56) rotate(4deg);
  transform-origin: bottom right;
  z-index: 5;
}

/* Phone mockup */
.hero-visual .phone {
  width: 300px;
  max-width: 100%;
  background: var(--ink);
  border-radius: 34px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.phone-notch {
  width: 70px; height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin: 0 auto 10px;
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}
.phone-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}
.phone-header-text { display: flex; flex-direction: column; }
.phone-header-text strong { color: var(--paper); font-size: 0.85rem; }
.phone-header-text span { color: var(--green); font-size: 0.7rem; font-family: var(--font-mono); }

.phone-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 340px;
}
.bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  animation: bubble-in 0.5s ease forwards;
}
.bubble-out {
  align-self: flex-end;
  background: var(--blue);
  color: white;
  border-bottom-right-radius: 4px;
}
.bubble-in {
  align-self: flex-start;
  background: #2c2f45;
  color: var(--paper);
  border-bottom-left-radius: 4px;
}
.bubble-deal { background: var(--green); color: var(--ink); font-weight: 600; }

.typing-row {
  align-self: flex-start;
  background: #2c2f45;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 10px 14px;
  display: flex;
  gap: 4px;
  opacity: 0;
  animation: bubble-in 0.5s ease forwards;
}
.typing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-muted);
  animation: typing-bounce 1.1s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

.d1 { animation-delay: 0.3s; }
.d2 { animation-delay: 1.1s; }
.d3 { animation-delay: 1.9s; }
.d4 { animation-delay: 2.7s; }
.d5 { animation-delay: 3.6s; }
.d6 { animation-delay: 4.5s; }

@keyframes bubble-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.phone-caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
  max-width: 280px;
}

/* ---------- Section shell ---------- */
.section { padding: 72px 0; }
.section.problem, .section.framework, .section.audience { background: var(--paper-soft); }

/* ---------- Problem / myths ---------- */
.myth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0;
}
.myth-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}
.myth-quote {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-muted);
  margin: 0;
}
.problem-close {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
}

/* ---------- Big idea / equation ---------- */
.equation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 36px 0 14px;
  font-family: var(--font-mono);
}
.equation span:not(.plus) {
  background: var(--ink);
  color: var(--gold);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.equation .plus { color: var(--coral); font-weight: 700; }
.equation-caption { color: var(--ink-muted); font-size: 0.9rem; }

/* ---------- Framework flow ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.flow-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  position: relative;
}
.flow-step-final { background: var(--ink); border-color: var(--ink); }
.flow-step-final h3, .flow-step-final .flow-tag { color: var(--gold); }
.flow-step-final p { color: rgba(244,242,236,0.8); }
.flow-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--coral);
  margin-bottom: 10px;
}
.flow-step h3 { margin-bottom: 6px; }
.flow-step p { font-size: 0.9rem; margin: 0; }

/* ---------- Benefits ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.benefit-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
}
.benefit-icon { font-size: 1.6rem; display: block; margin-bottom: 12px; }
.benefit-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.benefit-card p { font-size: 0.92rem; margin: 0; }

/* ---------- Accordion (Inside + FAQ) ---------- */
.accordion { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.acc-item {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.acc-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 600;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
  content: '+';
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--coral);
  transition: transform 0.2s ease;
}
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--coral);
  min-width: 54px;
}
.acc-title { font-size: 0.98rem; }
.acc-item ul {
  margin: 0 0 16px;
  padding: 0 0 0 70px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.acc-item p { padding-bottom: 16px; font-size: 0.92rem; margin: 0; }
.faq-accordion .acc-item summary { gap: 0; }

/* ---------- Book preview ---------- */
.preview-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  margin-top: 32px;
}
.preview-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.preview-quote {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.6;
}
.preview-note {
  color: rgba(244,242,236,0.6);
  font-size: 0.85rem;
  margin-top: 18px;
  margin-bottom: 0;
  font-family: var(--font-mono);
}

/* ---------- Audience ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.audience-col h3 { margin-bottom: 18px; }
.check-list, .cross-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li, .cross-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--green);
  font-weight: 700;
}
.cross-list li::before {
  content: '✕';
  position: absolute; left: 0; top: 0;
  color: var(--coral);
  font-weight: 700;
}

/* ---------- Offer ---------- */
.offer-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  color: var(--paper);
}
.offer .eyebrow { color: var(--gold); }
.offer-cover {
  width: 150px;
  margin: 4px auto 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 34px rgba(0,0,0,0.35);
}
.offer-card h2 { color: var(--paper); }
.offer-sub { text-align: center; color: rgba(244,242,236,0.75); margin-bottom: 30px; }
.offer-includes {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.offer-includes li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: rgba(244,242,236,0.9);
}
.offer-includes li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-weight: 700;
}
.price-row {
  text-align: center;
  margin-bottom: 26px;
}
.price-badge {
  display: inline-block;
  background: rgba(232, 163, 61, 0.15);
  border: 1px solid rgba(232, 163, 61, 0.4);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.price {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.price-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(244,242,236,0.6);
}
.offer-micro {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(244,242,236,0.55);
  margin-top: 14px;
  margin-bottom: 0;
}

/* ---------- Final CTA ---------- */
.final-cta { padding-bottom: 96px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(244,242,236,0.92);
  padding: 48px 0 30px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 24px;
}
.site-footer .brand-name, .site-footer .brand-mark { color: var(--paper); }

/* Contact information: high contrast for readability on the dark footer */
.footer-contact {
  min-width: 280px;
  flex: 1;
}
.footer-contact h3 {
  color: var(--paper);
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.footer-contact p {
  color: rgba(244,242,236,0.86);
  margin: 6px 0;
  line-height: 1.55;
}
.footer-contact strong {
  color: var(--paper);
}
.footer-contact a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-contact a:hover {
  color: var(--gold);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 22px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: rgba(244,242,236,0.9);
}
.footer-links a:hover { color: var(--gold); }

.footer-note {
  font-size: 0.8rem;
  color: rgba(244,242,236,0.68);
  margin: 0;
}

/* ---------- Thank-you page ---------- */
.ty-section {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.ty-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.ty-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.ty-card h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.ty-card p { font-size: 1rem; }
.ty-cover {
  width: 190px;
  aspect-ratio: 3 / 4;
  margin: 28px auto 30px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.ty-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.ty-cover-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-muted);
  text-align: center;
  padding: 16px;
}
.ty-cover-placeholder svg { color: var(--ink-muted); }
.ty-cover-placeholder span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.ty-cover-placeholder small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.ty-order-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 22px;
}
.ty-help { margin-top: 30px; font-size: 0.85rem; color: var(--ink-muted); }
.ty-help a { color: var(--coral); text-decoration: none; }

/* ---------- Focus states ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 12px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .myth-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 40px; }
  .flow { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .header-row { padding-top: 12px; padding-bottom: 12px; }
  .offer-card { padding: 34px 22px; }
  .hero-cta-row .btn-large { width: 100%; }
  .acc-item ul { padding-left: 0; }
  .hero-stage { width: 240px; padding-bottom: 54px; }
  .hero-stage .phone.phone-mini { right: -22px; transform: scale(0.44) rotate(4deg); transform-origin: bottom right; }
}
