/* Sales page for "Artificial Intelligence Is Here. Are You Ready?" (EN + BG).
   Audience 40-65, ~90% on phones: light warm background, near-black text, 19px+ body copy,
   sentence-case serif headings (Literata Bold), Inter for reading, big tap targets.
   One story, one action: every section is one centred column with a single heading (desktop too; only the
   hero splits into two columns). */

@font-face { font-family: 'Inter'; src: url('../fonts/Inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-700.woff2') format('woff2'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('../fonts/Literata-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #FBF8F2;
  --tint: #F3EDE2;
  --surface: #FFFFFF;
  --ink: #1B1A17;
  --ink-2: #3F3C36;
  --muted: #5B574F;
  --line: #E2DACB;
  --amber: #FFB020;
  --amber-hover: #FFA000;
  --amber-soft: #FFF1D6;
  --orange: #F26A1B;
  --accent: #B13D0B;
  --green: #2F7D4F;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: 20px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 10px 28px -10px rgba(40, 30, 10, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.1875rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@media (min-width: 768px) { body { font-size: 1.25rem; } }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
p, li, blockquote, summary { text-wrap: pretty; }   /* no single word alone on the last line */
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 700; }
[hidden] { display: none !important; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: clamp(3.5rem, 10vw, 6.5rem); }
.tint { background: var(--tint); }

/* ---------- type + layout: one centred column per section, one heading each ---------- */
.h1, .h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.012em; text-wrap: balance; }
.h1 { font-size: clamp(2.05rem, 8.4vw, 3.7rem); line-height: 1.13; }
.h1 em { font-style: normal; color: var(--accent); }
.h2 { font-size: clamp(1.75rem, 6.6vw, 2.6rem); line-height: 1.18; }
h3 { font: 700 1.2rem/1.3 var(--sans); }
.lede { margin-top: .9rem; color: var(--ink-2); max-width: 40rem; }
.note { margin-top: 1.75rem; padding: 1.15rem 1.3rem; background: var(--amber-soft); border-left: 5px solid var(--amber); border-radius: 0 12px 12px 0; }
.wrap.col { max-width: calc(720px + 2 * var(--gutter)); }
.wrap.col--wide { max-width: calc(1000px + 2 * var(--gutter)); }
.col > .h2 { margin-bottom: 1.5rem; }
.col > .h2 + .lede { margin-top: -.6rem; margin-bottom: 1.6rem; }

/* ---------- icons ---------- */
.ico { flex: none; width: 26px; height: 26px; }
.ico circle { stroke: none; }
.ico path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ico--check circle { fill: var(--amber); }
.ico--check path { stroke: var(--ink); }
.ico--cross circle { fill: #E7E0D4; }
.ico--cross path { stroke: #6E6960; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 64px; max-width: 100%;
  padding: .6rem 1.3rem; background: var(--amber); color: var(--ink); text-decoration: none; border-radius: 14px;
  font: 700 1.25rem/1.2 var(--sans); text-align: center;
  box-shadow: 0 3px 0 #D98A00, 0 12px 26px -10px rgba(230, 140, 0, .6);
  transition: background .2s, transform .15s var(--ease), box-shadow .15s;
}
.btn:hover { background: var(--amber-hover); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 #D98A00, 0 6px 16px -8px rgba(230, 140, 0, .55); }
.btn__price { padding: .3rem .6rem; border-radius: 8px; background: rgba(27, 26, 23, .1); font-weight: 800; white-space: nowrap; }
.btn--noprice .btn__price { display: none; }
.btn__arrow { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 52px; padding: .4rem 1rem; font-size: 1.1rem; border-radius: 12px; }

/* ---------- urgency ---------- */
.ubar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .1rem .45rem;
  padding: .55rem var(--gutter); background: var(--ink); color: #fff; text-align: center; text-decoration: none;
  font: 600 .98rem/1.35 var(--sans);
}
.ubar__price { color: var(--amber); font-weight: 700; }
.ubar__cd b { font-weight: 700; font-variant-numeric: tabular-nums; }
.uline { margin-top: .8rem; text-align: center; font: 600 1rem/1.45 var(--sans); color: var(--accent); text-wrap: balance; }
.ubox { margin-top: 1.25rem; padding: 1rem; background: var(--amber-soft); border: 1px solid #F3D7A0; border-radius: 14px; }
.ubox__title { font-weight: 700; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .7rem; }
.cd div { text-align: center; padding: .55rem .2rem .45rem; background: var(--surface); border: 1px solid #F0D9A8; border-radius: 10px; }
.cd b { display: block; font: 700 1.7rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.cd span { display: block; margin-top: .3rem; font-size: .85rem; color: var(--ink-2); }
.ubox__line { margin-top: .75rem; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }

/* ---------- header ---------- */
.top { position: relative; z-index: 2; background: var(--bg); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { font: 700 1.25rem/1 var(--serif); text-decoration: none; }
.brand i { font-style: normal; color: var(--orange); }
.top__cta { padding: .55rem 1rem; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font: 700 1rem/1 var(--sans); white-space: nowrap; }
.top__cta:hover { background: var(--ink); color: var(--bg); }
.top__right { display: flex; align-items: center; gap: .9rem; }
/* language selector: <details> dropdown */
.langsel { position: relative; border-bottom: 0; }   /* not an FAQ row */
.langsel summary { display: flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .7rem 0 .75rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font: 600 1rem/1 var(--sans); cursor: pointer; list-style: none; user-select: none; }
.langsel summary::-webkit-details-marker { display: none; }
.langsel summary:hover { border-color: var(--ink-2); }
.langsel__globe { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.7; }
.langsel__chev { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.langsel[open] .langsel__chev { transform: rotate(180deg); }
.langsel__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; padding: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 44px -14px rgba(40, 30, 10, .38); }
.langsel__menu a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: 0 .9rem; border-radius: 10px; text-decoration: none; font: 500 1.08rem/1.2 var(--sans); }
.langsel__menu a:hover { background: var(--tint); }
.langsel__menu a[aria-current] { font-weight: 700; background: var(--amber-soft); }
.langsel__menu a[aria-current]::after { content: ''; width: 9px; height: 15px; margin-right: 4px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg) translateY(-2px); }
@media (max-width: 479px) { .page--legal .top__cta { display: none; } }   /* phones: logo + language; the logo leads back to the book */

/* ---------- hero ---------- */
.hero { padding-block: 1.75rem 3rem; overflow: hidden; }
.hero__grid { display: grid; gap: 2rem; }
.hero__sub { display: none; margin-top: 1rem; color: var(--ink-2); max-width: 34rem; }   /* phones: the facts beside the cover say it */
.hero__mid { display: grid; grid-template-columns: 122px 1fr; gap: 1.25rem; align-items: center; margin-top: 1.5rem; }
.facts { display: grid; gap: .7rem; }
.facts li { display: flex; align-items: flex-start; gap: .6rem; font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.facts .ico { width: 24px; height: 24px; margin-top: -1px; }
.buy { margin-top: 1.5rem; }
.buy__trust { margin-top: .75rem; font-size: .98rem; line-height: 1.45; color: var(--muted); text-align: center; text-wrap: balance; }
.hero__art { position: relative; display: none; }
.dots {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
@media (min-width: 960px) {
  .hero { padding-block: 3.5rem 5rem; }
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 3rem; }
  .hero__art { display: flex; align-items: center; justify-content: center; min-height: 560px; }
  .hero__sub { display: block; }
  .hero__mid { grid-template-columns: 1fr; max-width: 36rem; }
  .hero__mid .book { display: none; }
  .facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: .8rem 1.75rem; }
  .buy { max-width: 32rem; }
  .buy__trust { text-align: left; }
}

/* ---------- 3D book ---------- */
.book { --w: 240px; --t: 14px; position: relative; width: var(--w); perspective: 1800px; filter: drop-shadow(0 22px 24px rgba(40, 25, 5, .32)); }
.book__3d { position: relative; width: var(--w); height: calc(var(--w) * 1.6); transform-style: preserve-3d; transform: rotateY(-20deg) rotateX(2deg); }
.book__3d img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 1px 3px 3px 1px; transform: translateZ(calc(var(--t) / 2)); }
.book__3d::before {
  content: ''; position: absolute; top: 1.2%; left: 0; width: calc(var(--t) - 2px); height: 97.6%;
  transform: translateX(calc(var(--w) - var(--t) / 2 - 3px)) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #FFFDF8 0 1px, #DCD4C4 1px 2px);
}
.book__3d::after { content: ''; position: absolute; inset: 0; border-radius: 1px 3px 3px 1px; background: #050608; transform: translateZ(calc(var(--t) / -2)); }
.book--hero-m { --w: 116px; --t: 8px; }
.book--hero { --w: 320px; --t: 18px; }
.book--offer { --w: 150px; --t: 10px; }
.book--close { --w: 150px; --t: 10px; }

/* ---------- 2 · problem ---------- */
.quotes li { margin-top: 1rem; padding: .2rem 0 .2rem 1.1rem; border-left: 4px solid var(--amber); font-size: 1.15rem; line-height: 1.5; font-weight: 500; }
.quotes li:first-child { margin-top: 0; }
.statline { margin-top: 1.75rem; line-height: 1.5; color: var(--ink-2); }
.statline b { margin-right: .15rem; font: 700 1.6rem/1 var(--serif); color: var(--accent); }
.statline small { display: block; margin-top: .35rem; font-size: .9rem; color: var(--muted); }
.turn { margin-top: 1.75rem; font: 700 1.4rem/1.4 var(--serif); }
.turn strong { color: var(--accent); }

/* ---------- 3 · demo ---------- */
.prompts { display: grid; gap: 1rem; }
.prompt { padding: 1.25rem 1.3rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); }
.prompt figcaption { display: flex; align-items: center; gap: .6rem; font: 700 1.05rem/1.3 var(--sans); }
.prompt blockquote { margin-top: .85rem; font: 700 1.15rem/1.5 var(--serif); }
.prompt p { margin-top: .8rem; font-size: 1.05rem; line-height: 1.5; color: var(--ink-2); }
.prompt--weak { background: var(--tint); }
.prompt--weak blockquote { color: #57534B; font-size: 1.4rem; }
.prompt--good { background: var(--surface); border: 2px solid var(--amber); box-shadow: var(--shadow); }
.formula { margin-top: 1.5rem; padding: 1rem 1.2rem; background: var(--amber-soft); border-left: 5px solid var(--amber); border-radius: 0 12px 12px 0; line-height: 1.55; }
.formula b { color: var(--accent); white-space: nowrap; }

/* ---------- 4 · the 7 days ---------- */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 3px; background: repeating-linear-gradient(var(--amber) 0 6px, transparent 6px 12px); }
.day { position: relative; display: flex; gap: 1rem; padding-bottom: 1.35rem; }
.day:last-child { padding-bottom: 0; }
.day__n { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--amber); font: 700 1.25rem/44px var(--serif); text-align: center; box-shadow: 0 0 0 5px var(--tint); }
.day h3 { margin-top: .45rem; font-size: 1.2rem; }
.day p { margin-top: .3rem; color: var(--ink-2); line-height: 1.5; }
.days__after { margin-top: 1.5rem; color: var(--ink-2); }
.days__cta { margin-top: 1.75rem; }

/* ---------- 5 · real pages ---------- */
.pages { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
.pagefig__zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pagefig img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
.pagefig__plus { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.pagefig__plus svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.pagefig figcaption { margin-top: .65rem; font: 600 1rem/1.35 var(--sans); }
@media (min-width: 720px) { .pages { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

/* ---------- 6 · the offer ---------- */
.offer__title { margin-bottom: 1.5rem; text-align: center; }
.tiers { display: grid; gap: 1.25rem; }
.tier { position: relative; display: flex; flex-direction: column; padding: 1.4rem 1.3rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.tier--featured { border: 3px solid var(--amber); box-shadow: 0 2px 4px rgba(40, 30, 10, .06), 0 26px 50px -22px rgba(200, 120, 0, .45); }
.tier__badge { align-self: flex-start; margin-bottom: .8rem; padding: .35rem .8rem; border-radius: 999px; background: var(--ink); color: var(--amber); font: 700 .95rem/1.2 var(--sans); }
.tier__head { display: flex; align-items: center; gap: 1rem; }
.tier__cover { flex: none; width: 58px; border-radius: 2px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45); }
.tier__name { font: 700 1.3rem/1.25 var(--serif); }
.tier__tag { margin-top: .3rem; color: var(--ink-2); font-size: 1.05rem; }
.tier__items { margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.tier__items li { display: flex; align-items: flex-start; gap: .7rem; margin-top: .7rem; font-size: 1.05rem; line-height: 1.45; }
.tier__items li:first-child { margin-top: 0; }
.tier__items .ico { width: 24px; height: 24px; }
.tier__pay { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.tier__price { font: 700 3rem/1 var(--serif); letter-spacing: -.02em; }
.tier__once { font-size: 1rem; color: var(--muted); }
.tier .ubox { margin: 1rem 0 0; }
.tier .buyform { margin-top: 1.1rem; }
.tier__secure { margin-top: .8rem; text-align: center; font-size: .95rem; line-height: 1.45; color: var(--muted); text-wrap: balance; }
.tier__secure svg { display: inline-block; width: 17px; height: 17px; margin-right: .35rem; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; }
.tier--complete .btn { background: var(--surface); border: 2px solid var(--ink); box-shadow: none; }
.tier--complete .btn:hover { background: var(--ink); color: #fff; }
.offer__anchor { max-width: 560px; margin: 1.25rem auto 0; text-align: center; font-weight: 600; line-height: 1.5; }
.assure { display: grid; gap: 1.1rem; max-width: 560px; margin: 2rem auto 0; }
.assure li { display: flex; gap: .9rem; align-items: flex-start; }
.assure__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--amber); }
.assure__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.assure b { display: block; margin-top: .1rem; font-size: 1.1rem; }
.assure p { margin-top: .15rem; font-size: 1.02rem; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 900px) {
  .tiers:not(.tiers--single) { grid-template-columns: 1fr 1fr; align-items: stretch; max-width: 980px; margin-inline: auto; }
  .tier { padding: 1.9rem 2rem 1.7rem; }
}

/* ---------- reviews ---------- */
.reviews__list { display: grid; gap: 1rem; }
.review { padding: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.review__stars { color: #E8A100; font-size: 1.35rem; letter-spacing: .1em; }
.review blockquote { margin-top: .5rem; line-height: 1.55; }
.review__who { margin-top: .75rem; font-size: 1rem; color: var(--ink-2); }
.review__ok { display: inline-flex; align-items: center; gap: .3rem; margin-left: .3rem; color: var(--green); font-weight: 600; }
.review__ok .ico { width: 18px; height: 18px; }
.review__ok .ico circle { fill: var(--green); }
.review__ok .ico path { stroke: #fff; }
.review__note { margin-top: 1rem; font-size: .95rem; color: var(--muted); }
@media (min-width: 960px) { .reviews__list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- faq ---------- */
.faq__list { border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: 1rem 0; list-style: none; cursor: pointer; font: 700 1.15rem/1.35 var(--sans); }
summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--amber-soft); border: 2px solid var(--amber); transition: transform .25s var(--ease); }
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .plus { transform: rotate(45deg); background: var(--amber); }
details p { padding: 0 0 1.35rem; color: var(--ink-2); line-height: 1.6; }

/* ---------- close ---------- */
.close { position: relative; overflow: hidden; background: var(--amber-soft); padding-bottom: clamp(7rem, 20vw, 11rem); }
.close__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(100px, 16vw, 180px); object-fit: cover; object-position: center bottom; pointer-events: none; }
.close__in { position: relative; display: grid; gap: 1.5rem; }
.close__in > .book { display: none; }
.close .buy { margin-top: 1.5rem; }
.ps { margin-top: 1.75rem; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid #F0D9A8; border-radius: 14px; line-height: 1.6; }
.ps strong { color: var(--accent); }
@media (min-width: 960px) {
  .close__in { grid-template-columns: 260px minmax(0, 1fr); gap: 4rem; align-items: center; max-width: 1000px; }
  .close__in > .book { display: block; justify-self: center; }
  .close .buy { max-width: 32rem; }
}

/* ---------- footer ---------- */
.foot { padding: 1.5rem 0 7rem; background: #EFE9DE; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.foot__links a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.foot__sources { flex-basis: 100%; }
.foot__sources a { color: var(--ink-2); }
@media (min-width: 960px) { .foot { padding-bottom: 1.75rem; } }

/* ---------- sticky buy bar ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: .8rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(40, 30, 10, .25);
  visibility: hidden; transform: translateY(110%); transition: transform .35s var(--ease), visibility 0s linear .35s;
}
.sticky.on { visibility: visible; transform: none; transition: transform .35s var(--ease); }
.sticky img { width: 34px; border-radius: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.sticky__text { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.sticky__text strong { font: 800 1.35rem/1.1 var(--sans); }
.sticky__text span { font-size: .9rem; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky__text .sticky__urgent { color: var(--accent); font-weight: 600; }
.sticky.is-urgent [data-sticky-label] { display: none; }
@media (min-width: 960px) {
  .sticky { left: auto; right: 1.5rem; bottom: 1.5rem; padding: .6rem .6rem .6rem 1rem; border: 1px solid var(--line); border-radius: 18px; transform: translateY(160%); }
  .sticky__text { flex: none; }
}

/* ---------- toast + lightbox ---------- */
.toast {
  position: fixed; left: 50%; bottom: 6rem; z-index: 60; width: max-content; max-width: calc(100vw - 2 * var(--gutter));
  padding: 1rem 1.25rem; border-radius: 14px; background: var(--ink); color: #fff; font-size: 1.05rem; line-height: 1.4;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transform: translate(-50%, 20px);
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.lightbox { width: min(94vw, 680px); max-width: none; max-height: 96vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 18, 14, .85); }
.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: 6px; background: #fff; }
.lightbox__close { display: block; margin: 0 0 .75rem auto; min-height: 48px; padding: .5rem 1.2rem; border: 0; border-radius: 999px; background: var(--amber); color: var(--ink); font: 700 1.1rem/1 var(--sans); cursor: pointer; }

/* ---------- checkout buttons (forms posting to /api/checkout) ---------- */
button.btn { border: 0; cursor: pointer; }
.btn__busy { display: none; }
.is-busy .btn { cursor: progress; opacity: .85; }
.is-busy .btn__label, .is-busy .btn__price, .is-busy .btn__arrow { display: none; }
.is-busy .btn__busy { display: inline-flex; align-items: center; gap: .6rem; }
.is-busy .btn__busy::before { content: ''; width: 20px; height: 20px; border: 3px solid rgba(27, 26, 23, .25); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tiers--single { max-width: 560px; margin-inline: auto; }

/* ---------- cookie consent (only when a Meta Pixel ID is configured) ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: .8rem var(--gutter) calc(.8rem + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 3px solid var(--amber); box-shadow: 0 -12px 32px -12px rgba(40, 30, 10, .3);
  font-size: 1rem; line-height: 1.4;
}
.consent a { font-weight: 700; }
.consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .6rem; }
.consent__btn { min-height: 48px; padding: .4rem .8rem; border: 2px solid var(--ink); border-radius: 12px; background: var(--surface); font: 700 1.05rem/1.2 var(--sans); cursor: pointer; }
.consent__btn:hover { background: var(--ink); color: #fff; }
.consent-open .sticky { display: none; }
@media (min-width: 960px) {
  .consent { left: auto; right: 1.5rem; bottom: 1.5rem; width: 440px; padding: 1.3rem; border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: 18px; }
}
.foot__btn { padding: 0; border: 0; background: none; font: 400 .95rem/1.55 var(--sans); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- secondary pages: thank-you / download, legal ---------- */
.page main { min-height: 60vh; }
.page .foot { padding-bottom: 3rem; }
.order__wrap, .legal__wrap { max-width: 760px; }
.order__state--center { text-align: center; }
.order__state--center .lede { margin-inline: auto; }
.spinner { display: inline-block; width: 44px; height: 44px; margin-bottom: 1rem; border: 4px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin .9s linear infinite; }
.order__head { display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; align-items: center; }
.order__cover { width: 64px; border-radius: 3px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45); }
.order__flag { margin-top: 1.25rem; padding: .9rem 1.1rem; border-radius: 12px; background: var(--amber-soft); border: 1px solid #F3D7A0; font-weight: 600; }
.order__flag--soft { font-weight: 400; font-size: 1.05rem; }
.order__files { display: grid; gap: 1rem; margin-top: 1.5rem; }
.file {
  display: grid; grid-template-columns: 58px 1fr; gap: .3rem 1rem; align-items: center; padding: 1.1rem 1.2rem;
  border: 2px solid var(--ink); border-radius: 16px; background: var(--surface); text-decoration: none;
  transition: background .2s, transform .15s var(--ease);
}
.file:hover { background: var(--amber-soft); }
.file:active { transform: translateY(2px); }
.file--pdf { border: 0; background: var(--amber); box-shadow: 0 3px 0 #D98A00, 0 12px 26px -10px rgba(230, 140, 0, .6); }
.file--pdf:hover { background: var(--amber-hover); }
.file__badge { grid-row: span 2; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 12px; background: var(--ink); color: #fff; font: 800 .95rem/1 var(--sans); letter-spacing: .04em; }
.file__text { display: flex; flex-direction: column; }
.file__text b { font-size: 1.25rem; line-height: 1.25; }
.file__text span { margin-top: .2rem; font-size: 1rem; font-weight: 400; line-height: 1.4; color: var(--ink-2); }
.file__size { grid-column: 2; font-size: .9rem; color: var(--muted); }
.order__h { margin-top: 2.5rem; margin-bottom: .75rem; font: 700 1.5rem/1.25 var(--serif); }
.order__help { margin-top: 1.75rem; }
.order__help a, .order__state a:not(.btn) { font-weight: 700; }
.order__back { margin-top: 1.5rem; }
.legal__nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.legal__nav a { padding: .45rem .9rem; border: 2px solid var(--line); border-radius: 999px; text-decoration: none; font: 600 1rem/1.2 var(--sans); }
.legal__nav a[aria-current] { border-color: var(--ink); background: var(--ink); color: #fff; }
.legal__sec { margin-top: 2rem; }
.legal__sec h2 { margin-bottom: .6rem; font: 700 1.3rem/1.3 var(--sans); }
.legal__sec p + p, .legal__sec ul + p, .legal__sec p + ul { margin-top: .8rem; }
.legal__sec ul { padding-left: 1.3rem; list-style: disc; }
.legal__sec li + li { margin-top: .4rem; }
.legal__sec a { font-weight: 600; }
.legal__glance { padding: 0 !important; list-style: none !important; }
.legal__glance li { padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.legal__glance li + li { margin-top: .7rem; }
.legal__mail { font: 700 1.4rem/1.3 var(--sans); word-break: break-all; }
.legal__dl div { display: grid; gap: .1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.legal__dl dt { font-size: 1rem; color: var(--muted); }
.legal__dl dd { font-weight: 600; }
@media (min-width: 700px) { .legal__dl div { grid-template-columns: 15rem 1fr; gap: 1rem; } }
.legal__updated { margin-top: 2.5rem; font-size: 1rem; color: var(--muted); }

/* ---------- gentle scroll reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
