/* ==========================================================================
   FLINKTAX — shared design system
   Follows the Flinktax Brand Guidelines 2026 (Concept 03 · Optimistic Teal):
   colours, type scale and usage rules. Do not add new brand colours.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License, see assets/fonts/OFL-*.txt). No requests to Google or other font CDNs (GDPR). */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"); 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; }
/* Manrope covers only the Cyrillic letters Plus Jakarta Sans lacks; browsers download it only on Russian pages */
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/manrope-cyrillic-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  /* Brand */
  --teal: #238A96;
  --teal-hover: #1E7A85;
  --teal-pressed: #1A6C76;
  --teal-text: #1C7680;        /* Teal Text: buttons, small teal text, teal surfaces with white text (5.3:1 on white, 4.7:1 on Light Teal) */
  --teal-footer: var(--teal-text);  /* footer background: white text needs Teal Text */
  --footer-heading: var(--yellow-50);  /* footer column headings: Light Yellow (4.8:1 on Teal Text; Soft Yellow is only 2.5:1) */
  --teal-50: #E8F4F3;          /* Light Teal: panels, chips */
  --teal-100: #D7EFED;         /* Teal Mid */
  --teal-line: #8FC2C6;        /* illustration lines */
  --cream: #FFFDF6;
  --cream-warm: #FFF8E7;       /* benefit-card tint from home reference */
  --yellow: #E6B020;           /* Soft Yellow: small accent only */
  --yellow-50: #FBF3D8;        /* Light Yellow */
  --white: #FFFFFF;

  /* Text */
  --navy: #0D1846;
  --navy-soft: #2B3554;
  --gray: #646A7C;             /* 4.8:1 on Light Teal, 5.3:1 on cream */
  --gray-light: #6E7485;       /* meta text: 4.6:1 on cream (was #9A9FAD, 2.6:1) */

  /* Neutrals and lines */
  --neutral-1: #F3F5F4;
  --border: #E4E8E7;           /* Neutral 2 */
  --border-strong: #CCD3D2;    /* Neutral 3 */

  /* Semantic (system states only) */
  --success: #2F7A59;          /* 4.6:1 on Light Teal, 5.2:1 on white */
  --success-50: #E8F4EC;
  --error: #C85B57;
  --error-50: #FBECEA;
  --warning: #9A6B00;
  --warning-50: #FDF4DC;

  /* Shape */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(13, 24, 70, .04);
  --shadow-md: 0 6px 18px rgba(13, 24, 70, .07);
  --shadow-lg: 0 10px 24px rgba(13, 24, 70, .07);
  --shadow-teal: 0 8px 20px rgba(35, 138, 150, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1140px;
  --gutter: 48px;

  --font: "Plus Jakarta Sans", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;            /* Body 16 / 24 */
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-text); text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(35, 138, 150, .45); outline-offset: 2px; border-radius: 4px; }
html.i18n-wait body { visibility: hidden; }   /* prototype only: while a translation loads */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--teal-text); color: #fff; padding: 10px 16px; border-radius: var(--r-md); z-index: 200; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container-md { max-width: calc(900px + var(--gutter) * 2); }
.container-sm { max-width: calc(800px + var(--gutter) * 2); }
.section { padding: 110px 0; }
.section-tight { padding: 72px 0; }
.section-white { background: #fff; }
.center { text-align: center; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 14px;
}
/* Brand type scale: H1 56/64 Bold · H2 36/44 Bold · H3 24/32 SemiBold · Body 16/24 · Button 15/20 SemiBold · Caption 12/16 Medium */
.h-display, .h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.143; font-weight: 700; letter-spacing: -.025em; color: var(--navy); }
.h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.222; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.h3 { font-size: 24px; line-height: 1.333; font-weight: 600; letter-spacing: -.01em; }
.h4 { font-size: 18px; line-height: 1.444; font-weight: 600; }
.caption { font-size: 12px; line-height: 16px; font-weight: 500; }
.lead { font-size: 18px; line-height: 1.6; color: var(--gray); max-width: 470px; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--gray); }
.dot { color: var(--yellow); }
.t-teal { color: var(--teal); }
.t-yellow { color: var(--yellow); }
.u-yellow { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.page-hero { padding: 48px 0 64px; text-align: center; }
.page-hero .lead { margin: 22px auto 0; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: var(--cream); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 36px 46px 30px; max-width: 1920px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 12px; margin-right: 46px; }
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 2px; right: 2px; bottom: -6px;
  height: 2px; border-radius: 2px;
  background: var(--yellow);
  transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--teal-text); }
.nav-links a[aria-current="page"] { color: var(--teal-text); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.lang { position: relative; margin-right: 46px; }
.lang-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; font-size: 18px; font-weight: 500; color: var(--navy); padding: 8px 6px; }
.lang-btn .caret { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 5px solid var(--navy); margin-top: 1px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: -20px; min-width: 170px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 10px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--navy); text-align: left; }
.lang-menu button:hover { background: var(--teal-50); }
.lang-menu button[aria-checked="true"] { color: var(--teal-text); font-weight: 700; }
.menu-toggle svg { width: 24px; height: 24px; flex: none; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--border); background: #fff; border-radius: var(--r-md); cursor: pointer; align-items: center; justify-content: center; color: var(--navy); }
.mobile-menu { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--teal-text); --btn-fg: #fff; --btn-bd: var(--teal-text);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 20px;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-md);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 16px; height: 16px; flex: none; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(35, 138, 150, .22); }
  .btn-primary:hover { --btn-bg: var(--teal-pressed); --btn-bd: var(--teal-pressed); }
  .btn-outline:hover { --btn-bg: #F6FBFB; box-shadow: 0 8px 20px rgba(13, 24, 70, .07); }
  .btn-white:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .12); }
  .btn-ghost:hover { --btn-bg: var(--teal-50); box-shadow: none; }
}
.btn:active { transform: translateY(0) scale(.99); box-shadow: none; }
.btn-primary:active { --btn-bg: #155C64; --btn-bd: #155C64; }
.btn-outline { --btn-bg: #fff; --btn-fg: var(--teal-text); --btn-bd: var(--teal-text); }
.btn-plain { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: var(--border-strong); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--teal-text); --btn-bd: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--teal-text); --btn-bd: transparent; }
.btn-soft { --btn-bg: var(--teal-50); --btn-fg: var(--teal-text); --btn-bd: var(--teal-50); }
.btn-danger { --btn-bg: #fff; --btn-fg: var(--error); --btn-bd: #E7B9B4; }
.btn-sm { min-height: 40px; padding: 0 18px; border-radius: var(--r-sm); }
.btn-lg { min-height: 56px; padding: 0 36px; }
.btn-header { min-height: 50px; padding: 0 30px; }
.btn-header.btn-login { margin-right: 10px; }   /* Log in sits next to Registration */
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 38px; height: 8px;
  background:
    radial-gradient(circle closest-side, var(--btn-fg) 90%, transparent) 0 50% / 8px 8px no-repeat,
    radial-gradient(circle closest-side, var(--btn-fg) 90%, transparent) 50% 50% / 8px 8px no-repeat,
    radial-gradient(circle closest-side, var(--btn-fg) 90%, transparent) 100% 50% / 8px 8px no-repeat;
  animation: dots 1s infinite ease-in-out;
}
.btn-primary.is-loading::after { --btn-fg: #fff; }
@keyframes dots { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.link { color: var(--teal-text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link svg { width: 14px; height: 14px; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.panel-teal { background: var(--teal-50); border-radius: var(--r-lg); }

/* ---------- Chips / tags ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font-size: 12px; font-weight: 600; border-radius: var(--r-pill); background: var(--teal-50); color: var(--teal-text); line-height: 1.3; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 9px; font-size: 13px; font-weight: 600; border-radius: var(--r-pill); line-height: 1.2; white-space: nowrap; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag-teal { background: var(--teal-50); color: var(--teal-text); }
.tag-success { background: var(--success-50); color: var(--success); }
.tag-error { background: var(--error-50); color: var(--error); }
.tag-warning { background: var(--warning-50); color: var(--warning); }
.tag-neutral { background: var(--neutral-1); color: var(--gray); }
.doc-chip { display: inline-block; padding: 5px 10px; font-size: 13px; border-radius: 6px; background: var(--teal-50); color: var(--teal-text); border: 1px solid var(--teal-100); }

/* Pills (blog / help filters) */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  min-height: 40px; padding: 0 17px; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: transparent;
  font-size: 15px; font-weight: 500; color: var(--navy-soft); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pill:hover { border-color: var(--teal); color: var(--teal-text); }
.pill[aria-pressed="true"] { background: var(--teal-text); border-color: var(--teal-text); color: #fff; }

/* ---------- Forms (Registration styling) ---------- */
.form-grid { display: grid; gap: 22px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 10px; position: relative; }
.field > label, .field-label { font-size: 18px; font-weight: 500; color: var(--navy); }
.field .hint { font-size: 14px; color: var(--gray); }
.input-wrap { position: relative; }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 17px;
  font: 16px/1.4 var(--font); color: var(--navy);
  background: var(--cream);
  border: 2px solid var(--border-strong); border-radius: var(--r-md);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--gray-light); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(35, 138, 150, .14); background: #fff; }
.select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%230D1846' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; cursor: pointer; }
.textarea { height: auto; min-height: 120px; padding: 14px 17px; resize: vertical; }
.input-white .input, .input.input-white, .input-white .select { background-color: #fff; }
.input[disabled], .select[disabled] { background-color: var(--neutral-1); color: var(--gray-light); cursor: not-allowed; border-color: var(--border); }
.field.is-valid .input { border-color: var(--teal-100); padding-right: 46px; }
.field.is-valid .input-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--error); background: #fff; }
.field.is-error .input:focus { box-shadow: 0 0 0 4px rgba(200, 91, 87, .12); }
.field-error { display: none; align-items: flex-start; gap: 6px; font-size: 14px; font-weight: 500; color: var(--error); }
.field-error svg { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.field.is-error .field-error { display: flex; }
.input-prefix { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--gray); pointer-events: none; }
.input-prefix + .input { padding-left: 42px; }
.input-suffix { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--gray); pointer-events: none; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--gray); cursor: pointer; border-radius: 6px; }
.pw-toggle:hover { color: var(--teal-text); }
.pw-toggle svg { width: 20px; height: 20px; }

/* Checkbox / toggle */
.check { display: inline-flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 16px; color: var(--navy-soft); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--border-strong); border-radius: 6px; background: #fff; display: grid; place-items: center; transition: all .2s var(--ease); }
.check .box svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(.6); transition: all .2s var(--ease); }
.check input:checked + .box { background: var(--teal); border-color: var(--teal); }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(35, 138, 150, .2); }
.switch { position: relative; display: inline-flex; flex: none; width: 46px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.switch .track { position: absolute; inset: 0; border-radius: 99px; background: var(--border-strong); transition: background .2s var(--ease); pointer-events: none; }
.switch .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .25s var(--ease); }
.switch input:checked + .track { background: var(--teal); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px rgba(35, 138, 150, .22); }

/* Option rows (calculator) & select cards (registration step 4) */
.options { display: grid; gap: 14px; }
.option {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 14px 18px;
  background: #fff; border: 2px solid var(--border); border-radius: var(--r-md);
  font-size: 17px; font-weight: 500; color: var(--navy); text-align: left; cursor: pointer; width: 100%;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.option:hover { border-color: var(--teal-line); }
.option .opt-text { flex: 1; }
.option small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--gray); }
.option .opt-check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; transition: all .2s var(--ease); }
.option .opt-check svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.option.is-multi .opt-check { border-radius: 6px; }
.option:not(.is-multi):not(.has-check) .opt-check { opacity: 0; transform: scale(.6); }
.option:not(.is-multi)[aria-checked="true"] .opt-check { opacity: 1; transform: none; }
.option[aria-checked="true"], .option[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-50); }
.option[aria-checked="true"] .opt-check, .option[aria-pressed="true"] .opt-check { background: var(--teal); border-color: var(--teal); }
.option[aria-checked="true"] .opt-check svg, .option[aria-pressed="true"] .opt-check svg { opacity: 1; }
.option .opt-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-50); color: var(--teal-text); display: grid; place-items: center; }
.option .opt-icon svg { width: 22px; height: 22px; }
.quick-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: #fff; font-size: 15px; color: var(--navy-soft); cursor: pointer; transition: all .2s var(--ease); }
.quick-chip:hover { border-color: var(--teal); color: var(--teal-text); }
.quick-chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-50); color: var(--teal-text); font-weight: 600; }

/* ---------- Progress ---------- */
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.progress { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 99px; transition: width .6s var(--ease); }

/* ---------- Accordion (Pricing FAQ) ---------- */
.accordion { display: grid; gap: 12px; }
.acc-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.acc-item:hover { border-color: var(--border-strong); }
.acc-item.open { box-shadow: var(--shadow-sm); }
.acc-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border: 0; background: none; text-align: left; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--navy); }
.acc-icon { position: relative; flex: none; width: 14px; height: 14px; color: var(--teal-text); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
.acc-item.open .acc-icon::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 22px 20px; font-size: 15px; color: var(--gray); max-width: 680px; }
/* HIW FAQ: answer always visible (matches reference) */
.faq-static .acc-item { padding: 18px 20px; }
.faq-static h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.faq-static p { font-size: 15px; color: var(--gray); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-footer); color: #fff; margin-top: 0; }
.site-footer .top { display: grid; grid-template-columns: 1.25fr .68fr .68fr .68fr 2fr; gap: 24px; padding: 70px 30px 40px 50px; max-width: 1440px; margin: 0 auto; align-items: start; }
.f-intro { color: #fff; font-size: 18px; font-weight: 500; line-height: 1.4; max-width: 270px; margin-top: 30px; }
.f-col h3 { color: var(--footer-heading); font-size: 18px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; }
.f-col li + li { margin-top: 20px; }
.f-col a { color: #fff; font-size: 16px; transition: opacity .2s; }
.f-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.f-app h3 { color: var(--footer-heading); font-size: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.f-app p { color: #fff; font-size: 16px; margin-bottom: 18px; }
.stores { display: flex; gap: 16px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 60px; min-width: 196px; padding: 0 18px; background: #fff; color: var(--navy); border-radius: var(--r-md); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.store:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.store svg { width: 32px; height: 32px; }
.store small { display: block; font-size: 10px; line-height: 1.1; }
.store b { display: block; font-size: 19px; font-weight: 500; line-height: 1.1; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { display: grid; place-items: center; width: 26px; height: 26px; color: #fff; border-radius: 6px; }
.socials a:hover { background: rgba(255,255,255,.12); }
.socials svg { width: 22px; height: 22px; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1400px; margin: 0 auto; padding: 22px 30px 26px; border-top: 1px solid rgba(255, 255, 255, .28); font-size: 16px; }

/* ---------- Final CTA patterns ---------- */
.cta-simple { padding: 110px 0 120px; text-align: center; }
.cta-simple .lead { margin: 18px auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Timeline (How it works) ---------- */
.timeline { position: relative; display: grid; gap: 34px; }
.tl-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 40px; }
.tl-marker { position: relative; display: flex; flex-direction: column; align-items: center; }
.tl-num { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%; background: var(--teal-text); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 700; box-shadow: 0 0 0 6px var(--teal-50); transition: background .3s var(--ease); }
.tl-line { position: absolute; top: 62px; bottom: -34px; width: 2px; background: var(--teal-100); overflow: hidden; }
.tl-line::after { content: ""; position: absolute; inset: 0; background: var(--teal); transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease) .2s; }
.tl-item.in .tl-line::after, .tl-item.done .tl-line::after { transform: scaleY(1); }
.tl-item:last-child .tl-line { display: none; }
.tl-card { padding: 26px 26px 26px; }
.tl-card h3 { font-size: 24px; line-height: 1.333; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.tl-card .sub { color: var(--teal-text); font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.tl-card p.body { color: var(--gray); font-size: 15px; }
.tl-card .doc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* status variants (dashboard refund timeline) */
.tl-item.todo .tl-num { background: #fff; color: var(--gray-light); box-shadow: 0 0 0 2px var(--border-strong) inset, 0 0 0 6px transparent; }
.tl-item.current .tl-num { box-shadow: 0 0 0 6px rgba(230, 176, 32, .28); }
.tl-item.todo .tl-card { background: rgba(255,255,255,.55); }
.tl-item.todo .tl-card h3 { color: var(--navy-soft); }

/* ---------- Reveal motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
.img-in { animation: imgIn .9s var(--ease) both; }
@keyframes imgIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.step-enter { animation: stepIn .38s var(--ease) both; }
.step-enter.back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.fade-enter { animation: fadeUp .4s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Photo frame with graceful fallback */
.photo { position: relative; overflow: hidden; background: var(--teal-50); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.failed img { display: none; }
.photo.failed::after { content: ""; position: absolute; inset: 0; background: var(--teal-50); }

/* Toast */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 15px; animation: fadeUp .3s var(--ease) both; }
.toast svg { width: 20px; height: 20px; color: var(--yellow); flex: none; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 250; background: rgba(13, 24, 70, .35); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s var(--ease); }
.modal-backdrop.show { opacity: 1; }
.modal { width: min(480px, 100%); background: #fff; border-radius: var(--r-xl); padding: 30px; box-shadow: var(--shadow-lg); transform: translateY(10px); transition: transform .25s var(--ease); }
.modal-backdrop.show .modal { transform: none; }
.modal h2 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.modal p { color: var(--gray); margin-bottom: 24px; }
.modal .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Responsive: shared shell ---------- */
@media (min-width: 1800px) {
  :root { --container: 1240px; }
  .site-header .bar { padding-left: 64px; padding-right: 64px; }
}
@media (max-width: 1280px) {
  .nav-links { gap: 4px; margin-right: 28px; }
  .lang { margin-right: 28px; }
  .btn-header { padding: 0 24px; }
}
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .site-header .bar { padding: 28px 32px 24px; }
  .logo img { height: 48px; }
  .nav-links a { font-size: 18px; padding: 8px 10px; }
  .btn-header { padding: 0 18px; }
  .site-footer .top { grid-template-columns: repeat(3, 1fr); padding: 60px 40px 36px; }
  .f-intro { grid-column: 1 / -1; margin-top: 0; max-width: 420px; }
  .f-app { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu {
    /* Full screen below the header bar (top is set by the script when it opens) */
    display: flex; flex-direction: column; position: fixed; left: 0; right: 0; top: var(--menu-top, 84px); bottom: 0; z-index: 60;
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--cream); border-top: 1px solid var(--border);
    padding: 8px 24px 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-header.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu .m-links a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-size: 20px; color: var(--navy); border-bottom: 1px solid var(--border); }
  .mobile-menu .m-links a svg { width: 20px; height: 20px; color: var(--gray-light); flex: none; transition: transform .2s var(--ease), color .2s; }
  .mobile-menu .m-links a:active svg, .mobile-menu .m-links a:hover svg { color: var(--teal); transform: translateX(3px); }
  /* Bottom bar: language + Log in / Registration, always at the bottom and in thumb reach */
  .mobile-menu .m-dock { position: sticky; bottom: 0; margin: auto -24px 0; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--border); display: grid; gap: 12px; }
  .mobile-menu .m-cta { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
  .mobile-menu .m-cta .btn { min-height: 52px; padding: 0 12px; width: 100%; }
  .mobile-menu .m-links a[aria-current="page"] { color: var(--teal-text); }
  .mobile-menu .m-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; bottom: 12px; width: 64px; height: 2px; background: var(--yellow); border-radius: 2px; }
  .mobile-menu .m-lang { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
  .mobile-menu .m-lang button { min-height: 44px; border: 0; background: transparent; border-radius: 9px; font: inherit; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; transition: background .2s var(--ease), color .2s; }
  .mobile-menu .m-lang button[aria-checked="true"] { background: var(--teal-text); color: #fff; border-color: var(--teal-text); }
  .section { padding: 80px 0; }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .site-header .bar { padding: 18px 20px; }
  .logo img { height: 40px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .page-hero { padding: 28px 0 40px; }
  .lead { font-size: 16px; }
  .form-row-2 { grid-template-columns: 1fr; gap: 22px; }
  .field > label, .field-label { font-size: 16px; }
  .btn { min-height: 52px; }

  .site-footer .top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 20px; padding: 48px 20px 32px; }
  .f-col h3 { font-size: 15px; letter-spacing: .08em; margin-bottom: 16px; overflow-wrap: break-word; hyphens: auto; }
  .f-col li + li { margin-top: 14px; }
  .site-footer .bottom { padding: 20px; font-size: 14px; flex-direction: column; }
  .store { min-width: 0; flex: 1 1 150px; }
  .tl-item { grid-template-columns: 44px 1fr; gap: 16px; }
  .tl-num { width: 44px; height: 44px; font-size: 15px; box-shadow: 0 0 0 5px var(--teal-50); }
  .tl-line { top: 52px; }
  .tl-card { padding: 20px; }
  .tl-card h3 { font-size: 21px; }
  .cta-simple { padding: 72px 0 80px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .modal .actions .btn { flex: 1; }
}
@media (max-width: 420px) {
  .site-footer .top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .f-col:nth-of-type(4) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   AUTH (Registration reference) — shared by register.html & login.html
   ========================================================================== */
.auth-top { padding: 46px 64px 0; max-width: 1920px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.auth-top .logo img { height: 60px; }
.auth-top .help { font-size: 15px; color: var(--gray); }
.auth { display: grid; grid-template-columns: minmax(0, 603px) 504px; gap: 110px; justify-content: center; padding: 80px 32px 110px; align-items: start; }
.auth h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.143; font-weight: 700; letter-spacing: -.025em; }
.auth .subtitle { font-size: clamp(18px, 1.7vw, 24px); color: var(--gray); margin: 14px 0 46px; line-height: 1.35; }
.auth .form-grid { gap: 20px; }
.auth .submit { margin-top: 30px; }
.auth .below { text-align: center; font-size: 15px; color: var(--gray); margin-top: 20px; }
.auth .below a { font-weight: 700; }
.auth-step { animation: stepIn .38s var(--ease) both; }
.auth-step.back { animation-name: stepInBack; }
.auth-progress { margin-bottom: 34px; }
.auth-actions { display: flex; gap: 14px; margin-top: 34px; }
.auth-actions .btn { flex: 1; min-height: 56px; }
.auth-actions .btn-primary { flex: 1.6; }
.visual-card {
  position: sticky; top: 32px;
  border-radius: 32px; padding: 70px 56px 64px;
  background: var(--teal-50);
  min-height: 710px; display: flex; flex-direction: column; justify-content: flex-end;
}
.vc-illus { position: relative; width: 190px; height: 190px; margin: 0 auto 36px; }
.vc-doc { position: absolute; left: 0; top: 0; width: 190px; height: 190px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(13,24,70,.05); padding: 36px 24px; display: grid; gap: 22px; align-content: start; }
.vc-doc i { display: block; height: 10px; border-radius: 6px; background: var(--teal-line); }
.vc-doc i:nth-child(1) { width: 62%; } .vc-doc i:nth-child(3) { width: 82%; } .vc-doc i:nth-child(4) { width: 62%; }
.vc-badge { position: absolute; right: -24px; bottom: -14px; width: 70px; height: 70px; border-radius: 50%; background: var(--teal-text); color: #fff; display: grid; place-items: center; }
.vc-badge svg { width: 36px; height: 36px; stroke-width: 2.2; }
.vc-rays { position: absolute; right: -58px; top: -54px; width: 66px; height: 70px; }
.vc-rays span { position: absolute; display: block; height: 6px; border-radius: 4px; background: var(--yellow); }
.vc-rays span:nth-child(1) { width: 30px; left: 0; top: 18px; transform: rotate(-60deg); }
.vc-rays span:nth-child(2) { width: 50px; left: 16px; top: 34px; transform: rotate(-32deg); }
.vc-rays span:nth-child(3) { width: 34px; left: 22px; top: 64px; transform: rotate(4deg); }
.visual-card h2 { font-size: 36px; line-height: 1.222; font-weight: 700; letter-spacing: -.02em; margin-bottom: 34px; }
.visual-card h2 .u { color: var(--teal); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.vc-list li { display: flex; align-items: center; gap: 14px; font-size: 24px; color: var(--navy-soft); padding: 9px 0; }
.vc-list .tk { width: 26px; height: 26px; border-radius: 50%; background: var(--teal-text); color: #fff; display: grid; place-items: center; flex: none; }
.vc-list .tk svg { width: 14px; height: 14px; stroke-width: 2.6; }
.vc-swap { animation: fadeUp .45s var(--ease) both; }
.pw-meter { display: flex; gap: 6px; margin-top: 2px; }
.pw-meter span { flex: 1; height: 4px; border-radius: 4px; background: var(--border); transition: background .3s var(--ease); }
.pw-meter[data-s="1"] span:nth-child(-n+1) { background: var(--error); }
.pw-meter[data-s="2"] span:nth-child(-n+2) { background: var(--yellow); }
.pw-meter[data-s="3"] span:nth-child(-n+3) { background: var(--teal); }
.pw-meter[data-s="4"] span { background: var(--teal); }
.pw-hint { font-size: 13px; color: var(--gray); }
@media (max-width: 1280px) { .auth { gap: 64px; grid-template-columns: minmax(0, 560px) 440px; } .visual-card { padding: 56px 40px; min-height: 620px; } .visual-card h2 { font-size: 34px; } .vc-list li { font-size: 20px; } }
@media (max-width: 1024px) {
  .auth { grid-template-columns: minmax(0, 603px); padding: 56px 32px 80px; gap: 48px; }
  .visual-card { position: static; min-height: 0; padding: 44px 36px; display: grid; grid-template-columns: 150px 1fr; gap: 0 40px; align-items: center; }
  .vc-illus { width: 130px; height: 130px; margin: 0; grid-row: span 2; }
  .vc-doc { width: 130px; height: 130px; padding: 24px 16px; gap: 14px; }
  .vc-badge { width: 52px; height: 52px; right: -16px; } .vc-badge svg { width: 26px; height: 26px; }
  .vc-rays { transform: scale(.7); right: -48px; top: -48px; }
  .visual-card h2 { font-size: 30px; margin-bottom: 14px; }
  .vc-list li { font-size: 17px; padding: 5px 0; }
}
@media (max-width: 767px) {
  .auth-top { padding: 20px 20px 0; }
  .auth-top .logo img { height: 42px; }
  .auth-top .help { display: none; }
  .auth { padding: 36px 20px 64px; gap: 40px; }
  .auth .subtitle { margin-bottom: 30px; }
  .visual-card { display: block; padding: 32px 24px; border-radius: 24px; }
  .vc-illus { display: none; }
  .visual-card h2 { font-size: 28px; }
  .auth-actions { flex-direction: column-reverse; }
}

/* ---------- Legal links (footer, auth pages, dashboard) ---------- */
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legal-links a { color: inherit; text-decoration: none; }
.legal-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-legal { padding: 8px 24px 28px; display: flex; justify-content: center; font-size: 14px; color: var(--gray); }
.side-legal { margin-top: 18px; padding: 0 6px; font-size: 13px; color: var(--gray); }
.side-legal .legal-links { gap: 4px 14px; }

/* ---------- Legal pages: Impressum, terms, privacy ---------- */
.legal, .legal-toc { min-width: 0; overflow-wrap: break-word; }
.legal a, .legal address { overflow-wrap: anywhere; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 56px; justify-content: center; padding: 8px 0 110px; }
.legal-toc { position: sticky; top: 24px; align-self: start; padding: 22px 20px; }
.legal-toc h2 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.legal-toc a { display: block; font-size: 14px; line-height: 1.4; color: var(--navy-soft); padding: 6px 0; }
.legal-toc a:hover { color: var(--teal-text); }
.legal { font-size: 16px; line-height: 1.7; color: var(--gray); }
.legal h2 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--navy); margin: 44px 0 12px; line-height: 1.333; scroll-margin-top: 24px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin: 26px 0 8px; }
.legal p, .legal address { margin: 0 0 14px; font-style: normal; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .box { padding: 22px 24px; margin: 0 0 18px; border-radius: var(--r-lg); background: var(--teal-50); color: var(--navy); }
.legal .box p:last-child { margin-bottom: 0; }
.legal .form-sample { padding: 22px 24px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); background: #fff; }
/* Details only the company can fill in — highlighted until replaced (build.js warns while any remain) */
.ph { background: rgba(230, 176, 32, .28); color: var(--navy); border-radius: 4px; padding: 0 4px; font-weight: 600; }
@media (max-width: 1024px) {
  .legal-layout { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; gap: 24px; }
  .legal-toc { position: static; }
}

/* ---------- Cookie consent (banner + settings dialog, see flinktax.js) ----------
   Centred over a dimmed page until the visitor chooses. "Reject all" is one click and the
   same size as "Accept all", so declining is as easy as agreeing (no consent wall). */
.legal-links .cc-link { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.legal-links .cc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cc-open, .cc-open body { overflow: hidden; }
.cc-veil {
  position: fixed; inset: 0; z-index: 240;
  display: grid; place-items: center; padding: 16px;
  background: rgba(13, 24, 70, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.cc-veil.show { opacity: 1; }
.cc {
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 32px 32px 28px;
  background: #fff; border-radius: var(--r-xl); box-shadow: 0 16px 40px rgba(13, 24, 70, .14);
  text-align: center;
  transform: translateY(14px) scale(.97);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.cc-veil.show .cc { transform: none; }
.cc-head { display: grid; justify-items: center; gap: 14px; margin-bottom: 12px; }
.cc-ic { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--teal-50); color: var(--teal-text); }
.cc-ic svg { width: 32px; height: 32px; }
.cc h2 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.cc p { font-size: 15px; line-height: 1.6; color: var(--navy-soft); }
.cc .cc-links { display: flex; justify-content: center; gap: 18px; margin: 10px 0 24px; font-size: 14px; }
.cc .cc-links a { color: var(--teal-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cc-actions .btn, .cc-modal .actions .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
.cc-modal .modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.cc-cats { display: grid; gap: 10px; margin-bottom: 24px; }
.cc-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer; }
.cc-cat-txt { display: grid; gap: 4px; }
.cc-cat-h { display: flex; align-items: center; gap: 8px; }
.cc-cat b { font-size: 16px; }
.cc-cat em { font-style: normal; }
.cc-cat small { font-size: 13.5px; line-height: 1.45; color: var(--gray); }
/* Switch: a styled checkbox, so it stays keyboard- and screen-reader-friendly */
.cc-switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 2px 0 0; border-radius: 999px; background: var(--border-strong); cursor: pointer; transition: background-color .2s var(--ease); }
.cc-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.cc-switch:checked { background: var(--teal); }
.cc-switch:checked::after { transform: translateX(18px); }
.cc-switch:disabled { opacity: .55; cursor: not-allowed; }
.cc-switch:focus-visible { outline: 3px solid rgba(35, 138, 150, .45); outline-offset: 2px; }
@media (max-width: 640px) {
  .cc-veil { padding: 12px; }
  .cc { padding: 26px 20px 20px; }
  .cc h2 { font-size: 21px; }
  .cc-actions { grid-template-columns: 1fr 1fr; }
  .cc-actions [data-cc="settings"] { grid-column: 1 / -1; order: 3; }
  .cc-modal .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cc-modal .actions [data-r="save"] { grid-column: 1 / -1; order: 3; }
}
@media (prefers-reduced-motion: reduce) { .cc-veil, .cc { transition: none; transform: none; } }

/* ---------- Back to top (flinktax.js wireToTop) ----------
   Same teal as the primary buttons; appears after about a screen of scrolling. */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  width: 48px; height: 48px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--teal-text); color: #fff;
  box-shadow: 0 4px 12px rgba(13, 24, 70, .12);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s, background-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top svg { width: 22px; height: 22px; stroke-width: 2.2; }
.to-top:focus-visible { outline: 3px solid rgba(35, 138, 150, .45); outline-offset: 3px; }
@media (hover: hover) {
  .to-top:hover { background: var(--teal-hover); }
  .to-top:hover svg { transform: translateY(-2px); }
  .to-top svg { transition: transform .2s var(--ease); }
}
.to-top:active { background: var(--teal-pressed); transform: scale(.94); }
.cc-open .to-top { visibility: hidden; }   /* hidden while the cookie dialog is open */
#top:focus { outline: none; }               /* focus lands here after "back to top" */
@media (max-width: 767px) {
  .to-top {
    right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
    width: 44px; height: 44px;
  }
  .to-top svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top, .to-top svg { transition: none; transform: none; }
}
/* Keep the footer's last row clear of the back-to-top button; a thin white ring keeps the button visible on the teal footer */
.site-footer .bottom { padding-right: 96px; }
@media (max-width: 767px) {
  .site-footer .bottom { padding-right: 20px; padding-bottom: 76px; }
  /* Footer links: finger-sized rows */
  .site-footer .legal-links { gap: 0 20px; }
  .site-footer .legal-links a, .site-footer .legal-links .cc-link { display: inline-flex; align-items: center; min-height: 40px; }
}
.to-top { box-shadow: 0 4px 12px rgba(13, 24, 70, .12), 0 0 0 2px rgba(255, 255, 255, .9); }
/* Imported legal texts (tools/import-legal.php) */
.legal ul ul { margin: 6px 0 4px; list-style: circle; }
.legal address.box { line-height: 1.7; }
.legal .legal-source { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--gray-light); }
/* Footer without the app column (no store links yet, see config 'apps') */
.site-footer .top.no-app { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.f-lead .socials { margin-top: 24px; }
@media (max-width: 1100px) { .site-footer .top.no-app { grid-template-columns: repeat(3, 1fr); } .site-footer .top.no-app .f-lead { grid-column: 1 / -1; } }
@media (max-width: 767px) { .site-footer .top.no-app { grid-template-columns: 1fr 1fr; } }

/* ---------- Phones: long words and finger-sized links ---------- */
@media (max-width: 767px) {
  .h1, .h2, h1, h2 { overflow-wrap: break-word; hyphens: auto; }
  a.link, .back-link { min-height: 44px; }
  .back-link { display: inline-flex; align-items: center; }
  a.chip { min-height: 32px; padding: 7px 12px; }
}
/* Tablets too: footer legal links tall enough to tap */
@media (max-width: 1024px) {
  .site-footer .legal-links a, .site-footer .legal-links .cc-link { display: inline-flex; align-items: center; min-height: 40px; }
}

/* ---------- Pause animations (button + paused state) ----------
   Both labels and icons are in the markup (so they are translated with the page); CSS shows the right pair. */
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--gray); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: var(--r-pill); }
.motion-toggle:hover { color: var(--navy); }
.motion-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.motion-toggle svg { width: 14px; height: 14px; flex: none; }
.motion-toggle .mt-play, .motion-paused .motion-toggle .mt-pause { display: none; }
.motion-paused .motion-toggle .mt-play { display: inline-flex; align-items: center; gap: 8px; }
.motion-toggle .mt-pause { display: inline-flex; align-items: center; gap: 8px; }
.motion-toggle.on-dark { color: rgba(255, 255, 255, .8); }
.motion-toggle.on-dark:hover { color: #fff; }
.motion-paused .rotor .caret, .motion-paused .scroll-hint::after { animation: none; opacity: 0; }
.motion-paused .hx-orbit .o3, .motion-paused .hx-year::before, .motion-paused .hx-marquee-row, .motion-paused .hx-rv-row { animation-play-state: paused; }
/* ---------- Language choice on the first visit ---------- */
.lg-open, .lg-open body { overflow: hidden; }
.lg-veil {
  position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 16px;
  background: rgba(13, 24, 70, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.lg-veil.show { opacity: 1; }
.lg {
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 36px 32px 32px;
  background: #fff; border-radius: var(--r-xl); box-shadow: 0 16px 40px rgba(13, 24, 70, .16); text-align: center;
  transform: translateY(14px) scale(.97); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.lg-veil.show .lg { transform: none; }
.lg-logo { display: block; width: 44px; height: 44px; margin: 0 auto 16px; }
.lg-hello { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--navy); }
.lg-hello span:not(:first-child) { color: var(--teal); }
.lg-sub { margin: 10px 0 26px; font-size: 14px; color: var(--gray); }
.lg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lg-opt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 76px; padding: 16px 44px 16px 18px;
  border: 1.5px solid var(--border-strong); border-radius: var(--r-lg); background: #fff; color: var(--navy); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.lg-opt b { font-size: 18px; font-weight: 700; }
.lg-opt small { font-size: 13px; color: var(--gray); }
.lg-opt svg { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--teal); opacity: .5; transition: opacity .2s, transform .2s var(--ease); }
.lg-opt:hover { border-color: var(--teal); background: var(--teal-50); }
.lg-opt:hover svg { opacity: 1; transform: translateX(3px); }
.lg-opt:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.lg-opt.is-suggested { border-color: var(--teal); background: var(--teal-50); }
.lg-opt.is-suggested svg { opacity: 1; }
@media (max-width: 480px) {
  .lg { padding: 28px 18px 20px; }
  .lg-hello { font-size: 22px; }
  .lg-grid { grid-template-columns: 1fr; gap: 10px; }
  .lg-opt { min-height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .lg-veil, .lg, .lg-opt, .lg-opt svg { transition: none; } }
/* Mobile menu open: the page behind it does not scroll */
html.menu-lock, html.menu-lock body { overflow: hidden; }

/* ---------- Cookie notice: bar fixed to the bottom of the page ---------- */
.cc-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 230; margin: 0 auto; max-width: 960px;
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: 0 12px 32px rgba(13, 24, 70, .14);
  transform: translateY(calc(100% + 24px)); opacity: 0; transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.cc-bar.show { transform: none; opacity: 1; }
.cc-bar .cc-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--teal-50); color: var(--teal-text); }
.cc-bar .cc-ic svg { width: 18px; height: 18px; }
.cc-bar p { flex: 1; margin: 0; font-size: 14px; line-height: 1.45; color: var(--navy-soft); }
.cc-bar p a { color: var(--teal-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cc-bar .btn { flex: none; min-height: 40px; }
.cc-bar .cc-x { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--gray); cursor: pointer; }
.cc-bar .cc-x:hover { background: var(--neutral-1); color: var(--navy); }
.cc-bar .cc-x svg { width: 18px; height: 18px; }
.cc-bar .cc-x:focus-visible, .cc-bar a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
/* While the bar is open: the page can scroll past it and "Back to top" sits above it */
.cc-bar-open body { padding-bottom: calc(var(--cc-bar-h, 0px) + 24px); }
.cc-bar-open .to-top { bottom: calc(var(--cc-bar-h, 0px) + 32px); }
@media (max-width: 640px) {
  .cc-bar { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); flex-wrap: wrap; gap: 10px 12px; padding: 12px; }
  .cc-bar p { flex-basis: calc(100% - 100px); font-size: 13px; }
  .cc-bar .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .cc-bar { transition: none; } }
/* Footer: a very large FLINKTAX wordmark in tone-on-tone teal across the bottom, cut off by the page edge */
.site-footer { position: relative; overflow: hidden; }
.f-wordmark {
  display: flex; align-items: center; justify-content: center; gap: .12em;
  margin: 6px 0 -.2em; padding: 0 16px; pointer-events: none; user-select: none;
  font-size: clamp(64px, 17.5vw, 320px); font-weight: 800; line-height: 1; letter-spacing: -.045em;
  color: rgba(255, 255, 255, .07); white-space: nowrap;
}
.f-wordmark img { width: .82em; height: .82em; opacity: .07; flex: none; }

/* Footer social buttons: finger-sized, with a light background */
.socials { gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .12); transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.socials a:hover { background: var(--yellow); color: var(--navy); transform: translateY(-2px); }
.socials a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.socials svg { width: 20px; height: 20px; }
