/* Varnelė website. Light only: linen paper, flag green, folk red. */
/* Fonts (SIL Open Font License), served from here so visitors' browsers don't call Google.
   Fraunces's latin file leaves out the combining marks (U+0304, U+0308, U+0329) that Google lists
   in both: with them, Chrome builds ū and Ū from u and a macron in that file, which has no place
   for the macron, so it lands on the next letter ("Ačiū!" showed as "Ačiu" and a dagger). The
   latin-ext file has ū and Ū whole. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(assets/fonts/fraunces-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(assets/fonts/fraunces-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --bg: #faf6ee;
  --paper: #ffffff;
  --ink: #1c211e;
  --muted: #62665f; /* 4.5:1 or more on every background here, the grey toggle tracks included */
  --line: rgba(28, 33, 30, 0.12);
  --field-line: #858981; /* a text field's edge: 3:1 on white and on linen */
  --green: #14553a;
  --green-2: #0f4430;
  --green-soft: rgba(20, 85, 58, 0.1);
  --red: #a8322b;
  --gold: #f0b429;
  --linen: #f4ecdb;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --site: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* Links to a section stop below the sticky header (main.js measures it). */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(20, 85, 58, 0.12); scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h, 80px) + 14px); }
/* No double-tap zoom delay on taps. */
a, button, input, label { touch-action: manipulation; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* The footer stays at the bottom of the window on short pages (and while the account loads). */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
main { flex: 1 0 auto; }
a { color: var(--green); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

kbd {
  display: inline-block;
  font: 600 0.78em/1 var(--sans);
  padding: 0.38em 0.55em 0.32em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  vertical-align: 0.08em;
}
.combo { white-space: nowrap; }
.combo kbd + kbd { margin-left: 3px; }

/* The woven sash band: 2 px threads, so it is only ever shown at its own size. */
.juosta { height: 34px; background: url(assets/juosta.svg) repeat-x 0 0 / 20px 34px; }

/* Background: sash motifs weave in, drift and unravel (main.js). Cards and the demo sit on top of it. */
.weave { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font: 600 14px/1 var(--sans);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--green-2); }
.btn:active { transform: translateY(1px); }
.btn.big { height: 54px; padding: 0 24px 0 18px; font-size: 16px; border-radius: 14px; box-shadow: 0 10px 24px -12px rgba(20, 85, 58, 0.6); }
.btn .glyph { color: var(--linen); flex: none; }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Header */
/* The header stays at the top; a line and a soft shadow once the page scrolls under it, across
   the content's width and fading out toward the sides. */
.top-bar { position: sticky; top: 0; z-index: 40; background: rgba(250, 246, 238, 0.9); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.top-bar::after {
  content: ""; position: absolute; top: 100%; left: 50%; width: min(1040px, 100%); height: 12px; transform: translateX(-50%);
  border-top: 1px solid var(--line); background: linear-gradient(rgba(28, 33, 30, 0.06), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.top-bar.stuck::after { opacity: 1; }
/* Brand left, links in the middle, language and buttons right. */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 20px; padding-top: 16px; padding-bottom: 16px; }
.brand { justify-self: start; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 650 21px/1 var(--serif); letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.top-nav { display: flex; gap: 28px; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.top .btn { height: 36px; padding: 0 14px; white-space: nowrap; }
.lang { display: flex; padding: 3px; border-radius: 9px; background: rgba(28, 33, 30, 0.06); }
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 600 12.5px/1 var(--sans); padding: 7px 9px; border-radius: 7px;
}
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.lang button:hover, .billing button:hover { color: var(--ink); }

/* Hero */
.hero { text-align: center; padding-top: 56px; padding-bottom: 34px; }
.hero h1 { font-size: clamp(36px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -0.025em; }
.hero h1 span { display: block; }
.lead { max-width: 640px; margin: 22px auto 0; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.lead kbd { font-size: 0.74em; }
.cta { margin-top: 30px; }
/* Only on phones and tablets, where Chrome can't add extensions. */
.cta-note { display: none; margin-top: 12px; font-size: 14.5px; color: var(--muted); }
@media (hover: none) and (pointer: coarse) { .cta-note { display: block; } }
/* Varnelė is in this browser: the extension marks <html data-extension> before the page is drawn
   (its src/site-mark.js), so no "Pridėti prie Chrome" anywhere; a note in its place in the hero and
   the free plan, and no closing call to add it. */
.installed-note { display: none; }
html[data-extension] [data-store-link], html[data-extension] .final, html[data-extension] .cta-note { display: none !important; }
html[data-extension] .installed-note {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 12px 20px;
  border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 16px; font-weight: 600;
}
html[data-extension] .plan .installed-note { display: flex; min-height: 46px; padding: 8px 14px; border-radius: 12px; font-size: 15px; }

/* Showcase */
.show { padding-bottom: 40px; }
.sites, .sites-tabs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.sites { margin-bottom: 18px; }
.sites button {
  position: relative; overflow: hidden;
  appearance: none; border: 1px solid transparent; background: transparent; cursor: pointer;
  font: 600 14px/1 var(--sans); color: var(--muted); padding: 10px 14px; border-radius: 999px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.sites button:hover { color: var(--ink); }
.sites button[aria-selected="true"] { color: var(--ink); background: var(--paper); border-color: var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.sites button i { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; }
.sites button[aria-selected="true"] i { transform: scaleX(var(--p, 0)); }
.sites-more { font: italic 500 14px/1 var(--serif); color: var(--muted); padding: 0 6px 0 10px; display: inline-flex; align-items: center; gap: 8px; }
.sites-more::before { content: ""; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }

.browser {
  position: relative; margin: 0 auto; max-width: 940px; border-radius: 16px; overflow: hidden; background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(28, 33, 30, 0.35), 0 12px 24px -16px rgba(28, 33, 30, 0.2);
}
.browser-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; background: #f0ebe1; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(28, 33, 30, 0.16); }
.url {
  flex: 1; max-width: 460px; margin: 0 auto; height: 28px; border-radius: 999px; background: var(--paper);
  display: flex; align-items: center; gap: 7px; padding: 0 12px; font: 13px/1 var(--site); color: #4b4f4a;
}
.url svg { fill: none; stroke: #8a8d87; stroke-width: 1.4; flex: none; }
.ext { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; }
.ext img { border-radius: 5px; transition: transform 0.25s; }
.ext.ping img { animation: ping 0.6s ease-out; }
@keyframes ping { 40% { transform: scale(1.22); } }

.viewport { position: relative; height: 440px; overflow: hidden; font-family: var(--site); color: #1f1f1f; }
/* The bottom padding keeps the mock sites clear of the keys. */
.scene {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px 20px 84px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s, visibility 0s 0.5s;
}
.scene.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s, transform 0.5s; }

/* Text being typed and fixed */
.field { font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.6em; text-align: left; }
.caret { display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: -0.18em; background: #1f1f1f; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sel { background-image: linear-gradient(rgba(56, 120, 230, 0.26), rgba(56, 120, 230, 0.26)); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 0.6s ease-in-out; }
.sel.go { background-size: 100% 100%; }
.sel.done { background-size: 0% 100%; transition: none; }
.w { white-space: nowrap; }
.chg, .ins { display: inline-block; border-radius: 3px; white-space: pre; }
.chg.fixed { animation: flip 0.42s ease both; background: rgba(20, 85, 58, 0.14); color: var(--green); box-shadow: 0 0 0 1px rgba(20, 85, 58, 0.14); }
.ins.fixed { animation: pop 0.42s cubic-bezier(0.3, 1.6, 0.5, 1) both; background: rgba(20, 85, 58, 0.14); color: var(--green); font-weight: 700; padding: 0 1px; }
.chg.settle, .ins.settle { background: transparent; box-shadow: none; color: inherit; font-weight: inherit; padding: 0; transition: background 0.8s, color 0.8s, box-shadow 0.8s; }
@keyframes flip {
  0% { transform: translateY(0); opacity: 1; }
  45% { transform: translateY(-0.5em); opacity: 0; }
  55% { transform: translateY(0.5em); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes pop { from { transform: scale(0); } }

/* What Varnelė shows on the page (mirrors the extension's src/content.js) */
.v-fab, .v-menu, .v-pill, .v-card, .v-rcard { position: absolute; z-index: 5; opacity: 0; transform: translateY(4px) scale(0.96); transition: opacity 0.2s, transform 0.2s; pointer-events: none; font: 13px/1.45 var(--sans); }
.v-fab.on, .v-menu.on, .v-pill.on, .v-card.on, .v-rcard.on { opacity: 1; transform: none; }
.vi { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* The bird, and the arrow beside it that opens the menu. */
.v-fab {
  display: flex; width: 54px; height: 30px; border-radius: 9px; background: var(--green); border: 2px solid #fff; color: #f4ecdb;
  box-shadow: 0 14px 34px -12px rgba(17, 24, 39, 0.3), 0 2px 6px rgba(17, 24, 39, 0.08);
}
.v-bird, .v-more { display: grid; place-items: center; transition: background-color 0.12s; }
.v-bird { width: 26px; border-radius: 7px 0 0 7px; }
.v-more { flex: 1; border-left: 1px solid rgba(244, 236, 219, 0.3); border-radius: 0 7px 7px 0; }
.v-bird.hover, .v-more.hover { background: rgba(255, 255, 255, 0.16); }
.v-fab.press { animation: press 0.35s ease; }
@keyframes press { 50% { transform: scale(0.86); } }
.v-menu, .v-pill, .v-card, .v-rcard { background: #fff; border: 1px solid rgba(17, 24, 39, 0.11); box-shadow: 0 14px 34px -12px rgba(17, 24, 39, 0.3), 0 2px 6px rgba(17, 24, 39, 0.08); color: #17191c; white-space: nowrap; }
.v-menu { z-index: 7; display: flex; flex-direction: column; min-width: 200px; padding: 4px; border-radius: 10px; }
.v-item { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 6px; transition: background-color 0.1s; }
.v-item.hover { background: rgba(17, 24, 39, 0.06); }
.v-item .vi { color: var(--green); }
.v-sep { height: 1px; margin: 4px 6px; background: rgba(17, 24, 39, 0.11); }
.v-group { padding: 5px 10px 3px; color: #66707a; font-size: 12px; }
.v-pill { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; font-weight: 500; }
.v-pill kbd { font-size: 11px; padding: 2px 4px; border-width: 1px; color: #66707a; font-weight: 500; }
/* The bird pecking seeds while it fixes: same as src/lib/loader.js in the extension. */
.vl-scene { flex: none; overflow: visible; color: var(--green); }
.vl-bird { transform-box: view-box; transform-origin: 18px 21.4px; animation: vl-peck 1.3s ease-in-out infinite; }
.vl-seed { transform-box: fill-box; transform-origin: center; animation: vl-eat 1.3s linear infinite; }
.vl-words { display: inline-block; min-width: 9.6em; }
@keyframes vl-peck {
  0%, 38%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(45deg); }
  58% { transform: rotate(37deg); }
  64% { transform: rotate(45deg); }
  78% { transform: rotate(0deg); }
}
@keyframes vl-eat {
  0%, 49% { opacity: 1; transform: none; }
  53%, 80% { opacity: 0; transform: scale(0.2); }
  81% { opacity: 0; transform: translateY(-9px); }
  95%, 100% { opacity: 1; transform: none; }
}
.v-card { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 12px; }
.v-badge { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.v-title { font-weight: 600; margin-right: 6px; }
.v-undo, .v-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid rgba(17, 24, 39, 0.11); border-radius: 7px; font-weight: 500; transition: background-color 0.12s, transform 0.12s; }
.v-x { display: grid; place-items: center; width: 28px; height: 28px; color: #66707a; }
/* A rewrite, before it is put in. */
.v-rcard { width: min(400px, calc(100% - 16px)); border-radius: 12px; overflow: hidden; white-space: normal; }
.v-rhead { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 8px 8px 12px; }
.v-rhead .v-title { flex: 1; }
.v-rtext { padding: 10px 12px; border-top: 1px solid rgba(17, 24, 39, 0.11); white-space: pre-wrap; overflow-wrap: anywhere; }
.v-rfoot { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid rgba(17, 24, 39, 0.11); }
.v-btn.primary { background: var(--green); border-color: transparent; color: #fff; }
.v-btn.primary.hover { background: #0f4430; }
.v-btn kbd { font-size: 11px; padding: 2px 4px; border: 1px solid currentColor; border-radius: 4px; color: inherit; opacity: 0.7; background: none; box-shadow: none; }
.v-hint { margin-left: auto; color: #66707a; font-size: 12px; }
/* The pointer, in the scenes picked with the mouse. */
.v-cursor {
  position: absolute; z-index: 8; left: 0; top: 0; opacity: 0; pointer-events: none; fill: #17191c; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(17, 24, 39, 0.35)); transition: opacity 0.2s, transform 0.12s; transform-origin: 5px 3px;
}
.v-cursor.on { opacity: 1; }
.v-cursor.press { transform: scale(0.82); }
/* The text put in by a rewrite, before it settles. */
.field .swap { border-radius: 3px; background: rgba(20, 85, 58, 0.14); color: var(--green); animation: swap-in 0.45s ease both; transition: background 0.8s, color 0.8s; }
.field .swap.settle { background: transparent; color: inherit; }
@keyframes swap-in { from { opacity: 0; } }

.keys { position: absolute; z-index: 6; left: 50%; bottom: 22px; display: flex; align-items: center; gap: 8px; transform: translate(-50%, 12px); opacity: 0; transition: opacity 0.25s, transform 0.25s; font-family: var(--sans); }
.keys.on { opacity: 1; transform: translate(-50%, 0); }
.key {
  min-width: 58px; height: 44px; padding: 0 14px; display: grid; place-items: center;
  background: #fff; border: 1px solid rgba(28, 33, 30, 0.18); border-bottom-width: 4px; border-radius: 10px;
  font: 600 14px/1 var(--sans); color: var(--ink); box-shadow: 0 10px 20px -12px rgba(28, 33, 30, 0.5);
  transition: transform 0.1s, border-bottom-width 0.1s, background 0.1s, color 0.1s;
}
.key.wide { min-width: 130px; }

/* Pauses the demo (it would otherwise loop for as long as the page is open). */
.demo-pause {
  position: absolute; z-index: 7; right: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center;
  appearance: none; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--muted); cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.demo-pause:hover { color: var(--ink); background: #fff; }
.demo-pause svg { fill: currentColor; }
.demo-pause .i-play, .demo-pause.paused .i-pause { display: none; }
.demo-pause.paused .i-play { display: block; }
.key.down { transform: translateY(3px); border-bottom-width: 1px; background: #eaf3ee; color: var(--green); }
.plus { color: var(--muted); font-weight: 600; }

/* Mock: e-mail */
.m-mail { background: #f6f8fc; }
.mail-win { width: min(640px, 100%); background: #fff; border-radius: 12px; box-shadow: 0 4px 18px rgba(60, 64, 67, 0.18); overflow: hidden; font-size: 14px; }
.mail-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #f2f6fc; font-weight: 500; }
.mail-ctl { display: flex; gap: 10px; }
.mail-ctl i { width: 12px; height: 2px; background: #5f6368; opacity: 0.7; }
.mail-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #eceff3; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px; border: 1px solid #dadce0; border-radius: 999px; font-size: 13px; }
.chip b { width: 20px; height: 20px; border-radius: 50%; background: #a8322b; color: #fff; display: grid; place-items: center; font-size: 11px; }
.mail-body { padding: 14px; min-height: 148px; }
.mail-foot { display: flex; align-items: center; gap: 14px; padding: 10px 14px 14px; }
.mail-send { background: #0b57d0; color: #fff; border-radius: 18px; padding: 8px 22px; font-weight: 500; }
.tools { display: flex; gap: 12px; }
.tools i { width: 16px; height: 16px; border-radius: 4px; border: 1.6px solid #9aa0a6; opacity: 0.7; }

/* Mock: Teams */
.m-tm { background: #ebebeb; }
.tm-win { width: min(640px, 100%); display: grid; grid-template-columns: 52px 1fr; background: #f5f5f5; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); overflow: hidden; font-size: 14px; }
.tm-rail { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 16px 0; background: #ebebeb; }
.tm-rail i { width: 20px; height: 20px; border-radius: 5px; border: 1.6px solid #616161; opacity: 0.5; }
.tm-rail i:first-child { border-color: #5b5fc7; background: rgba(91, 95, 199, 0.14); opacity: 1; }
.tm-main { display: flex; flex-direction: column; min-width: 0; }
.tm-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e0e0e0; }
.tm-av { width: 32px; height: 32px; border-radius: 50%; background: #5b5fc7; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.tm-av.small { width: 28px; height: 28px; font-size: 11px; }
.tm-chat { padding: 16px 16px 20px; }
.tm-msg { display: flex; align-items: flex-start; gap: 10px; }
.tm-bubble { margin: 0; background: #fff; border-radius: 6px; padding: 8px 12px 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.tm-bubble .muted { display: block; margin-bottom: 2px; font-size: 12px; color: #616161; }
.tm-box { margin: 0 16px 16px; background: #fff; border-radius: 6px; border-bottom: 2px solid #5b5fc7; padding: 10px 12px 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.tm-box .field { min-height: 48px; font-size: 14px; }
.tm-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.tm-send { fill: none; stroke: #5b5fc7; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Mock: Classroom */
.m-gc { background: #fff; }
.gc-card { width: min(600px, 100%); font-size: 14px; color: #3c4043; }
.gc-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #1967d2; }
.gc-head div { display: flex; flex-direction: column; gap: 4px; }
.gc-head b { font: 400 24px/1.25 var(--site); color: #1967d2; }
.gc-head .muted { font-size: 13px; color: #5f6368; }
.gc-icon { width: 40px; height: 40px; border-radius: 50%; background: #1967d2; display: grid; place-items: center; flex: none; }
.gc-icon svg { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.gc-text { margin: 14px 0 18px 54px; }
.gc-private { border: 1px solid #dadce0; border-radius: 8px; padding: 14px 16px 16px; }
.gc-label { display: block; margin-bottom: 12px; font-weight: 500; }
.gc-reply { display: flex; align-items: flex-start; gap: 10px; }
.gc-av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #f0b429, #d9714f); flex: none; }
.gc-input { flex: 1; border: 1px solid #dadce0; border-radius: 18px; padding: 6px 14px; }
.gc-input .field { font-size: 14px; }

/* Mock: Facebook */
.m-fb { background: #f0f2f5; }
.fb-card { width: min(580px, 100%); background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); padding: 12px 16px 14px; font-size: 15px; }
.fb-head { display: flex; align-items: center; gap: 10px; }
.fb-head div { display: flex; flex-direction: column; line-height: 1.3; }
.fb-head .muted { font-size: 13px; color: #65676b; }
.fb-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #14553a, #3f8a63); flex: none; }
.fb-av.small { width: 32px; height: 32px; background: linear-gradient(135deg, #a8322b, #d9714f); }
.fb-text { margin: 10px 0 12px; }
.fb-stats { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #65676b; padding-bottom: 8px; }
.fb-stats .muted { margin-left: auto; color: #65676b; }
.fb-like-dot { width: 18px; height: 18px; border-radius: 50%; background: #1877f2; }
.fb-actions { display: flex; justify-content: space-around; border-top: 1px solid #ced0d4; border-bottom: 1px solid #ced0d4; padding: 7px 0; color: #65676b; font-weight: 600; font-size: 14px; }
.fb-reply { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.fb-input { flex: 1; background: #f0f2f5; border-radius: 18px; padding: 8px 12px; }

/* Pricing */
.pricing { padding-top: 56px; padding-bottom: 10px; }
.pricing h2 { text-align: center; font-size: clamp(28px, 4vw, 38px); }
.section-lead { max-width: 660px; margin: 14px auto 0; text-align: center; font-size: 17px; color: var(--muted); text-wrap: pretty; }
.billing { display: flex; width: max-content; margin: 28px auto 0; padding: 4px; border-radius: 12px; background: rgba(28, 33, 30, 0.06); }
.billing button {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--sans); padding: 10px 16px; border-radius: 9px;
}
.billing button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.save { padding: 3px 7px; border-radius: 99px; background: var(--gold); color: #3d2c00; font-size: 12px; font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 760px; margin: 22px auto 0; }
.plan { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px 24px; }
.plan h3 { font-size: 22px; }
.plan-premium { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 30px 60px -36px rgba(20, 85, 58, 0.55); }
.price { margin-top: 12px; color: var(--muted); font-size: 15px; }
.price b { margin-right: 4px; font: 600 42px/1 var(--serif); color: var(--ink); }
.price-note { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--green); }
.plan-sub { margin-top: 10px; color: var(--muted); font-size: 15px; }
.plan ul { flex: 1; list-style: none; display: grid; align-content: start; gap: 10px; margin: 20px 0 24px; padding: 0; }
.plan li { position: relative; padding-left: 22px; font-size: 15.5px; }
/* Bullets are the folk rhombus. */
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }
.plan .btn { justify-content: center; height: 46px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn.ghost:hover { background: var(--green-soft); }
.count-note { max-width: 620px; margin: 18px auto 0; text-align: center; font-size: 14px; color: var(--muted); text-wrap: pretty; }
.nav-link { position: relative; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; transition: color 0.15s; }
.nav-link:hover { color: var(--ink); }
/* The section on screen, or the one just clicked (main.js, initNavSpy). */
.nav-link[aria-current] { color: var(--green); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--green); transform: scaleX(0); transition: transform 0.2s ease; }
.nav-link[aria-current]::after { transform: scaleX(1); }

/* Account page (paskyra.html, account.js) */
.account { max-width: 660px; padding-top: 34px; padding-bottom: 70px; }
.acct-welcome { text-align: center; margin-bottom: 34px; }
.acct-welcome img { display: block; margin: 0 auto 16px; border-radius: 12px; }
.acct-welcome h1 { font-size: clamp(32px, 5vw, 44px); }
/* The welcome's demo (#learn), between signing in and the account. */
.learn { margin: 44px 0; }
.learn h2 { text-align: center; font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 16px; }
.learn-steps { min-height: 3.4em; max-width: 540px; margin: 16px auto 0; text-align: center; color: var(--muted); text-wrap: pretty; }
.acct-title { font-size: clamp(30px, 5vw, 40px); margin-bottom: 10px; }
.acct-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-top: 14px; }
.acct-card h2 { font-size: 22px; margin-bottom: 8px; }
.acct-card .small { margin-top: 12px; font-size: 13.5px; }
.acct-signin { text-align: center; margin-top: 18px; padding: 30px 22px; }
.acct-signin p { max-width: 430px; margin: 0 auto 20px; color: var(--muted); }
.gbtn {
  appearance: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px 0 16px;
  border: 1px solid #747775; border-radius: 22px; background: #fff; color: #1f1f1f; font: 500 15px/1 var(--sans); cursor: pointer;
}
.gbtn:hover:not(:disabled) { background: #f6f8fc; }
.gbtn:disabled, button.btn:disabled { opacity: 0.6; cursor: default; }
button.btn { border: 0; cursor: pointer; }
.acct-error { margin-top: 12px; color: var(--red); font-size: 14px; }
.ext-line { min-height: calc(14.5px * 1.6); }
.ext-status { font-size: 14.5px; color: var(--muted); }
.ext-status a { margin-left: 4px; }
.ext-status.on { color: var(--green); font-weight: 600; }
.ext-status.on::before { content: "✓ "; }
.acct-prices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.acct-prices .btn { flex: 1 1 auto; justify-content: center; height: 46px; font-size: 15px; }
.setting { display: flex; align-items: center; gap: 16px; padding: 4px 0; cursor: pointer; }
div.setting { cursor: default; flex-wrap: wrap; row-gap: 10px; }
div.setting > span:first-child { flex: 1 1 240px; }
.setting + .setting { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.setting[hidden] + .setting { margin-top: 0; padding-top: 4px; border-top: 0; } /* the shortcut row, without the extension */
.setting > .shortcut-keys { flex: none; flex-direction: row; align-items: center; gap: 4px; color: var(--muted); white-space: nowrap; }
.setting .btn { height: 36px; padding: 0 14px; }
.setting > span { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 15.5px; }
/* Websites where Varnelė stays off: one row each with "Įjungti", then a field to add one. */
div.setting.sites-setting { display: block; }
/* The ⓘ beside "Išjungta svetainėse" shows how to turn a website off from the bird's menu
   (main.js, initHowto): the home page demo's bird, menu and pointer in a small browser. */
.setting > span.with-info { position: relative; flex-direction: row; align-items: center; gap: 4px; }
.info {
  appearance: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: help; transition: color 0.15s, background 0.15s;
}
.info:hover, .info[aria-expanded="true"] { color: var(--green); background: var(--green-soft); }
.howto {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; display: block; width: min(360px, calc(100vw - 24px));
  padding-bottom: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(28, 33, 30, 0.35), 0 2px 8px rgba(28, 33, 30, 0.08); cursor: default; animation: howto-in 0.16s ease-out;
}
.howto[hidden] { display: none; }
@keyframes howto-in { from { opacity: 0; transform: translateY(4px); } }
.howto-bar { display: flex; align-items: center; height: 36px; padding: 0 10px; background: #f0ebe1; border-bottom: 1px solid var(--line); }
.howto-bar .url { height: 24px; margin: 0; font-size: 12px; }
.howto-view { position: relative; display: block; height: 372px; overflow: hidden; background: #f0f2f5; font-family: var(--site); color: #1f1f1f; }
.howto-box { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14); }
.howto-box .muted { font-size: 12px; color: #65676b; }
.howto-box .field { font-size: 14px; }
.howto-cap { display: block; padding: 12px 14px 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.howto-view.howto-keys { height: 250px; }
.howto .keys { bottom: 16px; gap: 6px; }
.howto .key { min-width: 46px; height: 38px; padding: 0 10px; font-size: 13px; }
.howto .key.wide { min-width: 100px; }
.v-offcard { flex-direction: column; align-items: stretch; gap: 0; width: min(300px, calc(100% - 16px)); padding: 0; white-space: normal; }
.v-offhead { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; }
.v-offhead .v-msg { flex: 1; }
.v-offfoot { display: flex; padding: 8px 10px; border-top: 1px solid rgba(17, 24, 39, 0.11); }
.off-sites { list-style: none; display: grid; gap: 6px; margin: 12px 0 0; padding: 0; }
.off-sites li { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.site-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; }
.setting .off-sites .btn { height: 32px; margin: 0; flex: none; }
.off-sites:empty { display: none; }
.site-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.site-add input {
  flex: 1 1 220px; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 10px;
  background: var(--paper); color: var(--ink); font: 500 15px/1 var(--sans);
}
.site-add input::placeholder { color: var(--muted); }
.site-add input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.setting .site-add .btn { height: 40px; }
.setting .muted { font-size: 14px; }
.acct-email { overflow-wrap: anywhere; }

/* The plan, by the page title: "Premium" gold, "Nemokamas" plain. */
.plan-badge { padding: 2px 9px; border-radius: 99px; background: var(--gold); color: #3d2c00; font: 700 13px/1.5 var(--sans); letter-spacing: 0; white-space: nowrap; }
.plan-badge.free { background: rgba(28, 33, 30, 0.07); color: var(--muted); }
.acct-title .plan-badge { position: relative; top: -0.3em; margin-left: 4px; }
/* What is left, as in the extension's popup: the number, then a bar that empties as it is used,
   gold when little is left, and the number red once nothing is (unless bonus characters carry on). */
.left-label { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin-top: 2px; }
.left b { font: 650 40px/1.1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.left span { font-size: 15.5px; color: var(--muted); }
.gauge { height: 10px; margin-top: 12px; border-radius: 99px; background: rgba(28, 33, 30, 0.08); overflow: hidden; }
.gauge span { display: block; width: var(--left, 0%); height: 100%; border-radius: inherit; background: var(--green); transition: width 0.5s ease; }
.acct-card.low .gauge span { background: var(--gold); }
.acct-card.out .left b, .acct-card.out .usage-resets { color: var(--red); }
.usage-resets { margin-top: 10px; font-size: 14px; color: var(--muted); }
/* The subscription: active, or cancelled (gold), by the card's title. */
.sub-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sub-state { padding: 2px 9px; border-radius: 99px; background: var(--green-soft); color: var(--green); font: 700 13px/1.5 var(--sans); white-space: nowrap; }
.sub-state.cancelled { background: #fdf2d3; color: #574000; }

/* Loading the account: the bird pecking, as when Varnelė fixes a text. */
.acct-loading { display: grid; justify-items: center; gap: 14px; padding: 80px 0 60px; animation: acct-fade 0.3s 0.25s both; }
.acct-loading .vl-words { min-width: 0; font-size: 16px; font-weight: 500; color: var(--muted); }
@keyframes acct-fade { from { opacity: 0; } }

/* The account page's tabs, in the look of the pricing switch: icon and name, one row. */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-top: 18px; padding: 4px; border-radius: 12px; background: #ede9e2; /* solid, so the background motifs don't show through */ }
.tab {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 10px; border-radius: 9px;
  font: 600 14.5px/1 var(--sans); white-space: nowrap; transition: color 0.15s, background 0.15s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.tab[aria-selected="true"] svg { color: var(--green); }
.tab svg { flex: none; }
.tab-panel { margin-top: 4px; }
/* Narrow phones: the icon over the name. */
/* The narrowest phones: the header's buttons still fit beside the name. */
@media (max-width: 359px) {
  .top-actions { gap: 4px; }
  .top .btn { padding: 0 9px; }
}
@media (max-width: 480px) {
  .tab { flex-direction: column; gap: 5px; padding: 9px 4px; font-size: 13px; }
}

/* Bonus characters, inviting friends */
.usage-bonus { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--green); }
.offer-invited, .invite-note { background: #fdf2d3; color: #574000; }
.offer-invited { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; }
.invite-note { display: inline-block; margin: 0 0 18px; padding: 8px 16px; border-radius: 99px; font-size: 14.5px; font-weight: 600; text-wrap: balance; }
.invite-link { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.invite-link input {
  flex: 1 1 240px; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: 500 14.5px/1 var(--sans);
}
.invite-link input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.invite-link .btn { height: 46px; justify-content: center; font-size: 15px; }
/* Friends who came with the link: joined, subscribed, and the bonus that brought. */
.friends-earned { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--green); }
.friends { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.friend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.friend-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; flex: 1 1 auto; min-width: 0; margin: 0; font-size: 14.5px; }
.step { display: inline-flex; align-items: center; gap: 7px; }
.step svg { flex: none; }
.step.done svg { color: var(--green); }
.step.waiting { color: var(--muted); }
.friend-bonus { margin-left: auto; padding: 2px 10px; border-radius: 99px; background: var(--green-soft); color: var(--green); font: 700 14px/1.6 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.friend-bonus.none { background: rgba(28, 33, 30, 0.07); color: var(--muted); font-weight: 600; }

/* The monthly summary (Premium): the total, then each kind of mistake with a bar. */
.summary-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15.5px; color: var(--muted); }
.summary-total b { font: 650 40px/1.05 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.summary-total b:empty { display: none; }
.summary-kinds { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.summary-kinds li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 5px 12px; font-size: 15px; }
.summary-kinds b { font-variant-numeric: tabular-nums; }
.kind-hint { margin-left: 2px; font-size: 13.5px; color: var(--muted); }
.kind-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(28, 33, 30, 0.07); overflow: hidden; }
.kind-bar i { display: block; height: 100%; width: var(--w); min-width: 6px; border-radius: inherit; background: var(--green); }
.kind-bar i[data-none] { min-width: 0; }
[data-kind="punctuation"] .kind-bar i { background: var(--red); }
[data-kind="capitals"] .kind-bar i { background: var(--gold); }
[data-kind="spelling"] .kind-bar i { background: #5f6b64; }
.summary .small { margin-top: 14px; }

/* After paying */
.thanks { text-align: center; }
.thanks .lead { margin: 16px auto 0; }
.thanks .small { margin-top: 18px; }
/* The bird dancing (premium.html): one hop each half second, leaning left, then right. */
.dance { display: block; margin: -16px auto 4px; overflow: visible; }
.dance .ink { fill: var(--green); }
.dance .beak { fill: var(--gold); }
.dance .cut { fill: var(--bg); }
.dance .tick { fill: none; stroke: var(--bg); stroke-width: 5.4; stroke-linecap: round; stroke-linejoin: round; }
.dance-shadow { fill: var(--green); opacity: 0.13; transform-box: fill-box; transform-origin: center; animation: dance-shadow 0.5s infinite; }
.dance-hop { animation: dance-hop 0.5s infinite; }
.dance-sway { animation: dance-sway 1s ease-in-out infinite; }
.dance-head { animation: dance-head 0.5s ease-in-out infinite alternate; }
.dance-wing { transform: rotate(-8deg); animation: dance-wing 0.25s ease-in-out infinite alternate; }
.dance .note { color: var(--red); transform-box: fill-box; transform-origin: center; animation: dance-note 2.4s ease-out infinite backwards; }
.dance .note.left { color: var(--green); --dx: -10px; animation-delay: 0.8s; }
.dance .note.late { color: #d99a1e; animation-delay: 1.6s; }
.dance .note ellipse { fill: currentColor; }
.dance .note path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dance .bit { opacity: 0; transform-box: fill-box; transform-origin: center; }
.dance.burst .bit { animation: dance-bit 1.5s 0.1s both; }
.bit.red { fill: var(--red); }
.bit.green { fill: var(--green); }
.bit.gold { fill: var(--gold); }
@keyframes dance-hop {
  0%, 100% { transform: scale(1.07, 0.92); animation-timing-function: ease-out; } /* landed */
  16% { transform: none; animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  50% { transform: translateY(-15px) scale(0.97, 1.04); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
  86% { transform: none; animation-timing-function: ease-out; }
}
@keyframes dance-shadow {
  0%, 16%, 86%, 100% { transform: none; opacity: 0.13; }
  50% { transform: scale(0.7); opacity: 0.07; }
}
@keyframes dance-sway { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes dance-head { from { transform: rotate(-7deg); } to { transform: rotate(9deg); } }
@keyframes dance-wing { from { transform: rotate(-18deg); } to { transform: rotate(8deg); } }
@keyframes dance-note {
  0% { opacity: 0; transform: translateY(8px) rotate(-12deg) scale(0.7); }
  20% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 10px), -40px) rotate(12deg); }
}
@keyframes dance-bit {
  0% { opacity: 0; transform: scale(0.3); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  8% { opacity: 1; }
  60% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)); animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.6); }
  100% { opacity: 0; transform: translate(calc(var(--x) * 1.15), calc(var(--y) + 34px)) rotate(calc(var(--r) * 1.6)) scale(0.8); }
}
/* Bonus characters from invites: what this payment brought, in the gold of the invite notes. */
.thanks-bonus {
  max-width: 440px; margin: 22px auto 0; padding: 16px 22px 18px; border-radius: 16px;
  background: #fdf2d3; color: #574000; animation: bonus-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}
.thanks .thanks-bonus p { margin: 0; color: inherit; font-size: 15px; }
.thanks .thanks-bonus .bonus-amount { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 8px; margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.bonus-amount b { font: 650 34px/1.1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes bonus-in { from { opacity: 0; transform: translateY(8px) scale(0.94); } }
@media (prefers-reduced-motion: reduce) {
  .dance * { animation: none !important; }
  .dance .bit { display: none; }
}

/* Steps */
.steps { padding-top: 70px; padding-bottom: 10px; }
html[data-extension] .steps { padding-bottom: 80px; } /* no closing button below it then, so the footer's room comes from here */
.steps h2 { text-align: center; font-size: clamp(28px, 4vw, 38px); }
.steps ol { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px 24px; }
.steps h3 { font-size: 20px; margin: 18px 0 8px; }
.steps h3 kbd { font-size: 0.62em; vertical-align: 0.2em; }
.steps p { color: var(--muted); font-size: 15px; }
/* Step numbers sit in a folk rhombus. */
.n { display: grid; place-items: center; width: 32px; height: 32px; margin: 4px 0 0 4px; background: var(--red); color: #fff; transform: rotate(45deg); border-radius: 4px; font: 700 15px/1 var(--sans); }
.n b { transform: rotate(-45deg); }

/* A whole sentence, before and after */
.example { max-width: 820px; margin: 22px auto 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 8px 22px; }
.example p { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; font-size: 17px; }
.example p + p { border-top: 1px solid var(--line); }
.example .before { color: var(--muted); }
.example .tag { flex: none; width: 44px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.example ins { text-decoration: none; color: var(--green); background: var(--green-soft); border-radius: 4px; padding: 0 2px; }

/* Final call */
.final { padding-top: 56px; padding-bottom: 80px; text-align: center; }

/* Privacy page */
.legal { max-width: 700px; padding-top: 40px; padding-bottom: 70px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); }
.legal .lead { margin: 14px 0 0; font-size: 18px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--red); }
.legal .small { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.legal .updated { margin-top: 36px; font-size: 14px; color: var(--muted); }
.nf-home { margin-top: 24px; } /* 404.html */

/* sudie.html, after Varnelė is removed: the bird alone on a swing. A 12 s story on top of the
   sway: it perks up and looks the other way (21-35 %), sighs (40 %), a tear drops (46-55 %), the
   handkerchief wipes its eye (56-64 %), then it blows its nose (66-74 %). Leaves (the folk rhombus)
   fall all the while. */
.bye { max-width: 640px; text-align: center; padding-top: 28px; padding-bottom: 70px; }
.swing-scene { display: block; width: min(480px, 100%); height: auto; margin: 0 auto 6px; overflow: visible; color: var(--green); }
.bye h1 { font-size: clamp(34px, 5vw, 48px); }
.bye .lead { margin-top: 12px; color: var(--muted); }
.bye-back { margin-top: 26px; }
.sw-ground, .sw-grass, .sw-frame path, .sw-chain { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sw-ground { stroke: var(--green); stroke-opacity: 0.3; stroke-width: 3; }
.sw-grass { stroke: var(--green); stroke-opacity: 0.35; stroke-width: 2; }
.sw-frame path { stroke: #b3ad9f; stroke-width: 7; }
.sw-frame .sw-bar { stroke-width: 9; }
.sw-chain { stroke: #8a8d87; stroke-width: 2.5; stroke-dasharray: 5 3; stroke-linecap: butt; }
.sw-seat { fill: var(--gold); }
.sw-shadow { fill: var(--green); opacity: 0.12; transform-box: view-box; animation: sw-shadow 3.6s ease-in-out infinite alternate; }
.sw-tear { fill: #5aa7d6; opacity: 0; transform-box: view-box; animation: sw-tear 12s linear infinite; }
.sw-hankie { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sw-hankie 12s ease-in-out infinite; }
.sw-hankie rect { fill: #fff; stroke: rgba(28, 33, 30, 0.18); }
.sw-hankie .sw-hem { fill: none; stroke: var(--red); stroke-opacity: 0.55; stroke-dasharray: 2 2; }
.sw-hankie text { font: 700 17px var(--serif); fill: var(--red); text-anchor: middle; }
.sw-honk { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: 0; animation: sw-honk 12s linear infinite; }
.sw-swing { transform-box: view-box; transform-origin: 210px 54px; animation: sw-sway 3.6s ease-in-out infinite alternate; }
.sw-look { transform-box: view-box; transform-origin: 210px 0; animation: sw-look 12s linear infinite; }
.sw-mood { transform-box: view-box; transform-origin: 210px 200px; animation: sw-mood 12s ease-in-out infinite; }
.sw-leaf { fill: var(--red); opacity: 0; transform-box: view-box; animation: sw-fall var(--t) ease-in-out var(--d) infinite; }
.sw-leaf.gold { fill: var(--gold); }
/* rotate(-6deg) takes the seat right, 150 units below the bar: its shadow goes with it. */
@keyframes sw-sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes sw-shadow { from { transform: translateX(15px); } to { transform: translateX(-15px); } }
@keyframes sw-look { 0%, 20% { transform: none; } 22%, 34% { transform: scaleX(-1); } 36%, 100% { transform: none; } }
@keyframes sw-mood {
  0%, 19% { transform: none; }
  23%, 33% { transform: translateY(-3px) rotate(-9deg); } /* head up: is that you? */
  37% { transform: none; }
  40% { transform: translateY(2px) scale(1.04, 0.93); } /* no. sigh */
  44%, 66% { transform: none; }
  68% { transform: translateY(2px) scale(1.07, 0.9); } /* honk */
  70% { transform: translateY(-2px) scale(0.95, 1.06); }
  72% { transform: scale(1.03, 0.97); }
  75%, 100% { transform: none; }
}
@keyframes sw-tear {
  0%, 45% { opacity: 0; transform: translateY(-2px) scale(0.6); }
  47% { opacity: 1; transform: none; }
  50% { opacity: 1; transform: translateY(5px); }
  55% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 0; }
}
@keyframes sw-hankie {
  0%, 54% { opacity: 0; transform: scale(0.2); }
  57% { opacity: 1; transform: rotate(-6deg); }
  59% { transform: translate(-3px, 1px) rotate(4deg); }
  61% { transform: translate(3px, -1px) rotate(-6deg); }
  63% { transform: translate(-3px, 1px) rotate(4deg); }
  65% { transform: translate(15px, 6px) rotate(-3deg); }
  68% { transform: translate(16px, 6px) scale(1.08); }
  70% { transform: translate(14px, 6px) scale(0.96); }
  72%, 75% { opacity: 1; transform: translate(15px, 6px); }
  79%, 100% { opacity: 0; transform: translate(10px, 22px) scale(0.2); }
}
@keyframes sw-honk {
  0%, 67% { opacity: 0; transform: translateX(-3px); }
  69% { opacity: 1; transform: none; }
  73% { opacity: 1; transform: translateX(4px); }
  75%, 100% { opacity: 0; }
}
@keyframes sw-fall {
  0% { transform: translate(var(--x), -8px) rotate(0deg); opacity: 0; }
  8%, 90% { opacity: 0.7; }
  25% { transform: translate(calc(var(--x) + var(--dx)), 60px) rotate(90deg); }
  50% { transform: translate(var(--x), 130px) rotate(180deg); }
  75% { transform: translate(calc(var(--x) + var(--dx)), 200px) rotate(270deg); }
  100% { transform: translate(var(--x), 270px) rotate(360deg); opacity: 0; }
}
html[lang="en"] [data-lang="lt"], html[lang="lt"] [data-lang="en"] { display: none; }

/* Footer */
.foot-in { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; padding-top: 22px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.foot-in a { color: var(--muted); }
.foot-in a:hover { color: var(--ink); }

/* Narrow screens */
@media (max-width: 960px) {
  .top { grid-template-columns: 1fr auto; }
  .top-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* Phones */
@media (max-width: 760px) {
  .hero { padding-top: 34px; }
  .lead { font-size: 16.5px; }
  .viewport { height: 480px; }
  .scene { padding: 14px; align-items: start; padding-top: 20px; }
  .tm-win { grid-template-columns: 1fr; }
  .tm-rail { display: none; }
  .gc-head b { font-size: 20px; }
  .gc-text { margin-left: 0; }
  .url { font-size: 12px; }
  .dots { display: none; }
  .key { min-width: 48px; height: 40px; padding: 0 10px; font-size: 13px; }
  .key.wide { min-width: 96px; }
  .v-hint { display: none; }
  .plans { grid-template-columns: 1fr; }
  .steps ol { grid-template-columns: 1fr; }
  .example { padding: 6px 16px; }
  .example p { flex-direction: column; gap: 4px; font-size: 16px; }
  .top .store { display: none; }
  .sites-tabs { gap: 2px; }
  .sites button { padding: 9px 11px; font-size: 13px; }
  .sites-more { width: 100%; justify-content: center; padding-top: 8px; }
  .demo-pause { right: 10px; bottom: 10px; }
}

/* Touch screens: links and buttons at least about 44 px tall (the nav links grow into the gap around them). */
@media (pointer: coarse) {
  .nav-link { display: inline-block; padding: 11px 6px; margin: -11px -6px; }
  .nav-link::after { left: 6px; right: 6px; bottom: 4px; }
  .lang button { padding: 11px 12px; }
  .sites button { padding-top: 13px; padding-bottom: 13px; }
  .demo-pause { width: 44px; height: 44px; }
  .foot-in { row-gap: 0; padding-top: 12px; padding-bottom: 18px; }
  .foot-in a { display: inline-block; padding: 11px 2px; }
  .setting .off-sites .btn { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
