/* Public pages: index, kainos, apie, duk, privatumas. Tokens come from styles.css; this file
   only adds layout and the marketing components, so the app and the site share one palette. */

:root {
  --blue: #1cb0f6;
  --blue-surface: #dff2fe;
  --blue-border: #b9e3fb;
  --blue-text: #035f88;
  --tint: #edf3f6;
  --copy: #475569;
  --wrap: 1160px;
  --section: clamp(64px, 9vw, 112px);
  /* Icons drawn by pseudo-elements, where inline SVG cannot go. Same paths as the svg.i set. */
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23296900' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}

body {
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: min(var(--wrap), calc(100% - 80px));
  margin-inline: auto;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* --- Header --------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 6px 24px #1722350a;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.5px;
}

.brand img {
  transition: transform 0.4s var(--ease-spring);
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.06);
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--copy);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-secondary);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-text);
  background: var(--accent-surface);
}

.site-header .primary {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}

/* --- Shared type & sections --------------------------------------------------------- */

.eyebrow {
  margin: 0;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 30px;
  background: var(--blue-surface);
  color: var(--blue-text);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 #58cc0266;
  animation: pulse 2.4s infinite;
}

.ink-underline {
  background: linear-gradient(transparent 80%, #90d4ff 80%, #90d4ff 96%, transparent 96%) no-repeat;
  background-size: 100% 100%;
  padding-bottom: 3px;
}

.section {
  padding-block: var(--section);
}

.section.tint {
  background: var(--tint);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2,
.cta h2 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -1.6px;
}

.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--copy);
  font-size: 17px;
  line-height: 1.7;
}

.section-head.row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
}

.section-head.row > p {
  max-width: 340px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.lede {
  margin: 0;
  color: var(--copy);
  font-size: 18px;
  line-height: 1.7;
}

.small {
  color: var(--copy);
  font-size: 13px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.primary,
.secondary {
  gap: 12px;
}

.primary .arrow,
.text-link .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}

.primary:hover .arrow,
.text-link:hover .arrow {
  transform: translateX(4px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--accent-text);
  font-weight: 700;
}

/* --- Home hero ------------------------------------------------------------------------ */

.hero {
  padding: 56px 0 88px;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  margin: 22px 0;
  font-size: clamp(46px, 5.4vw, 74px);
  line-height: 1.03;
  letter-spacing: -3.4px;
}

.hero .lede {
  max-width: 520px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--copy);
  font-size: 13px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-surface);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 800;
}

.hero-copy > * {
  animation: rise 0.8s var(--ease-out) both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.24s; }

.hero-art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.06;
  margin: 0;
  padding: 28px;
  display: flex;
  align-items: center;
  border-radius: 28px;
  background: var(--accent);
  box-shadow: 0 30px 60px #2969001f;
  overflow: hidden;
  animation: art-in 1s var(--ease-out) 0.1s both;
}

.art-blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  animation: drift 14s ease-in-out infinite alternate;
}

.art-blob.one {
  width: 240px;
  height: 240px;
  right: -70px;
  top: -80px;
  background: var(--blue);
}

.art-blob.two {
  width: 200px;
  height: 200px;
  left: -80px;
  bottom: -110px;
  background: #66c6ff;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

.art-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#ffffff40 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(160deg, #000 10%, transparent 70%);
}

.lesson-preview {
  width: 100%;
  margin-top: -18px;
  padding: 24px 22px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 16px 36px #29690030;
  transform: rotate(-1.5deg);
}

.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.preview-top .eyebrow {
  display: block;
  color: var(--copy);
  font-size: 10px;
  letter-spacing: 0.6px;
}

.preview-top strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--accent-surface);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.6s ease-in-out infinite;
}

.preview-equation {
  margin: 22px 0 18px;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 650;
  letter-spacing: -1px;
}

.preview-answer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 14px;
  border: 1.5px solid var(--accent-border);
  border-radius: 10px;
  font-size: 15px;
}

.preview-answer b {
  margin-left: auto;
  color: var(--accent-text);
  font-size: 12px;
  animation: pop-in 0.5s var(--ease-spring) 1.6s both;
}

.typed {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  border-right: 2px solid var(--accent);
  animation: type 0.5s steps(2) 0.9s forwards, caret 0.8s step-end 1.4s 2 forwards;
}

.preview-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--copy);
  font-size: 11px;
}

.pips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.pips i {
  height: 7px;
  border-radius: 10px;
  background: var(--surface-tertiary);
  overflow: hidden;
}

.pips i::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  animation: fill-x 0.5s var(--ease-out) forwards;
}

.pips i:nth-child(1)::after { animation-delay: 0.5s; }
.pips i:nth-child(2)::after { animation-delay: 0.7s; }
.pips i:nth-child(3)::after { animation-delay: 1.9s; }
.pips i:nth-child(n + 4)::after { animation: none; }

.art-sticker {
  position: absolute;
  right: 18px;
  bottom: 26px;
  padding: 11px 15px;
  border-radius: 12px;
  background: var(--blue-surface);
  color: #034564;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px #03456420;
  animation: float 5s ease-in-out infinite;
}

.art-chip {
  position: absolute;
  left: 22px;
  top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #ffffffe6;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px #29690026;
  animation: float 6s ease-in-out -2s infinite;
}

.art-chip .mini-ring {
  --v: 72;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--v) * 1%), var(--surface-tertiary) 0);
  mask: radial-gradient(circle, transparent 6px, #000 6.5px);
}

.hero-art figcaption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 650;
}

/* --- Stat tiles ----------------------------------------------------------------------- */

.stat-strip {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 26px 28px;
  border-left: 1px solid var(--border);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat b {
  display: block;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -1.2px;
  font-variant-numeric: tabular-nums;
}

.stat b small {
  margin-left: 2px;
  font-size: 0.5em;
  letter-spacing: 0;
  color: var(--copy);
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--copy);
  font-size: 13px;
  line-height: 1.45;
}

.stat.boxed {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.stat-tiles.boxed {
  gap: 14px;
}

/* --- Step cards with mini UI --------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 18px 40px #1722350f;
}

.feature h3 {
  margin: 18px 0 8px;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.feature p {
  margin: 0;
  color: var(--copy);
  font-size: 15px;
  line-height: 1.7;
}

.feature .step-no {
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-surface);
  color: var(--accent-text);
  font-size: 17px;
  font-weight: 800;
}

.badge.blue {
  background: var(--blue-surface);
  color: var(--blue-text);
}

.mini-ui {
  display: grid;
  gap: 10px;
  min-height: 132px;
  align-content: center;
  padding: 18px;
  border-radius: 14px;
  background: var(--tint);
}

.mini-chips {
  display: flex;
  gap: 8px;
}

.mini-chips span {
  flex: 1;
  padding: 9px 6px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.mini-chips .on {
  border-color: var(--accent);
  background: var(--accent-surface);
  color: var(--accent-text);
}

.in .mini-chips .on {
  animation: pop-in 0.5s var(--ease-spring) 0.4s both;
}

.mini-slider {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: var(--surface-tertiary);
}

.mini-slider i {
  position: absolute;
  inset: 0 40% 0 0;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
}

.mini-slider i::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}

.mini-toggle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 10px;
  background: var(--surface-tertiary);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.mini-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 2px 6px #1722351a;
  animation: toggle-slide 6s var(--ease-out) infinite;
}

.mini-toggle span {
  position: relative;
  padding: 8px 2px;
}

.mini-formula {
  padding: 12px;
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-math);
  font-size: 18px;
  text-align: center;
}

.mini-pips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.mini-pips i {
  height: 30px;
  border-radius: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
}

.in .mini-pips i {
  animation: pip-fill 0.4s var(--ease-out) both;
}

.in .mini-pips i:nth-child(1) { animation-delay: 0.3s; }
.in .mini-pips i:nth-child(2) { animation-delay: 0.5s; }
.in .mini-pips i:nth-child(3) { animation-delay: 0.7s; }
.in .mini-pips i:nth-child(4) { animation-delay: 0.9s; }

.mini-points {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--copy);
}

.mini-points b {
  color: var(--accent-text);
}

/* --- Bars (demo dashboard, comparisons, research) ------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.split .section-head {
  margin-bottom: 0;
}

.bullet-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  color: var(--copy);
  line-height: 1.6;
}

.bullet-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-surface) var(--icon-check) center / 13px no-repeat;
}

.bullet-list strong {
  color: var(--text);
}

.demo-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 70px #17223512;
}

.demo-card .demo-tag {
  position: absolute;
  top: 20px;
  right: 22px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--surface-secondary);
  color: var(--copy);
  font-size: 11px;
  font-weight: 700;
}

.demo-goal {
  display: flex;
  align-items: end;
  gap: 18px;
  margin: 10px 0 18px;
}

.demo-goal b {
  font-size: 54px;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.demo-goal span {
  padding-bottom: 6px;
  color: var(--copy);
  font-size: 14px;
}

.goal-track {
  position: relative;
  height: 14px;
  margin: 28px 0 8px;
  border-radius: 10px;
  background: var(--surface-tertiary);
}

.goal-track .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 1%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-active), var(--accent));
}

.goal-track .marker {
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: calc(var(--at) * 1%);
  width: 3px;
  border-radius: 3px;
  background: var(--text);
}

.goal-track .marker::before {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 750;
}

.goal-scale {
  display: flex;
  justify-content: space-between;
  color: var(--copy);
  font-size: 12px;
}

.topic-bars {
  display: grid;
  gap: 4px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.topic-bar {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.topic-bar > span:first-child {
  font-weight: 700;
}

.track {
  height: 10px;
  border-radius: 10px;
  background: var(--surface-tertiary);
  overflow: hidden;
}

.track i {
  display: block;
  height: 100%;
  width: calc(var(--v) * 1%);
  border-radius: inherit;
  background: var(--c, var(--accent));
}

.track.hatched {
  background: repeating-linear-gradient(-45deg, var(--surface-tertiary) 0 6px, #f6f8fb 6px 12px);
}

.band-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 108px;
  justify-content: flex-end;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.band-chip em {
  padding: 2px 8px;
  border-radius: 20px;
  font-style: normal;
  background: var(--s);
  color: var(--t);
}

.band-spraga { --c: var(--spraga); --s: var(--spraga-surface); --t: var(--spraga-text); }
.band-pradzia { --c: var(--pradzia); --s: var(--pradzia-surface); --t: var(--pradzia-text); }
.band-gerai { --c: var(--gerai); --s: var(--gerai-surface); --t: #8a4b06; }
.band-ivaldyta { --c: var(--ivaldyta); --s: var(--ivaldyta-surface); --t: var(--ivaldyta-text); }
.band-nezinoma { --c: var(--nezinoma); --s: var(--nezinoma-surface); --t: #475569; }

/* Growth: bars start collapsed only once site.js has marked the page, so no-JS readers and
   crawlers always see the real lengths. */
.grow {
  transform-origin: left;
  transition: transform 1.1s var(--ease-out) var(--d, 0s);
}

.js .on-scroll:not(.in) .grow {
  transform: scaleX(0);
}

.compare {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare li {
  display: grid;
  grid-template-columns: 240px 1fr 220px;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.compare li.us {
  border-color: var(--accent);
  background: var(--accent-surface);
}

.compare strong {
  display: block;
  font-size: 15px;
}

.compare .price-tag {
  color: var(--copy);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.compare .track {
  height: 14px;
}

.compare .track i {
  min-width: 10px;
  background: var(--nezinoma);
}

.compare .us .track {
  background: #fff;
}

.compare .us .track i {
  background: var(--accent);
}

.compare .gets {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

/* Stacked 100-point bar for the exam split. */
.exam-split {
  display: flex;
  height: 64px;
  gap: 6px;
  margin: 8px 0 12px;
}

.exam-split > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 750;
  transform-origin: left;
}

.exam-split .part-1 {
  flex: 40;
  background: var(--accent);
  color: var(--accent-ink);
}

.exam-split .part-2 {
  flex: 60;
  background: var(--surface-tertiary);
  color: var(--copy);
}

.exam-split small {
  font-size: 12px;
  font-weight: 650;
  opacity: 0.85;
}

/* Hint-gate timeline */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gate;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 10%;
  right: 10%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transform-origin: left;
  transition: transform 1.4s var(--ease-out);
}

.js .timeline.on-scroll:not(.in)::before {
  transform: scaleX(0);
}

.timeline li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
}

.timeline li > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1.5px var(--border);
  font-weight: 800;
  font-size: 14px;
}

.timeline li.done > span {
  background: var(--accent);
  box-shadow: 0 0 0 1.5px var(--accent);
  color: var(--accent-ink);
}

.timeline li.wait > span {
  background: var(--blue-surface);
  box-shadow: 0 0 0 1.5px var(--blue-border);
  color: var(--blue-text);
  font-size: 12px;
}

.timeline small {
  display: block;
  color: var(--copy);
  font-size: 12px;
}

/* Mistake example: a wrong answer mapped to its named misconception. */
.mistake-demo {
  display: grid;
  gap: 12px;
}

.mistake-demo .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-secondary);
  font-size: 15px;
}

.mistake-demo .answer-row b {
  font-family: var(--font-math);
  font-size: 19px;
}

.mistake-demo .match {
  border: 1.5px solid var(--blue-border);
  background: var(--blue-surface);
  color: #034564;
}

.mistake-demo .flow {
  justify-self: center;
  color: var(--copy);
  font-size: 20px;
  animation: nudge 1.8s ease-in-out infinite;
}

/* Research effect sizes on a 0–0,5 scale. Point estimates only: the sources give no interval
   bounds we could draw honestly, so the uncertainty stays in the text. */
.effect {
  position: relative;
  height: 34px;
  margin: 18px 0 6px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--border) 2px, transparent 2px) 0 0 / 50% 100%, var(--surface-secondary);
}

.effect .bar {
  position: absolute;
  top: 50%;
  left: 0;
  height: 6px;
  width: calc(var(--g) * 200%);
  border-radius: 6px;
  background: var(--c);
  opacity: 0.4;
  transform: translateY(-50%) scaleX(var(--sx, 1));
  transform-origin: left;
}

.effect .point {
  position: absolute;
  top: 50%;
  left: calc(var(--g) * 200%);
  width: 16px;
  height: 16px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--c);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px #17223526;
}

.effect-scale {
  display: flex;
  justify-content: space-between;
  color: var(--copy);
  font-size: 11px;
}

.effect .bar {
  transition: transform 1.1s var(--ease-out) 0.2s;
}

.js .on-scroll:not(.in) .effect .bar {
  --sx: 0;
}

/* --- Topic tiles ---------------------------------------------------------------------- */

.topic-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}

.topic-pills a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  transition: border-color 0.25s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.topic-pills a:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px #29690014;
}

.topic-pills a span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-surface);
  color: var(--accent-text);
  transition: transform 0.3s var(--ease-out), background 0.25s;
}

.topic-pills a:hover span {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--accent-ink);
}

/* --- Subpage hero -------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, #1cb0f626, transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 380px;
  right: 240px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, #58cc021f, transparent 65%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

.page-hero .wrap > * {
  animation: rise 0.8s var(--ease-out) both;
}

.page-hero .wrap > :nth-child(2) { animation-delay: 0.06s; }
.page-hero .wrap > :nth-child(3) { animation-delay: 0.12s; }
.page-hero .wrap > :nth-child(4) { animation-delay: 0.18s; }

.page-hero h1 {
  max-width: 900px;
  margin: 20px 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -2.4px;
}

.page-hero .lede {
  max-width: 640px;
}

.notice {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  background: var(--blue-surface);
  color: #034564;
  line-height: 1.6;
}

.notice.warn {
  border-color: #f3c98b;
  background: #fff6e8;
  color: #6b3d06;
}

.notice .pill-dot {
  flex: none;
  margin-top: 8px;
  background: var(--blue);
}

.notice.warn .pill-dot {
  background: var(--pradzia);
}

.notice p {
  margin: 0;
}

/* --- Pricing -------------------------------------------------------------------------- */

.plans {
  display: grid;
  /* Four plans: two rows of two on a tablet instead of four squeezed columns. */
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px #1722350f;
}

.plan.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 24px 60px #2969001c;
}

.plan-ribbon {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 750;
}

.plan-tag {
  margin: 0;
  color: var(--copy);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  margin: 8px 0 0;
  font-size: 44px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -1.6px;
}

.price small {
  color: var(--copy);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.plan ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  flex: 1;
  align-content: start;
}

.plan li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.plan li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-surface) var(--icon-check) center / 12px no-repeat;
}

.plan li.off {
  color: var(--copy);
}

.plan li.off::before {
  background: var(--surface-secondary) var(--icon-minus) center / 12px no-repeat;
}

.plan .primary,
.plan .secondary {
  width: 100%;
}

/* --- FAQ ------------------------------------------------------------------------------ */

.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

.faq-nav {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 4px;
}

.faq-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--copy);
  font-size: 14px;
  font-weight: 650;
  transition: background 0.2s, color 0.2s;
}

.faq-nav a:hover {
  background: var(--surface-secondary);
  color: var(--text);
}

.faq-group + .faq-group {
  margin-top: 56px;
}

.faq-group h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 26px;
  letter-spacing: -0.6px;
  scroll-margin-top: 100px;
}

.faq {
  display: grid;
  gap: 10px;
  interpolate-size: allow-keywords;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq details[open] {
  border-color: var(--accent-border);
  box-shadow: 0 12px 30px #1722350a;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-secondary);
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  transition: transform 0.35s var(--ease-out), background 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--accent-ink);
}

/* Height animation where the browser supports it; elsewhere details simply opens. */
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
}

.faq details[open]::details-content {
  block-size: auto;
}

.faq .answer {
  padding: 0 20px 18px;
  color: var(--copy);
  line-height: 1.75;
}

.faq .answer p {
  margin: 0 0 10px;
}

.faq .answer p:last-child {
  margin: 0;
}

/* --- Prose & long pages -------------------------------------------------------------- */

.prose {
  max-width: 740px;
}

.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.prose p,
.prose li {
  color: var(--copy);
  font-size: 16.5px;
  line-height: 1.8;
}

.prose p.eyebrow {
  color: var(--accent-text);
  font-size: 11px;
  line-height: 1.5;
}

.prose li + li {
  margin-top: 8px;
}

.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-block + .content-block {
  margin-top: 72px;
}

.side-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.info-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.info-card h3 {
  margin: 14px 0 6px;
  font-size: 17px;
}

.info-card p {
  margin: 0;
  color: var(--copy);
  font-size: 14.5px;
  line-height: 1.65;
}

.info-card.not .badge {
  background: var(--surface-secondary);
  color: var(--copy);
}

/* --- CTA ------------------------------------------------------------------------------ */

.cta {
  padding-block: 0 var(--section);
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px;
  border-radius: 28px;
  background: var(--text);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.cta-inner::before,
.cta-inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  animation: drift 14s ease-in-out infinite alternate;
}

.cta-inner::before {
  width: 320px;
  height: 320px;
  right: -60px;
  top: -160px;
  background: radial-gradient(circle, #58cc0266, transparent 65%);
}

.cta-inner::after {
  width: 280px;
  height: 280px;
  left: 30%;
  bottom: -190px;
  background: radial-gradient(circle, #1cb0f666, transparent 65%);
  animation-direction: alternate-reverse;
}

.cta h2 {
  color: #fff;
}

.cta p {
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.6;
}

.cta .eyebrow {
  color: #9be86a;
}

.cta .actions {
  flex: none;
  margin: 0;
}

.cta .secondary {
  border-color: #ffffff33;
  background: transparent;
  color: #fff;
}

.cta .secondary:hover:not([disabled]) {
  border-color: #fff;
  background: #ffffff14;
}

/* --- Footer --------------------------------------------------------------------------- */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.footer-row > p {
  margin: 0;
  color: var(--copy);
  font-size: 13px;
}

.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-left: auto;
  font-size: 14px;
}

.footer-row nav a {
  padding: 10px 0;
  color: var(--copy);
  transition: color 0.2s;
}

.footer-row nav a:hover {
  color: var(--accent-text);
}

/* --- Reveal on scroll ------------------------------------------------------------------ */

.js .on-scroll {
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .on-scroll:not(.in) {
  opacity: 0;
  transform: translateY(24px);
}

.stagger > :nth-child(2) { --d: 0.08s; }
.stagger > :nth-child(3) { --d: 0.16s; }
.stagger > :nth-child(4) { --d: 0.24s; }
.stagger > :nth-child(5) { --d: 0.32s; }
.stagger > :nth-child(6) { --d: 0.4s; }
.stagger > :nth-child(7) { --d: 0.48s; }
.stagger > :nth-child(8) { --d: 0.56s; }
.stagger > :nth-child(9) { --d: 0.64s; }

@keyframes art-in {
  from { opacity: 0; transform: translateY(30px) rotate(0deg) scale(0.96); }
  to { opacity: 1; transform: rotate(1.5deg); }
}

@keyframes drift {
  to { transform: translate(-30px, 24px) scale(1.08); }
}

@keyframes float {
  50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes type {
  to { width: 2.4ch; }
}

@keyframes caret {
  50% { border-color: transparent; }
  to { border-color: transparent; }
}

@keyframes blink {
  50% { opacity: 0.35; }
}

@keyframes toggle-slide {
  0%, 22% { transform: translateX(0); }
  33%, 55% { transform: translateX(100%); }
  66%, 88% { transform: translateX(200%); }
  100% { transform: translateX(0); }
}

@keyframes pip-fill {
  to { background: var(--accent); border-color: var(--accent-active); }
}

@keyframes nudge {
  50% { transform: translateY(4px); }
}

/* --- Responsive ----------------------------------------------------------------------- */

@media (max-width: 980px) {
  .wrap { width: calc(100% - 48px); }
  .hero-layout, .split, .side-layout { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { width: min(100%, 520px); margin-inline: auto; }
  .card-grid, .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .compare li { grid-template-columns: 1fr auto; }
  .compare .track { grid-column: 1 / -1; grid-row: 2; }
  .compare .gets { grid-row: 1; grid-column: 2; }
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .faq-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .faq-nav a { border: 1px solid var(--border); background: var(--surface); }
  .cta-inner { flex-direction: column; align-items: start; padding: 44px 36px; }
}

@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; height: auto; gap: 0 12px; padding-top: 12px; }
  .site-header .primary { margin-left: auto; padding: 8px 14px; font-size: 13px; }
  .site-nav {
    order: 3;
    width: calc(100% + 24px);
    margin: 6px -12px 0;
    padding: 0 12px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; padding: 10px; font-size: 13px; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 0 20px 18px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .stat-tiles.boxed .stat { padding: 20px; border: 1px solid var(--border); }
  .timeline { grid-template-columns: 1fr; gap: 18px; }
  .timeline::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 3px; height: auto; transform-origin: top; }
  .timeline li { grid-template-columns: 44px 1fr; justify-items: start; align-items: center; text-align: left; gap: 16px; }
  .section-head.row { display: block; }
  .section-head.row > p { margin-top: 12px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 20px; }
  .hero { padding: 28px 0 56px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 56px); letter-spacing: -2.2px; }
  .hero .lede, .lede { font-size: 16px; }
  .hero .actions > a { flex: 1 1 100%; }
  .hero-art { aspect-ratio: auto; min-height: 380px; padding: 64px 18px 56px; }
  .preview-equation { font-size: 27px; }
  .card-grid, .card-grid.two, .card-grid.four, .topic-pills { grid-template-columns: 1fr; }
  .topic-pills { grid-template-columns: 1fr 1fr; gap: 10px; }
  .topic-pills a { padding: 15px 14px; font-size: 14px; }
  .topic-pills a span { width: 24px; height: 24px; font-size: 12px; }
  .demo-card { padding: 22px 18px; }
  .demo-card .demo-tag { top: 16px; right: 16px; }
  .topic-bar { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .topic-bar .track { grid-column: 1 / -1; grid-row: 2; }
  .band-chip { min-width: 0; }
  .exam-split { height: 56px; }
  .exam-split > div { padding: 0 12px; font-size: 14px; }
  .exam-split small { display: none; }
  .page-hero { padding: 40px 0 36px; }
  .page-hero h1 { letter-spacing: -1.6px; }
  .plan { padding: 26px 22px; }
  .compare li { padding: 16px; gap: 10px 14px; }
  .cta-inner { padding: 36px 24px; border-radius: 22px; }
  .cta .actions, .cta .actions > a { width: 100%; }
  .footer-row nav { margin: 0; width: 100%; }
  .content-block + .content-block { margin-top: 56px; }
}

/* Reduced motion: animations are off globally (styles.css), so every animated start state
   above has to be replaced by its end state here or it would stay hidden. */
@media (prefers-reduced-motion: reduce) {
  .typed { width: auto; border: 0; }
  .pips i:nth-child(-n + 3)::after { transform: none; }
  .mini-pips i:nth-child(-n + 4) { background: var(--accent); border-color: var(--accent-active); }
  .hero-art { transform: rotate(1.5deg); }
}
