/* latvi.app home page. Only index.html loads this file; every other page uses style.css.
   Type: Fredoka patched for Latvian (docs/brand.md). It stops at bold, so weights are drawn one step lighter:
   900 → Bold, 800 → SemiBold, 700 → Medium, 600 and under → Regular. */
@font-face { font-family: "Fredoka Latvi"; src: url("/fonts/fredoka-400.woff") format("woff"); font-weight: 100 600; font-display: swap; }
@font-face { font-family: "Fredoka Latvi"; src: url("/fonts/fredoka-500.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fredoka Latvi"; src: url("/fonts/fredoka-600.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Fredoka Latvi"; src: url("/fonts/fredoka-700.woff") format("woff"); font-weight: 900; font-display: swap; }

:root {
  /* Brand: the flag's carmine, with cream paper and a plum night. */
  --red: #9E3039;
  --red-dark: #6E1E27;
  --red-deep: #4A1219;
  --red-bright: #C2414C;
  --red-tint: #FBEAEC;
  --red-soft: #F3C9CE;
  --cream: #FFF8EC;
  --cream-deep: #FBEBD3;
  --paper: #FFFFFF;
  --line: #F1E3DC;
  --ink: #2B1418;
  --text: #55474A;
  --sub: #85757A;
  --plum: #2A1340;
  --plum-light: #4A2368;
  --night: #160A24;

  /* The apps' accents (web/src/ui/tokens.css). */
  --gold: #FFC800;
  --gold-dark: #E5A500;
  --orange: #FF9600;
  --orange-dark: #CD7900;
  --green: #58CC02;
  --green-dark: #46A302;
  --green-tint: #D7FFB8;
  --blue: #1CB0F6;
  --blue-dark: #1487BD;
  --blue-tint: #DDF4FF;
  --purple: #CE82FF;
  --purple-dark: #A568CC;
  --teal: #00BFA5;
  --teal-dark: #00967F;
  --pink: #E5508F;
  --wrong: #FF4B4B;
  --wrong-tint: #FFDFE0;

  --r-s: 14px;
  --r-m: 22px;
  --r-l: 32px;
  --r-xl: 44px;
  --shadow-float: 0 30px 60px -24px rgba(74, 18, 25, .38);
  --shadow-soft: 0 14px 34px -14px rgba(74, 18, 25, .22);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Fredoka Latvi", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;

  /* Auseklis, the morning star, as a tile. White for dark bands, red for cream ones. */
  --auseklis-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M50 18 L58 34 L76 26 L68 44 L84 50 L68 56 L76 74 L58 66 L50 82 L42 66 L24 74 L32 56 L16 50 L32 44 L24 26 L42 34 Z'/%3E%3Cpath d='M50 32 L54 46 L68 50 L54 54 L50 68 L46 54 L32 50 L46 46 Z'/%3E%3C/g%3E%3C/svg%3E");
  --auseklis-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%239E3039' stroke-opacity='.06' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M50 18 L58 34 L76 26 L68 44 L84 50 L68 56 L76 74 L58 66 L50 82 L42 66 L24 74 L32 56 L16 50 L32 44 L24 26 L42 34 Z'/%3E%3Cpath d='M50 32 L54 46 L68 50 L54 54 L50 68 L46 54 L32 50 L46 46 Z'/%3E%3C/g%3E%3C/svg%3E");
  /* A Lielvārde-belt strip: red diamonds on white. Use with background-size: 72px 36px. */
  --belt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='36' viewBox='0 0 120 60'%3E%3Crect width='120' height='60' fill='%239E3039'/%3E%3Cpath d='M0 30 L30 8 L60 30 L30 52 Z M60 30 L90 8 L120 30 L90 52 Z' fill='%23fff'/%3E%3Cpath d='M30 20 L40 30 L30 40 L20 30 Z M90 20 L100 30 L90 40 L80 30 Z' fill='%239E3039'/%3E%3Crect width='120' height='4' fill='%23fff'/%3E%3Crect y='56' width='120' height='4' fill='%23fff'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: var(--font); font-weight: 600; color: var(--text); background: var(--cream) var(--auseklis-red) 0 0 / 160px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* Type */
h1, h2, h3 { color: var(--ink); font-weight: 900; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.6vw, 84px); line-height: 1; letter-spacing: -.02em; }
h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.02em; }
h3 { font-size: 23px; line-height: 1.15; letter-spacing: -.005em; }
.sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--sub); max-width: 600px; margin: 16px auto 0; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); background: var(--red-tint); padding: 8px 16px; border-radius: 999px; margin-bottom: 20px; }
.on-dark, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .sub { color: rgba(255, 255, 255, .82); }
.on-dark .eyebrow { color: #fff; background: rgba(255, 255, 255, .16); }

/* Sections */
.sec { position: relative; padding: clamp(60px, 8vw, 108px) 0; }
.sec-head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }

/* Chunky buttons, like the apps' (a solid lip under the face; pressing pushes the face down onto it). */
.btn { --bg: var(--red); --fg: #fff; --lip: var(--red-dark); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 900; font-size: 18px; line-height: 1.1; text-decoration: none; color: var(--fg); background: var(--bg); padding: 16px 26px; border-radius: 16px; box-shadow: 0 5px 0 var(--lip); transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), filter .12s; white-space: nowrap; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 6px 0 var(--lip); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lip); }
.btn-white { --bg: #fff; --fg: var(--red); --lip: rgba(43, 20, 24, .28); }
.btn-gold { --bg: var(--gold); --fg: var(--ink); --lip: var(--gold-dark); }
.btn-green { --bg: var(--green); --fg: #fff; --lip: var(--green-dark); }
.btn-ghost { --bg: transparent; --fg: #fff; --lip: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.btn-ghost:hover, .btn-ghost:active { box-shadow: inset 0 0 0 2px #fff; }
.btn-s { font-size: 16px; padding: 11px 18px; border-radius: 13px; box-shadow: 0 4px 0 var(--lip); }

/* Store badges */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 11px; background: #0B0B0D; color: #fff; text-decoration: none; padding: 10px 20px 10px 16px; border-radius: 16px; box-shadow: 0 5px 0 rgba(0, 0, 0, .45); transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out); }
.store:hover { transform: translateY(-1px); box-shadow: 0 6px 0 rgba(0, 0, 0, .45); }
.store:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.store svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 600; opacity: .8; line-height: 1.1; }
.store b { display: block; font-size: 19px; line-height: 1.15; font-weight: 800; }
@media (max-width: 699px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .stores { order: 1; justify-content: center; }
  .cta-row .btn { order: 2; }
}

/* Cards: white paper, a soft line and a lip. */
.card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-l); box-shadow: 0 5px 0 var(--line); }
.plus-badge { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 900; font-size: 12px; letter-spacing: .06em; padding: 3px 9px; border-radius: 8px; vertical-align: middle; }

/* Phone frame. Set --phone-w on the element; screenshots are 660 × 1435. */
.phone { --phone-w: 290px; width: var(--phone-w); flex: none; background: linear-gradient(145deg, #3A3A40, #0E0E10 30%, #0E0E10 70%, #2A2A2E); border-radius: calc(var(--phone-w) * .165); padding: calc(var(--phone-w) * .032); box-shadow: var(--shadow-float), 0 2px 0 rgba(255, 255, 255, .12) inset; }
.phone img { width: 100%; border-radius: calc(var(--phone-w) * .135); background: #fff; }

/* Round play button for a Latvian clip: <button class="play" data-audio="<sha256>" aria-label="Play: Sveiki!"> */
.play { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 0 var(--red-dark); transition: transform .1s, box-shadow .1s, background .1s; }
.play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
.play:hover { background: var(--red-bright); }
.play.on, .play:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-dark); }
.play-blue { background: var(--blue); box-shadow: 0 4px 0 var(--blue-dark); }
.play-blue:hover { background: #3DBDF8; }
.play-blue.on, .play-blue:active { box-shadow: 0 1px 0 var(--blue-dark); }

/* Scroll reveal: add class="reveal"; home.js adds .in when it enters the screen. Stagger with style="--d:.1s". */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out) var(--d, 0s), transform .7s var(--ease-out) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-pop { opacity: 0; transform: scale(.86); transition: opacity .5s var(--ease-out) var(--d, 0s), transform .6s var(--ease-spring) var(--d, 0s); }
.reveal-pop.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .reveal-pop { opacity: 1; transform: none; }

/* Ciela, drawn live (the paths are web/src/ui/Mascot.tsx). Markup: site/_parts/_ciela.html. */
.ciela { display: block; overflow: visible; animation: ciela-bob 1.4s ease-in-out infinite alternate; }
.ciela .c-wing-l, .ciela .c-wing-r { transform-box: view-box; }
.ciela .c-wing-l { transform-origin: 44px 104px; animation: ciela-flap-l 1.6s ease-in-out infinite alternate; }
.ciela .c-wing-r { transform-origin: 156px 104px; animation: ciela-flap-r 1.6s ease-in-out infinite alternate; }
.ciela .c-eye { transform-box: fill-box; transform-origin: center; animation: ciela-blink 4s ease-in-out infinite; }
.ciela .c-talk { transform-box: fill-box; transform-origin: 50% 0; animation: ciela-talk .18s ease-in-out infinite alternate; }
.ciela-wave .c-wing-l { --a0: 22deg; --a1: 34deg; animation-duration: .5s; }
.ciela-wave .c-wing-r { --a0: -100deg; --a1: -128deg; animation-duration: .34s; }
@keyframes ciela-bob { from { transform: translateY(1%); } to { transform: translateY(-2.5%); } }
@keyframes ciela-flap-l { from { transform: rotate(var(--a0, 0deg)); } to { transform: rotate(var(--a1, 6deg)); } }
@keyframes ciela-flap-r { from { transform: rotate(var(--a0, 0deg)); } to { transform: rotate(var(--a1, -6deg)); } }
@keyframes ciela-blink { 0%, 94%, 100% { transform: scaleY(1); } 96%, 98% { transform: scaleY(.08); } }
@keyframes ciela-talk { from { transform: scaleY(.7); } to { transform: scaleY(1.05); } }

/* Nav: clear over the hero, then a floating cream pill once the page scrolls (home.js sets .scrolled). */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px 16px 0; pointer-events: none; }
.nav-bar { pointer-events: auto; max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; padding: 0 10px 0 14px; border-radius: 22px; border: 2px solid transparent; transition: background .3s, box-shadow .3s, border-color .3s; }
.nav .brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 900; font-size: 27px; letter-spacing: .01em; transition: color .3s; }
.nav .brand img { width: 40px; height: 40px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .22)); transition: transform .3s var(--ease-spring); }
.nav .brand:hover img { transform: rotate(-10deg) scale(1.08); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { color: #fff; opacity: .88; text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 12px; border-radius: 12px; transition: background .2s, opacity .2s, color .3s; }
.nav-links a:not(.btn):hover { opacity: 1; background: rgba(255, 255, 255, .14); }
.nav-links .btn { margin-left: 8px; }
.nav.scrolled .nav-bar { background: rgba(255, 248, 236, .86); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-color: rgba(158, 48, 57, .1); box-shadow: 0 12px 30px -14px rgba(74, 18, 25, .3); }
.nav.scrolled .brand { color: var(--red); }
.nav.scrolled .nav-links a:not(.btn) { color: var(--ink); }
.nav.scrolled .nav-links a:not(.btn):hover { background: var(--red-tint); }
.nav .btn { --bg: #fff; --fg: var(--red); --lip: rgba(43, 20, 24, .28); }
.nav.scrolled .btn { --bg: var(--red); --fg: #fff; --lip: var(--red-dark); }
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-pop { opacity: 1; transform: none; }
}

/* ===== hero ===== */
/* Hero: the red band with the course phone, Ciela and stickers. */
.hero { position: relative; overflow: hidden; min-height: min(100svh, 880px); display: grid; align-items: center; color: #fff; background: radial-gradient(1200px 900px at 15% 0%, var(--red-bright) 0%, var(--red) 45%, var(--red-dark) 100%); }

/* Slowly turning sunburst behind the art. */
.hero-rays { position: absolute; left: 72%; top: 52%; width: 1800px; height: 1800px; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .055) 0deg 7deg, transparent 7deg 14deg); -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 75%); mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 75%); pointer-events: none; animation: hero-spin 140s linear infinite; }
@keyframes hero-spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Faint white auseklis stars, fading out towards the right. */
.hero-stars { position: absolute; inset: 0; background-image: var(--auseklis-white); background-size: 160px; -webkit-mask-image: linear-gradient(to right, #000 25%, transparent 60%); mask-image: linear-gradient(to right, #000 25%, transparent 60%); pointer-events: none; }

/* Two columns: copy on the left, art on the right. */
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 120px; padding-bottom: 110px; }
.hero h1 { color: #fff; }
.hero-kicker { display: inline-block; vertical-align: top; margin-bottom: 22px; font-size: 13px; line-height: 1.5; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; animation: hero-rise .7s var(--ease-out) .05s both; }
.hero-title { display: block; color: #fff; animation: hero-rise .7s var(--ease-out) .15s both; }
.hero-lead { max-width: 520px; margin: 22px 0 32px; font-size: clamp(18px, 2vw, 22px); font-weight: 600; color: rgba(255, 255, 255, .9); animation: hero-rise .7s var(--ease-out) .25s both; }
.hero-lead em { font-style: normal; font-weight: 800; }
.hero .cta-row { animation: hero-rise .7s var(--ease-out) .35s both; }
.hero-streak { margin-top: 16px; font-weight: 800; font-size: 16px; }
.hero-note { margin-top: 18px; font-weight: 800; font-size: 15px; opacity: .9; animation: hero-rise .7s var(--ease-out) .45s both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* The art column. */
.hero-art { position: relative; height: 640px; }
.hero-glow { position: absolute; left: 50%; top: 45%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); transform: translate(-50%, -50%); pointer-events: none; }

/* Everything with data-depth moves with the pointer (set by the JS). */
.hero-art [data-depth] { translate: var(--px, 0px) var(--py, 0px); transition: translate .25s var(--ease-out); }

/* The course phone, right of centre, tilted. */
.hero-phone { position: absolute; left: 38%; top: 0; z-index: 1; transform: rotate(5deg); animation: hero-phone-in .9s var(--ease-spring) .2s both; }
@keyframes hero-phone-in { from { opacity: 0; transform: translateY(60px) rotate(9deg); } to { opacity: 1; transform: rotate(5deg); } }

/* Ciela's wrapper carries the tilt and the pop-in; the svg inside keeps its own bob. */
.hero-ciela-wrap { position: absolute; left: 0; bottom: 20px; z-index: 2; width: 300px; transform: rotate(-5deg); transform-origin: 50% 100%; animation: hero-ciela-in .7s var(--ease-spring) .5s both; }
.hero-ciela { width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .3)); }
@keyframes hero-ciela-in { from { opacity: 0; transform: rotate(-5deg) scale(.6); } to { opacity: 1; transform: rotate(-5deg) scale(1); } }

/* Speech bubble with the Sveiki! clip, above and to the right of Ciela. */
.hero-bubble { position: absolute; left: 30%; top: 36%; z-index: 4; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; background: #fff; color: var(--ink); border-radius: 22px; padding: 10px 20px 10px 10px; box-shadow: 0 12px 0 -6px rgba(0, 0, 0, .12), var(--shadow-float); transform-origin: 0% 100%; animation: hero-pop .6s var(--ease-spring) .8s both; }
.hero-bubble::before { content: ""; position: absolute; left: 22px; bottom: -8px; width: 18px; height: 18px; background: #fff; transform: rotate(45deg); border-radius: 0 0 4px 0; }
.hero-bubble span { position: relative; font-weight: 900; font-size: 24px; line-height: 1; color: var(--ink); }
.hero-bubble .play { width: 46px; height: 46px; }
@keyframes hero-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* Stickers: an outer box for position, pop-in and parallax; an inner pill for tilt and float. */
.hero-sticker-pos { position: absolute; z-index: 3; animation: hero-pop .5s var(--ease-spring) var(--d, 1s) both; }
.hero-flame { right: -2%; top: 9%; }
.hero-xp { left: 0; top: 14%; }
.hero-pareizi { right: 0; top: 62%; }
.hero-sticker { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 900; font-size: 18px; line-height: 1.1; color: var(--ink); box-shadow: 0 5px 0 rgba(43, 20, 24, .18), 0 18px 30px -14px rgba(43, 20, 24, .45); animation: hero-float 5s ease-in-out infinite; animation-delay: var(--fd, 0s); }
.hero-sticker svg { width: 20px; height: 20px; flex: none; }
@keyframes hero-float { 0%, 100% { transform: translateY(0) rotate(var(--tilt, -4deg)); } 50% { transform: translateY(-8px) rotate(var(--tilt, -4deg)); } }

/* Curve that bridges the hero into the cream page. */
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 80px); z-index: 2; }

/* Word ticker: a tilted strip of Latvian greetings, scrolling left forever. */
.ticker { position: relative; padding: 26px 0; overflow: hidden; transform: rotate(-1.2deg); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.ticker-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 38s linear infinite; will-change: transform; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Each item carries its own right margin, so the two halves of the loop are the same width. */
.ticker-item { display: inline-flex; align-items: center; gap: 26px; margin-right: 34px; white-space: nowrap; }
.ticker-word { font-size: clamp(30px, 4.4vw, 54px); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
.ticker-item:nth-child(odd) .ticker-word { color: var(--red); }
/* Outlined words: the cream fill is painted over the stroke, so the letters' overlapping joins don't show. */
.ticker-item:nth-child(even) .ticker-word { color: var(--cream); -webkit-text-stroke: 4px var(--red-soft); paint-order: stroke fill; }
.ticker-star { width: 22px; height: 22px; flex: none; fill: var(--gold); }

/* Tablets and phones: one column, centred text, the art below. */
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 104px; padding-bottom: 70px; text-align: center; }
  .hero-lead { margin: 22px auto 32px; }
  .hero .cta-row { justify-content: center; }
  .hero-art { width: 100%; height: 470px; margin-top: 48px; }
  .hero-glow { width: 380px; height: 380px; }
  .hero-rays { left: 50%; top: 60%; width: 1300px; height: 1300px; }
  .hero-phone { left: calc(50% - var(--phone-w) / 2 + 14px); }
  .hero-ciela-wrap { width: 200px; bottom: 0; left: 2%; }
  .hero-bubble { left: 36%; top: 40%; padding: 8px 16px 8px 8px; border-radius: 18px; gap: 10px; }
  .hero-bubble .play { width: 40px; height: 40px; }
  .hero-bubble span { font-size: 20px; }
  .hero-sticker { font-size: 15px; padding: 8px 13px; }
  .hero-sticker svg { width: 17px; height: 17px; }
  .hero-flame { right: 0; top: 2%; }
  .hero-xp { left: 0; top: 12%; }
  .hero-pareizi { right: 0; top: 64%; }
}

/* Small phones: drop the +10 XP sticker so the art stays clear of the screen edge. */
@media (max-width: 600px) {
  .hero-xp { display: none; }
}

/* Ticker on small screens. */
@media (max-width: 600px) {
  .ticker { padding: 18px 0; }
  .ticker-item { gap: 16px; margin-right: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rays, .hero-sticker, .ticker-track { animation: none; }
}

/* ===== try ===== */
/* Try it: a three-question Latvian taster that imitates the app's lesson screen. */
.try { overflow: hidden; }
.try .try-grid { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 64px; align-items: center; }

/* Left copy: text left-aligned on desktop */
.try .try-copy { position: relative; }
.try .try-copy .sub { margin: 16px 0 0; text-align: left; }

/* Hand-drawn arrow from the copy towards the card */
.try .try-arrow { width: 120px; height: 70px; margin: 26px 0 0 4px; }
.try .try-arrow path { fill: none; stroke: var(--red-soft); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* Card wrapper: keeps the scroll reveal off the tilted card */
.try .try-stage { width: 100%; }

/* Lesson card: white, tilted on desktop, room for the feedback sheet */
.try .try-card { position: relative; overflow: hidden; min-height: 470px; display: flex; flex-direction: column; padding: 22px; border-radius: var(--r-xl); box-shadow: 0 5px 0 var(--line), var(--shadow-float); transform: rotate(1.5deg); }

/* Progress bar, with a highlight stripe on the green fill */
.try .try-bar { height: 16px; border-radius: 999px; background: #E9E4E1; overflow: hidden; flex: none; }
.try .try-bar-fill { position: relative; display: block; height: 100%; width: 6%; background: var(--green); border-radius: 999px; transition: width .5s var(--ease-spring); }
.try .try-bar-fill::before { content: ""; position: absolute; top: 4px; left: 8px; right: 8px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .3); }

/* Main area: the question, or the end screen */
.try .try-main { flex: 1; display: flex; flex-direction: column; }
.try .try-body { padding-bottom: 96px; transition: opacity .2s, transform .2s; }
.try .try-body.out { opacity: 0; transform: translateY(8px); }

/* Question label */
.try .try-label { font-size: 22px; font-weight: 900; line-height: 1.2; color: var(--ink); margin: 22px 0 16px; }

/* Ciela's face and the speech bubble with the phrase */
.try .try-line { display: flex; align-items: center; gap: 14px; }
.try .try-line[hidden] { display: none; }
.try .try-face { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--red-tint); display: grid; place-items: center; }
.try .try-face img { width: 50px; height: 50px; }
.try .try-bubble { position: relative; flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid #E9E4E1; border-radius: 18px; padding: 12px 16px; }
.try .try-bubble::before { content: ""; position: absolute; left: -9px; top: 50%; width: 14px; height: 14px; background: #fff; border-left: 2px solid #E9E4E1; border-bottom: 2px solid #E9E4E1; transform: translateY(-50%) rotate(45deg); }
.try .try-bubble .play { width: 40px; height: 40px; position: relative; }
.try .try-bubble .play svg { width: 18px; height: 18px; }
.try .try-phrase { font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--ink); }

/* Answer choices */
.try .try-choices { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.try .try-choice { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 16px 18px; background: #fff; color: var(--ink); border: 2px solid #E5DFDB; border-radius: 16px; box-shadow: 0 4px 0 #E5DFDB; font-size: 19px; font-weight: 800; line-height: 1.2; text-align: left; transition: transform .1s, background .15s, border-color .15s, box-shadow .1s, opacity .2s; }
.try .try-choice:not(:disabled):hover { background: #FAF7F5; }
.try .try-choice:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 #E5DFDB; }
.try .try-key { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid #E5DFDB; display: grid; place-items: center; font-size: 14px; font-weight: 900; color: var(--sub); }

/* Answer states */
.try .try-choice.is-right { background: var(--green-tint); border-color: var(--green); box-shadow: 0 4px 0 var(--green); color: var(--green-dark); animation: try-pop .5s var(--ease-spring); }
.try .try-choice.is-right .try-key { border-color: var(--green); color: var(--green-dark); }
.try .try-choice.is-wrong { background: var(--wrong-tint); border-color: var(--wrong); box-shadow: 0 4px 0 var(--wrong); color: #D33131; animation: try-shake .4s ease-in-out; }
.try .try-choice.is-wrong .try-key { border-color: var(--wrong); color: #D33131; }
.try .try-choice.is-dim { opacity: .45; }
@keyframes try-pop { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes try-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

/* Feedback sheet, pinned to the bottom of the card */
.try .try-feedback { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px 22px; background: var(--green-tint); color: var(--green-dark); transform: translateY(100%); visibility: hidden; transition: transform .45s var(--ease-spring), visibility 0s linear .45s; }
.try .try-feedback.show { transform: none; visibility: visible; transition: transform .45s var(--ease-spring), visibility 0s; }
.try .try-feedback.ok { background: var(--green-tint); color: var(--green-dark); }
.try .try-feedback.bad { background: var(--wrong-tint); color: #D33131; }
.try .try-fb-top { display: flex; align-items: center; gap: 12px; }
.try .try-fb-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.try .try-feedback.bad .try-fb-icon { background: var(--wrong); }
.try .try-fb-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.try .try-ico-ok, .try .try-ico-bad { display: none; }
.try .try-feedback.ok .try-ico-ok, .try .try-feedback.bad .try-ico-bad { display: block; }
.try .try-fb-title { font-size: 22px; font-weight: 900; line-height: 1.1; color: inherit; }
.try .try-fb-text { font-size: 17px; font-weight: 700; line-height: 1.3; margin-top: 2px; color: inherit; }
.try .try-next { width: 100%; margin-top: 14px; }
.try .try-feedback.bad .try-next { --bg: var(--wrong); --lip: #D33131; }

/* End screen */
.try .try-done { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px 0 0; }
.try .try-done > * { position: relative; z-index: 1; }
.try .try-done .ciela { width: 170px; height: 170px; margin: 0 auto; }
.try .try-done h3 { font-size: 34px; line-height: 1.1; margin-top: 6px; }
.try .try-done p { font-size: 19px; font-weight: 700; color: var(--text); margin-top: 6px; }
.try .try-xp { display: inline-block; margin-top: 14px; background: var(--gold); color: var(--ink); font-size: 18px; font-weight: 900; padding: 6px 14px; border-radius: 999px; }
.try .try-go { width: 100%; max-width: 300px; margin-top: 22px; }
.try .try-again { margin-top: 14px; min-height: 44px; padding: 10px 14px; font-size: 16px; font-weight: 800; color: var(--sub); text-decoration: none; }
.try .try-again:hover { text-decoration: underline; }

/* Confetti: pieces burst out from the centre of the end screen and fall once */
.try .try-confetti { position: absolute; left: 50%; top: 34%; width: 0; height: 0; z-index: 0; pointer-events: none; }
.try .try-confetti i { position: absolute; left: -4px; top: -7px; width: 8px; height: 14px; border-radius: 3px; opacity: 0; animation: try-burst 1.6s var(--ease-out) both; }
@keyframes try-burst {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  35% { transform: translate(var(--x), var(--y)) rotate(calc(var(--r) * .5)); opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) + 260px)) rotate(var(--r)); opacity: 0; }
}

/* Desktop wide: copy and card side by side; below 900px: one column, centred */
@media (max-width: 900px) {
  .try .try-grid { grid-template-columns: 1fr; gap: 48px; }
  .try .try-copy { text-align: center; }
  .try .try-copy .sub { margin: 16px auto 0; text-align: center; }
  .try .try-arrow { display: none; }
  .try .try-stage { max-width: 460px; margin: 0 auto; }
  .try .try-card { transform: none; }
}

/* At rest the card ends with a greyed-out Continue, as a lesson does in the app; the feedback sheet slides over it. */
.try .try-idle { position: absolute; left: 22px; right: 22px; bottom: 26px; display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 16px; background: #E9E4E1; box-shadow: 0 5px 0 #D9D2CE; color: #B3A9A4; font-weight: 900; font-size: 18px; }
.try .try-card.is-done .try-idle { display: none; }

/* ===== features ===== */
/* Features bento: eight tiles on a 12-column grid, each with a small picture. */

/* Clip the decoration that sticks out of the section. */
.feat { overflow: hidden; padding-top: clamp(24px, 3vw, 40px); }

/* Grid: 12 columns on desktop, rows at least 250px tall. */
.feat-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; grid-auto-rows: minmax(250px, auto); }

/* Tile base: text top-left, picture lower, a 2px edge and a 5px lip in --shade. */
.feat-tile { --shade: var(--red-soft); position: relative; overflow: hidden; min-width: 0; padding: 30px; border-radius: var(--r-l); border: 2px solid var(--shade); box-shadow: 0 5px 0 var(--shade); transition: opacity .7s var(--ease-out) var(--d, 0s), transform .7s var(--ease-out) var(--d, 0s), translate .3s var(--ease-out); }
.feat-tile h3 { position: relative; z-index: 2; }
.feat-tile p { position: relative; z-index: 2; font-size: 17px; color: var(--text); max-width: 34ch; margin-top: 8px; text-wrap: pretty; }
.feat-custom p, .feat-dark p { color: rgba(255, 255, 255, .8); }

/* Pictures nudge on hover; the tile lifts 4px (translate keeps the reveal transform separate). */
.feat-pic { transition: translate .3s var(--ease-out); }
@media (hover: hover) {
  .feat-tile:hover { translate: 0 -4px; }
  .feat-tile:hover .feat-pic { translate: 0 -8px; }
}

/* Floating phone pictures: absolutely placed, cropped by the tile. */
.feat-ph { position: absolute; }

/* Desktop placement (12 columns). */
.feat-lessons { grid-column: 1 / 8; grid-row: 1 / 3; }
.feat-audio { grid-column: 8 / 13; grid-row: 1; }
.feat-speak { grid-column: 8 / 13; grid-row: 2; }
.feat-stories { grid-column: 1 / 5; grid-row: 3; }
.feat-practice { grid-column: 5 / 9; grid-row: 3; }
.feat-streak { grid-column: 9 / 13; grid-row: 3; }
.feat-custom { grid-column: 1 / 6; grid-row: 4; }
.feat-dark { grid-column: 6 / 13; grid-row: 4; }

/* Lessons: red tint, Auseklis pattern, Hard mode chip, two phones. */
.feat-lessons { --shade: var(--red-soft); background-color: var(--red-tint); background-image: var(--auseklis-red); background-size: 160px 160px; min-height: 560px; }
.feat-chip { position: absolute; top: 26px; right: 26px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; background: #F4ECFF; color: #8241C1; font-weight: 900; font-size: 14px; line-height: 1.2; padding: 6px 12px; border-radius: 999px; }
.feat-chip svg { width: 16px; height: 16px; }
.feat-ph-lesson { --phone-w: 250px; left: 12%; top: 190px; z-index: 2; transform: rotate(-5deg); }
.feat-ph-translate { --phone-w: 250px; right: 8%; top: 215px; z-index: 1; transform: rotate(6deg); }

/* Audio: blue tint, a Play button, a word and an equaliser along the bottom. */
.feat-audio { --shade: #BFE8FB; background: var(--blue-tint); }
.feat-audio-row { position: absolute; left: 30px; right: 30px; bottom: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.feat-audio .play { width: 52px; height: 52px; }
.feat-audio-word { font-weight: 900; font-size: 30px; line-height: 1; color: var(--blue-dark); }
.feat-eq { display: flex; align-items: center; gap: 4px; height: 44px; }
.feat-eq i { display: block; width: 5px; height: 44px; border-radius: 999px; background: var(--blue); transform: scaleY(.2); animation: feat-eq 1s ease-in-out infinite alternate; }
@keyframes feat-eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

/* Speaking: lilac tint, a purple mic with three pulsing rings. */
.feat-speak { --shade: #E2D0F7; background: #F4ECFF; }
.feat-mic { position: absolute; right: 36px; bottom: 36px; width: 76px; height: 76px; }
.feat-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--purple); opacity: 0; animation: feat-ring 2.4s var(--ease-out) infinite; }
.feat-ring:nth-child(2) { animation-delay: .8s; }
.feat-ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes feat-ring { from { transform: scale(1); opacity: .5; } to { transform: scale(2.2); opacity: 0; } }
.feat-mic-btn { position: relative; z-index: 1; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--purple); box-shadow: 0 6px 0 var(--purple-dark); }
.feat-mic-btn svg { width: 30px; height: 30px; }

/* Stories: peach tint, one centred phone, min-height 440px. */
.feat-stories { --shade: #F8DDB5; background: #FFF3E0; min-height: 440px; }
.feat-ph-story { --phone-w: 210px; left: 50%; top: 190px; transform: translateX(-50%) rotate(3deg); }

/* Practice: green tint, three word rows with strength meters that fill on reveal. */
.feat-practice { --shade: #CDEBB9; background: #EAF7E1; min-height: 440px; }
.feat-rows { position: absolute; left: 30px; right: 30px; bottom: 30px; }
.feat-word { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 12px 14px; background: #fff; border: 2px solid #D9EFC9; border-radius: 14px; }
.feat-word:first-child { margin-top: 0; }
.feat-word-lv { flex: none; width: 92px; font-weight: 800; color: var(--ink); }
.feat-track { flex: 1; height: 10px; border-radius: 999px; background: #E9E4E1; overflow: hidden; }
.feat-fill { display: block; width: 100%; height: 100%; border-radius: 999px; transform-origin: left center; transform: scaleX(0); transition: transform 1s var(--ease-out) var(--dl, 0s); }
.feat-practice.in .feat-fill, .no-js .feat-fill { transform: scaleX(var(--v)); }

/* Streaks: butter tint, a white panel with the flame, count and seven days. */
.feat-streak { --shade: #F5E3A0; background: #FFF6D6; min-height: 440px; }
.feat-panel { position: absolute; left: 30px; right: 30px; bottom: 30px; padding: 16px; background: #fff; border: 2px solid #F5E3A0; border-radius: 18px; }
.feat-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.feat-flame { width: 44px; height: 44px; fill: var(--orange); }
.feat-num { font-weight: 900; font-size: 44px; line-height: 1; color: var(--orange); }
.feat-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.feat-day { display: grid; justify-items: center; gap: 6px; min-width: 0; font-size: 11px; font-weight: 800; color: var(--sub); }
.feat-dot { display: grid; place-items: center; width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 50%; background: #FBE9C6; }
.feat-dot.on { background: var(--orange); }
.feat-dot svg { width: 16px; height: 16px; transform: scale(0); transition: transform .5s var(--ease-spring) var(--dl, 0s); }
.feat-streak.in .feat-dot svg, .no-js .feat-dot svg { transform: scale(1); }

/* Custom lessons (Plus): dark plum, a typing field and one phone. */
.feat-custom { --shade: var(--night); background: linear-gradient(160deg, var(--plum-light), var(--plum) 60%, var(--night)); border-color: rgba(255, 255, 255, .08); min-height: 440px; }
.feat-field { position: relative; z-index: 2; display: block; max-width: 320px; min-height: 56px; margin-top: 22px; padding: 14px 16px; background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .22); border-radius: 16px; font-weight: 800; font-size: 18px; color: #fff; }
.feat-caret { display: inline-block; width: 3px; height: 1.05em; margin-left: 3px; vertical-align: -.15em; background: #fff; border-radius: 2px; animation: feat-blink 1s step-end infinite; }
@keyframes feat-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.feat-ph-custom { --phone-w: 200px; right: 22px; top: 215px; transform: rotate(-4deg); }

/* Dark mode: a night gradient with twinkling stars and two overlapping phones. */
.feat-dark { --shade: #0C0914; background: radial-gradient(700px 500px at 80% 20%, #2A2350, #14101F 70%); min-height: 440px; }
.feat-stars { position: absolute; inset: 0; pointer-events: none; }
.feat-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: feat-twinkle 3s ease-in-out infinite; }
.feat-stars i:nth-child(3n) { width: 3px; height: 3px; }
@keyframes feat-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.feat-ph-home { --phone-w: 210px; right: 150px; top: 130px; z-index: 1; transform: rotate(-5deg); }
.feat-ph-dark { --phone-w: 210px; right: 36px; top: 150px; z-index: 2; transform: rotate(5deg); }

/* Tablet: six columns; the lessons tile spans the top row. */
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .feat-tile { grid-row: auto; }
  .feat-lessons { grid-column: 1 / 7; min-height: 520px; }
  .feat-audio { grid-column: 1 / 4; }
  .feat-speak { grid-column: 4 / 7; }
  .feat-stories { grid-column: 1 / 7; }
  .feat-practice { grid-column: 1 / 4; }
  .feat-streak { grid-column: 4 / 7; }
  .feat-custom { grid-column: 1 / 7; }
  .feat-dark { grid-column: 1 / 7; }
}

/* Phone: one column, full-width tiles, smaller pictures and tighter padding. */
@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat-tile { grid-column: 1 / -1; padding: 24px; }
  .feat-lessons { min-height: 480px; }
  .feat-ph-lesson, .feat-ph-translate { --phone-w: 200px; }
  .feat-ph-translate { right: 4%; }
  .feat-audio-row { left: 24px; right: 24px; bottom: 24px; }
  .feat-rows { left: 24px; right: 24px; bottom: 24px; }
  .feat-panel { left: 24px; right: 24px; bottom: 24px; }
  .feat-ph-home { --phone-w: 170px; right: 96px; top: 130px; }
  .feat-ph-dark { --phone-w: 170px; right: 12px; top: 150px; }
}

/* Pictures that are rows or panels (not phones) sit in the flow at the foot of their tile, so a long paragraph on a
   narrow screen pushes them down instead of running under them. */
.feat-audio, .feat-streak, .feat-practice { display: flex; flex-direction: column; }
.feat-audio-row, .feat-panel, .feat-rows { position: static; margin-top: auto; }
.feat-audio p, .feat-streak p, .feat-practice p { margin-bottom: 26px; }
@media (max-width: 900px) {
  .feat-practice, .feat-streak { min-height: 0; }
}
@media (max-width: 600px) {
  .feat-lessons h3 { margin-top: 40px; }
  .feat-chip { top: 22px; left: 24px; right: auto; }
}

/* ===== talk ===== */
/* Talk band: a plum card with rounded corners, sitting on the cream page. */
.talk { position: relative; margin: 0 clamp(8px, 1.5vw, 20px); border-radius: clamp(28px, 5vw, 64px); overflow: hidden; background: radial-gradient(1000px 800px at 28% 35%, var(--plum-light) 0%, var(--plum) 55%, var(--night) 100%); }
/* White auseklis stars over the plum. */
.talk-stars { position: absolute; inset: 0; background-image: var(--auseklis-white); background-size: 160px; pointer-events: none; }
.talk .wrap { position: relative; }
/* Two columns: the art on the left, the text on the right. */
.talk-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.talk-art { grid-column: 1; grid-row: 1; position: relative; height: 620px; }
.talk-text { grid-column: 2; grid-row: 1; position: relative; z-index: 1; }

/* Text column */
.talk .eyebrow.talk-eyebrow { color: #24112F; background: var(--purple); }
.talk-lead { margin-top: 18px; font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, .86); max-width: 520px; }
/* Three feature rows with a rounded icon tile each. */
.talk-points { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.talk-point { display: flex; align-items: center; gap: 16px; }
.talk-tile { flex: none; width: 44px; height: 44px; border-radius: 14px; background: rgba(206, 130, 255, .18); display: grid; place-items: center; }
.talk-tile svg { width: 24px; height: 24px; fill: none; stroke: var(--purple); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.talk-pt { font-weight: 700; font-size: 18px; line-height: 1.3; color: #fff; }
/* Soft pill: the free taster call. */
.talk-note { display: inline-block; margin-top: 30px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-weight: 800; font-size: 16px; color: #fff; }

/* Art: rings, phone, bubbles, voice strip and Ciela, back to front. */
/* Pulsing rings, centred on the phone. */
.talk-rings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.talk-rings i { position: absolute; left: -150px; top: -150px; width: 300px; height: 300px; border-radius: 50%; border: 2px solid rgba(206, 130, 255, .35); opacity: 0; animation: talk-ring 3.6s linear infinite; }
.talk-rings i:nth-child(2) { animation-delay: 1.2s; }
.talk-rings i:nth-child(3) { animation-delay: 2.4s; }
@keyframes talk-ring { from { transform: scale(1); opacity: .6; } to { transform: scale(2.1); opacity: 0; } }

/* Centres the phone in the art box. */
.talk-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.talk-phone { transform: rotate(-3deg); }

/* Chat bubbles: each pops in on its own beat, and all fade out together near the end of the 9s loop. */
.talk-bubble { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 20px; font-weight: 800; font-size: 19px; line-height: 1.2; white-space: nowrap; color: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, .18), 0 18px 30px -12px rgba(0, 0, 0, .5); animation: talk-say-1 9s ease-out infinite; }
.talk-b1 { left: 2%; top: 17%; background: #fff; color: var(--ink); border-radius: 20px 20px 20px 6px; animation-name: talk-say-1; }
.talk-b2 { right: 2%; top: 44%; background: var(--red-bright); color: #fff; border-radius: 20px 20px 6px 20px; animation-name: talk-say-2; }
.talk-b3 { left: 4%; top: 68%; background: #fff; color: var(--ink); border-radius: 20px 20px 20px 6px; animation-name: talk-say-3; }
.talk-av { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); }
@keyframes talk-say-1 { 0%, 4% { opacity: 0; transform: scale(.3); animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); } 10% { opacity: 1; transform: scale(1.06); } 13%, 84% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(.9); } }
@keyframes talk-say-2 { 0%, 30% { opacity: 0; transform: scale(.3); animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); } 36% { opacity: 1; transform: scale(1.06); } 39%, 84% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(.9); } }
@keyframes talk-say-3 { 0%, 56% { opacity: 0; transform: scale(.3); animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); } 62% { opacity: 1; transform: scale(1.06); } 65%, 84% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(.9); } }

/* Live voice strip: a dark pill under the phone's bottom edge. */
.talk-wave { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-radius: 999px; background: rgba(22, 10, 36, .85); border: 2px solid rgba(206, 130, 255, .4); box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .6); }
.talk-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--green); line-height: 1; }
.talk-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: talk-blink 1.2s ease-in-out infinite; }
@keyframes talk-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
/* 24 thin bars, each with its own speed and phase (set inline with --s and --d). */
.talk-bars { display: flex; align-items: center; gap: 3px; height: 24px; }
.talk-bars i { display: block; width: 4px; height: 22px; border-radius: 2px; background: var(--purple); animation: talk-bar var(--s, .9s) ease-in-out var(--d, 0s) infinite alternate; }
@keyframes talk-bar { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

/* Ciela, live, bottom right over the phone's corner. The wrapper holds the position and tilt. */
.talk-ciela-wrap { position: absolute; right: 0; bottom: 4%; width: 210px; transform: rotate(7deg); }
.talk .talk-ciela { width: 210px; height: 210px; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .4)); }

/* One column at 900px and below: text first, centred, art below. */
@media (max-width: 900px) {
  .talk-grid { grid-template-columns: 1fr; gap: 48px; }
  .talk-text, .talk-art { grid-column: 1; grid-row: auto; }
  .talk-text { text-align: center; }
  .talk-lead { margin-left: auto; margin-right: auto; }
  .talk-points { display: inline-flex; text-align: left; }
}

/* Phones: a shorter art box, smaller phone, Ciela and text, and bubbles pulled in over the phone. */
@media (max-width: 600px) {
  .talk-art { height: 520px; }
  .talk-phone { transform: rotate(-3deg) scale(.84); }
  .talk-b1 { left: 8%; top: 14%; font-size: 16px; padding: 10px 14px; }
  .talk-b2 { right: 6%; top: 42%; font-size: 16px; padding: 10px 14px; }
  .talk-b3 { left: 10%; top: 66%; font-size: 16px; padding: 10px 14px; }
  .talk-av { width: 22px; height: 22px; }
  .talk-ciela-wrap { width: 150px; }
  .talk .talk-ciela { width: 150px; height: 150px; }
  .talk-wave { gap: 10px; padding: 10px 14px; }
  .talk-bars { gap: 2px; }
  .talk-bars i { width: 3px; }
}

/* ===== map ===== */
/* Latvija section: an illustrated map with eleven place pins, and a details card beside it. */
.map { overflow: hidden; }

/* Map on the left, the card on the right; one column from 900px. */
.map-stage { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: center; }
@media (max-width: 900px) {
  .map-stage { grid-template-columns: minmax(0, 1fr); }
}

/* The map frame: a rounded sea board with a blue lip. */
.map-board { position: relative; container-type: inline-size; aspect-ratio: 1000 / 568; border-radius: var(--r-xl); border: 2px solid #9ED8F5; box-shadow: 0 6px 0 #9ED8F5, var(--shadow-soft); background: #BAE7FC; overflow: hidden; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-svg text { font-family: var(--font); }

/* Map art: sea, land, forests, fields, water, roads. Fixed colours, drawn from MapArt.module.css. */
.map-sea { fill: #BAE7FC; }
.map-wave { fill: none; stroke: #E4F6FE; stroke-width: 3; stroke-linecap: round; }
.map-neighbour { fill: #E4F7D6; }
.map-land-edge { fill: #559A07; stroke: #559A07; stroke-width: 5; stroke-linejoin: round; }
.map-land { fill: #A2E271; stroke: #76D52F; stroke-width: 5; stroke-linejoin: round; }
.map-field { fill: #C7D844; }
.map-furrow { fill: none; stroke: #C0C73E; stroke-width: 1.6; stroke-linecap: round; }
.map-hill { fill: #8FD659; }
.map-hill-light { fill: #B5EB8A; }
.map-river { fill: none; stroke: #72CEF9; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.map-lake { fill: #72CEF9; }
.map-trunk { fill: #8A5A2B; }
.map-pine, .map-leaf-dark { fill: #53940B; }
.map-leaf { fill: #76D52F; }
.map-road { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 9; opacity: .9; }

/* Names on the map: sea in italic blue, neighbours in spaced sage capitals, Rīga in ink with a white halo. */
.map-sea-name { fill: #5BB4E0; font-size: 22px; font-style: italic; font-weight: 800; letter-spacing: 1px; opacity: .75; }
.map-nb-name { fill: #A9C795; font-size: 20px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; }
.map-city { fill: #fff; stroke: #3C3C3C; stroke-width: 4; }
.map-city-dot { fill: #9E3039; }
.map-city-name { fill: #3C3C3C; font-size: 26px; font-weight: 900; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }

/* Boats bob and clouds drift across the map. */
.map-boat { animation: map-bob 4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.map-cloud { animation: map-drift 70s linear infinite; }
.map-cloud-slow { animation: map-drift 110s linear infinite; animation-delay: -40s; }
@keyframes map-bob { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
@keyframes map-drift { from { transform: translateX(-260px); } to { transform: translateX(1040px); } }

/* Pins: round coins with a name label. They pop in one after another when the map comes on screen. */
.map-pin { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px 7px; transform: translate(-50%, -50%) scale(0); transition: transform .6s var(--ease-spring) calc(var(--i, 0) * 80ms); }
.map-board.in .map-pin { transform: translate(-50%, -50%) scale(1); }
.no-js .map-pin { transform: translate(-50%, -50%); }
.map-pin.is-on { z-index: 3; }

/* The coin: the place colour with a lip; its emoji sits in the middle. */
.map-coin { position: relative; display: grid; place-items: center; width: clamp(26px, 6.2cqw, 50px); aspect-ratio: 1; border-radius: 50%; background: var(--pin); border: clamp(2px, .4cqw, 3px) solid #fff; box-shadow: 0 5px 0 var(--pin-shade), 0 10px 14px rgba(0, 0, 0, .18); font-size: clamp(13px, 3cqw, 24px); line-height: 1; transition: transform .25s var(--ease-spring); }
.map-pin:hover .map-coin { transform: translateY(-3px) scale(1.1); }
.map-pin.is-on .map-coin { transform: scale(1.22); }

/* The pulsing ring around the selected coin. */
.map-coin::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--pin); z-index: -1; opacity: 0; }
.map-pin.is-on .map-coin::before { animation: map-ring 1.6s ease-out infinite; }
@keyframes map-ring { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }

/* The name label under each coin. */
.map-name { display: block; margin-top: 5px; padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 900; font-size: clamp(9px, 1.6cqw, 12.5px); line-height: 1.5; white-space: nowrap; box-shadow: 0 2px 0 rgba(0, 0, 0, .1); }
@media (max-width: 600px) {
  .map-pin .map-name { display: none; }
  .map-pin.is-on .map-name { display: block; }
}

/* The details card: a tinted top in the place colour, then the place's game. */
.map-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; min-height: 380px; overflow: hidden; }
.map-card-top { position: absolute; top: 0; left: 0; right: 0; height: 110px; background: var(--pin); opacity: .14; }
.map-card-body { position: relative; flex: 1; display: flex; flex-direction: column; gap: 11px; transition: opacity .18s ease; }
.map-card-coin { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--pin); border: 3px solid #fff; box-shadow: 0 5px 0 var(--pin-shade), 0 10px 14px rgba(0, 0, 0, .18); font-size: 36px; line-height: 1; }
.map-card-place { font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--pin-shade); }
.map-card-title { font-size: 28px; line-height: 1.1; }
.map-card-sub { font-size: 18px; color: var(--text); }

/* The example: two chunky tiles with a sign between them. */
.map-card-example { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.map-tile { display: inline-block; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); background: #fff; color: var(--ink); font-weight: 800; font-size: 17px; line-height: 1.2; }
.map-tile-to { background: var(--green-tint); border-color: var(--green); box-shadow: 0 3px 0 var(--green); color: var(--green-dark); }
.map-sign { font-size: 20px; font-weight: 800; color: var(--sub); }

/* The character, at the foot of the card. */
.map-card-who { margin-top: auto; padding-top: 14px; border-top: 2px solid var(--line); }
.map-who-name { font-size: 17px; font-weight: 900; color: var(--ink); }
.map-who-role { font-size: 15px; color: var(--sub); }
.map-card-go { width: 100%; }

/* Previous and next: step through the places without aiming at a pin (the easy way on a phone). */
.map-card-nav { position: absolute; z-index: 2; top: 20px; right: 20px; display: flex; gap: 8px; }
.map-step { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); color: var(--ink); transition: transform .1s, box-shadow .1s; }
.map-step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.map-step:hover { border-color: var(--red-soft); color: var(--red); }
.map-step:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line); }

/* ===== events-plus ===== */
/* A. Seasonal events band: red, with a star field, two woven belts and three Cielas. */
.ev { padding-top: clamp(110px, 12vw, 140px); padding-bottom: clamp(110px, 12vw, 140px); background: radial-gradient(1000px 800px at 50% 0%, var(--red-bright), var(--red) 50%, var(--red-dark)); overflow: hidden; position: relative; }
.ev .wrap { position: relative; z-index: 1; }

/* White star pattern over the red. */
.ev-stars { position: absolute; inset: 0; background-image: var(--auseklis-white); background-size: 160px; pointer-events: none; }

/* Two woven belts, top and bottom, sliding sideways forever (the bottom one the other way). */
.ev-belt { position: absolute; left: 0; right: 0; height: 36px; background-image: var(--belt); background-size: 72px 36px; background-repeat: repeat-x; animation: ev-belt-slide 6s linear infinite; pointer-events: none; }
.ev-belt-top { top: 0; }
.ev-belt-bottom { bottom: 0; animation-direction: reverse; }
@keyframes ev-belt-slide { from { background-position-x: 0; } to { background-position-x: 72px; } }

/* Falling snow sparkles: four-point stars drifting down at different speeds. */
.ev-snow { position: absolute; inset: 0; pointer-events: none; }
.ev-flake { position: absolute; top: 0; left: var(--x); width: var(--s); height: var(--s); background: #fff; opacity: .5; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: ev-fall var(--dur) linear var(--delay) infinite; }
@keyframes ev-fall { from { transform: translate3d(0, -20px, 0); } to { transform: translate3d(0, 1200px, 0); } }

/* The trio: three Cielas standing on a row, the middle one biggest and in front. */
.ev-trio { display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 3vw, 40px); }
.ev-fig { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; }
.ev-fig-1 { width: clamp(110px, 22vw, 240px); }
.ev-fig-2 { width: clamp(140px, 28vw, 310px); margin: 0 -3%; z-index: 2; }
.ev-fig-3 { width: clamp(110px, 22vw, 240px); }
.ev-inner { position: relative; width: 100%; }
.ev-fig-1 .ev-inner { transform: rotate(-6deg); }
.ev-fig-3 .ev-inner { transform: rotate(6deg); }

/* The round stage behind each bird. */
.ev-stage { position: absolute; left: 50%; top: 50%; z-index: 0; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background-color: rgba(255, 255, 255, .1); background-image: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .3), transparent 55%); border: 2px solid rgba(255, 255, 255, .18); }

/* The bird bobs gently; each one has its own phase. */
.ev-bird { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .3)); animation: ev-bob 3s ease-in-out infinite alternate; }
.ev-fig-1 .ev-bird { animation-delay: -.6s; }
.ev-fig-2 .ev-bird { animation-delay: -1.5s; }
.ev-fig-3 .ev-bird { animation-delay: -2.2s; }
@keyframes ev-bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* The white pill under each bird. */
.ev-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; background: #fff; color: var(--red); font-weight: 900; font-size: 16px; line-height: 1.2; padding: 9px 18px; border-radius: 999px; box-shadow: 0 4px 0 rgba(43, 20, 24, .25); white-space: nowrap; }
.ev-chip svg { width: 16px; height: 16px; flex: none; }

@media (max-width: 600px) {
  .ev-trio { gap: 6px; }
  .ev-fig-1, .ev-fig-3 { width: 26vw; }
  .ev-fig-2 { width: 34vw; }
  .ev-chip { font-size: 12px; padding: 6px 9px; gap: 4px; }
  .ev-chip svg { width: 12px; height: 12px; }
}

/* B. Free vs Plus plans on cream. */
.plans { background: var(--cream); overflow: hidden; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; max-width: 940px; margin: 0 auto; }
@media (max-width: 800px) {
  .plan-grid { grid-template-columns: 1fr; }
}

/* Shared plan card: a padded column, with the footer pushed to the bottom. */
.plan-card { position: relative; border-radius: var(--r-xl); padding: clamp(26px, 4vw, 40px); display: flex; flex-direction: column; }
.plan-card h3 { font-size: 30px; line-height: 1.1; }
.plan-price { font-weight: 800; font-size: 17px; color: var(--sub); margin: 4px 0 20px; }

/* Lists: a tick and a line of text per item; items rise in one after another. */
.plan-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--ink); margin-bottom: 12px; break-inside: avoid; opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease-out) calc(var(--i, 0) * 50ms + .2s), transform .5s var(--ease-out) calc(var(--i, 0) * 50ms + .2s); }
.plan-list li:last-child { margin-bottom: 0; }
.plan-card.in .plan-list li { opacity: 1; transform: none; }
.no-js .plan-list li { opacity: 1; transform: none; }
.plan-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.plan-tick svg { width: 12px; height: 12px; }
.plan-tick path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Free card: white paper, the button at the bottom. */
.plan-free .plan-foot { margin-top: auto; padding-top: 26px; }
.plan-foot .btn { width: 100%; }

/* Plus card: a plum night with gold edges and a gold lip. Tilt uses the rotate property, so the reveal transform still works. */
.plan-plus { background: linear-gradient(160deg, var(--plum-light) 0%, var(--plum) 55%, var(--night) 100%); color: #fff; border: 2px solid rgba(255, 200, 0, .5); box-shadow: 0 6px 0 #0E0618, 0 30px 60px -24px rgba(42, 19, 64, .6); rotate: 1deg; }
.plan-plus .plan-price { color: rgba(255, 255, 255, .75); max-width: 70%; }
.plan-plus .plan-list li { color: #fff; }
.plan-plus .plan-tick { background: var(--gold); }
.plan-plus .plan-tick path { stroke: #2A1340; }
.plan-plus .plan-list { columns: 1; }
.plan-plus h3, .plan-plus .plan-price, .plan-plus .plan-list { position: relative; z-index: 1; }

/* Plus decoration: stars and a gold glow, clipped to the card's corners. */
.plan-deco { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.plan-stars { position: absolute; inset: 0; background-image: var(--auseklis-white); background-size: 160px; opacity: .6; }
.plan-glow { position: absolute; top: -140px; right: -140px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 0, .28), transparent 70%); }

/* Ciela peeking over the Plus card's top-right corner. */
.plan-ciela { position: absolute; z-index: 2; top: -18px; right: 14px; width: 130px; height: auto; transform: rotate(8deg); pointer-events: none; }

@media (max-width: 800px) {
  .plan-plus { rotate: 0deg; }
}
@media (max-width: 600px) {
  .plan-plus .plan-list { columns: 1; }
}
@media (max-width: 420px) {
  .plan-ciela { display: none; }
}

/* The middle outfit's raised wings run off its picture: fade the tips instead of showing a cut edge. */
.ev-fig-2 img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }

/* ===== end ===== */
/* Free guides: cream band with the faint red star pattern. */
.guides { padding-bottom: clamp(24px, 3vw, 40px); }

/* Guide grid: 4 columns, 2 on tablets, 1 on phones. */
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .guide-grid { grid-template-columns: 1fr; } }

/* Guide card: a white card with a tinted badge, a title and one line. */
.guide-card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border-radius: var(--r-m); text-decoration: none; color: var(--ink); transition: transform .2s var(--ease-out), border-color .2s; }
.guide-card:hover { transform: translateY(-3px); border-color: var(--red-soft); }

/* Badge: a 54px tinted tile with a short sample; it wiggles on hover. */
.guide-badge { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-weight: 900; font-size: 20px; line-height: 1; transition: transform .4s var(--ease-spring); }
.guide-card:hover .guide-badge { transform: rotate(-6deg) scale(1.08); }
.guide-badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.guide-b-red { background: var(--red-tint); color: var(--red); }
.guide-b-blue { background: var(--blue-tint); color: var(--blue-dark); }
.guide-b-gold { background: #FFF6D6; color: #B98900; }
.guide-b-green { background: #EAF7E1; color: var(--green-dark); }
.guide-b-orange { background: #FFF3E0; color: var(--orange-dark); }
.guide-b-purple { background: #F4ECFF; color: #8241C1; }
.guide-b-pink { background: #FFE9F2; color: var(--pink); }
.guide-b-teal { background: #E0F7F3; color: var(--teal-dark); }

/* Title and second line, stacked. */
.guide-text { display: block; min-width: 0; }
.guide-text b { display: block; font-weight: 900; font-size: 18px; line-height: 1.2; color: var(--ink); }
.guide-text > span { display: block; font-size: 15px; color: var(--sub); }

/* "See the whole course": a quiet outlined chunky button, centred under the grid. */
.guide-more { display: flex; align-items: center; justify-content: center; width: fit-content; margin: 32px auto 0; padding: 12px 20px; font-weight: 900; font-size: 17px; line-height: 1.1; color: var(--red); background: #fff; border: 2px solid var(--red-soft); border-radius: 14px; box-shadow: 0 4px 0 var(--red-soft); text-decoration: none; transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out); }
.guide-more:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--red-soft); }
.guide-more:active { transform: translateY(4px); box-shadow: 0 0 0 var(--red-soft); }

/* Questions: cream band, sticky heading and Ciela on the left, the list on the right. */
.faq { padding-bottom: clamp(40px, 5vw, 64px); }
.faq-grid { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.faq-side { position: sticky; top: 120px; }

/* Calm Ciela with a floating thought bubble beside her head. */
.faq-ciela-wrap { position: relative; width: 200px; }
.faq-ciela { margin-top: 24px; }
.faq-bubble { position: absolute; top: 0; right: -16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--red); font-weight: 900; font-size: 24px; line-height: 1; box-shadow: 0 4px 0 var(--red-soft), var(--shadow-soft); animation: faq-float 2.6s ease-in-out infinite alternate; }
@keyframes faq-float { from { transform: translateY(0); } to { transform: translateY(-6px); } }

/* Each question: a white card with a round plus/minus at its right. */
.faq-item { border-radius: var(--r-m); margin-bottom: 12px; overflow: hidden; }
.faq-item[open] { border-color: var(--red-soft); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 900; font-size: 19px; line-height: 1.25; color: var(--ink); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* Round icon: a red-tint circle with a plus from two 14 x 3 bars; open it turns red with a minus. */
.faq-icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--red-tint); color: var(--red); transition: background .25s, color .25s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 3px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--red); color: #fff; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

/* Answer: fades and slides down when opened. */
.faq-item p { padding: 0 22px 20px; font-size: 17px; color: var(--text); }
.faq-item[open] > p { animation: faq-open .35s var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; text-align: center; }
  .faq-ciela-wrap { display: none; }
}

/* Closing call to action: a big red card with rays, a blinking face on a plate, and the store buttons. */
.final { padding: clamp(24px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.final-card { position: relative; overflow: hidden; text-align: center; border-radius: clamp(32px, 5vw, 56px); padding: clamp(48px, 8vw, 96px) 24px; background: radial-gradient(900px 600px at 50% 0%, var(--red-bright), var(--red) 50%, var(--red-dark)); box-shadow: 0 8px 0 var(--red-deep), var(--shadow-float); }
.final-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--auseklis-white); background-size: 160px; -webkit-mask-image: radial-gradient(ellipse at center, transparent 40%, #000 100%); mask-image: radial-gradient(ellipse at center, transparent 40%, #000 100%); }
.final-card > :not(.final-rays) { position: relative; }

/* Sunburst rays, turning slowly behind the face. */
.final-rays { position: absolute; left: 50%; top: 0; width: 1400px; height: 1400px; pointer-events: none; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .06) 0deg 7deg, transparent 7deg 14deg); -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); animation: final-spin 120s linear infinite; }
@keyframes final-spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* White round plate that holds the face. */
.final-plate { width: 190px; height: 190px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .2); }

/* The face bobs up and down and blinks. */
.final-face { width: 130px; height: auto; margin: 0 auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .25)); animation: final-bob 3s ease-in-out infinite alternate; }
@keyframes final-bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.final-face .eye { transform-box: fill-box; transform-origin: center; animation: final-blink 4.5s infinite; }
@keyframes final-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

.final-card .sub { margin-bottom: 30px; }
.final-card .cta-row { justify-content: center; }

/* Footer: ink band with the Lielvārde belt on its top edge. */
.foot { position: relative; background: var(--ink); color: rgba(255, 255, 255, .7); padding: 48px 0 40px; font-size: 15px; font-weight: 600; }
.foot-belt { position: absolute; top: 0; left: 0; right: 0; height: 18px; background-image: var(--belt); background-size: 36px 18px; background-repeat: repeat-x; opacity: .9; }

/* Top row: logo on the left, links on the right. */
.foot-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-top: 34px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 900; font-size: 24px; text-decoration: none; }
.foot-brand img { width: 36px; height: 36px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; color: #fff; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* Bottom row: copyright and the legal line. */
.foot-bottom { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot-legal { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .5); }

@media (max-width: 600px) {
  .foot-top { flex-direction: column; align-items: center; text-align: center; }
  .foot-links { justify-content: center; }
}
