/* Lead Magnet Opt-in Page Template — 3thingsMedia */
:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --cover: #134e4a;
  --accent: #fbbf24;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
img { max-width: 100%; display: block; }
a { color: var(--brand); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { height: 36px; width: auto; }

/* Buttons */
.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 17px; color: #fff; background: var(--brand); border-radius: 10px; padding: 15px 24px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 30%, transparent); transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.btn svg { width: 18px; height: 18px; }
.btn--sm { font-size: 14px; padding: 9px 14px; box-shadow: none; }
.btn--block { width: 100%; }
.btn--ghost { background: #fff; color: var(--brand); border: 2px solid var(--brand); box-shadow: none; }
.btn--ghost:hover { background: color-mix(in srgb, var(--brand) 6%, #fff); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, #fff) 0%, #fff 100%); padding: 40px 0 56px; }
@media (min-width: 900px) { .hero { padding: 72px 0 88px; } }
.hero__grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.hero__cover { order: -1; }
@media (min-width: 900px) { .hero__cover { order: 2; } }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-dark); background: color-mix(in srgb, var(--brand) 12%, #fff); padding: 5px 10px; border-radius: 999px; margin: 0 0 16px; }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin: 0 0 16px; }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin: 0 0 12px; }
h1:focus, h2:focus { outline: none; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.ticks svg { width: 22px; height: 22px; flex-shrink: 0; color: #fff; background: var(--brand); border-radius: 50%; padding: 4px; margin-top: 1px; }
.proof { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-top: 16px; }
.proof__faces { display: flex; }
.proof__faces span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 60%, #fff), var(--brand)); }
.proof__faces span:first-child { margin-left: 0; }
.proof__faces span:nth-child(2) { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.proof__faces span:nth-child(3) { background: linear-gradient(135deg, #c7d2fe, #6366f1); }
.stars { color: #f59e0b; letter-spacing: 1px; }

/* Cover (drawn in CSS) */
.book { perspective: 1400px; display: flex; justify-content: center; padding: 10px 0 20px; }
.book__inner { container-type: inline-size; position: relative; width: min(190px, 50vw); aspect-ratio: 3 / 4; transform: rotateY(-18deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .5s ease; }
.book:hover .book__inner { transform: rotateY(-8deg) rotateX(2deg); }
@media (min-width: 900px) { .book__inner { width: 330px; } }
.book__face { position: absolute; inset: 0; border-radius: 4px 10px 10px 4px; overflow: hidden; background: var(--cover); color: #fff; padding: 11% 10% 9% 14%; display: flex; flex-direction: column; box-shadow: 24px 30px 50px rgba(15, 23, 42, .28), 2px 2px 0 rgba(255, 255, 255, .08) inset; }
.book__face::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .12) 60%, rgba(0, 0, 0, .1)); }
.book__face::after { content: ""; position: absolute; right: -30%; top: -20%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 65%); }
.book__pages { position: absolute; top: 2%; bottom: 2%; right: -9px; width: 12px; border-radius: 0 4px 4px 0; background: repeating-linear-gradient(180deg, #f1f5f9 0 2px, #e2e8f0 2px 3px); transform: translateZ(-6px); }
/* Cover text scales with the book (cqw = % of the book's width) */
.book__type { position: relative; align-self: flex-start; font-size: clamp(8px, 3.4cqw, 11px); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--cover); background: var(--accent); padding: 5px 9px; border-radius: 4px; }
.book__rule { position: relative; width: 36%; height: 4px; background: var(--accent); border-radius: 2px; margin: auto 0 14px; }
.book__title { position: relative; font-size: 8.2cqw; line-height: 1.12; font-weight: 800; letter-spacing: -.015em; margin: 0 0 10px; }
.book__sub { position: relative; font-size: clamp(8.5px, 3.7cqw, 12px); line-height: 1.45; opacity: .82; margin: 0; }
.book__brand { position: relative; margin-top: auto; padding-top: 5cqw; font-size: clamp(8px, 3.3cqw, 11px); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.book__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book__details { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); margin: 6px 0 0; }

/* Form */
.optin { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 10px 40px rgba(15, 23, 42, .07); }
@media (min-width: 640px) { .optin { padding: 24px; } }
.optin__row { display: grid; gap: 10px; }
@media (min-width: 640px) { .optin__row--2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 2px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; transition: border-color .15s; }
.field input:focus { outline: none; border-color: var(--brand); }
.field input[aria-invalid="true"] { border-color: #dc2626; }
.err { color: #dc2626; font-size: 13px; margin: 5px 0 0; }
.optin .btn { margin-top: 14px; }
.privacy { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.privacy svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section--tint { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.inside { display: grid; gap: 16px; counter-reset: ch; }
@media (min-width: 640px) { .inside { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .inside { grid-template-columns: repeat(3, 1fr); } }
.inside__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.inside__item::before { counter-increment: ch; content: "Chapter " counter(ch); display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 8px; }
.inside__item h3 { font-size: 17px; margin: 0 0 6px; }
.inside__item p { font-size: 15px; color: var(--muted); margin: 0; }

/* Author */
.author { display: grid; gap: 24px; align-items: center; max-width: 820px; margin: 0 auto; }
@media (min-width: 640px) { .author { grid-template-columns: 160px 1fr; gap: 36px; } }
.author__photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--brand), var(--cover)); color: #fff; font-size: 44px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 14%, #fff); }
.author__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.author h3 { font-size: 22px; margin: 0; }
.author__role { color: var(--brand); font-weight: 600; margin: 2px 0 10px; }
.author__bio { color: var(--muted); margin: 0; font-size: 16px; }

/* Testimonials */
.quotes { display: grid; gap: 16px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.quote p { margin: 0; font-size: 16px; }
.quote footer { margin-top: auto; font-size: 14px; }
.quote footer strong { display: block; }
.quote footer span { color: var(--muted); }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* Final CTA */
.final { background: var(--cover); color: #fff; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .1), transparent 65%); }
.final__grid { position: relative; display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .final__grid { grid-template-columns: 1fr 440px; gap: 56px; } }
.final h2 { color: #fff; }
.final .lead { color: rgba(255, 255, 255, .8); }
.final .optin { color: var(--ink); }

/* Thank you */
.thanks { padding: 56px 0 80px; text-align: center; animation: in .4s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .thanks { animation: none; } }
.thanks__icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: flex; align-items: center; justify-content: center; }
.thanks__icon svg { width: 36px; height: 36px; }
.thanks .lead { max-width: 520px; margin-left: auto; margin-right: auto; }
.thanks__next { max-width: 560px; margin: 40px auto 0; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; }
.thanks__next h3 { font-size: 20px; margin: 0 0 6px; }
.thanks__next p { color: var(--muted); margin: 0 0 18px; }

/* Footer */
.foot { padding: 28px 0 36px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); }
