/* Phone readability: body text at least 16px, small text at least 14px, tap targets at least 48x48px.
   Linked last in <head> on every page, so it wins over the page's own styles at the same specificity.
   Desktop is unchanged. Text inside the illustrated app screens (.dash, .mock, .m-card, .score-card …) is left as drawn. */
@media (max-width: 720px) {
  /* ---------- body text: 16px ---------- */
  body.legal, .faq-list details p, .roi-card p, .app-show-points li, .app-points, .roi-spot-points li,
  .strip ul, .formula ol, .p-card > p, .conv-steps li { font-size: 16px; }

  /* ---------- small text: 14px ---------- */
  .fine, .eyebrow, .roi-sec .eyebrow, .roi-kicker, .roi-spot-kicker, .roi-spot-name small, .hero-guides b, .pill b,
  .post-card small, .shelf-row small, .shelf-top b, .ill, .note, .res h2, .t-res h2, .calc legend, .field .help, .t-field .help,
  .t-big span, .t-pill small, .t-table .sub, .conv-drop-h, .conv-fmt-t small, .faq-jump small, .fchips li, .is-chips li,
  .live-strip, .t2-title p, .ready .example, .pill-cat, .post small, .post li small, .formula small, footer.legal-foot { font-size: 14px; }
  .roi-faq .eyebrow { font-size: 14px !important; } /* the app pages set this one in a style attribute */
  .badge, .app-card .badge, .app-tile .soon, .shelf-row em { font-size: 14px; letter-spacing: 0; }
  nav.langbar { font-size: 14px; }

  /* ---------- tap targets: 48px ---------- */
  .skip { min-height: 48px; display: inline-flex; align-items: center; }
  .nav .brand, .foot .brand { min-height: 48px; min-width: 48px; }
  /* header pills keep their look; an invisible layer makes the tap area 48px tall */
  .nav ul a { position: relative; }
  .nav ul a::before { content: ""; position: absolute; inset: -9px -3px; }
  .nav ul { gap: 6px; }
  .foot ul { gap: 0 20px; }
  .foot ul a, footer.legal-foot a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; }
  .btn, .t-btn { min-height: 48px; }
  select, .t-sel, .field input, .field select, .t-field input, .t-field select { min-height: 48px; }
  .more-link, .text-link, .posts-more a, .faq-more a, .blog-more a, p.more a, .next-card a, p.blog-head > a,
  .roi-faq > p > a, .post-cta > p > a, nav.related li > a, .apps-guides li > a { display: inline-flex; align-items: center; min-height: 48px; }
  /* language picker: the pill keeps its size, the tap area grows; menu rows are 48px */
  nav.langbar summary { position: relative; }
  nav.langbar summary::before { content: ""; position: absolute; inset: -10px -4px; }
  nav.langbar .langbar-menu a { min-height: 48px; }
}
/* very narrow phones: the header pills fit without sideways scrolling */
@media (max-width: 380px) {
  .nav ul a { padding-left: 9px; padding-right: 9px; }
}

/* "Our apps" and "Web toolkits" dropdowns in the header (markup written by tools/build_nav_menus.js) */
/* every top menu item on the same line, with or without a dropdown arrow */
.nav ul { align-items: center; }
.nav ul > li { display: flex; align-items: center; }
.nav ul > li > a { display: inline-flex; align-items: center; gap: 4px; line-height: 1.25; }
.nav-drop { position: relative; }
.nav-drop .tm-chev { flex: none; transition: transform .15s; opacity: .7; }
.nav-drop:hover .tm-chev, .nav-drop:focus-within .tm-chev { transform: rotate(180deg); }
.tools-menu { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); z-index: 40; width: 580px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; background: #fff; border: 1px solid #e3e8f1; border-radius: 18px; box-shadow: 0 22px 50px rgba(21,34,61,.18); opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; }
.tools-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* keeps the menu open while the mouse moves down */
.nav-drop:hover .tools-menu, .nav-drop:focus-within .tools-menu { opacity: 1; visibility: visible; transform: translate(-50%, 4px); }
.nav .tools-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: none; color: var(--ink); font-weight: 600; white-space: normal; }
.nav .tools-menu a::before { content: none; }
.nav .tools-menu a:hover, .nav .tools-menu a:focus-visible, .nav .tools-menu a[aria-current] { background: #f3f6fb; color: var(--ink); }
.tools-menu .tm-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 800 18px/1 Arial, sans-serif; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.tools-menu .tm-ic b { font-weight: 800; }
.tools-menu .tm-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tools-menu .tm-t b { font-size: 15px; color: var(--navy, #15223d); }
.tools-menu .tm-t small { font-size: 13px; font-weight: 500; color: var(--muted, #5b6478); }
.nav .tools-menu a.tm-all { grid-column: 1 / -1; justify-content: center; margin-top: 4px; padding: 10px; border-top: 1px solid #eef1f6; border-radius: 0 0 10px 10px; font-size: 14px; font-weight: 700; color: var(--navy, #15223d); }
.nav .tools-menu a.tm-all::after { content: " →"; color: #f5a623; margin-left: 4px; }
/* apps: one column, real app icons, status badge */
.tools-menu.apps-menu { width: 400px; grid-template-columns: 1fr; left: 0; transform: translate(0, 8px); }
.nav-drop:hover .apps-menu, .nav-drop:focus-within .apps-menu { transform: translate(0, 4px); }
.tools-menu .tm-app { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.apps-menu .tm-t b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.apps-menu em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #eef1f6; color: #5b6478; }
.apps-menu em.live { background: #e3f5ec; color: #17734a; }
@media (max-width: 960px) { .nav-tools .tools-menu { left: auto; right: -120px; transform: translate(0, 8px); } .nav-tools:hover .tools-menu, .nav-tools:focus-within .tools-menu { transform: translate(0, 4px); } }
/* phones: plain links (no hover there, and the panels would not fit) */
@media (max-width: 720px) { .tools-menu, .nav-drop .tm-chev { display: none; } }
/* narrow phones: longer menu words (Programėlės, Tinklaraštis) still fit next to the logo */
@media (max-width: 420px) { .nav ul { gap: 4px; } .nav ul a { padding: 6px 9px; font-size: 14px; } :is(html[lang="lt"], html[lang="lv"], html[lang="et"]) .nav .brand { font-size: 0; gap: 0; } }
@media (prefers-reduced-motion: reduce) { .tools-menu, .nav-drop .tm-chev { transition: none; } }

/* footer social icons (markup written by tools/add_social_links.js) */
.foot li.social { display: inline-flex; align-items: center; gap: 8px; }
.foot li.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; transition: transform .15s, box-shadow .15s; }
.foot li.social a:hover, .foot li.social a:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(21,34,61,.2); }
.foot li.social a.in { background: #0a66c2; }
.foot li.social a.fb { background: #1877f2; }
.foot li.social a.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
@media (prefers-reduced-motion: reduce) { .foot li.social a { transition: none; } }

/* footer: one row (markup written by tools/build_footer.js) */
footer .foot { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 14px 32px; }
footer .foot ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; }
footer .foot .foot-links { gap: 6px 22px; font-size: 15px; }
footer .foot .foot-trust { gap: 10px 14px; margin-left: auto; }
footer .foot .launch-badge img { display: block; width: auto; height: 34px; }
footer .foot .trustpilot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
footer .foot li.social a { width: 32px; height: 32px; }
footer .fine { margin-top: 14px; }
@media (max-width: 1080px) { footer .foot .foot-trust { margin-left: 0; } }
@media (max-width: 720px) { footer .foot { gap: 14px; } footer .foot .foot-links { gap: 6px 16px; } }
