/* HandyKasse home page (index.html). The other pages keep style.css.
   Light and dark: the system setting decides unless the visitor picked one with the theme button (html[data-theme]). */
:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-2: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --chip: #eef0fd;
  --ink: #0e1630;
  --ink-2: #27304a;
  --muted: #5a6480;
  --line: #e4e7f2;
  --line-strong: #d3d8e8;
  --indigo: #4f46e5;
  --indigo-deep: #3f37c9;
  --indigo-soft: #eceafe;
  --violet: #6d4aff;
  --wa: #107d42;
  --wa-hover: #0e6e3a;
  --band: #0d1430;
  --band-2: #1b1f5a;
  --hero-a: #4f46e5;
  --hero-b: #6d4aff;
  --shadow: 0 1px 2px rgba(14, 22, 48, .05), 0 8px 24px rgba(14, 22, 48, .06);
  --shadow-lg: 0 2px 6px rgba(14, 22, 48, .06), 0 28px 60px rgba(14, 22, 48, .16);
  --focus: #4f46e5;
  --t-indigo: #4f46e5; --t-violet: #6d4aff; --t-teal: #0c7e71; --t-amber: #b45309; --t-rose: #be123c; --t-sky: #0369a1;
  --badge-bg: #0c7e71; --badge-ink: #ffffff;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-ar: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", system-ui, sans-serif;
  --font-hi: "Nirmala UI", "Noto Sans Devanagari", Mangal, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 18px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020; --bg-2: #0f1529; --surface: #141b30; --surface-2: #19223a; --chip: #212a48;
  --ink: #edf1fc; --ink-2: #d2d9ec; --muted: #a2adc6; --line: #242d48; --line-strong: #323c5c;
  --indigo: #9b95ff; --indigo-deep: #5f58ec; --indigo-soft: #232552; --violet: #ad94ff;
  --wa: #13843f; --wa-hover: #0f7a40; --band: #070b18; --band-2: #171a4a;
  --hero-a: #3f3aa8; --hero-b: #5d3fc0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 28px 60px rgba(0, 0, 0, .5);
  --focus: #a9a4ff;
  --t-indigo: #a9a4ff; --t-violet: #b9a3ff; --t-teal: #34d3bf; --t-amber: #fbbf24; --t-rose: #fb7185; --t-sky: #4cc3f7;
  --badge-bg: #2dd4bf; --badge-ink: #04201d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1020; --bg-2: #0f1529; --surface: #141b30; --surface-2: #19223a; --chip: #212a48;
    --ink: #edf1fc; --ink-2: #d2d9ec; --muted: #a2adc6; --line: #242d48; --line-strong: #323c5c;
    --indigo: #9b95ff; --indigo-deep: #5f58ec; --indigo-soft: #232552; --violet: #ad94ff;
    --wa: #13843f; --wa-hover: #0f7a40; --band: #070b18; --band-2: #171a4a;
    --hero-a: #3f3aa8; --hero-b: #5d3fc0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 28px 60px rgba(0, 0, 0, .5);
    --focus: #a9a4ff;
    --t-indigo: #a9a4ff; --t-violet: #b9a3ff; --t-teal: #34d3bf; --t-amber: #fbbf24; --t-rose: #fb7185; --t-sky: #4cc3f7;
  --badge-bg: #2dd4bf; --badge-ink: #04201d;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html:is([lang="ar"], [lang="fa"], [lang="ps"]) body { font-family: var(--font-ar); line-height: 1.8; }
html[lang="hi"] body { font-family: var(--font-hi); line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--indigo-deep); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.ic { flex: none; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
bdi, code { unicode-bidi: isolate; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

h1, h2 { letter-spacing: -.022em; line-height: 1.12; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); text-wrap: balance; }
h2 { text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.12rem; line-height: 1.35; font-weight: 700; }
html:is([lang="ar"], [lang="fa"], [lang="ps"], [lang="hi"]) :is(h1, h2) { letter-spacing: 0; line-height: 1.35; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 650; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: background-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.btn--primary, .btn--call { background: var(--indigo-deep); color: #fff; box-shadow: 0 8px 20px -8px rgba(63, 55, 201, .7); }
.btn--primary:hover, .btn--call:hover { background: color-mix(in srgb, var(--indigo-deep) 86%, #000); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--chip); }
.btn--light { background: #fff; color: #2b247f; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn[hidden] { display: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: .85; }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; }
.iconbtn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.iconbtn:hover { background: var(--chip); }
.tile { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; color: var(--tone, var(--indigo)); background: color-mix(in srgb, var(--tone, var(--indigo)) 13%, transparent); }
.t-indigo { --tone: var(--t-indigo); } .t-violet { --tone: var(--t-violet); } .t-teal { --tone: var(--t-teal); }
.t-amber { --tone: var(--t-amber); } .t-rose { --tone: var(--t-rose); } .t-sky { --tone: var(--t-sky); }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 1.06rem; letter-spacing: -.01em; }
.brand__logo { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a { padding: 8px 11px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 550; white-space: nowrap; }
.nav a:hover { background: var(--chip); color: var(--ink); }
.nav a.is-active { color: var(--indigo); background: var(--indigo-soft); }
.top__tools { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang__btn { display: inline-flex; gap: 6px; padding: 0 12px; font-weight: 650; font-size: .85rem; }
.lang__menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 170px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 5; }
.lang__menu[hidden] { display: none; }
.lang__menu button { display: block; width: 100%; padding: 10px 14px; border: 0; background: none; border-radius: 10px; text-align: start; font-size: .95rem; }
.lang__menu button:hover { background: var(--chip); }
.lang__menu button[aria-current="true"] { background: var(--indigo-soft); color: var(--indigo); font-weight: 700; }
#themeBtn .ic--moon { display: none; }
.is-dark #themeBtn .ic--sun { display: none; }
.is-dark #themeBtn .ic--moon { display: block; }
.burger { display: none; position: relative; width: 40px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.burger span:nth-child(1) { top: 13px; } .burger span:nth-child(2) { top: 19px; } .burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; z-index: -1; background:
  radial-gradient(60% 55% at 78% 30%, color-mix(in srgb, var(--hero-b) 22%, transparent), transparent 70%),
  radial-gradient(45% 45% at 15% 10%, color-mix(in srgb, var(--hero-a) 16%, transparent), transparent 70%); }
.hero__in { display: grid; gap: clamp(36px, 5vw, 60px); }
.hero__copy { display: grid; justify-items: center; text-align: center; max-width: 880px; margin-inline: auto; }
.hero__stage { position: relative; max-width: 1120px; width: 100%; margin-inline: auto; }
.hero__stage::before { content: ""; position: absolute; inset: 8% -4% -6%; z-index: -1; border-radius: 40px; background: linear-gradient(120deg, color-mix(in srgb, var(--hero-a) 30%, transparent), color-mix(in srgb, var(--hero-b) 26%, transparent)); filter: blur(46px); opacity: .55; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t-teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--t-teal) 22%, transparent); }
.hero h1 { margin-top: 18px; }
.hero__lead { margin-top: 20px; font-size: clamp(1.04rem, .98rem + .35vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero__meta { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.hero__meta a { color: var(--indigo); font-weight: 600; text-decoration: none; }
.hero__meta a:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.chips .ic { color: var(--indigo); }

/* Program screenshots in a window frame */
.frame { border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); overflow: hidden; }
.frame__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); direction: ltr; }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.frame__bar span { margin-inline-start: 8px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.frame__view { position: relative; aspect-ratio: 16 / 10; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.slide.is-on { opacity: 1; }
.shot { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot.missing img { visibility: hidden; }
.stage__tabs { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.stage__tabs button { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.stage__tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Sections */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec--slim { padding: 8px 0 clamp(40px, 5vw, 64px); }
.sec--tint { background: var(--bg-2); }
.head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.kicker { font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); margin-bottom: 10px; }
html:is([lang="ar"], [lang="fa"], [lang="ps"], [lang="hi"]) .kicker { letter-spacing: 0; text-transform: none; font-size: .92rem; }
.head__sub { margin-top: 14px; font-size: 1.07rem; color: var(--muted); max-width: 64ch; }
.card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card h3, .card h4 { margin-top: 14px; }
.card p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.card--flat { box-shadow: none; }
.card--flat h3 { margin-top: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.card--sm { padding: 18px; }
.card--sm h4 { font-size: 1rem; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--indigo-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Who */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.who li { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.who h3 { font-size: 1rem; }
.who p { margin-top: 4px; font-size: .9rem; color: var(--muted); }

/* How it works */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: f; }
.flow li { position: relative; padding: 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 40px; inset-inline-end: -13px; width: 10px; height: 10px; border-top: 2px solid var(--line-strong); border-inline-end: 2px solid var(--line-strong); transform: rotate(45deg); z-index: 1; }
html[dir="rtl"] .flow li:not(:last-child)::after { transform: rotate(-45deg); }
.flow__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; font-weight: 750; }
.flow h3 { margin-top: 14px; }
.flow p { margin-top: 6px; font-size: .92rem; color: var(--muted); }

/* Feature rows */
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 44px) 0; }
.feat + .feat { border-top: 1px solid var(--line); }
.feat--alt { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feat--alt .feat__copy { order: 2; }
.feat__k { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--indigo); font-size: .95rem; }
.feat h3 { margin: 14px 0 20px; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); line-height: 1.25; letter-spacing: -.015em; }
html:is([lang="ar"], [lang="fa"], [lang="ps"], [lang="hi"]) .feat h3 { letter-spacing: 0; line-height: 1.45; }
.more { margin-top: clamp(40px, 6vw, 72px); }
.more__h { font-size: 1.3rem; margin-bottom: 18px; }

/* Gallery */
.gal__nav { display: flex; gap: 8px; }
.gal { display: grid; grid-auto-flow: column; grid-auto-columns: min(440px, 82vw); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; scrollbar-width: thin; }
.gal__item { scroll-snap-align: start; }
.gal__link { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); transition: transform .2s; }
.gal__link:hover { transform: translateY(-2px); }
.gal figcaption { margin-top: 10px; font-size: .92rem; font-weight: 600; color: var(--ink-2); }

/* RKSV band */
.band { background: radial-gradient(70% 90% at 90% 0%, var(--band-2), transparent 70%), var(--band); color: #e9edfb; }
.band .head__sub { color: #b9c2de; }
.kicker--light { color: #a9a4ff; }
.rk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.rk__note { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; color: #c9d0e8; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checks li { position: relative; padding: 16px 16px 16px 48px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-weight: 550; line-height: 1.45; }
html[dir="rtl"] .checks li { padding: 16px 48px 16px 16px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 16px; top: 17px; width: 20px; height: 20px; border-radius: 50%; background: #2dd4bf url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062a26' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Data map */
.map { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 56px 20px; margin-bottom: 32px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.map::before { content: ""; position: absolute; inset: 50% 16.6% auto; height: 0; border-top: 2px dashed var(--line-strong); }
.map__node { position: relative; display: grid; justify-items: center; gap: 4px; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); text-align: center; color: var(--ink-2); }
.map__node .ic { color: var(--indigo); margin-bottom: 4px; }
.map__node b { font-size: .98rem; color: var(--ink); }
.map__node span { font-size: .85rem; color: var(--muted); }
.map__node--main { grid-column: 1 / -1; justify-self: center; min-width: min(340px, 100%); background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; border: 0; box-shadow: var(--shadow-lg); }
.map__node--main .ic, .map__node--main b, .map__node--main span { color: #fff; }
.map__node:not(.map__node--main)::before { content: ""; position: absolute; bottom: 100%; left: 50%; height: 56px; border-inline-start: 2px dashed var(--line-strong); }

/* Updates */
.up { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.up__lists { display: grid; gap: 16px; }
.up__lists h3 { margin-bottom: 14px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--badge-bg); color: var(--badge-ink); font-size: .78rem; font-weight: 750; }
.ver { color: var(--indigo); }
.dlbox { margin-top: 26px; }
.dlbox__meta { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.dlbox__sha { margin-top: 6px; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.dlbox__sha code { font-family: var(--mono); font-size: .76rem; }

/* Buy */
.buy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.buy .btnrow { margin-top: 26px; }
.phone { margin-top: 14px; font-weight: 700; font-size: 1.15rem; }
.buy__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.buy__cards h3 { margin: 0 0 14px; }
.steps { display: grid; gap: 12px; counter-reset: s; }
.steps li { position: relative; padding-inline-start: 38px; color: var(--ink-2); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--indigo-soft); color: var(--indigo); font-weight: 750; font-size: .85rem; }

/* Shop search section (markup and script shared with shops.css / shops.js) */
.shops .sec__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.shops .sec__head h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.sec__sub { margin-top: 10px; color: var(--muted); max-width: 70ch; }
.shops .tile { width: 48px; height: 48px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); }
.faq__list { display: grid; gap: 10px; }
.q { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.q summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-weight: 650; cursor: pointer; list-style: none; }
.q summary::-webkit-details-marker { display: none; }
.q summary .ic { transition: transform .2s; color: var(--muted); }
.q[open] summary .ic { transform: rotate(180deg); }
.q p { padding: 0 18px 18px; color: var(--muted); }

/* Call to action and footer */
.cta { padding: clamp(48px, 7vw, 88px) 0; background: linear-gradient(120deg, var(--hero-a), var(--hero-b)); color: #fff; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta p { margin-top: 10px; opacity: .9; max-width: 56ch; }
.foot { padding: 40px 0 110px; background: var(--band); color: #c3cae0; font-size: .92rem; }
.foot__in { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; }
.foot__brand { display: flex; align-items: center; gap: 10px; font-weight: 750; color: #fff; font-size: 1.05rem; }
.foot__brand img { border-radius: 7px; }
.foot__tag { margin-top: 8px; max-width: 52ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot__copy { grid-column: 1 / -1; font-size: .84rem; opacity: .7; }

/* Floating contact dock (phones only) */
.dock { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 40; display: none; gap: 10px; }
.fab { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; text-decoration: none; box-shadow: 0 10px 26px rgba(8, 10, 40, .32); }
.fab--wa { background: var(--wa); } .fab--call { background: var(--indigo-deep); }

/* Assistant (same avatar as the program) */
.asst { position: fixed; inset-inline-start: 16px; bottom: 12px; z-index: 45; }
.asst__orb { position: relative; display: block; width: 68px; height: 68px; padding: 0; border: 0; background: none; border-radius: 50%; transition: transform .25s; filter: drop-shadow(0 8px 12px rgba(15, 12, 50, .35)); }
.asst__orb:hover { transform: scale(1.07); }
.asst__orb[aria-expanded="true"] { transform: scale(.92); }
.avatar { width: 100%; height: 100%; overflow: visible; }
.avatar * { transform-box: fill-box; transform-origin: center; }
.av-body { animation: avBob 3.8s ease-in-out infinite; }
.av-aura { animation: avAura 3.8s ease-in-out infinite; }
.av-face, .av-eyes, .av-eye { will-change: transform; }
.av-lift { transition: transform .3s ease; }
.av-smile { opacity: 0; transition: opacity .25s ease; }
.av-ripple { opacity: 0; }
.asst__orb:hover .av-lift, .asst__orb:focus-visible .av-lift { transform: translateY(-.06px) scaleY(1.08); }
.asst__orb:hover .av-smile, .asst__orb:focus-visible .av-smile { opacity: .9; }
.asst__orb.is-tap .av-ripple { animation: avRipple .6s ease-out; }
html:not(.av-live) .av-eye { animation: avBlink 5.4s infinite; }
@keyframes avBob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-.045px) scale(1.012); } }
@keyframes avAura { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes avBlink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(.1); } }
@keyframes avRipple { from { opacity: .6; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
.asst__panel { position: absolute; inset-inline-start: 0; bottom: 84px; width: min(372px, calc(100vw - 32px)); display: flex; flex-direction: column; max-height: min(600px, calc(100vh - 130px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.asst__panel[hidden] { display: none; }
.asst__panel:not([hidden]) { animation: pop .22s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.asst__head { display: flex; align-items: center; gap: 12px; padding: 14px; color: #fff; background: linear-gradient(118deg, var(--hero-a), var(--hero-b)); }
.asst__ava { width: 44px; height: 44px; flex: none; border-radius: 50%; background: rgba(8, 10, 40, .35); padding: 3px; }
.asst__ht { display: grid; min-width: 0; flex: 1; }
.asst__ht span { font-size: .8rem; opacity: .85; }
.asst__x { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; }
.asst__log { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 90px; }
.msg { max-width: 88%; padding: 10px 14px; font-size: .93rem; line-height: 1.55; border-radius: 16px; animation: pop .25s ease both; }
.msg--bot { align-self: flex-start; background: var(--chip); }
.msg--me { align-self: flex-end; background: var(--indigo-deep); color: #fff; }
.asst__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 14px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .86rem; font-weight: 600; color: var(--indigo); text-align: start; }
.chip:hover { background: var(--chip); }
.asst__foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.asst__foot p { font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.asst__foot .btnrow { gap: 8px; }

/* Responsive */
@media (max-width: 1180px) {
  .nav a { padding: 8px 8px; font-size: .88rem; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow li::after { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .burger { display: inline-grid; }
  .nav { position: absolute; top: 100%; inset-inline: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .top__tools { margin-inline-start: auto; }
  .feat, .feat--alt, .rk, .up, .buy, .faq { grid-template-columns: minmax(0, 1fr); }
  .feat--alt .feat__copy { order: 0; }
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .top__wa { display: none; }
  .dock { display: flex; }
  .flow, .who, .grid, .grid--3, .buy__cards, .checks { grid-template-columns: minmax(0, 1fr); }
  .hero__cta .btn, .buy .btnrow .btn, .cta .btn { flex: 1 1 100%; }
  .hero__copy { text-align: start; justify-items: start; }
  .chips { justify-content: flex-start; }
  .frame__bar { display: none; }
  .head--row { align-items: flex-start; flex-direction: column; }
  .gal__nav { display: none; }
  .map { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .map::before, .map__node:not(.map__node--main)::before { display: none; }
  .map__node--main { min-width: 0; justify-self: stretch; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .asst__orb { width: 58px; height: 58px; }
  .asst__panel { bottom: 74px; }
  .brand__name { font-size: 1rem; }
  .stage__tabs button { padding: 7px 12px; }
}
@media (max-width: 380px) {
  .brand__name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Arabic, Persian and Pashto: the layout stays exactly as in German (never mirrored); only the text itself runs right-to-left. */
html:is([lang="ar"], [lang="fa"], [lang="ps"]) :is(p, h1, h2, h3, h4, h5, h6, li, dt, dd, td, th, label, legend, summary, figcaption, blockquote, small, span, a, button, strong, b, em, [data-i18n]) { unicode-bidi: plaintext; }
html:is([lang="ar"], [lang="fa"], [lang="ps"]) :is(input, textarea) { unicode-bidi: plaintext; }
html:is([lang="ar"], [lang="fa"], [lang="ps"]) :is(p, li, dd, figcaption, .msg) { text-align: start; }
/* Language menu: every name on one line and aligned the same way, whatever its script. */
.lang__menu button { white-space: nowrap; text-align: left; }

/* HandyKasse wordmark (SVG, outlined): one file for light, one for dark backgrounds */
.brand__wm { display: block; height: 32px; width: auto; }
.foot__brand .brand__wm { height: 26px; }
.wm--dark { display: none; }
:root.is-dark .wm--light { display: none; }
:root.is-dark .wm--dark { display: block; }
@media (max-width: 380px) { .brand .brand__wm { height: 26px; } }
