/* ─── Fonts ─────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-VariableFontopszwght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Italic-VariableFontopszwght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fester';
  src: url('../assets/fonts/Fester-VariableVF.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ─── Design System ────────────────────────────────────────────────────────── */

:root {
  /* Colors — extracted from Nect Jump Page screenshots */
  --c-header:           #0e1528;
  --c-header-text:      #ffffff;
  --c-header-muted:     rgba(255, 255, 255, 0.55);
  --c-header-border:    rgba(255, 255, 255, 0.1);

  --c-surface:          #ffffff;
  --c-visual-bg:        #EEF2F8;  /* light grayish-blue for visual panel */
  --c-bg:               #F8FAFC;
  --c-border:           #E2E8F0;
  --c-border-input:     #D1D5DB;

  --c-text-primary:     #111827;
  --c-text-secondary:   #6B7280;
  --c-text-tertiary:    #9CA3AF;
  --c-text-inverse:     #ffffff;

  /* Partner/brand blue — from "MusterVersicherung" color in screenshots */
  --c-partner:          #0052CC;
  --c-partner-light:    rgba(0, 82, 204, 0.08);

  /* Link color */
  --c-link:             #0052CC;
  --c-link-hover:       #003D99;

  /* CTA — matches header */
  --c-cta:              #1f2a37;
  --c-cta-hover:        #2d3f52;
  --c-cta-text:         #ffffff;

  /* Cyan accent — face mesh, verification badge */
  --c-cyan:             #00B4D8;

  /* Footer background */
  --c-footer-bg:        #f9fafb;

  /* Progress green */
  --c-progress-green:   #0e9f6e;

  /* Product accent for inspector/badges only */
  --c-ident:            #0052CC;
  --c-sign:             #6D28D9;
  --c-box:              #059669;
  --c-eudi:             #1D4ED8;
  --c-eu-blue:          #003399;
  --c-eu-gold:          #FFCC00;

  /* Spacing */
  --sp-1:  4px;  --sp-2:  8px;  --sp-3:  12px; --sp-4:  16px;
  --sp-5:  20px; --sp-6:  24px; --sp-8:  32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* Typography */
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Fester', 'Inter', system-ui, sans-serif;

  --fs-xs:   0.75rem;   /* 12px */
  --fs-sm:   0.8125rem; /* 13px */
  --fs-base: 0.9375rem; /* 15px */
  --fs-lg:   1.0625rem; /* 17px */
  --fs-xl:   1.125rem;  /* 18px */
  --fs-2xl:  1.375rem;  /* 22px */
  --fs-3xl:  1.75rem;   /* 28px */
  --fs-4xl:  2.25rem;   /* 36px */
  --fs-5xl:  2.75rem;   /* 44px */

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semi:   600;
  --fw-bold:   700;
  --fw-black:  800;

  --lh-tight:  1.15;
  --lh-snug:   1.3;
  --lh-base:   1.55;

  /* Layout */
  --layout-max:   1280px;
  --header-h:     60px;
  --visual-ratio: 40%;   /* visual panel width as % of page */

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 36px rgba(0,0,0,0.1);
  --shadow-xl:  0 24px 56px rgba(0,0,0,0.14);

  /* Easing curves */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Transitions */
  --tr-fast: 150ms cubic-bezier(0.23, 1, 0.32, 1);
  --tr-base: 220ms cubic-bezier(0.23, 1, 0.32, 1);
  --tr-slow: 260ms cubic-bezier(0.23, 1, 0.32, 1);

  /* Inspector */
  --inspector-w:  340px;
  --inspector-bg: rgba(10, 14, 28, 0.97);
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-base);
  color: var(--c-text-primary);
  background: var(--c-surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-feature-settings: 'cv02' 1, 'cv03' 1, 'cv04' 1;
}

a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
select, input { font-family: inherit; }
ul { list-style: none; }
img, svg { display: block; }

/* ─── Header ────────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-header);
  height: var(--header-h);
  border-bottom: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 var(--sp-8);
  gap: var(--sp-4);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}

/* Product badge */
/* ─── Product Switcher ─────────────────────────────────────────────────────── */

.product-badge-wrap { position: relative; }

.product-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--fw-medium);
  font-variation-settings: 'wght' 500;
  letter-spacing: 0.2px;
  line-height: 1;
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--tr-fast);
}
.product-badge-btn:hover {
  background: rgba(255,255,255,0.2);
}
.product-badge-btn[aria-expanded="true"] {
  background: rgba(255,255,255,0.22);
}


.product-badge-chevron {
  display: block;
  flex-shrink: 0;
  opacity: 0.55;
  filter: brightness(0) invert(1);
  transition: transform var(--tr-fast);
}
.product-badge-btn[aria-expanded="true"] .product-badge-chevron {
  transform: rotate(180deg);
}

.product-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 12px 32px -4px rgba(0,0,0,0.14);
  min-width: 168px;
  overflow: hidden;
  z-index: 200;
  display: none;
  padding: 4px;
}
.product-dropdown.is-open {
  display: block;
  transform-origin: top left;
  animation: dropdownIn 180ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.product-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background var(--tr-fast);
}
.product-dropdown-item:hover { background: #F3F4F6; }
.product-dropdown-item.is-active { background: #F3F4F6; }

.product-dropdown-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-dropdown-name {
  flex: 1;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  letter-spacing: 0.4px;
  color: var(--c-text-secondary);
}
.product-dropdown-item.is-active .product-dropdown-name {
  color: var(--c-text-primary);
}

.product-dropdown-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-dropdown-check::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--c-text-primary);
  border-bottom: 2px solid var(--c-text-primary);
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.header-case-id {
  font-size: var(--fs-sm);
  color: var(--c-header-muted);
}

.header-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
}

/* ─── Language Switcher ─────────────────────────────────────────────────────── */

/* Pill button in header */
.lang-pill-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 8px;
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--c-header-text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background var(--tr-fast), border-color var(--tr-fast);
  white-space: nowrap;
}
.lang-pill-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
}
.lang-pill-btn[aria-expanded="true"] {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

.lang-pill-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-header-text);
}

/* Flag images — circular display */
.lang-flag-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.18);
}

.lang-dropdown-flag-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.lang-chevron {
  display: block;
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform var(--tr-fast);
}
.lang-pill-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.lang-dropdown-wrap { position: relative; }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 12px 32px -4px rgba(0,0,0,0.14);
  min-width: 172px;
  overflow: hidden;
  z-index: 200;
  display: none;
  padding: 4px;
}
.lang-dropdown.is-open {
  display: block;
  transform-origin: top center;
  animation: dropdownIn 180ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: scale(0.97) translateY(-4px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Dropdown rows */
.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background var(--tr-fast);
}
@media (hover: hover) and (pointer: fine) {
  .lang-dropdown-item:hover { background: #F3F4F6; }
}
.lang-dropdown-item.is-active {
  background: #F3F4F6;
}

.lang-dropdown-name {
  flex: 1;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text-secondary);
}
.lang-dropdown-item.is-active .lang-dropdown-name {
  color: var(--c-text-primary);
  font-weight: var(--fw-semi);
}

/* Active checkmark */
.lang-dropdown-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-dropdown-check::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--c-text-primary);
  border-bottom: 2px solid var(--c-text-primary);
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Mobile case info language buttons */
.mci-lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.55);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--tr-fast), border-color var(--tr-fast), color var(--tr-fast);
}
.mci-lang-btn.is-active {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: white;
}
.mci-lang-btn:hover:not(.is-active) {
  background: rgba(255,255,255,0.06);
}
.mci-flag-img {
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

/* Mobile info toggle */
.mobile-info-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  transition: background var(--tr-fast);
}
.mobile-info-toggle:hover { background: rgba(255,255,255,0.16); }

/* ─── Mobile case info ──────────────────────────────────────────────────────── */

.mobile-case-info {
  background: #0e1528;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms cubic-bezier(0.23, 1, 0.32, 1);
  border-bottom: 1px solid transparent;
}
.mobile-case-info.is-open {
  grid-template-rows: 1fr;
  border-bottom-color: rgba(255,255,255,0.06);
}

.mobile-case-info-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: padding 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
.mobile-case-info.is-open .mobile-case-info-inner {
  padding: 16px 24px 24px;
}

.mci-section-label {
  font-size: 12px;
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
}

.mci-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.mci-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
}
.mci-label { color: rgba(255,255,255,0.45); font-weight: var(--fw-light); }
.mci-value { color: white; font-weight: var(--fw-medium); }

.mci-lang-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.mci-lang-section .lang-dropdown {
  position: static;
  margin-top: var(--sp-2);
  min-width: unset;
  width: 100%;
  box-shadow: none;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.mci-lang-single {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: white;
  padding: 10px 16px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background var(--tr-fast), border-color var(--tr-fast);
}
.mci-lang-single:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }

.mci-lang-chevron {
  margin-left: auto;
  opacity: 0.55;
  transition: transform var(--tr-fast);
}

.mci-lang-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* ─── Drawer language dropdown ──────────────────────────────────────────────── */

.mci-lang-section { margin-top: var(--sp-1); }

.mci-lang-dropdown-wrap { position: relative; }

.mci-lang-single.is-expanded { border-color: rgba(255,255,255,0.3); }
.mci-lang-single.is-expanded .mci-lang-chevron { transform: rotate(180deg); }

.mci-lang-options-list {
  display: none;
  flex-direction: column;
  margin-top: var(--sp-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
}
.mci-lang-options-list.is-open { display: flex; }

.mci-lang-option {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  text-align: left;
  transition: background var(--tr-fast), color var(--tr-fast);
}
.mci-lang-option:first-child { border-top: none; }
.mci-lang-option:hover { background: rgba(255,255,255,0.06); color: white; }
.mci-lang-option.is-active { background: rgba(255,255,255,0.08); color: white; }

.mci-lang-option-name { flex: 1; }

.mci-lang-option-check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.mci-lang-option-check::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ─── Footer mobile language switcher ──────────────────────────────────────── */

.footer-mobile-lang {
  display: none;
  padding: var(--sp-6) 0 var(--sp-4);
}

.footer-lang-wrap { position: relative; display: inline-block; }

.footer-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: transparent;
  border: 1px solid #111928;
  border-radius: 8px;
  color: #111928;
  padding: 10px 16px;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background var(--tr-fast), border-color var(--tr-fast);
}
.footer-lang-btn:hover { background: rgba(17,25,40,0.06); }
.footer-lang-btn.is-expanded { border-color: #111928; background: rgba(17,25,40,0.06); }
.footer-lang-btn.is-expanded .footer-lang-chevron { transform: rotate(180deg); }

.footer-lang-label { font-size: var(--fs-base); }

.footer-lang-flag-img {
  border-radius: 50%;
  border: 1px solid #9CA3AF;
  display: block;
  flex-shrink: 0;
}

.footer-lang-chevron {
  margin-left: var(--sp-1);
  opacity: 0.6;
  transition: transform var(--tr-fast);
}

.footer-lang-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 200;
}
.footer-lang-dropdown.is-open { display: block; }

.footer-lang-option {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  background: transparent;
  border: none;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-primary);
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  text-align: left;
  transition: background var(--tr-fast);
}
.footer-lang-option:first-child { border-top: none; }
.footer-lang-option:hover { background: var(--c-bg); }
.footer-lang-option.is-active { background: var(--c-bg); }

.footer-lang-option-name { flex: 1; }

.footer-lang-option-check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.footer-lang-option-check::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--c-text-primary);
  border-bottom: 2px solid var(--c-text-primary);
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ─── Page layout ───────────────────────────────────────────────────────────── */

.jump-page { flex: 1; }

.page-layout {
  display: flex;
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h) - 280px);
}

/* ─── Visual panel ──────────────────────────────────────────────────────────── */

.page-visual {
  flex: 0 0 var(--visual-ratio);
  background: var(--c-visual-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-12) var(--sp-10);
  gap: var(--sp-6);
  min-height: 480px;
  position: relative;
}

/* All product visual types use same light panel background */
.visual-ident,
.visual-sign,
.visual-box { background: var(--c-visual-bg); }

.visual-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.18));
}

.visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sign visual — desktop: full composition image; mobile: doc in container */
.visual-type-sign {
  background: white;
  padding: min(80px, 6vh) var(--sp-8);
  align-items: center;
  justify-content: center;
}
.visual-type-sign .visual-inner {
  width: 100%;
  max-width: 480px;
  flex: 0 0 auto;
}
.visual-type-sign .visual-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Sign fan visual — 3 fanned documents on a light circle background */
/* Centered layout for letter product images */
.visual-type-letter {
  background: white;
  padding: 40px var(--sp-8);
  gap: var(--sp-6);
}
.visual-type-letter .visual-inner {
  width: 100%;
  max-width: 420px;
  flex: 0 0 auto;
  align-self: unset;
}
.visual-type-letter .visual-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Face type: padded + rounded image container (matches Figma) */
.visual-type-face {
  background: white;
  padding: min(130px, 8vh) var(--sp-5);
  align-items: center;
  justify-content: center;
}
.visual-type-face .visual-inner {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  border-radius: 42px;
  overflow: hidden;
  flex: 0 0 auto;
  align-self: unset;
}
.visual-type-face .visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Secondary action below the visual */
.visual-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 var(--sp-6);
  border: 1.5px solid var(--c-border-input);
  border-radius: var(--r-md);
  background: white;
  color: var(--c-text-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: border-color var(--tr-fast), background var(--tr-fast);
}
.visual-secondary-btn:hover {
  border-color: var(--c-text-secondary);
  background: var(--c-visual-bg);
  text-decoration: none;
}

/* ─── Content panel ─────────────────────────────────────────────────────────── */

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-12) var(--sp-16);
  background: var(--c-surface);
  min-width: 0;
}

/* Partner info row */
.partner-info {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.partner-name {
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--c-partner);
  letter-spacing: -0.01em;
}

.partner-verified-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--c-partner);
  border-radius: 50%;
  flex-shrink: 0;
}
.partner-verified-icon svg { display: block; }

/* Headline & subline */
.page-headline {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: var(--fw-medium);
  font-variation-settings: 'wght' 500;
  line-height: 1.25;
  color: var(--c-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
  hyphens: auto;
  overflow-wrap: break-word;
}

.page-subline {
  font-family: var(--font);
  font-size: 18px;
  font-weight: var(--fw-normal);
  color: var(--c-text-secondary);
  line-height: var(--lh-base);
  margin-bottom: var(--sp-8);
  max-width: 540px;
  hyphens: auto;
  overflow-wrap: break-word;
}
.page-subline strong {
  color: var(--c-text-primary);
  font-weight: var(--fw-semi);
}

/* ─── Action area ───────────────────────────────────────────────────────────── */

.action-area { width: 100%; }

/* Desktop: link LEFT, QR RIGHT */
.action-columns {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: clamp(var(--sp-8), 4vw, var(--sp-16));
  align-items: start;
}

.action-col-separator {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 32px;
  color: var(--c-text-tertiary);
  font-size: var(--fs-sm);
}

.action-col-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--fw-bold);
  color: var(--c-text-primary);
  margin-bottom: var(--sp-1);
  line-height: 1.25;
  hyphens: auto;
  overflow-wrap: break-word;
}

.action-col-helper {
  font-family: var(--font);
  font-size: 14px;
  font-weight: var(--fw-normal);
  color: var(--c-text-secondary);
  line-height: var(--lh-base);
  margin-bottom: var(--sp-5);
  hyphens: auto;
  overflow-wrap: break-word;
}

/* ─── Link form ─────────────────────────────────────────────────────────────── */

.link-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.field-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: var(--sp-4);
}

.field-group { display: flex; flex-direction: column; gap: var(--sp-2); }

.field-label {
  font-size: 14px;
  line-height: 1.5;
  font-weight: var(--fw-medium);
  color: var(--c-text-primary);
}

.input, .select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-border-input);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.25;
  color: var(--c-text-primary);
  background: #f9fafb;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder {
  color: var(--c-text-secondary);
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--c-partner);
  box-shadow: 0 0 0 3px rgba(0,82,204,0.1);
}
.input.is-error {
  border-color: #f05252;
  box-shadow: none;
}
.input.is-error:focus {
  border-color: #f05252;
  box-shadow: 0 0 0 3px rgba(240,82,82,0.12);
}
.field-error {
  display: block;
  min-height: 0;
  font-size: 12px;
  color: #e02424;
  margin-top: 4px;
  line-height: 1.4;
}
.field-error:empty { display: none; }

/* Country custom dropdown */
.country-dropdown-wrap { position: relative; }

.country-flag-img {
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
}

.country-select-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.country-select-btn:focus {
  outline: none;
  border-color: var(--c-partner);
  box-shadow: 0 0 0 3px rgba(0,82,204,0.1);
}
.country-dial-code {
  flex: 1;
  font-size: 14px;
  color: var(--c-text-primary);
}
.country-chevron {
  flex-shrink: 0;
  transition: transform var(--tr-fast);
}
.country-select-btn[aria-expanded="true"] .country-chevron { transform: rotate(180deg); }

.country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 12px 32px -4px rgba(0,0,0,0.14);
  min-width: 220px;
  overflow: hidden;
  z-index: 200;
  display: none;
  padding: 4px;
}
.country-dropdown.is-open {
  display: block;
  transform-origin: top left;
  animation: dropdownIn 180ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background var(--tr-fast);
}
@media (hover: hover) and (pointer: fine) {
  .country-option:hover { background: #F3F4F6; }
}
.country-option.is-active { background: #F3F4F6; }

.country-option-dial {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--c-text-primary);
  min-width: 36px;
}
.country-option-name {
  flex: 1;
  font-size: 13px;
  color: var(--c-text-secondary);
}
.country-option.is-active .country-option-name { color: var(--c-text-primary); }

.country-option-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.country-option-check:not(.country-option-check--empty)::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--c-text-primary);
  border-bottom: 2px solid var(--c-text-primary);
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Phone input with icon */
.phone-input-wrap {
  position: relative;
}
.phone-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-tertiary);
  pointer-events: none;
  display: flex;
}
.input--phone {
  padding-left: 36px;
  padding-right: 36px;
}
.phone-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--tr-fast);
}
@media (hover: hover) and (pointer: fine) {
  .phone-clear-btn:hover { opacity: 1; }
}

/* Consent */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  cursor: pointer;
}
.consent-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.custom-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 4px;
  border: 1.5px solid var(--c-border-input);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms var(--ease-out), border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.consent-checkbox:focus-visible + .custom-checkbox {
  outline: 2px solid var(--c-partner);
  outline-offset: 2px;
}
.consent-checkbox:checked + .custom-checkbox {
  background: var(--c-partner);
  border-color: var(--c-partner);
}
.check-path {
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  transition: stroke-dashoffset 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
.consent-checkbox:checked + .custom-checkbox .check-path {
  stroke-dashoffset: 0;
}
.consent-text {
  font-size: var(--fs-xs);
  color: var(--c-text-secondary);
  line-height: 1.5;
  hyphens: auto;
  overflow-wrap: break-word;
}
.consent-text a {
  color: var(--c-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 41px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  border: 1.5px solid transparent;
  transition: background var(--tr-fast), border-color var(--tr-fast), color var(--tr-fast), opacity var(--tr-fast), transform 100ms var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--c-partner); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .btn:active { transform: scale(0.97); }
}

.btn--primary {
  background: var(--c-cta);
  color: var(--c-cta-text);
  border-color: var(--c-cta);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--c-cta-hover); border-color: var(--c-cta-hover); }
}
.btn--primary.is-success { background: #059669; border-color: #059669; }

/* ─── Link sent success state ──────────────────────────────────────────────── */
.link-sent-state {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  animation: linkSentIn 180ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes linkSentIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.link-sent-icon {
  flex-shrink: 0;
  color: #059669;
  margin-top: 1px;
}
.link-sent-body {
  flex: 1;
  min-width: 0;
}
.link-sent-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  color: #065f46;
  line-height: 1.4;
}
.link-sent-desc {
  margin: 0 0 var(--sp-2);
  font-size: 13px;
  color: #047857;
  line-height: 1.4;
}
.link-sent-again {
  font-size: 13px;
  color: #059669;
}
.btn--primary.is-disabled { opacity: 0.45; pointer-events: none; }

.btn--ghost {
  background: var(--c-surface);
  color: var(--c-text-primary);
  border-color: var(--c-border-input);
}
.btn--ghost:hover { background: var(--c-visual-bg); border-color: var(--c-text-secondary); text-decoration: none; }

.btn--send {
  min-width: 160px;
  position: relative;
  overflow: hidden;
}
.btn--full { width: 100%; }
.btn--xl {
  height: auto;
  padding: 14px 24px;
  font-size: 1rem; /* 16px */
  font-weight: var(--fw-medium);
  border-radius: 8px;
}

/* ─── Send button morphing ──────────────────────────────────────────────────── */
.send-label {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.send-spinner,
.send-checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn--send[data-state="loading"] { pointer-events: none; }
.btn--send[data-state="loading"] .send-label { opacity: 0; transform: scale(0.6); }
.btn--send[data-state="loading"] .send-spinner {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.btn--send[data-state="loading"] .send-spinner svg {
  animation: spin 750ms linear infinite;
}
.btn--send[data-state="success"] {
  background-color: #16a34a;
  border-color: #16a34a;
  pointer-events: none;
}
.btn--send[data-state="success"] .send-label { opacity: 0; transform: scale(0.6); }
.btn--send[data-state="success"] .send-checkmark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.send-check-path {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  transition: stroke-dashoffset 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms;
}
.btn--send[data-state="success"] .send-check-path { stroke-dashoffset: 0; }

.send-success-wrap { margin-top: 12px; }

/* Send via email text link */
.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--c-link);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn-link:hover { text-decoration: underline; text-underline-offset: 2px; }
}

/* Send row — primary button + email link side by side */
.send-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* ─── QR section ────────────────────────────────────────────────────────────── */

.qr-column {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 156px;
}

.qr-image-wrap {
  display: inline-flex;
  margin-bottom: var(--sp-4);
}

.qr-code-wrap { position: relative; display: inline-block; }

.qr-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.qr-step {
  font-size: var(--fs-xs);
  color: var(--c-text-secondary);
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.qr-step-num {
  font-weight: var(--fw-semi);
  color: var(--c-partner);
  flex-shrink: 0;
  font-size: var(--fs-xs);
}

/* ─── Email field ────────────────────────────────────────────────────────────── */

.email-field[hidden] { display: none; }
.email-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* ─── Mobile action area ────────────────────────────────────────────────────── */

.action-mobile {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.mobile-note {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-base);
}
.mobile-note strong { color: var(--c-text-primary); font-weight: var(--fw-semi); }

.mobile-cta-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.store-badges-mobile {
  display: flex;
  gap: var(--sp-6);
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--sp-2);
}
.store-badges-mobile .store-badge-link img {
  height: 48px;
  width: auto;
  display: block;
}
.store-badge-link {
  display: block;
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: opacity var(--tr-fast);
}
@media (hover: hover) and (pointer: fine) {
  .store-badge-link:hover { opacity: 0.85; text-decoration: none; }
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--c-footer-bg);
  border-top: none;
  padding: 100px 0 40px;
}

.footer-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

/* Footer top: brand left + link columns right */
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-10);
  margin-bottom: 64px;
}

/* Column 1: Nect brand */
.footer-brand { display: flex; flex-direction: column; gap: 64px; flex-shrink: 0; width: 392px; }

.footer-brand-top { display: flex; flex-direction: column; gap: var(--sp-6); }

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.footer-logo-icon {
  width: 68px;
  height: 68px;
  background: var(--c-header);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.footer-logo-name {
  display: flex;
  align-items: center;
}

.footer-tagline {
  font-family: var(--font);
  font-size: 16px;
  font-weight: var(--fw-normal);
  color: #1f2a37;
  line-height: 1.8;
  max-width: 320px;
  hyphens: auto;
  overflow-wrap: break-word;
}

.footer-stores {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

/* Link columns group */
.footer-cols {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-8);
  flex: 1;
  max-width: 640px;
}

.footer-col { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 160px; }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--fw-bold);
  color: #212121;
  margin-bottom: 0;
  line-height: 1.25;
}

.footer-links { display: flex; flex-direction: column; gap: var(--sp-4); }

.footer-link {
  font-family: var(--font);
  font-size: 16px;
  font-weight: var(--fw-normal);
  color: #1f2a37;
  text-decoration: none;
  transition: color var(--tr-fast);
  line-height: 1.5;
}
.footer-link:hover { color: var(--c-text-primary); text-decoration: none; }

/* Footer bottom: social icons between horizontal rules + copyright */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  width: 100%;
}

.footer-social-rule {
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-primary);
  transition: opacity var(--tr-fast);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .footer-social-link:hover { opacity: 0.6; text-decoration: none; }
}

.footer-copyright {
  font-family: var(--font);
  font-size: 14px;
  font-weight: var(--fw-normal);
  color: #374151;
  text-align: center;
}

.footer-legal-links { display: flex; gap: var(--sp-5); }

/* ─── Scenario control ──────────────────────────────────────────────────────── */

.scenario-control {
  position: fixed;
  bottom: var(--sp-5);
  left: var(--sp-5);
  z-index: 200;
  background: var(--c-header);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  min-width: 260px;
  max-width: 300px;
}

.sc-inner { padding: var(--sp-4); }
.sc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.sc-label { font-size: 10px; font-weight: var(--fw-semi); color: rgba(255,255,255,0.4); letter-spacing: 0.08em; text-transform: uppercase; }
.sc-body { margin-bottom: var(--sp-3); }
.sc-field-label { display: block; font-size: var(--fs-xs); color: rgba(255,255,255,0.4); margin-bottom: var(--sp-2); }

.select--scenario {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  height: 38px;
  border-radius: var(--r-md);
  padding: 0 var(--sp-3);
  font-size: var(--fs-sm);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.select--scenario:focus { outline: none; border-color: rgba(255,255,255,0.3); }
.select--scenario option { background: #1a2640; color: white; }

.sc-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.sc-tag { font-size: 10px; font-weight: var(--fw-semi); padding: 2px 7px; border-radius: var(--r-full); letter-spacing: 0.04em; }
.sc-tag--device  { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.sc-tag--lang    { background: rgba(0,82,204,0.4); color: #7eb8ff; }
.sc-tag--country { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.55); }
.sc-tag--product { background: rgba(0,180,216,0.15); color: #00C8E0; }

/* ─── Inspector toggle ──────────────────────────────────────────────────────── */

.inspector-toggle {
  position: fixed;
  bottom: var(--sp-5);
  right: var(--sp-5);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-header);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-md);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.inspector-toggle:hover { background: #1C2535; color: white; }
.inspector-toggle[aria-expanded="true"] { background: var(--c-partner); border-color: var(--c-partner); color: white; }
.inspector-toggle-icon { font-size: var(--fs-base); }
.inspector-toggle-label { letter-spacing: 0.03em; }

/* ─── Inspector panel ───────────────────────────────────────────────────────── */

.orchestration-inspector {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--inspector-w);
  background: var(--inspector-bg);
  border-left: 1px solid rgba(255,255,255,0.07);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); /* exit: snappy */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.orchestration-inspector.is-open {
  transform: translateX(0);
  transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1); /* enter: drawer feel */
}

.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.inspector-title { font-size: var(--fs-sm); font-weight: var(--fw-semi); color: rgba(255,255,255,0.9); }
.inspector-close {
  background: none; border: none; color: rgba(255,255,255,0.4);
  font-size: var(--fs-lg); width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); transition: color var(--tr-fast), background var(--tr-fast);
}
.inspector-close:hover { color: white; background: rgba(255,255,255,0.08); }

.inspector-body {
  flex: 1; overflow-y: auto; padding: var(--sp-5) var(--sp-6);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.inspector-routing-reason {
  padding: var(--sp-4);
  background: rgba(0,180,216,0.06);
  border: 1px solid rgba(0,180,216,0.15);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-5);
}
.inspector-reason-label {
  font-size: 10px; font-weight: var(--fw-semi); letter-spacing: 0.07em;
  text-transform: uppercase; color: #00C8E0; display: block; margin-bottom: var(--sp-2);
}
.inspector-reason-text { font-size: var(--fs-xs); color: rgba(255,255,255,0.75); line-height: var(--lh-base); }

.inspector-rows { display: flex; flex-direction: column; }
.inspector-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--sp-4); padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  animation: rowFadeIn 280ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes rowFadeIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.inspector-row:last-child { border-bottom: none; }
.inspector-row-key { font-size: var(--fs-xs); color: rgba(255,255,255,0.4); white-space: nowrap; flex-shrink: 0; }
.inspector-row-value { font-size: var(--fs-xs); color: rgba(255,255,255,0.85); text-align: right; line-height: var(--lh-base); }

.inspector-actions { padding: var(--sp-4) 0 var(--sp-2); }
.inspector-clear-btn {
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  background: transparent;
  border: 1px solid rgba(255, 80, 80, 0.28);
  border-radius: var(--r-sm);
  color: rgba(255, 100, 100, 0.75);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  letter-spacing: 0.02em;
  text-align: center;
}
.inspector-clear-btn:hover {
  background: rgba(255, 60, 60, 0.1);
  border-color: rgba(255, 80, 80, 0.5);
  color: rgba(255, 130, 130, 1);
}

/* ─── Responsive: Wide desktop — früher weniger Gap zwischen Bild und Content ── */

@media (max-width: 1200px) {
  :root { --visual-ratio: 36%; }
  .page-content { padding: var(--sp-12) var(--sp-10); }
}

/* ─── Responsive: Tablet ────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  :root { --visual-ratio: 35%; }

  .page-content { padding: var(--sp-10) var(--sp-10); }
  .page-headline { font-size: 44px; }
  .page-subline { font-size: 16px; }

  /* Face image: 328×328px, 28px radius per Figma tablet */
  .visual-type-face { padding: 40px var(--sp-5); }
  .visual-type-face .visual-inner { max-width: 328px; border-radius: 28px; }

  /* Letter: smaller max-width on tablet */
  .visual-type-letter .visual-inner { max-width: 300px; }
  .visual-type-letter { padding: 32px var(--sp-6); }

  /* Hide QR column on tablet — form takes full grid width */
  .action-column--qr { display: none; }
  .action-columns { grid-template-columns: 1fr; gap: var(--sp-10); }

  .footer-top { flex-wrap: wrap; }
  .footer-brand { width: 100%; }
  .footer-cols { flex-wrap: wrap; }

  .orchestration-inspector { width: 300px; }
}

/* ─── Responsive: Mobile ────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  :root { --header-h: 56px; }

  /* Header on mobile */
  .header-case-id { display: none; }
  .header-divider { display: none; }
  .site-header .lang-dropdown-wrap { display: none; }
  .mobile-info-toggle { display: flex; }

  /* Stacked layout */
  .page-layout { flex-direction: column; min-height: unset; }

  /* Visual panel: default 250px height on mobile */
  .page-visual {
    flex: none;
    height: 250px;
    min-height: 250px;
    width: 100%;
    padding: 0;
    background: #d9e1e6;
    overflow: hidden;
  }

  /* Face visual: container grows only minimally with viewport width */
  .visual-type-face.page-visual {
    height: clamp(220px, 60vw, 295px);
    min-height: unset;
    background: #d9e1e6;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /*
   * Image grows proportionally with the viewport (72vw), keeping the face in focus.
   * Narrow: fills nearly full width. Wider: image grows too, gray expands around it.
   */
  .visual-type-face .visual-inner {
    width: min(100%, clamp(260px, 72vw, 380px));
    height: 100%;
    max-width: none;
    border-radius: 0;
    align-self: center;
    flex-shrink: 0;
    overflow: hidden;
  }

  /* Face mobile image: fills the constrained visual-inner, face positioned toward top */
  .visual-img--face-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
  }

  /* Sign: mobile container — full-width, 250px, bottom anschnitt */
  .visual-type-sign.page-visual {
    height: 250px;
    min-height: unset;
    background: #eef3fb;
    padding: 0;
    overflow: hidden;
    position: relative;
  }
  .visual-type-sign.page-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0px -36px 36px 0px rgba(0,0,0,0.03), inset 0px -8px 16px 0px rgba(0,0,0,0.04);
  }
  .visual-type-sign .visual-inner {
    width: 100%;
    height: 100%;
    max-width: none;
    flex-shrink: 0;
  }
  .visual-img--sign-mobile {
    width: clamp(50%, calc(550px - 32vw), 100%) !important;
    height: auto;
    display: block;
    margin: 0 auto;
    transform: translateY(30%);
  }

  /* Letter: full-bleed mobile image */
  .visual-type-letter {
    height: 250px;
    padding: 0;
    background: #eef3fb;
  }
  .visual-type-letter .visual-inner {
    width: 100%;
    height: 100%;
    max-width: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Document/letter mobile images: cover fill */
  .visual-img--mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .visual-img--box-mobile {
    width: auto !important;
    max-width: 80% !important;
    height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    display: block;
    margin: auto;
  }

  /* Content panel */
  .page-content {
    padding: var(--sp-8) var(--sp-6) var(--sp-20);
    justify-content: flex-start;
  }

  .page-headline { font-size: 36px; }
  .page-subline { font-size: 18px; margin-bottom: var(--sp-6); }

  /* Field layout single column */
  .field-row { grid-template-columns: 1fr; gap: var(--sp-3); }
  .send-row { flex-direction: column; align-items: flex-start; }
  .send-row .btn--send { width: 100%; }

  /* Drawer overlay: floats over content instead of pushing it down */
  .mobile-case-info {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 150;
    box-shadow: 0 4px 16px rgba(0,0,0,0.32);
    overflow: hidden;
  }

  /* Footer */
  .site-footer { padding: 48px 0 32px; }
  .footer-top { flex-direction: column; }
  .footer-brand { width: 100%; }
  .footer-cols { width: 100%; flex-direction: column; gap: var(--sp-8); }
  .footer-col-title { font-size: 18px; }
  .footer-link { font-size: 14px; }
  .footer-social-row { gap: var(--sp-4); }
  .footer-social-rule { flex: 1; }
  .footer-copyright { text-align: center; }
  .footer-mobile-lang { display: flex; }

  /* Scenario control: full-width bottom bar */
  .scenario-control {
    position: fixed; bottom: 0; left: 0; right: 0; max-width: none;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border: none; border-top: 1px solid rgba(255,255,255,0.1);
  }

  /* Inspector as bottom drawer */
  .orchestration-inspector {
    top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: 65vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-left: none; border-top: 1px solid rgba(255,255,255,0.07);
    transform: translateY(100%);
  }
  .orchestration-inspector.is-open { transform: translateY(0); }
}

/* ─── Floating element spacing — always reserve space for preset + inspector ── */
.site-footer { padding-bottom: 96px; }
@media (max-width: 768px) {
  .site-footer { padding-bottom: 120px; }
}

/* ─── Preset control ─────────────────────────────────────────────────────────── */

.preset-control {
  position: fixed;
  bottom: var(--sp-5);
  left: var(--sp-5);
  z-index: 200;
}

.preset-wrap { position: relative; }

.preset-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-header);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background var(--tr-fast), color var(--tr-fast), border-color var(--tr-fast);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.preset-btn:hover { background: #1C2535; color: rgba(255,255,255,0.85); }
.preset-btn.has-preset { color: white; border-color: rgba(100,150,255,0.35); background: #12203a; }
.preset-btn-chevron { opacity: 0.45; transition: transform var(--tr-fast), opacity var(--tr-fast); flex-shrink: 0; }
.preset-btn.is-open .preset-btn-chevron { transform: rotate(180deg); opacity: 0.8; }

.preset-dropdown {
  position: absolute;
  bottom: calc(100% + var(--sp-2));
  left: 0;
  width: 248px;
  background: var(--c-header);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.preset-dropdown.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.preset-none-wrap {
  padding: var(--sp-2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.preset-group {
  padding: var(--sp-2);
}
.preset-group + .preset-group {
  border-top: 1px solid rgba(255,255,255,0.06);
}
.preset-group-label {
  display: block;
  font-size: 10px;
  font-weight: var(--fw-semi);
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--sp-1) var(--sp-3) var(--sp-2);
}

.preset-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 7px var(--sp-3);
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-xs);
  font-weight: var(--fw-normal);
  text-align: left;
  cursor: pointer;
  border-radius: var(--r-md);
  transition: background var(--tr-fast), color var(--tr-fast);
  line-height: var(--lh-base);
}
.preset-item:hover { background: rgba(255,255,255,0.07); color: white; }
.preset-item.is-active { background: rgba(255,255,255,0.1); color: white; font-weight: var(--fw-medium); }

.preset-item--none { color: rgba(255,255,255,0.4); font-style: italic; }
.preset-item--none.is-active { background: transparent; color: rgba(255,255,255,0.5); }
.preset-item--none:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); }

.preset-item--demo { color: rgba(180,210,255,0.8); }
.preset-item--demo:hover { color: white; }
.preset-item--demo.is-active { color: white; background: rgba(80,140,255,0.15); }

@media (max-width: 768px) {
  .preset-control {
    bottom: 0;
    left: 0;
    right: 0;
  }
  .preset-btn {
    width: 100%;
    justify-content: space-between;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--sp-3) var(--sp-5);
    font-size: var(--fs-sm);
  }
  .preset-dropdown {
    width: 100%;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    bottom: 100%;
  }
}

/* ─── eID-PL action column ───────────────────────────────────────────────────── */

.action-column--eid {
  display: flex;
  flex-direction: column;
}

.eid-pl-btn-wrap {
  margin-top: var(--sp-5);
}

.btn--eid-pl {
  justify-content: flex-start;
  gap: var(--sp-3);
  font-weight: var(--fw-medium);
}

.btn-flag {
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

/* ─── Or divider (mobile eid-pl layout) ──────────────────────────────────────── */

.action-or-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
  color: var(--c-text-tertiary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.action-or-divider::before,
.action-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.action-mobile--link-eid {
  display: flex;
  flex-direction: column;
}

/* ─── Page entry animation ──────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-content { animation: fadeUp var(--tr-slow) both; }
.page-visual  { animation: fadeUp var(--tr-slow) 60ms both; }

/* ─── Sender modal ───────────────────────────────────────────────────────────── */

.sender-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(2px);
  animation: fadeIn 200ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.sender-modal-overlay[aria-hidden="true"] {
  animation: fadeOut 160ms ease-in both;
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.sender-modal-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  width: 100%;
  max-width: 448px;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 220ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.sender-modal-overlay[aria-hidden="true"] .sender-modal-card {
  animation: modalSlideOut 160ms ease-in both;
}

@keyframes modalSlideIn  { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes modalSlideOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-6px) scale(0.98); } }
@keyframes sheetSlideIn  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheetSlideOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(100%); } }

.sender-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.sender-modal-title {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--c-text-primary);
  line-height: 1.3;
  margin: 0;
}

.sender-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: var(--c-text-secondary);
  cursor: pointer;
  transition: background var(--tr-fast), color var(--tr-fast);
  flex-shrink: 0;
}

.sender-modal-close:hover { background: #f3f4f6; color: var(--c-text-primary); }
.sender-modal-close:focus-visible { outline: 2px solid var(--c-box); outline-offset: 2px; }

.sender-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sender-modal-sender-block { display: flex; flex-direction: column; gap: 12px; }

.sender-modal-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sender-modal-logo {
  height: 28px;
  width: auto;
  display: block;
}

.sender-modal-logo-fallback {
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: var(--c-text-primary);
}

.sender-modal-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 8px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 99px;
  font-size: 12px;
  font-weight: var(--fw-medium);
  line-height: 1.4;
}

.sender-modal-section { display: flex; flex-direction: column; gap: 4px; }

.sender-modal-label {
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--c-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.sender-modal-sender-name {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--c-text-primary);
  margin: 0;
}

.sender-modal-sender-meta {
  font-size: 14px;
  color: var(--c-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.sender-modal-divider {
  height: 1px;
  background: #e5e7eb;
}

.sender-modal-subject {
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--c-text-primary);
  margin: 0;
  line-height: 1.5;
}

.sender-modal-meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.sender-modal-meta-item { display: flex; flex-direction: column; gap: 2px; }

.sender-modal-meta-label {
  font-size: 11px;
  color: var(--c-text-tertiary);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sender-modal-meta-value {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--c-text-primary);
}

.sender-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
}

.sender-modal-dismiss {
  font-size: 14px;
  padding: var(--sp-2) var(--sp-5);
}

.sender-modal-handle {
  display: none;
  width: 36px;
  height: 4px;
  background: #d1d5db;
  border-radius: 99px;
  margin: 12px auto 4px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .sender-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .sender-modal-overlay[aria-hidden="true"] .sender-modal-card {
    animation: sheetSlideOut 220ms ease both;
  }

  .sender-modal-card {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 88vh;
    animation: sheetSlideIn 300ms cubic-bezier(0.32, 0.72, 0, 1) both;
  }

  .sender-modal-handle { display: block; }

  .sender-modal-footer { justify-content: stretch; }
  .sender-modal-dismiss { width: 100%; justify-content: center; }

  .sender-modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ─── EUDI secondary button ──────────────────────────────────────────────────── */

.btn--eudi-secondary { gap: var(--sp-2); }
.eudi-btn-wrap { display: flex; flex-direction: column; gap: var(--sp-2); }
.eudi-btn-hint {
  font-size: 11px; color: var(--c-text-tertiary);
  text-align: center; line-height: var(--lh-base);
}

/* ─── EUDI wallet picker ─────────────────────────────────────────────────────── */

.eudi-picker-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity 200ms ease;
}
.eudi-picker-overlay.is-open { opacity: 1; }

.eudi-picker-sheet {
  background: var(--c-surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  width: 100%; max-width: 480px;
  padding: var(--sp-3) var(--sp-5) calc(var(--sp-8) + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 220ms cubic-bezier(.32,.72,0,1);
}
.eudi-picker-overlay.is-open .eudi-picker-sheet { transform: translateY(0); }

.eudi-picker-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--c-border); margin: 0 auto var(--sp-5);
}
.eudi-picker-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.eudi-picker-title {
  font-size: var(--fs-base); font-weight: 600;
  color: var(--c-text-primary); margin: 0;
}
.eudi-picker-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: #F3F4F6; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--c-text-secondary); flex-shrink: 0;
  transition: background 120ms;
}
.eudi-picker-close:hover { background: var(--c-border); }

.eudi-picker-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.eudi-picker-wallet {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-2); border-radius: var(--r-md);
  text-decoration: none; color: var(--c-text-primary);
  transition: background 120ms;
}
.eudi-picker-wallet:hover,
.eudi-picker-wallet:focus-visible { background: #F3F4F6; text-decoration: none; }

.eudi-wallet-avatar {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.02em;
  position: relative; overflow: hidden;
  border: 1px solid var(--c-border);
  box-sizing: border-box;
}
.eudi-wallet-favicon {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #fff; padding: 4px; border-radius: 11px;
}
.eudi-wallet-name { flex: 1; font-size: var(--fs-sm); font-weight: 500; }

/* ─── Reduced motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── Focus visible ──────────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--c-partner); outline-offset: 2px; }

/* ─── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
