/* Kalakrit — kalakrit.eu. Logical properties throughout so right-to-left pages mirror automatically. */
:root {
  --bg: #fbfbf8;
  --surface: #ffffff;
  --alt: #f3f1eb;
  --ink: #13232a;
  --ink-2: #384950;
  --muted: #64737a;
  --line: #e2e5e1;
  --accent: #0e6b62;
  --accent-2: #0a5149;
  --tint: #e7f2ef;
  --err: #b0362a;
  --ok: #24724a;
  --radius: 12px;
  --wrap: 1160px;
  --script: ;
  --sans: var(--script) "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--script) "Source Serif 4", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); }
html.nonlatin body { line-height: 1.8; }
html[lang="ur"] body { line-height: 2.15; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 .55em; letter-spacing: -.01em; }
html.nonlatin h1, html.nonlatin h2, html.nonlatin h3 { letter-spacing: 0; line-height: 1.45; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { line-height: 1.95; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { inset-inline-start: 8px; color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.35em; border-radius: 8px; border: 0; background: var(--accent); color: #fff; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--accent-2); color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--tint); color: var(--ink); }
.btn.outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn.outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow { display: inline-block; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
.textlink { font-weight: 600; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(251,251,248,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand svg { width: 36px; height: 36px; flex-shrink: 0; }
.brand b { display: block; font: 600 21px/1 "Source Serif 4", Georgia, serif; }
.brand small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav > a, .dd > button { color: var(--ink-2); text-decoration: none; padding: 9px 11px; border-radius: 7px; font: 500 15px/1.2 var(--sans); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.nav > a:hover, .dd > button:hover, .dd.open > button { background: var(--alt); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); }
.dd { position: relative; }
.dd > button svg { width: 12px; height: 12px; transition: transform .15s; }
.dd.open > button svg { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -20px rgba(19,35,42,.35); padding: 8px; display: none; }
.dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.dd-menu a:hover { background: var(--tint); }
.dd-menu a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 500 14.5px/1 var(--sans); cursor: pointer; }
.lang-btn:hover { border-color: var(--ink); }
.lang-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.head-actions .btn { padding: .7em 1.1em; font-size: 15px; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; flex-shrink: 0; }
.burger svg { width: 22px; height: 22px; }
@media (max-width: 1080px) {
  .nav { position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; margin: 0; display: none; max-height: calc(100vh - 70px); overflow: auto; }
  .nav.open { display: flex; }
  .nav > a, .dd > button { width: 100%; justify-content: space-between; padding: 12px 4px; font-size: 16.5px; }
  .dd-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 6px; min-width: 0; background: transparent; }
  .dd > button svg { display: none; }
  .dd > button { pointer-events: none; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 4px; }
  html.nonlatin .dd > button { text-transform: none; letter-spacing: 0; }
  .dd-menu a { padding: 9px 4px 9px 14px; }
  .burger { display: inline-grid; place-items: center; }
  .head-actions { margin-inline-start: auto; }
  .head-actions .btn { display: none; }
}
@media (max-width: 520px) {
  .site-header .wrap { gap: 8px; padding-inline: 16px; }
  .brand small { display: none; }
  .brand b { font-size: 19px; }
  .lang-btn span { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wrap { padding-inline: 16px; }
}

/* sections */
section { padding-block: 84px; }
.alt { background: var(--alt); }
.dark { background: var(--ink); color: #e8eeec; }
.dark h2, .dark h3 { color: #fff; }
.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
html.nonlatin .eyebrow { text-transform: none; letter-spacing: .02em; font-size: 14.5px; }
.dark .eyebrow { color: #8fd3c6; }
.lede { font-size: 19.5px; color: var(--ink-2); max-width: 64ch; }
.dark .lede { color: #c2d0cd; }
.head { max-width: 760px; margin-bottom: 44px; }
.head h2 { font-size: clamp(28px, 3.6vw, 42px); }

/* hero */
.hero { padding-block: 64px 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); margin-bottom: 22px; }
html.nonlatin .hero h1 { font-size: clamp(32px, 4.4vw, 54px); }
.hero .lede { margin-bottom: 30px; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; gap: 44px; } }
.page-hero { padding-block: 40px 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: 22ch; }
html.nonlatin .page-hero h1 { font-size: clamp(30px, 4vw, 48px); }
.page-hero .lede { margin-bottom: 28px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 26px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* IFU mock */
.ifu { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px -36px rgba(19,35,42,.45); overflow: hidden; }
.ifu-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ifu-top b { color: var(--ink); font-weight: 600; font-size: 14px; }
.ifu-body { padding: 22px 22px 6px; }
.ifu-sec { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
html.nonlatin .ifu-sec { text-transform: none; letter-spacing: 0; }
.ifu-row { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px dashed var(--line); }
.ifu-row:first-of-type { border-top: 0; }
.ifu-row code { font: 600 12px/1 "IBM Plex Sans", sans-serif; color: var(--muted); background: var(--alt); border-radius: 5px; padding: 4px 0; text-align: center; letter-spacing: .04em; }
.ifu-row span { font-size: 15.5px; }
.ifu-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--tint); color: var(--accent-2); font-size: 14px; font-weight: 500; margin-top: 14px; }
.ifu-foot svg { width: 20px; height: 20px; flex-shrink: 0; }

/* trust strip */
.trust { border-block: 1px solid var(--line); background: var(--surface); padding-block: 26px; }
.trust .wrap { display: flex; align-items: center; justify-content: space-between; gap: 22px 40px; flex-wrap: wrap; }
.trust-logos { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.trust-logos small { font-size: 14px; color: var(--muted); }
.trust-logos img { height: 30px; width: auto; filter: grayscale(1); opacity: .85; }
.stats { display: flex; gap: 10px 26px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.stats li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.stats li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* cards and grids */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .grid3, .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid3, .grid2, .grid4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--accent); box-shadow: 0 16px 34px -26px rgba(19,35,42,.5); color: var(--ink); }
.card .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; }
.card p { color: var(--ink-2); font-size: 16px; flex: 1; margin-bottom: 14px; }
.card .go { font-weight: 600; font-size: 15px; color: var(--accent); }

/* problem / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 20px; } }
.split h2 { font-size: clamp(28px, 3.4vw, 40px); }
.split p { font-size: 18px; color: var(--ink-2); }

/* steps */
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps, .steps.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps, .steps.four { grid-template-columns: 1fr; } }
.steps li { border-top: 2px solid currentColor; padding-top: 18px; }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font: 600 30px/1 "Source Serif 4", Georgia, serif; color: var(--accent); margin-bottom: 14px; }
.dark .steps li::before { color: #8fd3c6; }
.steps h3 { font-size: 20px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }
.dark .steps p, .dark .steps li { color: #d6e1de; }

/* why */
.why { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.why > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.why > div:nth-child(even) { padding-inline: 28px 0; border-inline-start: 1px solid var(--line); }
html[dir="rtl"] .why > div:nth-child(odd) { padding: 28px 0 28px 28px; }
.why h3 { font-size: 21px; }
.why p { margin: 0; color: var(--ink-2); }
@media (max-width: 720px) { .why { grid-template-columns: 1fr; } .why > div, .why > div:nth-child(even), html[dir="rtl"] .why > div:nth-child(odd) { padding: 24px 0; border-inline-start: 0; } }
.note-line { margin-top: 26px; font-size: 16.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; }
.note-line::before { content: "—"; color: var(--accent); }

/* checks list */
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding: 10px 0; padding-inline-start: 32px; border-bottom: 1px solid var(--line); }
.dark .checks li { border-color: rgba(255,255,255,.14); }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 16px; width: 18px; height: 10px; border-inline-start: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); transform-origin: center; }
html[dir="rtl"] .checks li::before { transform: rotate(45deg) scaleX(-1); }
.dark .checks li::before { border-color: #8fd3c6; }

/* documents list */
.docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 640px) { .docs { grid-template-columns: 1fr; } }
.docs li { display: flex; gap: 14px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.docs li::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; flex-shrink: 0; transform: translateY(-3px); }

/* key message */
.key { font: 600 clamp(22px, 2.6vw, 30px)/1.4 var(--serif); color: var(--ink); max-width: 34ch; margin: 0; padding-inline-start: 22px; border-inline-start: 3px solid var(--accent); }
html.nonlatin .key { line-height: 1.6; }
.term-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.term-box h3 { font-size: 20px; }
.term-box p { margin: 0; color: var(--ink-2); }

/* proof */
.proof { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.proof p { margin: 0; font-size: 18px; font-weight: 500; }

/* faq */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font: 600 18.5px/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 72ch; }

/* related */
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; text-decoration: none; color: var(--ink); background: var(--surface); font-size: 15px; font-weight: 500; }
.related a:hover { border-color: var(--accent); color: var(--accent); }

/* final CTA */
.final .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px 48px; flex-wrap: wrap; }
.final h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 10px; }
.final p { margin: 0; color: #c2d0cd; max-width: 56ch; }

/* lv steps */
.lv-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.lv-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.lv-steps li::before { counter-increment: s; content: counter(s); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--accent); display: grid; place-items: center; font: 600 17px/1 var(--sans); }
.lv-steps h3 { font-size: 19.5px; margin: 0; }
.lv-steps p { margin: 0; color: var(--ink-2); }

/* languages page */
.lang-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 32px; }
.lang-tools input { flex: 1 1 280px; max-width: 460px; font: 400 16.5px var(--sans); padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.lang-tools input:focus { outline: none; border-color: var(--accent); }
.lang-tools output { color: var(--muted); font-size: 15px; }
.lgroup { margin-bottom: 44px; }
.lgroup h2 { font-size: clamp(22px, 2.6vw, 28px); display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.lgroup h2 small { font: 500 15px var(--sans); color: var(--muted); }
.llist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.llist li { padding: 11px 4px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.llist .n { font-weight: 500; }
.llist .o { font-size: 14px; color: var(--muted); }
.site-note { display: flex; gap: 12px; align-items: center; background: var(--tint); border-radius: 10px; padding: 14px 18px; margin-bottom: 28px; color: var(--accent-2); font-size: 15.5px; }
.site-note svg { width: 20px; height: 20px; flex-shrink: 0; }

/* about */
.founder { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; } }
.founder img { width: 180px; height: 180px; object-fit: cover; border-radius: 12px; background: var(--alt); }
.founder blockquote { margin: 0 0 14px; font: 500 20px/1.55 var(--serif); }
html.nonlatin .founder blockquote { line-height: 1.8; }
.founder cite { font-style: normal; color: var(--muted); font-size: 15px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(24px, 2.8vw, 30px); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }

/* quote form */
.q-grid { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; padding-block: 48px 84px; }
@media (max-width: 960px) { .q-grid { grid-template-columns: 1fr; } }
.qf { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
@media (max-width: 560px) { .qf { padding: 22px 16px; } }
.qf .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .qf .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field > label, .field > .lbl, .qf legend { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 7px; padding: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.qf fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.qf input[type=text], .qf input[type=email], .qf input[type=date], .qf select, .qf textarea { width: 100%; font: 400 16.5px/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.qf textarea { min-height: 110px; resize: vertical; }
.qf input:focus, .qf select:focus, .qf textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--tint); }
.qf .invalid, .qf .invalid input { border-color: var(--err) !important; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { position: relative; }
.radios input { position: absolute; opacity: 0; inset: 0; }
.radios span { display: inline-block; padding: 9px 15px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 15px; cursor: pointer; background: var(--bg); }
.radios input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.radios input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.picker { border: 1.5px solid var(--line); border-radius: 9px; background: var(--bg); padding: 8px; }
.picker:focus-within { border-color: var(--accent); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--tint); color: var(--accent-2); border-radius: 6px; padding: 5px 8px 5px 10px; font-size: 14.5px; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 17px; line-height: 1; padding: 0 2px; }
.picker input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 6px !important; }
.picker-list { list-style: none; margin: 4px 0 0; padding: 0; max-height: 220px; overflow: auto; border-top: 1px solid var(--line); display: none; }
.picker-list.show { display: block; }
.picker-list li { padding: 8px 10px; cursor: pointer; border-radius: 6px; font-size: 15px; }
.picker-list li[aria-selected="true"], .picker-list li:hover { background: var(--tint); }
.hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.files input[type=file] { width: 100%; font: 400 15px var(--sans); padding: 16px; border: 1.5px dashed var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 6px 0 16px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 9px; font-size: 15px; }
.status.err { display: block; background: #fbecea; color: var(--err); }
.after { margin-top: 18px; font-size: 15px; color: var(--muted); }
.hp { position: absolute !important; inset-inline-start: -9999px; }
.q-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.q-side .box { background: var(--ink); color: #e8eeec; border-radius: 14px; padding: 24px; }
.q-side h3 { color: #fff; font-size: 21px; }
.q-side p { color: #c2d0cd; font-size: 15.5px; }
.q-side .btn { width: 100%; }
.q-side .mail { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; font-size: 15px; color: var(--ink-2); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* footer */
.site-footer { background: #0e1a1f; color: #b7c4c1; padding-block: 60px 26px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 980px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h2 { font: 600 14.5px/1.3 var(--sans); color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b7c4c1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand small { color: #8fa29e; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #8fa29e; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.linkbtn:hover { color: #fff; }

/* language dialog */
dialog.langs { width: min(880px, calc(100vw - 24px)); max-height: min(86vh, 800px); border: 0; border-radius: 16px; padding: 0; background: var(--bg); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
dialog.langs::backdrop { background: rgba(19,35,42,.5); }
.dl-head { position: sticky; top: 0; z-index: 1; background: var(--bg); padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.dl-head .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dl-head h2 { font-size: 24px; margin: 0; }
.dl-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink); }
.dl-search { width: 100%; font: 400 16px var(--sans); padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.dl-body { padding: 4px 22px 24px; }
.dl-group h3 { font: 600 12.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin: 18px 0 10px; }
html.nonlatin .dl-group h3 { text-transform: none; letter-spacing: 0; font-size: 14px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.dl-grid a { display: flex; flex-direction: column; padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); text-decoration: none; color: var(--ink); }
.dl-grid a:hover { border-color: var(--accent); }
.dl-grid a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dl-grid .nat { font-size: 16.5px; font-weight: 500; line-height: 1.5; }
.dl-grid .loc { font-size: 13px; opacity: .7; }
.dl-empty { display: none; color: var(--muted); padding: 24px 0; }

/* banners */
.bar { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 80; max-width: 760px; margin-inline: auto; background: var(--ink); color: #e8eeec; border-radius: 14px; padding: 16px 18px; display: none; gap: 14px 18px; align-items: center; flex-wrap: wrap; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); font-size: 15px; }
.bar.show { display: flex; }
.bar p { margin: 0; flex: 1 1 320px; }
.bar a { color: #8fd3c6; }
.bar .ctas { gap: 8px; }
.bar .btn { padding: .6em 1em; font-size: 14.5px; }
.avail { bottom: auto; top: 82px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.avail p { flex-basis: 220px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header, .site-footer, .bar, .final, dialog { display: none !important; } }

/* long compound words (Finnish, Estonian, Danish, Tamil…) must wrap on small screens */
body { overflow-wrap: break-word; }
h1, h2, h3, .eyebrow, .key, .note-line, .related a, .docs li, .checks li { overflow-wrap: anywhere; hyphens: auto; }
.split > *, .grid2 > *, .grid3 > *, .grid4 > *, .hero .wrap > *, .q-grid > *, .cols > * { min-width: 0; }
@media (max-width: 700px) { .avail { top: auto; bottom: 16px; } }
