/* Bella Figura After 50 — lorenzostyle.store. Colors follow the book: cream paper, espresso ink,
   terracotta, olive and navy. Fonts are self-hosted (tools/fetch_fonts.py). */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/cormorant.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/cormorant-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/jost.woff2") format("woff2"); }

:root {
  --paper: #f6efe4;
  --paper-2: #efe5d5;
  --card: #fbf7f0;
  --ink: #2a211b;
  --ink-2: #5c4f44;
  --muted: #8a7b6d;
  --line: #e2d5c2;
  --terra: #b4542f;
  --terra-dk: #93421f;
  --olive: #5b5f3a;
  --navy: #1f2a44;
  --espresso: #1d1712;
  --sand: #d9c3a3;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(42, 33, 27, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-dk); }
a:hover { color: var(--terra); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h1 i, h2 i, h3 i { font-style: italic; font-weight: 500; color: var(--terra); }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.center { text-align: center; }

.kicker { font: 500 13px/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--terra-dk); margin-bottom: 14px; }
.lede { font: 500 23px/1.45 var(--serif); color: var(--ink-2); }
.orn { display: flex; align-items: center; gap: 12px; margin: 18px 0 22px; color: var(--terra); }
.orn::before { content: ""; width: 54px; height: 1px; background: currentColor; }
.orn::after { content: "✦"; font-size: 12px; }
.head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.head .orn { justify-content: center; }
.head .orn::after { order: -1; }
.head .orn::before { order: 1; }
section { padding: 92px 0; }
section.alt { background: var(--paper-2); }
h2 { font-size: clamp(34px, 4.6vw, 52px); }
h3 { font-size: 27px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  background: var(--terra); color: #fff; border: 0; border-radius: 999px; font: 600 16px/1 var(--sans); letter-spacing: .04em;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; box-shadow: 0 10px 22px -12px rgba(147, 66, 31, .9); }
.btn:hover { background: var(--terra-dk); color: #fff; transform: translateY(-1px); }
.btn.small { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn--wide { width: 100%; }
.arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.i { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

/* Top */
.announce { background: var(--espresso); color: #efe3d1; font-size: 14px; letter-spacing: .04em; text-align: center; padding: 9px 0; }
.announce b { color: var(--sand); font-weight: 600; }
.announce .dot { margin: 0 10px; color: var(--terra); }
header { position: sticky; top: 0; z-index: 30; background: rgba(246, 239, 228, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.logo { font: 600 26px/1 var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo i { color: var(--terra); font-weight: 500; }
.topnav { display: flex; gap: 26px; margin-left: auto; }
.topnav a { color: var(--ink-2); text-decoration: none; font-size: 15px; letter-spacing: .03em; }
.topnav a:hover { color: var(--terra); }
.show-xs { display: none; }

/* Hero */
.hero { padding: 64px 0 84px; background: radial-gradient(ellipse at 80% 20%, #f3e2cb 0, transparent 60%), var(--paper); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(54px, 8vw, 96px); line-height: .96; }
.hero h1 i { display: block; }
.hero .lede { margin: 22px 0 30px; max-width: 520px; }
.pricebox { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; max-width: 470px; box-shadow: var(--shadow); }
.price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.price-now { font: 600 50px/1 var(--serif); color: var(--ink); }
.price-note { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.assurance { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.assurance span { display: inline-flex; align-items: center; gap: 7px; }
.assurance .i { color: var(--olive); font-size: 17px; }
.seller { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.hero__visual { position: relative; }
.hero-portrait { margin: 0; position: relative; }
.hero-portrait img { border-radius: 220px 220px 18px 18px; box-shadow: var(--shadow); width: 100%; }
.hero-portrait figcaption { position: absolute; left: -26px; bottom: 34px; background: var(--espresso); color: #f4e8d6; padding: 14px 20px; border-radius: 12px; font: italic 500 21px/1.25 var(--serif); max-width: 260px; box-shadow: var(--shadow); }
.hero-portrait figcaption small { display: block; font: 400 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sand); margin-top: 6px; font-style: normal; }
.hero-cover { position: absolute; right: -18px; bottom: -34px; width: 148px; border-radius: 4px; box-shadow: 0 22px 36px -14px rgba(0, 0, 0, .55); transform: rotate(4deg); }

/* Strip */
.strip { background: var(--navy); color: #eef0f5; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.strip div div { padding: 26px 10px; }
.strip .wrap > div + div { border-left: 1px solid rgba(255, 255, 255, .14); }
.strip b { display: block; font: 600 44px/1 var(--serif); color: #fff; }
.strip span { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #c9cede; }

/* Two columns */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 18px 0; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 11px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 16px; height: 9px; border-left: 2px solid var(--terra); border-bottom: 2px solid var(--terra); transform: rotate(-45deg); }
.photo { margin: 0; }
.photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.photo figcaption { margin-top: 10px; font: italic 500 18px/1.4 var(--serif); color: var(--muted); }
.note { font-size: 15px; color: var(--muted); }

/* Ten rules */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; counter-reset: rule; }
.rule { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.rule::before { counter-increment: rule; content: counter(rule, decimal-leading-zero); font: italic 500 32px/1 var(--serif); color: var(--terra); }
.rule h3 { font-size: 24px; margin-bottom: 4px; }
.rule p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Quiz: what to clear out */
.quiz { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: start; }
.quiz-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.quiz-list legend { padding: 0; margin-bottom: 14px; font-size: 15px; color: var(--ink-2); }
.qitem { position: relative; }
.qitem input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qitem label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 16px; line-height: 1.3; transition: border-color .15s, background .15s; }
.qitem label::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--muted); background: #fff; }
.qitem input:checked + label { border-color: var(--terra); background: #fbeee6; }
.qitem input:checked + label::before { background: var(--terra) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--terra); }
.qitem input:focus-visible + label { outline: 3px solid var(--terra); outline-offset: 2px; }
.score { position: sticky; top: 100px; background: var(--espresso); color: #f1e6d6; border-radius: 18px; padding: 30px 28px; box-shadow: var(--shadow); }
.score .kicker { color: var(--sand); }
.score .n { font: 600 76px/1 var(--serif); color: #fff; }
.score .n small { font-size: 28px; color: var(--sand); }
.score .verdict { font: italic 500 23px/1.35 var(--serif); margin: 14px 0 18px; min-height: 3.9em; }
.score .scale { display: grid; gap: 6px; font-size: 14px; color: #cdbfae; margin: 0 0 22px; padding: 0; list-style: none; }
.score .scale li.on { color: #fff; font-weight: 600; }
.score .btn { width: 100%; }
.score .fine { font-size: 13px; color: #a99a88; margin: 12px 0 0; }
.no-js .score .verdict::after { content: "Count your ticks: up to 4, 5 to 9, or 10 and more."; }

/* Parts */
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.part { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.part img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.part .tx { padding: 20px 22px 24px; position: relative; }
.part .num { position: absolute; right: 18px; top: 10px; font: italic 500 46px/1 var(--serif); color: var(--line); }
.part .n { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--terra-dk); }
.part h3 { margin: 6px 0 8px; }
.part p { margin: 0; color: var(--ink-2); font-size: 16px; }
.contents { margin-top: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.contents summary { cursor: pointer; padding: 20px 26px; font: 600 22px/1.2 var(--serif); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.contents summary::-webkit-details-marker { display: none; }
.contents summary::after { content: "+"; font: 400 28px/1 var(--sans); color: var(--terra); }
.contents[open] summary::after { content: "–"; }
.contents .cols { columns: 3 260px; column-gap: 36px; padding: 0 26px 26px; }
.contents .grp { break-inside: avoid; margin-bottom: 22px; }
.contents h4 { font-size: 19px; color: var(--terra-dk); margin-bottom: 6px; }
.contents ul { list-style: none; padding: 0; margin: 0; font-size: 15px; color: var(--ink-2); }
.contents li { padding: 3px 0; border-bottom: 1px dotted var(--line); }

/* Sample pages */
.gallery { position: relative; }
.track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; scrollbar-width: thin; }
.track button { flex: 0 0 auto; width: 236px; padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: start; }
.track img { width: 236px; border-radius: 4px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55); }
.track button span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 10px; text-align: left; }
.gallery .prev, .gallery .next { position: absolute; top: 40%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 20px; cursor: pointer; box-shadow: var(--shadow); }
.gallery .prev { left: -14px; }
.gallery .next { right: -14px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 820px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(20, 15, 11, .86); }
.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: 4px; }
.lightbox .bar { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.lightbox button { min-width: 48px; height: 44px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); font: 600 15px/1 var(--sans); cursor: pointer; padding: 0 18px; }

/* Band */
.band { position: relative; color: #fff; min-height: 460px; display: grid; align-items: center; overflow: hidden; }
.band picture, .band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 15, 11, .1) 25%, rgba(20, 15, 11, .78) 70%); }
.band .wrap { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.band blockquote { margin: 0; max-width: 470px; }
.band p { font: italic 500 clamp(30px, 3.6vw, 42px)/1.2 var(--serif); margin: 0 0 14px; }
.band cite { font: 500 13px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--sand); font-style: normal; }

/* Inside-the-book features */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.feat b { display: block; font: 600 22px/1.2 var(--serif); margin-bottom: 6px; }
.feat p { margin: 0; font-size: 16px; color: var(--ink-2); }
.feat .i { font-size: 30px; color: var(--terra); margin-bottom: 12px; }

/* Host */
.host .photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.ai-note { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--olive); border-radius: 10px; padding: 14px 16px; font-size: 15px; color: var(--ink-2); margin-top: 22px; }
.ai-note .i { font-size: 20px; color: var(--olive); margin-top: 2px; }

/* Buy */
.buybox { display: grid; grid-template-columns: 330px 1fr; gap: 56px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 48px; box-shadow: var(--shadow); }
.buybox > img { border-radius: 4px; box-shadow: 0 26px 40px -20px rgba(0, 0, 0, .6); }
.legal-line { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.guarantee { display: flex; gap: 22px; align-items: center; max-width: 760px; margin: 40px auto 0; }
.seal { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; border: 2px dashed var(--olive); display: grid; place-content: center; text-align: center; color: var(--olive); }
.seal b { font: 600 38px/1 var(--serif); }
.seal span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.guarantee h3 { font-size: 25px; margin-bottom: 6px; }
.guarantee p { margin: 0; color: var(--ink-2); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 22px/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 26px/1 var(--sans); color: var(--terra); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

/* Footer */
footer { background: var(--espresso); color: #cbbca9; padding: 56px 0 110px; font-size: 14px; }
footer .flogo { font: 600 28px/1 var(--serif); color: #fff; margin-bottom: 22px; }
footer .flogo i { color: #e3906b; font-weight: 500; }
footer .flogo span { font: 400 14px/1 var(--sans); color: #a99a88; }
footer b { color: #f1e6d6; }
footer a { color: #f1e6d6; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0; }
footer .fine { color: #a99a88; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -16px rgba(0, 0, 0, .45); transform: translateY(110%); transition: transform .25s; }
.sticky-cta.is-visible { transform: none; }
.sticky-cta b { font: 600 28px/1 var(--serif); }
.sticky-cta small { display: block; font-size: 12px; color: var(--muted); }

/* Legal pages */
main.legal { padding: 60px 0 80px; }
main.legal h1 { font-size: clamp(40px, 6vw, 56px); margin-bottom: 8px; }
main.legal h2 { font-size: 28px; margin: 34px 0 10px; }
main.legal p, main.legal li { color: var(--ink-2); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 1020px) {
  .topnav { display: none; }
  header .btn { margin-left: auto; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .parts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  section { padding: 68px 0; }
  .hero { padding: 36px 0 64px; }
  .hero .wrap, .two, .quiz, .buybox { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-portrait figcaption { left: 10px; bottom: 16px; font-size: 18px; }
  .hero-cover { width: 110px; right: 0; }
  .two { gap: 36px; }
  .two .photo { order: -1; }
  .rules { grid-template-columns: 1fr; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .strip .wrap > div:nth-child(3) { border-left: 0; }
  .strip .wrap > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .score { position: static; }
  .buybox { padding: 28px; gap: 30px; }
  .buybox > img { max-width: 230px; margin: 0 auto; }
  .band { min-height: 400px; }
  .band::after { background: linear-gradient(180deg, rgba(20, 15, 11, .05) 20%, rgba(20, 15, 11, .82) 75%); }
  .band .wrap { align-self: end; padding-bottom: 40px; }
  .sticky-cta { display: flex; }
  .gallery .prev, .gallery .next { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .announce .extra { display: none; }
  .logo { font-size: 22px; }
  .hide-xs { display: none; }
  .show-xs { display: inline; }
  .parts, .feats, .quiz-list { grid-template-columns: 1fr; }
  .pricebox { padding: 22px 20px; }
  .guarantee { flex-direction: column; text-align: center; }
  .track button, .track img { width: 200px; }
  .lede { font-size: 21px; }
}

/* iPad landscape: keep the tilted cover inside the screen */
@media (max-width: 1100px) { .hero-cover { right: 0; } }
/* small phones (iPhone SE, 320px): logo and header button fit on one line */
@media (max-width: 360px) {
  header .wrap { gap: 10px; }
  .logo { font-size: 19px; }
  header .btn.small { padding: 0 12px; font-size: 13px; }
}
