/* Agenda Piena — the sales funnel on agendapiena.net.
   Brand kept from the sales pages: cool paper, ink, one cobalt accent ("blue pen on a diary"); Bricolage Grotesque for
   display, Geist for text (self-hosted, SIL OFL). Surfaces are told apart by a tone step, never by a shadow or a line;
   buttons are full pills, panels 20px, inputs 14px. Light/dark follow the system. No inline style anywhere (CSP). */

@font-face { font-family: "AP Display"; src: url("/a/ap-bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "AP Text"; src: url("/a/ap-geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f2f3ef;
  --paper-2: #e7e9e2;
  --surface: #fbfbf9;
  --ink: #0e0f11;
  --ink-2: #3f444d;
  --ink-3: #626772;
  --field: #c9cdc3;
  --accent: #0021fa;
  --accent-strong: #0019c4;
  --accent-ink: #0021fa;
  --accent-soft: #e2e6ff;
  --on-accent: #ffffff;
  --danger: #b42318;
  --danger-soft: #fbe9e7;
  --ok: #146c43;
  --display: "AP Display", "Avenir Next", system-ui, sans-serif;
  --text: "AP Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-panel: 20px;
  --r-input: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}
/* a page drawn light for everyone (pages.js scheme: light): its form controls stay light too */
:root[data-scheme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme="light"]) {
    --paper: #101216;
    --paper-2: #181b21;
    --surface: #1d2028;
    --ink: #eeefea;
    --ink-2: #c3c7cf;
    --ink-3: #9ba0aa;
    --field: #3a3f4a;
    --accent: #2a48ff;
    --accent-strong: #4a63ff;
    --accent-ink: #9aa8ff;
    --accent-soft: #1d2442;
    --danger: #ff8a7a;
    --danger-soft: #3a1a17;
    --ok: #6fd69b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.ap-body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, iframe, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ap-skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; text-decoration: none; }
.ap-skip:focus { top: 12px; }
.ap-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ap-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.ap-icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- type: three sizes do the work ---------- */
.ap-h1, .ap-h2, .ap-h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
.ap-h1 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5rem); line-height: .98; letter-spacing: -0.035em; }
.ap-h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); line-height: 1.02; letter-spacing: -0.03em; }
.ap-h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; }
.ap-lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--ink); max-width: 44ch; margin: 22px 0 0; text-wrap: pretty; }
.ap-copy { color: var(--ink); max-width: 60ch; margin: 18px 0 0; text-wrap: pretty; }
.ap-help { font-size: .9rem; color: var(--ink-3); margin: 0; }
.ap-error { font-size: .95rem; color: var(--danger); margin: 0; }
.ap-error:focus { outline: none; }
/* the anti-bot check (Turnstile, interaction-only): takes room only when Cloudflare asks for a click */
.ap-bot:empty { display: none; }
.ap-bot { max-width: 100%; overflow: hidden; }
.ap-section { padding-block: clamp(80px, 11vw, 168px); }
.ap-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.ap-panel { background: var(--surface); border-radius: var(--r-panel); padding: clamp(22px, 3.2vw, 40px); }

/* ---------- top bar ---------- */
.ap-top { padding-block: 20px; }
.ap-top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ap-brand { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; color: var(--ink); }
.ap-brand__logo { height: 30px; width: auto; }
.ap-payoff { font: 600 .95rem/1 var(--display); color: var(--ink-2); padding-inline-start: 18px; }
@media (max-width: 699px) { .ap-payoff { display: none; } .ap-brand__logo { height: 24px; } }

/* ---------- buttons ---------- */
.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 1.05rem/1 var(--text); text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), background-color .2s; }
.ap-btn:hover { background: var(--accent-strong); transform: translateY(-2px); }
.ap-btn:active { transform: translateY(1px) scale(.99); }
.ap-btn .ap-icon { transition: transform .35s var(--ease); }
.ap-btn:hover .ap-icon { transform: translateX(4px); }
.ap-btn--block { width: 100%; }
.ap-btn--quiet { background: var(--paper-2); color: var(--ink); }
.ap-btn--quiet:hover { background: var(--field); }
.ap-btn--small { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.ap-btn:disabled, .ap-btn[aria-busy="true"] { opacity: .55; cursor: default; transform: none; }
.ap-link { color: var(--accent-ink); font-weight: 600; }
.ap-linkbtn { background: none; border: 0; padding: 0; color: var(--accent-ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- forms (real fields keep their outline) ---------- */
.ap-form { display: grid; gap: 18px; }
.ap-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .ap-row { grid-template-columns: 1fr 1fr; } .ap-row--3 { grid-template-columns: 1fr 2fr 1fr; } }
.ap-field { display: grid; gap: 8px; align-content: start; }
.ap-label { font-size: .92rem; font-weight: 600; }
.ap-input, .ap-select { width: 100%; min-height: 54px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: var(--r-input); background: var(--surface); color: var(--ink); font: 400 1rem/1.2 var(--text); transition: border-color .2s; }
.ap-select { appearance: none; padding-inline-end: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23626772'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.ap-input:focus, .ap-select:focus { outline: none; border-color: var(--accent-ink); }
.ap-input:focus-visible, .ap-select:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 0; }
.ap-input[aria-invalid="true"], .ap-select[aria-invalid="true"] { border-color: var(--danger); }
.ap-check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.ap-check input { appearance: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--ink-3); border-radius: 7px; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.ap-check input::after { content: ""; width: 11px; height: 6px; border: 2.5px solid var(--on-accent); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease); }
.ap-check input:checked { background: var(--accent); border-color: var(--accent); }
.ap-check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.ap-check input[aria-invalid="true"] { border-color: var(--danger); }
.ap-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ap-fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }
.ap-fieldset legend { padding: 0; margin-bottom: 4px; }
/* the two plans of /pagamento (Agenda Piena, Max): native radios, the chosen plan is the accent's soft field + its ring */
.ap-plans__grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .ap-plans__grid { grid-template-columns: 1fr 1fr; } }
/* three plans (Starter, 0102): one column on a phone; from 640 px Starter and Agenda Piena side by side, Max across
   under them (the form column is too narrow for three readable cards next to the summary) */
.ap-plan[hidden] { display: none; }
@media (min-width: 640px) { .ap-plans__grid:has(> [data-ap-plan="starter"]:not([hidden])) > .ap-plan:last-child { grid-column: 1 / -1; } }
.ap-plan { position: relative; display: grid; gap: 10px; align-content: start; padding: 20px 22px 22px 58px; border-radius: var(--r-panel); background: var(--surface); cursor: pointer; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.ap-plan:hover { background: var(--paper-2); }
.ap-plan:active { transform: scale(.99); }
.ap-plan:has(.ap-plan__radio:checked) { background: var(--accent-soft); outline: 2px solid var(--accent); outline-offset: -2px; }
.ap-plan:has(.ap-plan__radio:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.ap-plan__radio { position: absolute; inset-inline-start: 22px; top: 24px; appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--ink-3); border-radius: 50%; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.ap-plan__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--on-accent); transform: scale(0); transition: transform .2s var(--ease); }
.ap-plan__radio:checked { background: var(--accent); border-color: var(--accent); }
.ap-plan__radio:checked::after { transform: scale(1); }
.ap-plan__radio:focus-visible { outline: none; }
.ap-plan__name { font: 700 1.3rem/1.1 var(--display); letter-spacing: -0.02em; }
.ap-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ap-plan__now { font: 800 2.2rem/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.ap-plan__was { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ap-plan__was:empty, .ap-plan__save:empty { display: none; }
.ap-plan__desc { display: grid; gap: 6px; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.ap-plan__save { color: var(--accent-ink); font-weight: 700; }
.ap-plans[aria-busy="true"] .ap-plan__now { opacity: .45; }
.ap-lines .ap-lines__gift dd { color: var(--accent-ink); font-weight: 600; }
.ap-saving { margin: 0; color: var(--accent-ink); font-weight: 700; }
.ap-vat--ok { color: var(--ok); }
.ap-vat--bad { color: var(--danger); }

/* ---------- status lines ---------- */
.ap-status { border-radius: var(--r-input); padding: 16px 20px; background: var(--accent-soft); color: var(--ink); margin: 24px 0 0; max-width: 70ch; }
.ap-status--error { background: var(--danger-soft); }
.ap-status--wide { max-width: none; }
.ap-status p { margin: 0; }
.ap-status p + p { margin-top: 8px; }

/* ---------- opt-in hero ---------- */
.ap-hero { padding-block: clamp(24px, 4vw, 56px) clamp(64px, 8vw, 120px); }
.ap-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .ap-hero__grid { grid-template-columns: 1.08fr .92fr; gap: 64px; } }
.ap-optin { margin-top: 32px; max-width: 560px; }
.ap-sent h2 { margin-bottom: 10px; }
.ap-sent p { margin: 0 0 12px; }
.ap-hero__media { margin: 0; position: relative; }
.ap-hero__media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-panel); }
.ap-note { position: absolute; inset-inline-start: 16px; inset-inline-end: 16px; bottom: 16px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--r-panel); background: var(--surface); font-size: .95rem; line-height: 1.4; }
.ap-note .ap-icon { color: var(--accent-ink); width: 26px; height: 26px; }
.ap-note strong { display: block; }
@media (min-width: 960px) { .ap-note { inset-inline-start: -36px; inset-inline-end: auto; max-width: 300px; bottom: 40px; } }

/* ---------- learn ---------- */
.ap-learn { background: var(--surface); }
.ap-learn__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .ap-learn__grid { grid-template-columns: 1fr 1.2fr; gap: 80px; } }
.ap-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; counter-reset: p; }
.ap-points li { display: grid; gap: 8px; }
.ap-points p { margin: 0; }

/* ---------- the week (live capacity) ---------- */
.ap-week__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .ap-week__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.ap-week__live { background: var(--surface); border-radius: var(--r-panel); padding: clamp(22px, 3vw, 36px); }
.ap-week__slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ap-week__slots li { aspect-ratio: 1; border-radius: 14px; background: var(--paper-2); display: grid; place-items: center; font: 700 1.1rem/1 var(--display); color: var(--ink-3); }
.ap-week__slots li.is-taken { background: var(--ink); color: var(--paper); }
.ap-week__slots li.is-free { background: var(--accent); color: var(--on-accent); }
.ap-week__text { margin: 20px 0 0; font: 600 clamp(1.3rem, 1rem + 1vw, 1.8rem)/1.15 var(--display); letter-spacing: -0.02em; }

/* ---------- close ---------- */
.ap-close { background: var(--ink); color: var(--paper); }
.ap-close .ap-copy { color: var(--paper); }
.ap-close__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .ap-close__grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.ap-close__img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-panel); }
.ap-close .ap-btn { margin-top: 28px; }

/* ---------- simple pages ---------- */
.ap-simple__in { max-width: 820px; min-height: 40vh; }
.ap-simple form { margin-top: 28px; }

/* ---------- video page ---------- */
.ap-vsl { padding-block: clamp(20px, 3vw, 40px) clamp(48px, 6vw, 88px); }
.ap-vsl__head { max-width: 900px; }
.ap-stage { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 1040px) { .ap-stage { grid-template-columns: 1fr 300px; align-items: end; gap: 32px; } }
.ap-player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-panel); overflow: hidden; background: #0c0d10; }
.ap-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ap-player__empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #d9dce3; background: #161a33; }
.ap-player__progress { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; height: 4px; pointer-events: none; }
.ap-player__progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .4s linear; }
.ap-player:has(.ap-vp) .ap-player__progress { display: none; }
/* the VSL player of our own HLS (vsl.js): sales page and /video */
.ap-vp { position: absolute; inset: 0; background: #0c0d10; color: #fff; }
.ap-vp__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0c0d10; }
.ap-vp.is-js .ap-vp__video { cursor: pointer; }
.ap-vp__start { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 20px; border: 0; background: radial-gradient(ellipse at center, rgba(8, 10, 16, .55), rgba(8, 10, 16, .2)); color: #fff; font: inherit; text-align: start; cursor: pointer; } /* taste-skill-ignore: inside a [data-ui] fragment, an overlay, or visually-hidden */
.ap-vp__start[hidden] { display: none; }
.ap-vp__disc { flex: none; display: grid; place-items: center; width: clamp(64px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 40px rgba(0, 33, 250, .45); transition: transform 240ms var(--ease); }
.ap-vp__disc > span { display: grid; place-items: center; width: 42%; height: 42%; }
.ap-vp__disc svg { width: 100%; height: 100%; }
.ap-vp__i-sound, .ap-vp.is-teaser .ap-vp__i-play { display: none !important; }
.ap-vp.is-teaser .ap-vp__i-sound { display: grid !important; }
@media (prefers-reduced-motion: no-preference) { .ap-vp.is-teaser .ap-vp__disc { animation: ap-vp-pulse 1.8s ease-in-out infinite; } @keyframes ap-vp-pulse { 50% { transform: scale(1.08); } } }
.ap-vp__start:hover .ap-vp__disc { transform: scale(1.06); }
.ap-vp__label { display: grid; gap: 4px; padding: 12px 18px; border-radius: 16px; background: rgba(11, 13, 19, .78); }
.ap-vp__label strong { font: 700 clamp(1.05rem, 2vw, 1.4rem)/1.15 var(--display); letter-spacing: -0.01em; }
.ap-vp__label span { font-size: .95rem; color: #d9dce3; }
.ap-vp.is-teaser .ap-vp__start { background: linear-gradient(to top, rgba(8, 10, 16, .6), rgba(8, 10, 16, 0) 60%); align-items: flex-end; justify-content: flex-start; } /* taste-skill-ignore: inside a [data-ui] fragment, an overlay, or visually-hidden */
.ap-vp.is-teaser .ap-vp__disc { width: clamp(56px, 6vw, 76px); }
.ap-vp__tools { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; display: flex; gap: 8px; opacity: 0; transition: opacity 200ms ease; }
.ap-vp:hover .ap-vp__tools, .ap-vp.is-paused .ap-vp__tools, .ap-vp__tools:focus-within { opacity: 1; }
@media (hover: none) { .ap-vp__tools { opacity: 1; } }
.ap-vp__tools[hidden] { display: none; }
.ap-vp__tool { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(11, 13, 19, .72); color: #fff; cursor: pointer; }
.ap-vp__tool svg { width: 22px; height: 22px; }
.ap-vp__tool span[hidden] { display: none; }
.ap-vp__restart { position: absolute; inset-inline-start: 12px; top: 12px; z-index: 3; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(11, 13, 19, .78); color: #fff; font: 600 .92rem var(--text); cursor: pointer; }
.ap-vp__restart[hidden] { display: none; }
.ap-vp__bar { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; z-index: 3; height: 5px; background: rgba(255, 255, 255, .18); pointer-events: none; }
.ap-vp__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .5s linear; }
.ap-vp:not(.is-js) .ap-vp__bar { display: none; }
.ap-vp:fullscreen { background: #000; }
@media (prefers-reduced-motion: reduce) { .ap-vp__bar span, .ap-vp__disc { transition: none; } }
.ap-gate { display: grid; gap: 14px; align-content: end; }
.ap-gate__text { margin: 0; display: flex; gap: 10px; align-items: flex-start; font: 600 1.35rem/1.2 var(--display); letter-spacing: -0.02em; }
.ap-gate__text .ap-icon { margin-top: 3px; color: var(--accent-ink); }
.ap-gate__cap { margin: 0; color: var(--ink-2); }

.ap-offer { padding-block: 0 clamp(48px, 6vw, 88px); scroll-margin-top: 16px; }
.ap-ticket { display: grid; background: var(--surface); border-radius: var(--r-panel); overflow: hidden; }
@media (min-width: 960px) { .ap-ticket { grid-template-columns: 1.1fr .9fr; } }
.ap-ticket__main { padding: clamp(24px, 4vw, 52px); }
.ap-ticket__side { padding: clamp(24px, 4vw, 52px); background: var(--accent-soft); display: grid; gap: 18px; align-content: start; }
.ap-include { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.ap-include li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.ap-include .ap-icon { color: var(--accent-ink); margin-top: 3px; }
.ap-timer { display: grid; gap: 6px; }
.ap-timer__label { font-weight: 600; }
.ap-timer__digits { font: 800 clamp(3rem, 2.2rem + 3vw, 4.6rem)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ap-timer__bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, transparent); overflow: hidden; }
.ap-timer__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; }
.ap-timer.is-late .ap-timer__digits { color: var(--danger); }
.ap-timer--small .ap-timer__digits { font-size: 2.4rem; }
.ap-price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; }
.ap-price__now { font: 800 clamp(3rem, 2.2rem + 3vw, 4.4rem)/1 var(--display); letter-spacing: -0.04em; }
.ap-price__was { font-size: 1.2rem; color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 2px; }
.ap-price__note { margin: 0; font-size: .95rem; }
.ap-expired .ap-copy { max-width: 70ch; }
.ap-waitlist { margin-top: 8px; }
.ap-waitlist .ap-form { gap: 14px; }

.ap-what__grid, .ap-compare__grid, .ap-how__grid, .ap-addons__grid, .ap-faq__grid, .ap-book__grid, .ap-thanks__grid, .ap-legal__grid, .ap-pay__grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .ap-what__grid { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
  .ap-compare__grid { grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
  .ap-how__grid, .ap-addons__grid, .ap-faq__grid { grid-template-columns: .8fr 1.2fr; gap: 80px; }
  .ap-book__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .ap-thanks__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .ap-legal__grid { grid-template-columns: 300px 1fr; gap: 80px; }
}
.ap-what__photo { margin: 0; }
.ap-what__photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-panel); }
.ap-what__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
.ap-what__list p, .ap-compare__col ul, .ap-flow p { margin: 8px 0 0; }
.ap-compare { background: var(--surface); }
.ap-compare__cols { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 600px) { .ap-compare__cols { grid-template-columns: 1fr 1fr; } }
.ap-compare__col { background: var(--paper); border-radius: var(--r-panel); padding: 24px; }
.ap-compare__col--after { background: var(--ink); color: var(--paper); }
.ap-compare__col ul { padding-inline-start: 18px; display: grid; gap: 8px; }
.ap-compare__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-panel); }
.ap-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.ap-flow li { display: grid; gap: 6px; }
.ap-flow__time { color: var(--accent-ink); font-weight: 600; }
.ap-flow__verb { font: 700 clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem)/1.05 var(--display); letter-spacing: -0.03em; }
.ap-addons { background: var(--surface); }
.ap-pricelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ap-pricelist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 20px; border-radius: var(--r-input); background: var(--paper); }
.ap-pricelist__name { font: 700 1.15rem/1.2 var(--display); }
.ap-pricelist__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-pricelist__text { grid-column: 1 / -1; color: var(--ink-2); font-size: .95rem; }
.ap-addons__packs { margin-top: 22px; }
.ap-faq__list { display: grid; gap: 8px; }
.ap-faq details { background: var(--surface); border-radius: var(--r-input); }
.ap-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font: 600 1.1rem/1.3 var(--display); }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary .ap-icon { transition: transform .3s var(--ease); }
.ap-faq details[open] summary .ap-icon { transform: rotate(45deg); }
.ap-faq details p { margin: 0; padding: 0 22px 22px; max-width: 70ch; }
.ap-book { background: var(--accent); color: var(--on-accent); }
.ap-book .ap-panel { color: var(--ink); }
.ap-quote { margin: 0; }
.ap-quote p { margin: 0; font: 600 clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem)/1.22 var(--display); letter-spacing: -0.02em; max-width: 26ch; }
.ap-quote footer { margin-top: 20px; }
.ap-bar { position: fixed; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); }
.ap-bar__time { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- payment ---------- */
.ap-pay { padding-top: clamp(20px, 3vw, 40px); }
.ap-pay__head { max-width: 860px; margin-bottom: 40px; }
@media (min-width: 960px) { .ap-pay__grid { grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: start; } }
.ap-pay__form { gap: 36px; }
.ap-summary { background: var(--surface); border-radius: var(--r-panel); padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; }
.ap-code { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--field); }
.ap-code__row { display: flex; gap: 8px; }
.ap-code__row .ap-input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
.ap-code__row .ap-btn { flex: 0 0 auto; }
@media (min-width: 960px) { .ap-summary { position: sticky; top: 24px; order: 2; } }
@media (max-width: 959px) { .ap-summary { order: -1; } }
.ap-lines { margin: 0; display: grid; gap: 12px; }
.ap-lines div { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; }
.ap-lines dt { font-weight: 600; }
.ap-lines dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.ap-lines .ap-lines__sub { grid-column: 1 / -1; color: var(--ink-3); font-size: .9rem; text-align: start; }
.ap-lines .ap-lines__was { color: var(--ink-3); text-decoration: line-through; margin-inline-end: 8px; }
.ap-total { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 4px; padding: 16px 18px; border-radius: var(--r-input); background: var(--paper); font: 800 1.8rem/1.1 var(--display); letter-spacing: -0.03em; }
.ap-total span:first-child { font: 600 1rem/1.2 var(--text); letter-spacing: 0; }
.ap-stripe { min-height: 120px; }
.ap-banner { background: var(--danger-soft); border-radius: var(--r-panel); padding: 22px 24px; }
.ap-banner p { margin: 8px 0 0; }
.ap-terms { font-size: .95rem; }

/* ---------- thanks ---------- */
.ap-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.ap-steps li { background: var(--surface); border-radius: var(--r-panel); padding: 22px 24px 22px 76px; position: relative; counter-increment: s; }
.ap-steps li::before { content: counter(s); position: absolute; inset-inline-start: 22px; top: 20px; width: 36px; height: 36px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 1rem/1 var(--display); }
.ap-steps p { margin: 6px 0 0; }

/* ---------- legal ---------- */
.ap-legal { padding-top: clamp(20px, 3vw, 40px); }
.ap-legal__head .ap-h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); }
.ap-legal__nav { display: grid; gap: 8px; margin-top: 24px; }
@media (min-width: 900px) { .ap-legal__head { position: sticky; top: 24px; align-self: start; } }
.ap-legal__body { max-width: 74ch; }
.ap-legal__meta { margin: 0 0 32px; color: var(--ink-2); }
.ap-legal__langs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
svg.ap-flag { display: inline-block; flex: none; width: 21px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(128 128 128 / .3); vertical-align: -2px; }
.ap-legal__langs a { display: inline-flex; align-items: center; gap: 6px; }
.ap-legal__langs [aria-current="page"] { font-weight: 700; text-decoration: none; }
.ap-legal__art { margin-bottom: 36px; scroll-margin-top: 16px; }
.ap-legal__art h2 { margin-bottom: 12px; }
.ap-legal__art ol, .ap-legal__art ul { padding-inline-start: 22px; padding-inline-end: 0; display: grid; gap: 10px; margin: 0; }
.ap-legal__art p { margin: 0 0 12px; }
.ap-legal__body > p { margin: 0 0 16px; }
.ap-legal__art ol ol, .ap-legal__art ol ul, .ap-legal__art ul ul { margin-top: 8px; gap: 6px; }
.ap-legal .ap-h4 { font: 700 1.05rem/1.3 var(--display); margin: 20px 0 8px; }
.ap-legal code { font-size: .92em; overflow-wrap: anywhere; }
.ap-legal__scroll { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.ap-legal__table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.ap-legal__table th, .ap-legal__table td { text-align: start; vertical-align: top; padding-block: 10px; padding-inline: 0 12px; border-bottom: 1px solid var(--field); }
.ap-legal__table th { font-weight: 700; }

/* ---------- footer ---------- */
.ap-footer { background: var(--paper-2); padding-block: 56px 40px; font-size: .92rem; }
.ap-footer__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .ap-footer__grid { grid-template-columns: 1.4fr 1fr; } }
.ap-footer__name { margin: 0; font: 800 clamp(2.4rem, 1.6rem + 3vw, 4rem)/1 var(--display); letter-spacing: -0.04em; }
.ap-footer__payoff { margin: 8px 0 20px; font: 600 1.1rem/1.2 var(--display); }
.ap-footer__legal { margin: 0; color: var(--ink-2); line-height: 1.6; }
.ap-footer__links { display: grid; gap: 10px; align-content: start; }
.ap-footer__links span { color: var(--ink-3); margin-top: 12px; }

/* ---------- motion: entrance of section parts (only when the script is running) ---------- */
.js .ap-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .ap-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .ap-reveal { opacity: 1; transform: none; transition: none; }
  .ap-btn, .ap-btn .ap-icon, .ap-player__progress span, .ap-faq summary .ap-icon, .ap-plan, .ap-plan__radio::after { transition: none; }
  .ap-plan:active { transform: none; }
}

/* ── statistics consent (track.js): fixed, so it never shifts the layout (CLS 0); both choices look the same ── */
.ap-consent { position: fixed; inset-inline-start: 12px; inset-inline-end: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: 760px; margin: 0 auto; padding: 16px 18px; border-radius: var(--r-panel); background: var(--surface); color: var(--ink); box-shadow: 0 10px 40px rgb(0 0 0 / .18), 0 0 0 1px var(--paper-2); }
.ap-consent__text { flex: 1 1 320px; margin: 0; font: 400 .92rem/1.45 var(--text); color: var(--ink-2); }
.ap-consent__text strong { color: var(--ink); }
.ap-consent__text a { color: var(--accent-ink); }
.ap-consent__actions { display: flex; gap: 10px; margin: 0; }
.ap-consent__actions .ap-btn { min-width: 112px; }
.ap-linkbtn[data-ap-consent-open] { font: inherit; }

/* ── the heatmap view of the ops tool (?ap_hm=1, hm-view.js): everything visible, the paint on top, nothing clickable ── */
.ap-hm .ap-reveal, .js.ap-hm .ap-reveal { opacity: 1; transform: none; transition: none; }
.ap-hm-canvas { position: absolute; top: 0; left: 0; z-index: 60; pointer-events: none; }
.ap-hm body { cursor: default; }
.ap-footer__links .ap-linkbtn { justify-self: start; color: inherit; font-weight: inherit; text-decoration: none; text-align: start; }
.ap-footer__links .ap-linkbtn:hover { text-decoration: underline; }
@media (max-width: 599px) {
  .ap-consent { padding: 12px 14px; gap: 10px; }
  .ap-consent__actions { flex: 1 1 100%; }
  .ap-consent__actions .ap-btn { flex: 1; min-width: 0; }
}

/* ── /pagina-gratis: the ads' landing page. The form first, the three example pages on phones beside it ── */
.fp-hero { padding-block: clamp(24px, 5vw, 72px) clamp(64px, 8vw, 120px); }
.fp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: start; }
.fp-hero .ap-h1 { max-width: 14ch; }
.fp-panel { margin-top: 32px; max-width: 560px; }
.fp-panel__title { margin: 0; font: 700 1.2rem/1.2 var(--display); letter-spacing: -0.015em; }
.fp-panel .ap-help { margin-top: -2px; }
.fp-sent__mark { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.fp-sent__mark .ap-icon { width: 26px; height: 26px; }
.fp-phones { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.fp-phone { margin: 0; }
.fp-phone__screen { padding: 7px; border-radius: 30px; background: #0e0f11; }
.fp-phone__screen img { width: 100%; height: auto; border-radius: 24px; }
.fp-phone figcaption { margin-top: 12px; font: 600 clamp(.76rem, .7rem + .3vw, .9rem)/1.3 var(--text); text-align: center; }
.fp-phone figcaption span { display: block; font-weight: 400; color: var(--ink-3); }
.fp-phone--2 { margin-top: 28px; }
@media (min-width: 960px) {
  .fp-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); }
  .fp-phones { position: sticky; top: 32px; padding-top: 12px; }
  .fp-phone--1 { transform: translateY(48px) rotate(-3deg); }
  .fp-phone--2 { margin-top: 0; z-index: 1; transform: scale(1.06); }
  .fp-phone--3 { transform: translateY(48px) rotate(3deg); }
}

.fp-fixes { background: var(--surface); }
.fp-fixes__grid { display: grid; gap: 40px; }
.fp-fixes__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fp-fixes__list li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 18px 0; }
.fp-fixes__list .ap-icon { width: 44px; height: 44px; padding: 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.fp-fixes__list p { margin: 6px 0 0; color: var(--ink); }
@media (min-width: 960px) { .fp-fixes__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 88px; } }

.fp-how__list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 36px; counter-reset: none; }
.fp-how__list li { display: grid; gap: 10px; align-content: start; }
.fp-how__n { font: 750 clamp(3.2rem, 2.4rem + 3vw, 5.4rem)/.9 var(--display); letter-spacing: -0.05em; color: var(--accent-ink); }
.fp-how__list p { margin: 0; color: var(--ink); }
.fp-how__models { margin: 48px 0 0; max-width: 62ch; color: var(--ink-2); }
@media (min-width: 720px) { .fp-how__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fp-how__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; } }
