/* Žodis po žodžio – svetainė. Prekės ženklo paletė iš logotipo (docs/brand/logotipas-idėja.jpg). */

@font-face {
  font-family: 'Atkinson';
  src: url('fonts/AtkinsonHyperlegibleNext_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson';
  src: url('fonts/AtkinsonHyperlegibleNext_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson';
  src: url('fonts/AtkinsonHyperlegibleNext_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Feather';
  src: url('fonts/Feather.ttf') format('truetype');
  font-display: block;
}

:root {
  /* Pagrindas */
  --ground: #f7f3fe;
  --surface: #ffffff;
  --ink: #200858;
  --muted: #4e4677;
  --line: #e2d8f5;

  /* Prekės ženklas */
  --primary: #6b1fd0;
  --primary-deep: #4c2098;
  --primary-soft: #f0e7fe;
  --magenta: #f21be0;
  --violet: #a812f8;
  --plum: #4c2098;
  --indigo: #2b2a92;
  --pink-soft: #fce8fa;
  --brand: linear-gradient(135deg, #f21be0 0%, #a812f8 45%, #4c2098 100%);
  --button: linear-gradient(135deg, #b81be8 0%, #6b1fd0 100%);
  --button-hover: linear-gradient(135deg, #9a16c4 0%, #4c2098 100%);

  /* Būsenos ir personažai */
  --success: #2e7d4f;
  --success-soft: #e8f3ee;
  --error: #b3261e;
  --error-soft: #fbeae8;
  --egle: #2c7a72;
  --emma: #b4486a;
  --james: #3e5c86;
  --kate: #b85c1e;

  --radius-lg: 28px;
  --radius-md: 18px;
  --gutter: clamp(16px, 5vw, 48px);
  --measure: 68ch;
  --shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(32, 8, 88, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Atkinson', system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-deep);
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  font-size: 21px;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.ic {
  font-family: 'Feather';
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Viršus ir apačia ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 243, 254, 0.94);
  padding-block: 14px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark em {
  font-style: normal;
  color: #7a1fb8;
}

.logo-mark {
  width: 44px;
  height: 40px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav .nav-cta {
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--button);
  color: #fff;
}

.site-nav .nav-cta:hover {
  background: var(--button-hover);
  color: #fff;
}

@media (max-width: 900px) {
  .site-nav .nav-link {
    display: none;
  }
}

@media (max-width: 420px) {
  .wordmark {
    font-size: 19px;
    gap: 8px;
  }
  .logo-mark {
    width: 36px;
    height: 33px;
  }
  .site-nav .nav-cta {
    padding: 10px 14px;
    font-size: 16px;
  }
}

@media (max-width: 340px) {
  .site-nav {
    display: none;
  }
}

.site-footer {
  margin-top: 32px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 17px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

/* ---------- Mygtukai ir forma ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--button);
  color: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(107, 31, 208, 0.7);
}

.button:hover {
  background: var(--button-hover);
  color: #fff;
}

.button[aria-busy='true'] {
  opacity: 0.7;
  cursor: progress;
}

.waitlist {
  width: 100%;
  max-width: 520px;
}

.waitlist-row {
  display: flex;
  gap: 10px;
}

.waitlist input[type='email'] {
  flex: 1;
  min-width: 0;
  min-height: 60px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 19px;
}

.waitlist input[type='email']:focus {
  border-color: var(--violet);
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.waitlist .consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
}

.waitlist .consent input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  accent-color: var(--primary);
}

.waitlist .honey {
  position: absolute;
  left: -9999px;
}

.form-message {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
}

.form-message[hidden] {
  display: none;
}

.form-message.is-success {
  background: var(--success-soft);
  color: var(--success);
}

.form-message.is-error {
  background: var(--error-soft);
  color: var(--error);
}

@media (max-width: 520px) {
  .waitlist-row {
    flex-direction: column;
  }
}

/* ---------- Pagrindinė dalis su logotipu ---------- */

.hero-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(242, 27, 224, 0.16), transparent 42%),
    radial-gradient(circle at 8% 75%, rgba(107, 31, 208, 0.12), transparent 46%),
    var(--ground);
}

.hero {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
  padding-block: 24px 64px;
}

.hero h1 {
  font-size: clamp(38px, 7.2vw, 72px);
  line-height: 1.05;
  max-width: 11ch;
}

.hero h1 .w {
  display: inline-block;
}

.hero h1 .w:nth-child(3),
.hero h1 .w:nth-child(4) {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 22px;
  max-width: 36ch;
  font-size: clamp(19px, 2vw, 22px);
  color: var(--muted);
}

.hero .waitlist {
  margin-top: 28px;
}

.hero-note {
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding-block-start: 48px;
  }
}

/* Fone lėtai plaukiantys žodžiai */
.drift {
  position: absolute;
  z-index: 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: #8b6fc4;
  font-size: 16px;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}

.drift.d1 { top: 5%; left: 44%; }
.drift.d2 { bottom: 4%; left: 50%; }
.drift.d3 { top: 8%; right: 4%; }
.drift.d4 { bottom: 10%; right: 6%; }
.drift.d5 { top: 44%; right: 1%; }

@media (max-width: 959px) {
  .drift {
    display: none;
  }
}

/* Logotipas: trys 3D kortelės ŽODIS / PO / ŽODŽIO */
.logo-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 24px 0 40px;
  perspective: 1400px;
}

.stack {
  --w: min(340px, 62vw);
  --h: calc(var(--w) / 2.35);
  position: relative;
  width: calc(var(--w) * 1.16);
  height: calc(var(--h) * 3);
  transform-style: preserve-3d;
  transform: rotateX(calc(20deg + var(--rx, 0deg))) rotateY(calc(-14deg + var(--ry, 0deg))) rotateZ(-4deg);
  transition: transform 0.3s ease-out;
}

.slot {
  position: absolute;
  left: calc(var(--w) * 0.08 * var(--i));
  top: calc(var(--h) * 0.97 * var(--i));
  width: var(--w);
  height: var(--h);
  z-index: calc(3 - var(--i));
}

.card {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--h) * 0.2);
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    0 calc(var(--h) * 0.09) 0 var(--edge),
    0 calc(var(--h) * 0.24) calc(var(--h) * 0.3) calc(var(--h) * -0.1) rgba(32, 8, 88, 0.45);
}

.card b {
  display: block;
  font-size: calc(var(--h) * 0.36);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 0 rgba(32, 8, 88, 0.25);
}

.card span {
  display: block;
  margin-top: calc(var(--h) * 0.04);
  font-size: calc(var(--h) * 0.12);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.card.c1 {
  --edge: #8e14b8;
  background: linear-gradient(120deg, #f21be0 0%, #c01af2 55%, #9a1bf7 100%);
}

.card.c2 {
  --edge: #3e1478;
  background: linear-gradient(120deg, #8a1fb8 0%, #5a1f9e 100%);
}

.card.c3 {
  --edge: #1e1a6e;
  background: linear-gradient(120deg, #5b28b0 0%, #2b2a92 100%);
}

/* Aplinkui: žvaigždutės, pokalbio burbulai, rodyklės */
.spark {
  position: absolute;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.spark.s1 { top: 8%; right: 10%; }
.spark.s2 { top: 16%; right: 4%; width: 16px; height: 16px; }
.spark.s3 { bottom: 26%; right: 6%; width: 20px; height: 20px; }
.spark.s4 { top: 50%; left: 2%; width: 18px; height: 18px; }

.talk {
  position: absolute;
  width: 54px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  box-shadow: 0 10px 20px -10px rgba(168, 18, 248, 0.8);
  display: grid;
  place-items: center;
}

.talk::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 14px;
  border: 8px solid transparent;
  border-top-color: #c216ee;
  border-bottom: 0;
}

.talk i {
  width: 26px;
  height: 6px;
  background: radial-gradient(circle, #fff 2.5px, transparent 3px) 0 0 / 9px 6px repeat-x;
}

.talk.b1 { top: 2%; left: 12%; }
.talk.b2 { top: 40%; left: -2%; width: 40px; height: 34px; }
.talk.b2 i { display: none; }

.swap {
  position: absolute;
  color: var(--violet);
  font-size: 30px;
}

.swap.w1 { top: 34%; right: 2%; }
.swap.w2 { bottom: 34%; left: 4%; }

@media (max-width: 520px) {
  .talk.b2,
  .swap.w2,
  .spark.s4 {
    display: none;
  }
}

/* ---------- Bėganti frazių juosta ---------- */

.ticker {
  position: relative;
  background: linear-gradient(90deg, #fbe6fb, #ece4ff);
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding-block: 20px;
  animation: ticker 70s linear infinite;
}

.ticker:hover .ticker-track,
.ticker.is-paused .ticker-track {
  animation-play-state: paused;
}

.phrase {
  flex: none;
  padding: 12px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.phrase b {
  display: block;
  font-size: 19px;
}

.phrase span {
  display: block;
  font-size: 16px;
  color: var(--muted);
}

.ticker-pause {
  position: absolute;
  right: 12px;
  top: 50%;
  translate: 0 -50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Skyriai ---------- */

.section {
  padding-block: 72px;
}

.section-head {
  max-width: 40ch;
  margin-bottom: 36px;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
}

/* Ar tai apie jus? */
.about {
  display: grid;
  gap: 40px;
  align-items: center;
}

.about img {
  border-radius: var(--radius-lg);
}

.about ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.about li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about li .ic {
  flex: none;
  margin-top: 4px;
  color: var(--violet);
  font-size: 22px;
}

.about .answer {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 22px;
  font-weight: 800;
  border-left: 6px solid var(--magenta);
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 1fr 1fr;
  }
}

/* Programa telefone */
.showcase-band {
  background: var(--surface);
}

.showcase {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .showcase {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 0 40px;
  perspective: 1200px;
}

.phone-stage::before {
  content: '';
  position: absolute;
  inset: 8% 8% 4%;
  border-radius: 48% 52% 46% 54%;
  background: linear-gradient(135deg, #fbe6fb, #ece4ff);
}

.phone {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 390 / 844;
  border: 10px solid var(--ink);
  border-radius: 46px;
  background: var(--ground);
  overflow: hidden;
  box-shadow: 0 40px 70px -40px rgba(32, 8, 88, 0.6);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
}

.phone .screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.phone .screen.is-active {
  opacity: 1;
}

.praise {
  position: absolute;
  left: max(0px, calc(50% - 250px));
  bottom: 14%;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 270px;
  padding: 12px 18px 12px 12px;
  border-radius: 24px 24px 24px 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.praise img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.praise small {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--egle);
}

.screen-dots {
  position: absolute;
  bottom: 6px;
  display: flex;
  gap: 10px;
}

.screen-dots button {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b8a8da;
  cursor: pointer;
}

.screen-dots button[aria-current='true'] {
  background: var(--primary);
}

@media (max-width: 520px) {
  .praise {
    left: 0;
    bottom: 10%;
    max-width: 230px;
    font-size: 17px;
  }
}

/* Kaip tai veikia */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step::before {
  content: counter(step);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}

.step p {
  color: var(--muted);
}

.step-visual {
  align-self: end;
  margin-top: 12px;
  height: 260px;
  border-radius: 20px;
  background: var(--ground);
  overflow: hidden;
  display: grid;
  place-items: start center;
}

.step-visual img {
  width: 72%;
  margin-top: 20px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 12px 30px -18px rgba(32, 8, 88, 0.5);
}

.step-visual.chat {
  height: auto;
  min-height: 220px;
}

.mini-chat {
  width: 100%;
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.mini-chat p {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 4px 16px 16px 16px;
  background: var(--surface);
  font-size: 16px;
}

.mini-chat .me {
  justify-self: end;
  border-radius: 16px 4px 16px 16px;
  background: var(--primary-soft);
  font-weight: 700;
}

.mini-chat .who {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mokytojai */
.teachers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.teacher {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border-top: 6px solid var(--who, var(--primary));
  transition: transform 0.2s ease;
}

.teacher img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ground);
}

.teacher .role {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--who, var(--muted));
}

.teacher p {
  margin-top: 10px;
  color: var(--muted);
}

@media (hover: hover) {
  .teacher:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 599px) {
  .teacher {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 20px;
  }
  .teacher img {
    grid-row: span 3;
    width: 96px;
    margin: 0;
  }
  .teacher p {
    margin-top: 6px;
  }
  .step-visual {
    height: 220px;
  }
}

@media (max-width: 340px) {
  .teacher {
    grid-template-columns: 64px 1fr;
  }
  .teacher img {
    width: 64px;
  }
}

/* Ką išmoksite */
.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.skills li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  font-weight: 700;
}

.skills .ic {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--primary-soft);
  color: var(--primary);
}

/* Faktai su piktogramomis */
.why {
  display: grid;
  gap: 40px;
  align-items: center;
}

.why img {
  border-radius: var(--radius-lg);
}

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

.facts li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
}

.facts .ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--pink-soft);
  color: var(--violet);
}

.facts p {
  color: var(--muted);
}

@media (min-width: 900px) {
  .why {
    grid-template-columns: 1fr 1fr;
  }
  .why img {
    order: 2;
  }
}

/* DUK */
.faq {
  max-width: var(--measure);
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius-md);
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  min-height: 60px;
  padding: 18px 22px;
  font-weight: 700;
  list-style-position: inside;
}

.faq details p {
  padding: 0 22px 22px;
  color: var(--muted);
}

/* Paskutinis kvietimas */
.closing {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(32px, 6vw, 64px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2b2a92 0%, #6b1fd0 55%, #c21be8 100%);
  color: #fff;
}

.closing > * {
  min-width: 0;
}

.closing h2 {
  color: #fff;
}

.closing p {
  margin-top: 12px;
  max-width: 40ch;
  font-size: 20px;
  color: #efe6ff;
}

.closing .faces {
  display: flex;
  margin-top: 24px;
}

.closing .faces img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-right: -12px;
  object-fit: cover;
}

.closing .waitlist .consent {
  color: #efe6ff;
}

.closing .waitlist .consent a {
  color: #fff;
}

.closing .button {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: none;
}

.closing .button:hover {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

@media (min-width: 900px) {
  .closing {
    grid-template-columns: 1fr 1fr;
  }
}

/* Labai siauri ekranai (pvz., sulankstomo telefono išorinis ekranas ~280 px) */
@media (max-width: 360px) {
  .closing {
    padding: 24px 18px;
  }
  .closing .faces img {
    width: 48px;
    height: 48px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .button {
    padding-inline: 18px;
  }
}

/* ---------- Judesys ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Kortelės krenta žodis po žodžio, paskui švelniai plaukioja */
  .slot {
    animation: card-drop 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.25) both;
    animation-delay: calc(0.2s + var(--i) * 0.38s);
  }

  .card {
    animation: card-float 5s ease-in-out infinite alternate;
    animation-delay: calc(1.6s + var(--i) * 0.7s);
  }

  .hero h1 .w {
    animation: word-in 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
    animation-delay: calc(0.1s + var(--i) * 0.2s);
  }

  .spark {
    animation: twinkle 2.6s ease-in-out infinite;
  }
  .spark.s2 { animation-delay: 0.6s; }
  .spark.s3 { animation-delay: 1.2s; }
  .spark.s4 { animation-delay: 1.8s; }

  .talk {
    animation: bob 3.4s ease-in-out infinite alternate;
  }
  .talk.b2 { animation-delay: 1.1s; }

  .swap {
    animation: swap 4s ease-in-out infinite;
  }
  .swap.w2 { animation-delay: 2s; }

  .drift {
    animation: drift 14s ease-in-out infinite alternate;
  }
  .drift.d2 { animation-duration: 17s; }
  .drift.d3 { animation-duration: 12s; }
  .drift.d4 { animation-duration: 19s; }
  .drift.d5 { animation-duration: 15s; }

  .praise {
    animation: praise-in 0.5s ease-out both;
    animation-timeline: view();
    animation-range: entry 20% cover 40%;
  }

  @keyframes card-drop {
    from {
      opacity: 0;
      transform: translateY(-160px) rotateX(-30deg);
    }
    60% {
      opacity: 1;
    }
  }

  @keyframes card-float {
    to {
      transform: translateY(-8px);
    }
  }

  @keyframes word-in {
    from {
      opacity: 0;
      transform: translateY(0.5em) rotate(-4deg) scale(0.9);
    }
  }

  @keyframes twinkle {
    0%,
    100% {
      transform: scale(0.7) rotate(0deg);
      opacity: 0.55;
    }
    50% {
      transform: scale(1.15) rotate(20deg);
      opacity: 1;
    }
  }

  @keyframes bob {
    to {
      transform: translateY(-10px) rotate(-4deg);
    }
  }

  @keyframes swap {
    0%,
    70%,
    100% {
      transform: rotate(0deg);
    }
    85% {
      transform: rotate(180deg);
    }
  }

  @keyframes drift {
    to {
      transform: translate(10px, -26px);
    }
  }

  @keyframes praise-in {
    from {
      opacity: 0;
      transform: translateY(16px) scale(0.92);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ticker-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    padding-inline: var(--gutter);
  }
  .ticker-pause,
  .ticker-track [aria-hidden='true'] {
    display: none;
  }
  .phone,
  .teacher,
  .stack,
  .phone .screen {
    transition: none;
  }
}

/* ---------- Ilgas tekstas (privatumo politika) ---------- */

.doc {
  max-width: var(--measure);
  padding-top: 24px;
}

.doc h1 {
  font-size: clamp(34px, 6vw, 48px);
}

.doc .updated {
  margin-top: 12px;
  color: var(--muted);
}

.doc h2 {
  margin-top: 48px;
  font-size: 26px;
}

.doc h3 {
  margin-top: 28px;
}

.doc p,
.doc ul {
  margin-top: 14px;
}

.doc ul {
  padding-left: 1.2em;
}

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

.doc .summary {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.doc .summary ul {
  margin-top: 12px;
}
