/* kartu.fun shared styles: talkos.lt layout language, KARTU app colors */

/* Fonts are served from kartu.fun itself (/fonts/, SIL Open Font License, see
   /fonts/OFL-*.txt), never from Google: visitors' addresses stay with us.
   The files are Google Fonts' own latin + latin-ext subsets (English,
   Lithuanian and other Central European letters). */
/* Bricolage Grotesque, latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-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;
}
/* Bricolage Grotesque, latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-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;
}
/* Figtree, latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/figtree-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;
}
/* Figtree, latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/figtree-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 {
  --paper: #F0EDE8;
  --surface: #FBFAF8;
  --sunken: #E7E1D9;
  --ink: #2F2A2D;
  --ink-muted: #6B6268;
  --ink-faint: #9A9097;
  --line: #E2DCD5;
  --brand: #8F627D;
  --brand-deep: #74506A;
  --brand-on-dark: #D9B8CB;
  --brand-soft: #F1E6EC;
  --accent: #FF9B71;
  --accent-deep: #AD4C2A;
  --accent-soft: #FFE9DF;
  --success: #12805C;
  --success-soft: #DDF3EA;
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow-card: 0 1px 2px rgb(47 42 45 / .06), 0 8px 24px -12px rgb(47 42 45 / .18);
  --shadow-float: 0 2px 6px rgb(47 42 45 / .08), 0 24px 60px -20px rgb(47 42 45 / .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55; font-weight: 500;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--font-display); font-variation-settings: 'opsz' 96; font-weight: 800;
  line-height: 1.05; letter-spacing: -0.025em; margin: 0; text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--brand-deep); }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.tight-top { padding-top: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 16px;
}
.section-title { font-size: clamp(34px, 5vw, 56px); max-width: 18ch; }
.section-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-muted); max-width: 56ch; margin-top: 20px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(240 237 232 / .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 16px; height: 72px; }
.home { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--ink); }
.home img { width: 34px; height: 34px; border-radius: 10px; }
.home span { font: 800 22px/1 var(--font-display); letter-spacing: .02em; }
.links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.links a {
  display: block; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px;
  color: var(--ink-muted); text-decoration: none; transition: color .15s, background-color .15s;
}
.links a:hover, .links a[aria-current="page"] { color: var(--ink); background: var(--sunken); }
@media (max-width: 760px) { .links .hide-sm { display: none; } }
@media (max-width: 420px) { .home span { display: none; } }

/* Buttons and pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; font: 700 16px/1 var(--font-body); text-decoration: none; white-space: nowrap; border: 0; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 20px -8px rgb(143 98 125 / .7); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-faint); }
.btn svg { width: 18px; height: 18px; }
/* Official store badges (/badges/): the stores' own black artwork, never
   restyled; both share one height (Google's may not be smaller than Apple's)
   and keep a quarter of that height as clear space */
.store-badge { display: inline-block; flex: none; line-height: 0; border-radius: 10px; }
.store-badge img { display: block; height: 52px; width: auto; }
@media (max-width: 480px) { .store-badge img { height: 46px; } }
.footer .trademarks { margin-top: 16px; font-size: 12px; line-height: 1.5; color: var(--ink-faint); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px/1.3 var(--font-body);
  padding: 5px 10px; border-radius: 999px; background: var(--sunken); color: var(--ink-muted);
}
.pill.brand { background: var(--brand-soft); color: var(--brand-deep); }
.pill.accent { background: var(--accent-soft); color: var(--accent-deep); }
.pill.success { background: var(--success-soft); color: var(--success); }

/* Cards */
.card { background: var(--surface); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-card); }
.card h3 { font-size: 22px; margin-top: 18px; }
.card p { color: var(--ink-muted); margin-top: 8px; }
.tile {
  width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.tile svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile.accent { background: var(--accent-soft); color: var(--accent-deep); }
.num { font: 800 14px/1 var(--font-display); color: var(--brand-deep); letter-spacing: .02em; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* Panels */
.panel { border-radius: clamp(28px, 4vw, 48px); padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px); }
.panel.soft {
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(143 98 125 / .18), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgb(255 155 113 / .14), transparent 70%),
    var(--brand-soft);
}
.panel.dark { background: var(--ink); color: var(--paper); }
.panel.dark .kicker { color: var(--brand-on-dark); }
.panel.dark p { color: #CFC6CB; }

/* Check lists */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; color: var(--success); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 880px) { .faq { grid-template-columns: minmax(0, 1fr); } }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0;
  cursor: pointer; list-style: none; font-weight: 700; font-size: 18px;
}
summary::-webkit-details-marker { display: none; }
summary svg { flex: none; width: 22px; height: 22px; color: var(--brand); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: transform .2s ease; }
details[open] summary svg { transform: rotate(45deg); }
details p { padding: 0 40px 24px 0; color: var(--ink-muted); }

/* Prose (legal and help pages) */
.prose { max-width: 72ch; margin: 0 auto; padding: clamp(48px, 8vw, 96px) 0; }
.prose h1 { font-size: clamp(38px, 5.5vw, 60px); }
.prose .updated { margin-top: 14px; font-size: 15px; color: var(--ink-muted); }
.prose .intro { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-muted); }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 56px; }
.prose h3 { font-size: 20px; margin-top: 32px; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--ink-muted); }
.prose p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { font-weight: 600; text-underline-offset: 4px; }
.prose .card { margin-top: 24px; }
.prose .card h2 { margin-top: 0; font-size: 22px; }
.toc { margin-top: 32px; padding: 22px 26px; }
.toc ol { columns: 2; column-gap: 32px; margin: 10px 0 0; }
.toc li { break-inside: avoid; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; margin-top: 18px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-muted); }
th { color: var(--ink); font-weight: 700; background: var(--sunken); }
tr:last-child td { border-bottom: 0; }

/* Footer */
.footer { padding: clamp(56px, 8vw, 96px) 0 32px; border-top: 1px solid var(--line); }
.footer .cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.footer .brand p { margin-top: 14px; color: var(--ink-muted); max-width: 34ch; }
.footer .label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--ink-muted); text-decoration: none; font-weight: 600; }
.footer ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer .bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-muted);
}
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Card titles that link to a page */
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-link::after { content: " \2192"; color: var(--brand); }

/* Language menu (no script: a details element) */
.lang-switch { position: relative; flex: none; }
.lang-switch summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px;
  font: 700 14px/1 var(--font-body); color: var(--ink-muted); list-style: none; cursor: pointer;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--ink); background: var(--sunken); }
.lang-switch summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(340px, calc(100vw - 32px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; list-style: none; margin: 0; padding: 10px;
  background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-float);
}
.lang-menu a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.lang-menu a:hover { background: var(--sunken); }
.lang-menu a[aria-current] { background: var(--brand-soft); color: var(--brand-deep); }
details.lang-switch, details.lang-switch:first-child { border: 0; }
@media (max-width: 420px) { .bar { gap: 8px; } .links a { padding: 8px 9px; font-size: 14.5px; } .lang-switch summary span { display: none; } }

/* English content pages (features, pricing, FAQ, comparisons) */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.035em; max-width: 18ch; }
.page-hero .lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--ink-muted); max-width: 40em; margin-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--ink-faint); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.page-body .prose { padding: 0; margin: 0; }
.prose .checks { margin-top: 18px; }
.prose .checks li { color: var(--ink-muted); margin-top: 0; }
.prose .checks li::marker { content: none; }
.prose .note { margin-top: 24px; padding: 18px 22px; border-radius: var(--r-md); background: var(--sunken); color: var(--ink-muted); font-size: 15.5px; }
.prose details p { padding-right: 0; }
.prose .faq-list { margin-top: 18px; }
.cta-band { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 24px 40px; align-items: center; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); }
.cta-band p { margin-top: 12px; color: var(--ink-muted); max-width: 46ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px 16px; }
@media (max-width: 880px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 32px 0 0; }
.link-grid .card { display: block; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.link-grid .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.link-grid .card h2, .link-grid .card h3 { font-size: 22px; margin-top: 18px; letter-spacing: -.015em; }
.link-grid .card p { color: var(--ink-muted); margin-top: 8px; }
@media (max-width: 680px) { .link-grid { grid-template-columns: minmax(0, 1fr); } }
.prose .table-wrap table th:first-child { width: 30%; }
.compare-table td, .compare-table th { min-width: 140px; }
.sources { font-size: 14.5px; }
.sources li { overflow-wrap: anywhere; }
.prose.wide { max-width: 1080px; }
.prose.wide .intro { max-width: 72ch; }
.compare-table th:first-child { width: auto; min-width: 110px; }
.compare-table thead th { white-space: normal; }
.links a { white-space: nowrap; }
@media (max-width: 440px) { .links .hide-xs { display: none; } }
