/* ==========================================================================
   OLI BENE — the page that sells the Slovak, €19 once.
   Rides on css/learn-slovak-v3.css: same tokens, same type, same axis.
   Only the pieces that page does not already own live here — the ledger of
   what one payment opens, the price card and the questions.
   ========================================================================== */

/* learn-slovak-v3.css hides every .rise at opacity 0 and waits for JS to add
   .is-in. Here the price IS the page, so if js/slovak.js never runs the whole
   offer would be an empty screen. The entrance only arms itself once that
   script has marked the document. */
html:not(.slv-animating) .rise { opacity: 1; transform: none; }

/* the line that appears on the way back from a checkout */
.note {
  margin: 0;
  padding: 16px var(--margin);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--t-small);
  text-align: center;
}
.note[data-tone="bad"] { background: var(--surface-2); color: var(--ink); }

/* ------------------------------------- what one payment opens, as a ledger */

.ledger { display: grid; gap: 2px; }

.ledger__row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 8px clamp(14px, 1.6vw, 26px);
  align-items: baseline;
  background: var(--surface);
  padding: clamp(18px, 2vw, 26px) clamp(16px, 1.8vw, 26px);
}

.ledger__n {
  font-family: 'Poiret One', system-ui, sans-serif;
  font-size: var(--t-lead);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.ledger__say h3 { font-size: var(--t-body); color: var(--ink); }
.ledger__say p { margin: 6px 0 0; font-size: var(--t-small); color: var(--muted); }

.ledger__tag { font-size: var(--t-small); color: var(--muted-dark); white-space: nowrap; }

/* ------------------------------------------- the three shots, full width */

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(24px, 2.6vw, 40px);
  margin-top: clamp(40px, 4vw, 68px);
}

.shelf__item h3 { font-size: var(--t-lead); color: var(--ink); margin: 18px 0 8px; }
.shelf__item p { margin: 0; font-size: var(--t-small); color: var(--muted); }

/* A window onto the real page: fixed aspect so the shots never stretch,
   anchored to the top where the content actually is. */
.shelf__shot {
  display: block;
  aspect-ratio: 110 / 62;
  overflow: hidden;
  border: 1px solid var(--surface-2);
  border-radius: 10px;
  background: var(--surface);
}
.shelf__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* -------------------------------------------- what is open before paying */

.open { display: grid; gap: 2px; margin-top: clamp(8px, 1vw, 16px); }

.open a {
  display: grid;
  gap: 4px;
  background: var(--surface);
  padding: clamp(16px, 1.8vw, 22px) clamp(16px, 1.8vw, 26px);
  text-decoration: none;
  transition: background-color .15s;
}
.open a:hover { background: var(--surface-2); }
.open b { font-weight: 400; color: var(--ink); font-size: var(--t-body); }
.open span { font-size: var(--t-small); color: var(--muted); }
.open a:hover span { color: var(--accent); }

/* ---------------------------------------------------------- the price */

.buy { background: var(--surface); padding-block: clamp(80px, 9vw, 140px); }
.buy h2 { font-size: var(--t-head); margin-bottom: clamp(24px, 3vw, 40px); }

.buy__card {
  max-width: 46rem;
  background: var(--bg);
  padding: clamp(28px, 3.2vw, 48px);
}

.buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0; }
.buy__sum {
  font-family: 'Poiret One', system-ui, sans-serif;
  font-size: var(--t-giant);
  line-height: 1;
  color: var(--accent);
}
.buy__once { font-size: var(--t-small); color: var(--muted); }

.buy__list { margin: clamp(26px, 3vw, 40px) 0 0; display: grid; gap: 12px; }
.buy__list li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 12px;
  font-size: var(--t-small);
  color: var(--muted);
  line-height: 1.6;
}
.buy__list li::before { content: "—"; color: var(--accent); }

.buy__go { margin-top: clamp(26px, 3vw, 40px); }

.buy__fine { margin: 22px 0 0; font-size: var(--t-small); color: var(--muted); max-width: 42ch; }
.buy__have { margin: 10px 0 0; font-size: var(--t-small); color: var(--muted-dark); max-width: 42ch; }

/* The state for someone who already owns it: the button would be a trap, so
   js/slovak.js swaps it out rather than letting them pay twice. */
.buy__card[data-owned="true"] .buy__go { background: var(--surface-2); color: var(--ink); }
.buy__card[data-owned="true"] .buy__go:hover { background: var(--accent); color: var(--accent-ink); }

/* ------------------------------------------------------- the questions */

.faq { display: grid; gap: 2px; margin-top: clamp(8px, 1vw, 16px); }

.faq__item { background: var(--surface); }
.faq__item[open] { background: var(--surface-2); }

.faq__item summary {
  padding: clamp(16px, 1.8vw, 22px) clamp(16px, 1.8vw, 26px);
  cursor: pointer;
  font-size: var(--t-body);
  color: var(--ink);
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  gap: 16px;
  align-items: baseline;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); text-align: right; }
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:hover { color: var(--accent); }

.faq__item p {
  margin: 0;
  padding: 0 clamp(16px, 1.8vw, 26px) clamp(20px, 2.2vw, 26px);
  font-size: var(--t-small);
  color: var(--muted);
  max-width: 62ch;
}

.faq__after { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: clamp(32px, 3.4vw, 52px); }
.faq__quiet { font-size: var(--t-small); color: var(--muted); }
.faq__quiet:hover { color: var(--accent); }

/* -------------------------------------------------------------- narrower */

@media (max-width: 900px) {
  .ledger__row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .ledger__tag { grid-column: 2; }
  .buy__card { padding: clamp(22px, 5vw, 32px); }
}

/* ------------------------------------- what an owner sees instead -------- */
/* Someone who has already paid was still being sold to: the price, the
   "what one payment opens" ledger, the free-tier pitch. js/slovencina.js
   marks the document once access is confirmed, and the pitch steps aside for
   a short "here is where to go". */
.owned { display: none; padding-block: clamp(80px, 9vw, 140px); }
.owned h2 { font-size: var(--t-head); margin-bottom: clamp(20px, 2.4vw, 32px); }

html.slv-owned .owned { display: block; }
html.slv-owned .what,
html.slv-owned .buy,
html.slv-owned #inside,
html.slv-owned #free { display: none; }
/* The hero keeps its headline but drops the "first, what is free" aside. */
html.slv-owned .act--quiet { display: none; }
