/* ==========================================================================
   OLI BENE — Learn Slovak
   Direction: "The printed annual" · seed 1362829129
   Type and palette kept from the brand (Poiret One / Mulish / Caveat,
   graphite + orange). Pricing redrawn to "One plan as a sentence":
   there is one plan and it is free.

   The page is laid out like a printed report: a fixed axis at 42% of the
   width, a masthead band, colour pages between text pages.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

:root {
  --bg: #18191b;
  --surface: #222427;
  --surface-2: #2b2e32;
  --paper: #eff0f1;
  --ink: #eff0f1;
  --ink-dark: #18191b;
  --muted: #aeb0b4;
  --muted-dark: #5b5e63;
  --accent: #ff4a1f;
  --accent-ink: #18191b;

  --t-small:   1rem;
  --t-body:    clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --t-lead:    clamp(1.375rem, 1.05rem + 1.05vw, 2rem);
  --t-head:    clamp(1.875rem, 1.2rem + 2vw, 3rem);
  --t-giant:   clamp(2.5rem, 1rem + 5.6vw, 5.75rem);
  --t-display: clamp(3.25rem, 0.2rem + 11.6vw, 11rem);

  --margin: clamp(20px, 2.2vw, 32px);
  --axis: 42%;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Mulish', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }
:where(a, button, input, select, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: 'Poiret One', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.hand { font-family: 'Caveat', cursive; font-weight: 500; color: var(--accent); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--margin); top: -200px; z-index: 300;
  background: var(--accent); color: var(--accent-ink); padding: 12px 18px; font-size: var(--t-small);
}
.skip:focus { top: 12px; }

.page { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--margin); }

/* the report's axis: everything that is not full-bleed hangs from it */
.axis {
  display: grid;
  grid-template-columns: var(--axis) 1fr;
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}
.axis__side { font-size: var(--t-body); color: var(--muted); max-width: 30ch; }

/* --------------------------------------------------------- the action */

.act {
  display: inline-block;
  min-height: 44px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: var(--t-body);
  padding: 14px 26px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color .18s, transform .18s var(--ease);
}
.act:hover { background: #ff5f39; transform: translateY(-2px); }
.act:active { transform: translateY(0); }

.act--quiet {
  background: none;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 2px solid var(--accent);
}
.act--quiet:hover { background: none; color: var(--accent); }

/* ===================================================== hero: the masthead */

.mast {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 26svh);
  height: 52svh;
}
.mast > * { overflow: hidden; }
.mast img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }

.mast__a { grid-column: 1 / span 2; grid-row: 1; }
.mast__b { grid-column: 3 / span 1; grid-row: 1 / span 2; background: var(--accent); }
.mast__c { grid-column: 4 / span 2; grid-row: 1 / span 2; }
.mast__d { grid-column: 6; grid-row: 1; background: var(--paper); }
.mast__e { grid-column: 1 / span 2; grid-row: 2; }
.mast__f { grid-column: 6; grid-row: 2; }

/* the header lies flush on the band's upper edge */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: stretch;
}
.top__mark {
  background: var(--bg); color: var(--ink);
  font-family: 'Poiret One', sans-serif; font-weight: 400;
  font-size: var(--t-body); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 18px var(--margin); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.top__mark .hand { font-size: 1.125rem; letter-spacing: 0; text-transform: none; }

.top__tab {
  background: var(--accent);
  flex: 0 1 auto;
  display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px);
  padding: 0 clamp(16px, 2vw, 28px);
}
.top__tab a { color: var(--accent-ink); font-size: var(--t-small); text-decoration: none; white-space: nowrap; }
.top__tab a:hover { text-decoration: underline; }

/* the controls sit in their own ink block, like the wordmark, so they read
   whatever tile of the mosaic is behind them */
.top__end {
  margin-left: auto;
  display: flex; align-items: center; gap: 18px;
  background: var(--bg);
  padding: 0 var(--margin);
}
.top__end a { font-size: var(--t-small); text-decoration: none; color: var(--ink); }
.top__end a:hover { color: var(--accent); }

.hero { position: relative; }

.hero__text { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(56px, 7vw, 96px); }

.hero h1 {
  font-size: clamp(2.75rem, 7.4vw, 8rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
  max-width: 11ch;
}

.hero__stand { margin-bottom: 20px; color: var(--ink); }
.hero__do { margin-top: clamp(28px, 3vw, 44px); display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }

/* ======================================= features: statement cell, dark rows */

.what { display: grid; grid-template-columns: 1fr 1fr; }

.what__cell {
  background: var(--paper);
  color: var(--ink-dark);
  min-height: 72svh;
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(40px, 6vw, 96px);
  padding: clamp(28px, 3.4vw, 56px);
}
.what__cell h2 { font-size: clamp(2.25rem, 4.2vw, 4.25rem); color: var(--ink-dark); }
.what__cell h2 span { display: block; }
.what__cell h2 span:last-child { text-align: right; }
.what__foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.what__foot p { max-width: 30ch; color: var(--ink-dark); font-size: var(--t-body); }
.what__cell .act { background: var(--ink-dark); color: var(--paper); }
.what__cell .act:hover { background: var(--accent); color: var(--accent-ink); }

.what__rows { background: var(--bg); display: grid; }
.what__row {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  padding: clamp(22px, 2.4vw, 32px);
}
.what__row:nth-child(odd) { background: var(--surface); }
.what__row h3 { font-size: var(--t-lead); color: var(--ink); }
.what__row p { font-size: var(--t-small); color: var(--muted); }
.what__row ul { font-size: var(--t-small); color: var(--muted); }
.what__row a { color: var(--accent); text-decoration: none; font-size: var(--t-small); }
.what__row a:hover { text-decoration: underline; }

/* =========================================== the tool: real, working fragments */

.tool { padding-block: clamp(80px, 9vw, 140px); }
.tool h2 { font-size: var(--t-head); margin-bottom: 14px; }
.tool__say { color: var(--muted); max-width: 54ch; margin-bottom: clamp(28px, 3vw, 48px); }

/* a real interface fragment: it keeps its own borders and fields */
[data-ui] { font-family: 'Mulish', sans-serif; }

/* the dictionary is the product's own interface (data-ui): its panel, rows and
   field keep the lines a real table and a real form field are allowed. */
.dict {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1); /* taste-skill-ignore */
}
.dict__bar { padding: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } /* taste-skill-ignore */
.dict__bar input {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
  padding: 13px 15px;
  font-size: var(--t-body);
}
.dict__bar input::placeholder { color: var(--muted); }

.dict__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.1); } /* taste-skill-ignore */
.dict__chips button {
  background: var(--surface-2); color: var(--muted); border: 0;
  padding: 9px 14px; font-size: var(--t-small); cursor: pointer;
}
.dict__chips button:hover { color: var(--ink); }
.dict__chips button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.dict__list { max-height: 420px; overflow-y: auto; }
.dict__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.2fr) 48px;
  gap: 14px;
  align-items: baseline;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07); /* taste-skill-ignore */
}
.dict__row:last-child { border-bottom: 0; }
.dict__sk { font-size: var(--t-body); color: var(--ink); }
.dict__tr { font-size: var(--t-small); color: var(--muted); }
.dict__tr b { display: block; color: var(--ink); font-weight: 400; }
.dict__lvl { font-size: var(--t-small); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.dict__play {
  background: var(--surface-2); color: var(--ink); border: 0;
  width: 36px; height: 36px; cursor: pointer; font-size: 0.85rem;
}
.dict__play:hover { background: var(--accent); color: var(--accent-ink); }
.dict__none { padding: 22px 16px; color: var(--muted); font-size: var(--t-small); }
.dict__foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--t-small); color: var(--muted); } /* taste-skill-ignore */
.dict__foot a { color: var(--ink); }

/* ==================================== list: the trap test (the live thing) */

.trap { background: var(--paper); color: var(--ink-dark); padding-block: clamp(80px, 9vw, 140px); }
.trap h2 { font-size: var(--t-giant); color: var(--ink-dark); max-width: 14ch; }
.trap__say { color: var(--muted-dark); max-width: 46ch; margin-top: 18px; }

.trap__stage { margin-top: clamp(32px, 4vw, 60px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 56px); align-items: start; }

.trap__card { background: var(--bg); color: var(--ink); padding: clamp(24px, 3vw, 44px); }
.trap__word { font-family: 'Poiret One', sans-serif; font-size: var(--t-giant); line-height: 1; letter-spacing: 0.04em; }
.trap__ask { color: var(--muted); font-size: var(--t-body); margin-top: 12px; }

.trap__picks { display: grid; gap: 10px; margin-top: 26px; }
.trap__picks button {
  text-align: left;
  background: var(--surface);
  color: var(--ink);
  border: 0;
  padding: 16px 18px;
  font-size: var(--t-body);
  cursor: pointer;
  transition: background-color .15s;
}
.trap__picks button:hover:not(:disabled) { background: var(--surface-2); }
.trap__picks button[data-state="right"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.trap__picks button[data-state="wrong"] { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.trap__picks button:disabled { cursor: default; }

.trap__said { margin-top: 22px; font-size: var(--t-body); color: var(--ink); min-height: 3.4em; }
.trap__said b { color: var(--accent); font-weight: 400; }

.trap__go { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.trap__score { font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }

/* the deck beside it: every trap in the set, as spines */
.trap__deck { display: grid; gap: 2px; }
.trap__deck button {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  background: var(--bg); color: var(--ink);
  border: 0; padding: 14px 18px; cursor: pointer; text-align: left;
  font-size: var(--t-body);
  transition: background-color .15s;
}
.trap__deck button:hover { background: var(--surface); }
.trap__deck button[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }
.trap__deck button span:last-child { font-size: var(--t-small); color: var(--muted); }
.trap__deck button[aria-current="true"] span:last-child { color: var(--accent-ink); }
/* a solved trap gets a drawn tick, not a glyph */
.trap__deck button[data-done="true"] span:last-child { position: relative; padding-right: 20px; }
.trap__deck button[data-done="true"] span:last-child::after {
  content: "";
  position: absolute; right: 2px; top: 0.45em;
  width: 11px; height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

/* ======================================== faq: large questions, answers beside */

.ask { padding-block: clamp(80px, 9vw, 140px); }
.ask__row {
  display: grid;
  grid-template-columns: minmax(0, 6fr) 1fr minmax(0, 5fr);
  gap: 0 clamp(20px, 2vw, 40px);
  align-items: start;
  padding-bottom: clamp(56px, 6vw, 84px);
}
.ask__row > h2,
.ask__row > h3 {
  font-size: var(--t-head);
  line-height: 1.1;
  max-width: 18ch;
}
.ask__row > h2 { color: var(--muted); }
.ask__row p { grid-column: 3; font-size: var(--t-body); line-height: 1.6; max-width: 42ch; color: var(--ink); }

/* ================================= pricing: one plan as a sentence (redrawn) */

.cost {
  background: var(--surface);
  padding-block: clamp(88px, 10vw, 148px);
  display: flex; flex-direction: column; justify-content: center;
}
.cost h2 {
  font-size: clamp(2.5rem, 8vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}
.cost h2 em {
  font-style: normal;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 0.15em;
}
.cost__foot {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 24px clamp(20px, 2vw, 40px);
  align-items: end;
  margin-top: clamp(40px, 4.5vw, 64px);
}
.cost__foot p { font-size: var(--t-lead); line-height: 1.3; max-width: 34ch; }
.cost__foot div { justify-self: end; text-align: right; }
.cost__foot small { display: block; margin-top: 12px; font-size: var(--t-small); color: var(--muted); }

/* ===================================== footer: contact as the headline */

.end {
  background: var(--accent);
  color: var(--accent-ink);
  min-height: 68svh;
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px) var(--margin);
}
.end__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.end__top div { max-width: 40ch; font-size: var(--t-small); }
.end__top a { color: inherit; }
.end__mark { font-family: 'Poiret One', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; font-size: var(--t-body); }

.end__say {
  margin-top: auto;
  display: block;
  font-family: 'Poiret One', sans-serif;
  font-size: clamp(1.75rem, 7.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}
.end__say:hover { text-decoration: underline; text-underline-offset: 0.1em; }

.end__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 26px; font-size: var(--t-small); }

/* ------------------------------------------------------------- motion */

.mask { display: block; overflow: hidden; }
.mask > span { display: block; animation: mask-rise .9s var(--ease) both; }
.mask + .mask > span { animation-delay: .11s; }
@keyframes mask-rise { from { transform: translateY(104%); } to { transform: none; } }

.lift { animation: lift .8s var(--ease) both; }
.hero__stand { animation: lift .8s var(--ease) .3s both; }
.hero__do { animation: lift .8s var(--ease) .42s both; }
@keyframes lift { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.rise { opacity: 0; transform: translateY(22px); }
.rise.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

.drift { animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.12) translateY(-1.5%); } }

/* --------------------------------------------------------------- phone */

@media (max-width: 900px) {
  :root { --axis: 0; }

  .axis { grid-template-columns: 1fr; gap: 18px; }
  .axis__side { max-width: none; order: 2; }

  .mast { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 19svh); height: 38svh; }
  .mast__a { grid-column: 1 / span 2; grid-row: 1; }
  .mast__b { grid-column: 3; grid-row: 1; }
  .mast__c { grid-column: 1 / span 2; grid-row: 2; }
  .mast__d { grid-column: 3; grid-row: 2; }
  .mast__e { display: none; }
  .mast__f { display: none; }

  .top { flex-wrap: wrap; }
  .top__tab { display: none; }
  .top__end { margin-left: auto; gap: 10px; }

  .hero__text { padding-top: 40px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3.5rem); max-width: 14ch; }

  .what { grid-template-columns: 1fr; }
  .what__cell { min-height: 0; gap: 36px; }
  /* the zigzag needs width to read as one; on a phone both lines sit flush left */
  .what__cell h2 span:last-child { text-align: left; }
  .what__cell h2 { font-size: clamp(1.625rem, 7.6vw, 2.75rem); }
  .what__row { grid-template-columns: 1fr; gap: 8px; }
  .what__row ul { display: flex; flex-wrap: wrap; gap: 0 6px; }
  .what__row ul li:not(:last-child)::after { content: ","; }

  .trap__stage { grid-template-columns: 1fr; }
  .trap h2 { font-size: clamp(2rem, 10vw, 3rem); }

  .ask__row { grid-template-columns: 1fr; gap: 12px; padding-bottom: 48px; }
  .ask__row p { grid-column: 1; max-width: none; }

  .cost__foot { grid-template-columns: 1fr; }
  .cost__foot div { justify-self: start; text-align: left; }
  .cost__foot .act { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mask > span, .lift, .hero__stand, .hero__do, .drift { animation: none; opacity: 1; transform: none; }
  .rise { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------- the language control (globe) ---- */

.langpick { position: relative; }
.langpick__btn {
  display: flex; align-items: center; gap: 7px;
  background: none; border: 0; padding: 8px 6px; min-height: 44px;
  color: var(--muted); font-size: var(--t-small); letter-spacing: 0.04em; cursor: pointer;
}
.langpick__btn:hover, .langpick.open .langpick__btn { color: var(--ink); }
.langpick__btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.sidebar__lang { display: flex; gap: 12px; }
.sidebar__lang span[data-lang] { font-size: var(--t-small); color: var(--muted); cursor: pointer; }
.sidebar__lang span[data-lang].active { color: var(--accent); }

.langpick .sidebar__lang {
  display: none;
  position: absolute; top: calc(100% + 6px); right: 0;
  flex-direction: column; gap: 0;
  min-width: 190px; padding: 6px 0;
  background: var(--surface-2);
  z-index: 60;
}
.langpick.open .sidebar__lang { display: flex; }
.langpick .sidebar__lang span[data-lang] {
  display: block; font-size: 0; padding: 11px 16px; color: var(--ink); white-space: nowrap;
}
.langpick .sidebar__lang span[data-lang]::after { content: attr(data-name); font-size: var(--t-small); }
.langpick .sidebar__lang span[data-lang]:hover { background: var(--surface); }

/* ------------------------------------------------- the consent notice ----
   A floating notice always ends up over something. On a phone there is no
   corner to hide in, so below 900px it stops floating and simply sits at the
   end of the page: nothing is ever covered, and analytics still waits for a
   yes either way. */
/* ---------------------------------------------------- the consent notice --
   A floating notice always ends up over something: bottom-left landed on the
   display type, bottom-right on the figures. So it sits at the top and the
   page makes room for it. Nothing is ever covered, and it is seen first. */
#cookie-banner, .cookie-banner {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 560px) {
  /* the bar keeps the wordmark and the globe; the way back is in the footer */
  .top__end > a { display: none; }
}
