/* Pradžios puslapis: hero su scenomis kaip istorijose ir spaudinėjamas demo. Pirmiausia telefonui, platesniam ekranui tekstas ir telefonas greta. */
:root {
  --night: #0f0d12;
  --graphite: #1a1720;
  --line: #302b36;
  --paper: #f4f1ec;
  --soft: #c4c0c9;
  --muted: #aaa4b2;
  --record: #ff4a3d;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
  font-family: var(--font);
  background: var(--night);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; overflow-x: clip; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--record); outline-offset: 4px; }
.accent { color: var(--record); }
.nowrap { white-space: nowrap; }

.top { padding: 4px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { display: block; width: 70px; height: auto; }
.brand span { padding-left: 14px; border-left: 1px solid #403943; color: var(--soft); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.getapp { font-size: 14px; font-weight: 650; color: var(--night); background: var(--paper); border-radius: 999px; padding: 9px 16px; text-decoration: none; }

/* Telefonas */
.phone { position: relative; aspect-ratio: 472 / 1012; background: #0a090c; border-radius: 14% / 6.5%; box-shadow: 0 0 0 1px #2c2732, 0 40px 90px rgba(0, 0, 0, .55); }
.screen { position: absolute; inset: 6px; border-radius: 12.6% / 5.9%; overflow: hidden; background: var(--paper); isolation: isolate; }
.layer { position: absolute; inset: 0; }
.layer img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.tap { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(15, 13, 18, .25); border: 2px solid rgba(255, 255, 255, .92); pointer-events: none; z-index: 5; }
.toast { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); background: rgba(15, 13, 18, .92); color: var(--paper); font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 999px; white-space: nowrap; z-index: 6; pointer-events: none; }
.hot { position: absolute; border-radius: 10px; cursor: pointer; z-index: 4; -webkit-tap-highlight-color: transparent; }
.hot.flash { background: rgba(255, 74, 61, .2); box-shadow: inset 0 0 0 2px var(--record); }

/* Garso banga ant redaktoriaus ekrano: tylos parausta ir susitraukia */
.wave { position: absolute; left: 3.2%; top: 57.2%; width: 93.6%; height: 6.4%; display: flex; align-items: center; background: var(--paper); z-index: 3; }
.wave .s { display: flex; align-items: center; justify-content: space-evenly; height: 100%; flex: none; overflow: hidden; }
.wave .s i { display: block; width: 2px; border-radius: 1px; background: var(--night); }
.wave .g { flex: none; height: 100%; position: relative; overflow: hidden; transition: flex-basis .8s cubic-bezier(.6, 0, .2, 1); }
.wave .g::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #b9b3bd; }
.wave .g.found { background: repeating-linear-gradient(135deg, rgba(255, 74, 61, .5) 0 2px, transparent 2px 5px); }
.wave .g.found::before { background: var(--record); }

.chip { position: absolute; z-index: 8; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; color: var(--paper); background: rgba(26, 23, 32, .95); border: 1px solid #3a3440; border-radius: 999px; padding: 8px 13px 8px 10px; white-space: nowrap; box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }
.chip svg, .facts svg, .hint svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip svg { width: 16px; height: 16px; color: var(--record); flex: none; }
.chip.l { left: -14%; }
.chip.r { right: -14%; }

/* Scenos */
.story { position: relative; }
.stage { position: relative; height: 100svh; min-height: 560px; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 16px; padding: 14px 20px 22px; }
.copy { text-align: center; }
.storybar { display: flex; align-items: center; gap: 10px; max-width: 460px; margin: 0 auto 14px; }
.segs { flex: 1; display: flex; gap: 5px; }
.pause { flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--soft); cursor: pointer; display: grid; place-items: center; }
.pause svg { width: 15px; height: 15px; fill: currentColor; }
.pause .i-play, .pause.paused .i-pause { display: none; }
.pause.paused .i-play { display: block; }
html:not(.js) .storybar { display: none; }
.segs button { flex: 1; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.segs button span { display: block; width: 100%; height: 3px; border-radius: 2px; background: #3a3440; overflow: hidden; }
.segs button i { display: block; height: 100%; width: 0; background: var(--paper); }
.scenes { list-style: none; margin: 0; padding: 0; display: grid; }
.scenes li { grid-area: 1 / 1; }
.js .scenes li { opacity: 0; transform: translateY(14px); visibility: hidden; transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }
.js .scenes li.on { opacity: 1; transform: none; visibility: visible; transition: opacity .45s ease .05s, transform .45s ease .05s; }
html:not(.js) .scenes li + li { display: none; }
.scenes h1, .scenes h2 { margin: 0 auto; max-width: 15ch; font-size: clamp(29px, 8vw, 42px); font-weight: 750; letter-spacing: -.045em; line-height: 1.04; text-wrap: balance; }
.sub { display: none; margin: 18px 0 0; color: var(--soft); font-size: 18px; line-height: 1.6; max-width: 34ch; }
.scenes .stores { display: none; }
.story .device { position: relative; min-height: 0; }
.story .phone { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); height: min(100%, calc((100vw - 96px) * 2.144)); }
.hint { position: absolute; right: 18px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: none; place-items: center; color: var(--soft); transition: opacity .3s; }
.hint svg { width: 18px; height: 18px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* Pabandyk pats */
.try { display: grid; justify-items: center; gap: 24px; padding: 72px 20px 64px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--soft); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--record); animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .35; } }
.try h2, .get h2 { margin: 12px auto 18px; max-width: 14ch; font-size: clamp(30px, 8vw, 48px); font-weight: 750; letter-spacing: -.045em; line-height: 1.05; text-wrap: balance; }
.modes { display: inline-flex; gap: 3px; padding: 4px; background: var(--graphite); border: 1px solid var(--line); border-radius: 999px; }
.modes button { font: 650 14px var(--font); color: var(--soft); background: none; border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.modes button.on { background: var(--paper); color: var(--night); }
.try .phone { height: min(66svh, 700px, calc((100vw - 60px) * 2.144)); }

/* Ką verta žinoti */
.facts { width: min(100% - 40px, 1180px); margin: 0 auto; padding: 24px 0 40px; border-top: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.facts li { display: grid; gap: 6px; align-content: start; padding-top: 20px; }
.facts svg { width: 28px; height: 28px; color: var(--record); margin-bottom: 6px; }
.facts b { font-size: 17px; letter-spacing: -.02em; }
.facts span { color: var(--muted); font-size: 14px; line-height: 1.5; }

.get { display: grid; justify-items: center; text-align: center; padding: 72px 20px 88px; }
.app-icon { width: 96px; height: 96px; border-radius: 22.4%; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 11px; height: 56px; min-width: 178px; padding: 0 20px 0 16px; border-radius: 14px; background: #000; border: 1px solid #4a4450; color: var(--paper); text-decoration: none; transition: border-color .2s; }
.store:hover { border-color: var(--soft); }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store span { display: grid; text-align: left; font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: .01em; }

@media (max-width: 420px) {
  .store { min-width: 0; height: 52px; gap: 9px; padding: 0 14px 0 12px; }
  .store svg { width: 22px; height: 22px; }
  .store span { font-size: 17px; }
  .store small { font-size: 10px; }
}
footer { width: min(100% - 40px, 1180px); margin: 0 auto; border-top: 1px solid var(--line); padding: 24px 0 32px; display: flex; flex-wrap: wrap; gap: 16px 28px; font-size: 13px; color: var(--muted); }

@media (min-width: 900px) {
  .brand img { width: 86px; }
  .brand span { font-size: 12px; padding-left: 18px; }
  .brand { gap: 18px; }
  .stage { width: min(100% - 80px, 1180px); margin: 0 auto; padding: 0 0 32px; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px 48px; }
  .top { grid-column: 1 / -1; padding-top: 28px; }
  .copy { text-align: left; }
  .storybar { margin: 0 0 32px; max-width: 400px; }
  .scenes h1, .scenes h2 { margin: 0; max-width: 12ch; font-size: clamp(48px, 5.6vw, 78px); }
  .sub { display: block; }
  .scenes .stores { display: flex; justify-content: flex-start; margin-top: 30px; }
  .story .device { height: 100%; display: grid; align-items: center; justify-items: center; }
  .story .phone { position: relative; top: auto; left: auto; transform: none; height: min(calc(100svh - 150px), 760px); }
  .chip { font-size: 14px; }
  .chip.l { left: auto; right: 80%; }
  .chip.r { right: auto; left: 80%; }
  .hint { display: grid; right: 0; bottom: 32px; }
  .try { width: min(100% - 80px, 1180px); margin: 0 auto; grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 96px; padding: 120px 0 110px; text-align: left; }
  .try .device { order: -1; }
  .try h2 { margin-left: 0; }
  .try .phone { height: min(82svh, 760px); }
  .facts { width: min(100% - 80px, 1180px); }
  .facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  footer { width: min(100% - 80px, 1180px); }
}

@media (prefers-reduced-motion: reduce) {
  .js .scenes li, .js .scenes li.on, .wave .g { transition: none; }
  .hint svg, .dot { animation: none; }
}
