/* Miss Verna Cooks. Look B palette: cream paper, gingham navy, apron terracotta, mahogany text, ochre wall. */
:root {
  --cream: #F8F8F0;
  --paper: #EFEBDD;
  --line: #D9D2BF;
  --navy: #282878;
  --terra: #95442D;
  --terra-dark: #7A3624;
  --mahog: #251C11;
  --ochre: #62553F;
  --head: 'Superclarendon', Rockwell, 'Rockwell Std', 'Roboto Slab', Georgia, serif;
  --body: 'Gill Sans', 'Gill Sans MT', Seravek, Optima, 'Trebuchet MS', sans-serif;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--mahog); font-family: var(--body); font-size: 19px; line-height: 1.55; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); }
a:hover { color: var(--terra-dark); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--navy); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.5px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--cream); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.eyebrow { font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin: 0 0 12px; }
.lede { font-size: 21px; color: var(--ochre); }
.small { font-size: 15px; color: var(--ochre); }
.gingham { background-color: var(--navy); background-image: repeating-linear-gradient(0deg, rgba(248,248,240,.85) 0 8px, transparent 8px 16px), repeating-linear-gradient(90deg, rgba(248,248,240,.55) 0 8px, transparent 8px 16px); }
.strip { height: 16px; }

/* Top */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--terra); color: var(--cream); display: grid; place-items: center; font-size: 20px; }
.notice { background: var(--paper); color: var(--mahog); text-align: center; font-size: 16px; padding: 8px 16px; }
.notice b { color: var(--navy); }
.alert { display: none; background: #F6E3DA; border: 1px solid var(--terra); color: var(--mahog); padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; font-size: 16px; }
.alert.show { display: block; }

/* Buttons and forms */
.btn { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 19px; line-height: 1.2; background: var(--terra); color: var(--cream); border: 0; border-radius: 10px; padding: 15px 24px 17px; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover, .btn:focus-visible { background: var(--terra-dark); color: var(--cream); }
.btn:disabled { opacity: .7; cursor: wait; }
.btn.small-btn { font-size: 16px; padding: 10px 16px 11px; }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--cream); }
.signup { display: grid; gap: 10px; }
.signup .row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type=email], .ask input, .ask textarea { flex: 1 1 240px; font: inherit; font-size: 18px; padding: 14px 16px; border: 2px solid var(--ochre); border-radius: 10px; background: #fff; color: var(--mahog); min-width: 0; }
.signup input[type=email]:focus, .ask input:focus, .ask textarea:focus { outline: 3px solid rgba(149,68,45,.35); border-color: var(--terra); }
.tick { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--mahog); }
.tick input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--terra); flex: none; }
.fine { font-size: 14px; color: var(--ochre); margin: 0; }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
label.vh, .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--paper); }
.center { text-align: center; }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.hero .lede { margin-bottom: 22px; }
.player { position: relative; border-radius: 12px; overflow: hidden; background: var(--mahog); box-shadow: 0 0 0 4px var(--terra); margin: 28px 0 10px; }
.player video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.player-cap { font-size: 15px; color: var(--ochre); margin: 0; }
.hero-grid > .cover-col { position: sticky; top: 90px; }
.cover-frame { padding: 14px; border-radius: 6px; }
.cover-frame img { box-shadow: 0 14px 36px rgba(37,28,17,.35); }
.cover-cap { font-size: 14px; color: var(--ochre); margin: 10px 0 0; text-align: center; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: 16px; }
.facts li::before { content: "\2713"; color: var(--terra); font-weight: 700; margin-right: 8px; }
.hero-links { margin-top: 18px; font-size: 16px; display: flex; gap: 18px; flex-wrap: wrap; }
.signup-card { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 20px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--cream); background: var(--terra); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: 17px; }

/* Pains */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.pain { border-top: 4px solid var(--terra); padding-top: 14px; }
.pain h3 { font-size: 20px; }
.pain p { font-size: 17px; margin: 0; }

/* Slips table */
.slips { width: 100%; border-collapse: separate; border-spacing: 0; margin: 26px 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.slips th { text-align: left; font-family: var(--head); color: var(--cream); background: var(--navy); padding: 14px 18px; font-size: 18px; }
.slips td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; font-size: 17px; width: 50%; }
.slips td b { display: block; color: var(--mahog); font-size: 18px; margin-bottom: 2px; }
.slips td:first-child { background: #FBF3EE; }
.callout { font-family: var(--head); font-weight: 700; font-size: 24px; color: var(--terra); margin: 8px 0 8px; }

/* Inside */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0; }
.page-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.page-card .num { font-family: var(--head); font-weight: 700; color: var(--terra); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.page-card h3 { margin: 6px 0; }
.page-card p { margin: 0; font-size: 17px; }

/* Answers */
.qa { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
.qa div { background: #fff; border-left: 5px solid var(--navy); border-radius: 0 10px 10px 0; padding: 16px 18px; }
.qa b { display: block; font-family: var(--head); color: var(--navy); font-size: 18px; margin-bottom: 4px; }
.qa p { margin: 0; font-size: 17px; }
.qa .where { display: block; font-size: 14px; color: var(--ochre); margin-top: 6px; }

/* Pages gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 18px rgba(37,28,17,.18); border: 1px solid var(--line); }
.gallery figcaption { font-size: 15px; color: var(--ochre); margin-top: 8px; text-align: center; }

/* Contents */
.toc { margin-top: 24px; border-top: 1px solid var(--line); }
.toc details { border-bottom: 1px solid var(--line); }
.toc summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative; font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 20px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; color: var(--terra); }
.toc details[open] summary::after { content: "\2212"; }
.toc summary .count { font-family: var(--body); font-weight: 400; color: var(--ochre); font-size: 16px; margin-left: 8px; }
.toc ul { margin: 0 0 18px; padding-left: 22px; }
.toc li { margin-bottom: 4px; }
.toc .home { color: var(--ochre); }
.tag { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--terra); color: var(--cream); border-radius: 4px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }

/* Fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
.fit > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.fit ul { margin: 0; padding-left: 0; list-style: none; }
.fit li { padding-left: 30px; position: relative; margin-bottom: 10px; font-size: 17px; }
.fit .yes li::before { content: "\2713"; position: absolute; left: 2px; color: var(--navy); font-weight: 700; }
.fit .no li::before { content: "\2715"; position: absolute; left: 2px; color: var(--terra); font-weight: 700; }

/* Testing */
.testing { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.meter { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-align: center; }
.meter .big { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 56px; line-height: 1; }
.meter .bar { height: 14px; background: var(--paper); border-radius: 7px; margin: 16px 0 10px; overflow: hidden; }
.meter .bar span { display: block; height: 100%; width: 0; background: var(--terra); }

/* Offer */
.offer { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; background: #fff; border: 2px solid var(--navy); border-radius: 16px; padding: 32px; }
.offer .book-title { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 24px; line-height: 1.2; margin: 0 0 14px; }
.price { font-family: var(--head); font-weight: 700; font-size: 40px; color: var(--terra); margin: 6px 0 2px; }
.offer ul { padding-left: 22px; margin: 14px 0 18px; }
.offer li { margin-bottom: 4px; font-size: 17px; }
.status-pill { display: inline-block; background: var(--paper); color: var(--navy); font-weight: 600; font-size: 15px; border-radius: 20px; padding: 4px 12px; }
[data-sale="off"] [data-sale-on] { display: none !important; }
[data-sale="on"] [data-sale-off] { display: none !important; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.about figure { margin: 0; }
.about img { border-radius: 12px; }
.about figcaption { font-size: 14px; color: var(--ochre); margin-top: 8px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 600; font-size: 18px; position: relative; list-style: none; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--terra); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { font-size: 17px; }

/* Ask */
.ask { display: grid; gap: 12px; max-width: 640px; margin: 24px auto 0; }
.ask textarea { min-height: 140px; resize: vertical; }
.ask .row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Free block */
.free-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.free-block ul { padding-left: 22px; }
.free-block li { margin-bottom: 4px; }

/* Final */
.final { text-align: center; color: var(--cream); background: var(--navy); }
.final h2 { color: var(--cream); }
.final p { color: #E4E2EF; }

/* Footer */
footer { background: var(--mahog); color: #E9E3D3; padding: 40px 0; font-size: 15px; }
footer a { color: #F3D8CB; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin: 10px 0 16px; }
footer p { margin: 0 0 8px; }

/* Popup */
dialog.pop { border: 0; border-radius: 16px; padding: 0; max-width: 480px; width: calc(100% - 32px); background: var(--cream); color: var(--mahog); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
dialog.pop::backdrop { background: rgba(37,28,17,.55); }
.pop .inner { padding: 28px 26px 24px; }
.pop .close { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--ochre); cursor: pointer; padding: 6px 10px; }
.pop h2 { font-size: 28px; }

/* Plain pages */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 44px); }
.doc h2 { font-size: 26px; margin-top: 1.4em; }
.doc li { margin-bottom: 6px; }
.download-card { background: #fff; border: 2px solid var(--navy); border-radius: 16px; padding: 28px; margin: 24px 0; display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; }
.placeholder { background: #FFF4C2; padding: 0 4px; border-radius: 3px; }

@media (max-width: 900px) {
  .hero-grid, .testing, .offer, .about, .free-block { grid-template-columns: 1fr; }
  .hero-grid > .cover-col { position: static; max-width: 280px; margin: 0 auto; }
  .steps, .pains, .three { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .qa, .fit { grid-template-columns: 1fr; }
  .offer { padding: 22px; }
  .offer .cover-col { max-width: 240px; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  section { padding: 52px 0; }
  .wrap { padding: 0 18px; }
  .topbar .btn { font-size: 14px; padding: 8px 12px 9px; white-space: nowrap; }
  .brand { font-size: 18px; white-space: nowrap; }
  .brand-mark { width: 28px; height: 28px; font-size: 16px; }
  h1 { font-size: 31px; }
  .notice { font-size: 14px; }
  .slips th, .slips td { padding: 12px; font-size: 16px; }
  .slips td b { font-size: 16px; }
  .download-card { grid-template-columns: 1fr; }
  .download-card img { max-width: 140px; order: 2; }
  .signup .btn, .ask .btn { width: 100%; }
}
@media (max-width: 420px) { .brand-mark { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
