/* SaveMyDoc — savemydoc.app
   Brand: royal navy #1A237E · indigo-pastel #DBE2F6 · white cards (light) / deep navy (dark)
   Type: Inter (variable, self-hosted) */

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

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;

  --navy-950: #0b0f2e;
  --navy-900: #111741;
  --navy-800: #161d54;
  --navy-700: #1a237e;
  --navy-600: #2833a5;
  --blue-500: #3d7bff;
  --blue-400: #6ea0ff;
  --indigo-100: #dbe2f6;
  --indigo-50: #f2f5fc;
  --white: #ffffff;
  --green: #1d7a43;
  --green-bright: #2fb463;
  --orange: #f08c00;
  --purple: #a855f7;
  --red: #c22743;
  --red-bright: #ef4458;
  --teal: #12a5bf;

  /* Theme-adaptive surface & ink tokens (light default) */
  --bg-page: #ffffff;
  --bg-tint: #f2f5fc;
  --bg-strip: #dbe2f6;
  --bg-card: #ffffff;
  --bg-nav-scrolled: rgba(255, 255, 255, 0.86);
  --bg-menu: rgba(255, 255, 255, 0.98);
  --bg-input: rgba(255, 255, 255, 0.92);
  --bg-btn-ghost: rgba(255, 255, 255, 0.58);
  --bg-chip: rgba(20, 24, 60, 0.045);
  --bg-chip-tint: rgba(255, 255, 255, 0.65);
  --ink: #14183c;
  --ink-soft: #4a5072;
  --ink-legal: #333955;
  --link-color: #2456c4;
  --border-subtle: rgba(20, 24, 60, 0.08);
  --border-card: rgba(20, 24, 60, 0.06);
  --border-input: rgba(20, 24, 60, 0.22);

  /* Kicker foregrounds (WCAG AA contrast on translucent pills) */
  --k-blue-fg: #2456c4;
  --k-green-fg: #1d7a43;
  --k-orange-fg: #995700;
  --k-purple-fg: #7527ba;
  --k-red-fg: #c22743;
  --k-teal-fg: #0c7a8e;

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-card: 0 2px 6px rgba(20, 24, 60, 0.05), 0 22px 60px rgba(20, 24, 60, 0.10);
  --shadow-device: 0 30px 80px rgba(8, 12, 46, 0.45), 0 10px 28px rgba(8, 12, 46, 0.30);
  --maxw: 1160px;
  --nav-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #0b0f2e;
    --bg-tint: #111741;
    --bg-strip: #151d52;
    --bg-card: #151c4a;
    --bg-nav-scrolled: rgba(11, 15, 46, 0.88);
    --bg-menu: rgba(18, 25, 70, 0.98);
    --bg-input: rgba(17, 23, 65, 0.92);
    --bg-btn-ghost: rgba(255, 255, 255, 0.07);
    --bg-chip: rgba(255, 255, 255, 0.06);
    --bg-chip-tint: rgba(255, 255, 255, 0.08);
    --ink: #f0f4ff;
    --ink-soft: #a9b4d8;
    --ink-legal: #d5def7;
    --link-color: #7aa7ff;
    --border-subtle: rgba(255, 255, 255, 0.11);
    --border-card: rgba(255, 255, 255, 0.09);
    --border-input: rgba(255, 255, 255, 0.24);

    --k-blue-fg: #82b1ff;
    --k-green-fg: #6ee7a0;
    --k-orange-fg: #ffc061;
    --k-purple-fg: #d29eff;
    --k-red-fg: #ff8a98;
    --k-teal-fg: #5ce1f7;

    --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.40);
  }
}

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

html {
  scroll-behavior: smooth;
  accent-color: var(--blue-500);
}
html:focus-within { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Keep fixed-nav from hiding anchored section headings on jump */
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

img, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--link-color); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: #3d7bff33; }

/* Keyboard focus-visible indicator (WCAG 2.4.7 / 1.4.11) */
:where(a:any-link, button, summary):focus-visible {
  outline: 2.5px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 6px;
}

main[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus { outline: none; }

/* Canonical visually-hidden utility for form labels (WCAG 3.3.2 / 4.1.2) */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--bg-card); color: var(--ink);
  border: 2px solid var(--blue-500);
  padding: 12px 20px; border-radius: 0 0 12px 0; font-weight: 650;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  color: var(--ink);
  background: var(--bg-nav-scrolled);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.nav.on-dark {
  color: var(--white);
  background: rgba(11, 15, 46, 0.90);
}
.nav.scrolled {
  box-shadow: 0 4px 20px rgba(8, 12, 46, 0.08);
}
.nav-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: clamp(12px, 1.5vw, 22px);
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
  color: inherit; flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: clamp(10px, 1.25vw, 18px); margin-left: auto; align-items: center; }
.nav-links > a { color: inherit; font-weight: 550; font-size: clamp(13.5px, 1.1vw, 14.5px); opacity: 0.88; white-space: nowrap; }
.nav-links > a:hover { opacity: 1; text-decoration: none; }
.nav-cta {
  background: var(--blue-500); color: var(--white) !important;
  padding: 9px 17px; border-radius: 100px; font-weight: 650; font-size: 14px;
  opacity: 1 !important; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(61, 123, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(61, 123, 255, 0.45); text-decoration: none; }

/* ---------- Language picker (10 languages live) ---------- */

.lang-picker { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 100px;
  font: inherit; font-size: 13.5px; font-weight: 650;
  color: inherit;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav.on-dark:not(.scrolled) .lang-btn {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] {
  background: rgba(61, 123, 255, 0.14);
  border-color: rgba(61, 123, 255, 0.38);
}
.nav.on-dark:not(.scrolled) .lang-btn:hover,
.nav.on-dark:not(.scrolled) .lang-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
}
.lang-caret {
  font-size: 11px; opacity: 0.75;
  transition: transform 0.18s ease;
}
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  width: 236px;
  background: var(--bg-menu);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px; padding: 8px;
  box-shadow: 0 20px 50px rgba(8, 12, 46, 0.24), 0 4px 12px rgba(8, 12, 46, 0.10);
  color: var(--ink);
}
.lang-menu-head {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); padding: 6px 10px 8px;
  border-bottom: 1px solid var(--border-subtle); margin-bottom: 4px;
}
.lang-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 10px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  text-decoration: none;
}
.lang-item-label {
  display: inline-flex; align-items: center; gap: 8px;
}
.lang-code {
  font-size: 11px; font-weight: 750; letter-spacing: 0.04em;
  min-width: 26px; text-align: center;
  padding: 2px 5px; border-radius: 6px;
  background: var(--bg-chip); color: var(--ink-soft);
}
a.lang-item:hover { background: rgba(61, 123, 255, 0.12); text-decoration: none; }
.lang-item.active {
  background: rgba(61, 123, 255, 0.14); color: var(--link-color);
}
.lang-item.active .lang-code {
  background: rgba(61, 123, 255, 0.20); color: var(--link-color);
}
.lang-check {
  font-size: 13px; font-weight: 800; color: var(--green-bright);
}

/* Polite non-redirecting language suggestion pill */
.lang-suggest {
  position: fixed; bottom: 18px; right: 18px; z-index: 55;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-menu); color: var(--ink);
  border: 1px solid var(--border-subtle);
  border-radius: 100px; padding: 8px 10px 8px 16px;
  box-shadow: 0 14px 38px rgba(8, 12, 46, 0.24);
  font-size: 13.5px; font-weight: 600;
}
.lang-suggest a {
  color: var(--link-color); font-weight: 700;
}
.lang-suggest button {
  border: none; background: var(--bg-chip); color: var(--ink-soft);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 14px; line-height: 1;
}
.lang-suggest button:hover { color: var(--ink); }
@media (max-width: 640px) {
  .lang-suggest {
    left: 18px; right: 18px; justify-content: space-between;
    max-width: calc(100vw - 36px);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 72% -10%, #ffffff 0%, transparent 55%),
    radial-gradient(90% 70% at 8% 6%, #eef2fc 0%, transparent 60%),
    linear-gradient(180deg, #f4f7fd 0%, #e6ecf9 62%, var(--indigo-100) 100%);
  color: var(--ink);
  padding: calc(var(--nav-h) + 72px) 0 0;
}
@media (prefers-color-scheme: dark) {
  .hero {
    background:
      radial-gradient(110% 80% at 72% -10%, #1d2a75 0%, transparent 55%),
      radial-gradient(90% 70% at 8% 6%, #16205c 0%, transparent 60%),
      linear-gradient(180deg, #0b0f2e 0%, #111741 62%, #151d52 100%);
  }
}
.hero::after {
  /* soft grain-free aurora sweep */
  content: ""; position: absolute; inset: -40% -20%;
  background:
    radial-gradient(38% 30% at 25% 35%, rgba(18, 165, 191, 0.10), transparent 70%),
    radial-gradient(32% 26% at 78% 22%, rgba(168, 85, 247, 0.09), transparent 70%),
    radial-gradient(30% 26% at 60% 70%, rgba(61, 123, 255, 0.12), transparent 70%);
  animation: aurora 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: start;
}
.hero-grid > * { min-width: 0; }
.hero-copy { padding: 72px 0 96px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--k-blue-fg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-btn-ghost);
  padding: 8px 16px; border-radius: 100px; margin-bottom: 26px;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #2fb463;
  box-shadow: 0 0 0 0 rgba(47, 180, 99, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 180, 99, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(47, 180, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 180, 99, 0); }
}
h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04; font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55;
  color: var(--ink-soft); max-width: 34em; margin-bottom: 34px;
  text-wrap: pretty;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  padding: 15px 26px; border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--navy-700); color: var(--white);
  box-shadow: 0 14px 34px rgba(26, 35, 126, 0.28);
}
.btn-primary:hover { box-shadow: 0 20px 44px rgba(26, 35, 126, 0.38); }
@media (prefers-color-scheme: dark) {
  .btn-primary {
    background: var(--blue-500);
    box-shadow: 0 12px 30px rgba(61, 123, 255, 0.35);
  }
  .btn-primary:hover { box-shadow: 0 18px 40px rgba(61, 123, 255, 0.48); }
}
.btn-ghost {
  color: var(--ink); border: 1.5px solid var(--border-input);
  background: var(--bg-btn-ghost);
}
.btn-ghost:hover { border-color: var(--link-color); }
.store-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 16px; }

/* ----- Store launch line (no sign-up form: nothing is sent anywhere) ----- */
.coming-soon-line { margin: 0; font-size: 15.5px; font-weight: 650; color: var(--ink); }
.final-cta .coming-soon-line { color: #fff; text-align: center; }

.hero-device {
  position: relative; align-self: end; display: flex; justify-content: center;
}
.hero-device .glow {
  position: absolute; inset: 6% -10% -20% -10%;
  background: radial-gradient(50% 45% at 50% 45%, rgba(61, 123, 255, 0.22), transparent 70%);
  filter: blur(12px);
}
.device {
  position: relative;
  width: min(380px, 82vw);
  background: #0a0d24;
  padding: 12px; border-radius: 52px;
  box-shadow: var(--shadow-device), inset 0 0 0 2px rgba(255, 255, 255, 0.10);
}
.device img { border-radius: 42px; }

/* Platform-true camera cutouts */
.device::before {
  content: ""; position: absolute; z-index: 2;
  top: calc(12px + 1.55%); left: 50%; transform: translateX(-50%);
  width: 27%; aspect-ratio: 3.1 / 1; border-radius: 100px;
  background: #050609;
}
.device.android { border-radius: 44px; }
.device.android img { border-radius: 34px; }
.device.android::before {
  width: 4.6%; aspect-ratio: 1; border-radius: 50%;
  top: calc(12px + 1.15%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.07);
}
.hero-device .device {
  animation: float 7s ease-in-out infinite;
  margin-bottom: -140px;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0.0001deg); }
  50% { transform: translateY(-14px); }
}

/* ---------- Trust strip ---------- */

.strip {
  position: relative; z-index: 3;
  background: var(--bg-strip);
  color: var(--ink);
  border-top: 1px solid var(--border-subtle);
  padding: 26px 0;
}
.strip-inner {
  display: flex; flex-wrap: wrap; gap: 14px 46px; justify-content: center;
  font-weight: 650; font-size: 15.5px; letter-spacing: 0.01em;
}
.strip-inner span { display: inline-flex; align-items: center; gap: 10px; }
.strip-inner .k { color: var(--k-green-fg); }

/* ---------- Interactive Receipt Lab (#lab) Suite ---------- */

.lab-section { padding: 88px 0; }

/* Free Feature Benefits Strip */
.lab-free-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 960px;
  margin: 32px auto 0;
}
.lab-free-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(10, 15, 45, 0.04);
}
.lab-free-ic {
  font-size: 20px;
  flex: none;
}
.lab-free-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.25;
}
.lab-free-copy span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
@media (max-width: 820px) {
  .lab-free-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .lab-free-strip { grid-template-columns: 1fr; }
}

/* Segmented Tab Navigation */
.lab-tabs-nav-wrap {
  display: flex;
  justify-content: center;
  margin: 32px 0 28px;
}
.lab-tabs-nav {
  display: inline-flex;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 100px;
  padding: 6px;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(10, 15, 45, 0.06);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lab-tabs-nav::-webkit-scrollbar { display: none; }
.lab-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 100px;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.lab-tab-btn:hover {
  color: var(--ink);
  background: var(--bg-tint);
}
.lab-tab-btn.active {
  color: var(--link-color);
  background: rgba(61, 123, 255, 0.12);
  box-shadow: 0 2px 10px rgba(61, 123, 255, 0.16);
  font-weight: 750;
}
.lab-tab-ic { font-size: 16px; flex: none; }

/* Tab Panels */
.lab-panel-tab {
  display: none;
}
.lab-panel-tab.active {
  display: block;
  animation: labTabFade 0.25s ease-out;
}
@keyframes labTabFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Tool Topbar (Voucher) */
.lab-tool-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.lab-chips-caption {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-right: 4px;
}
.lab-sample-chips {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lab-country-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 260px;
}

/* Centered Voucher Layout */
.lab-voucher-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.lab-btn-blank {
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--link-color);
  background: transparent;
  border: 1.5px dashed var(--border-input);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.lab-btn-blank:hover {
  background: rgba(61, 123, 255, 0.09);
  border-color: var(--blue-500);
}
.lab-receipt-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(61, 123, 255, 0.08);
  border: 1px solid rgba(61, 123, 255, 0.22);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--link-color);
  font-weight: 650;
  margin-bottom: 16px;
}
/* Always-visible notice: the form makes a private record, never a seller's receipt. */
.lab-record-notice {
  margin: 0 0 12px;
  padding: 10px 16px;
  border-left: 4px solid var(--k-red-fg);
  border-radius: 8px;
  background: var(--bg-tint);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}

.lab-source-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--link-color);
}
.lab-source-link[hidden] { display: none; }

/* Interactive Popover Tooltips (?) */
.lab-tip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.lab-tip-btn {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-chip);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  line-height: 1;
  transition: all 0.15s ease;
}
.lab-tip-btn:hover, .lab-tip-btn:focus-visible {
  background: var(--blue-500);
  color: var(--white);
  border-color: var(--blue-500);
  outline: none;
}
.lab-tip-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  right: -8px;
  width: max-content;
  max-width: 290px;
  background: var(--navy-900);
  color: #f0f4ff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 450;
  text-align: left;
}
.lab-tip-popover.tip-down {
  bottom: auto;
  top: calc(100% + 8px);
}
.lab-tip-popover.tip-down::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent var(--navy-900) transparent;
}
.lab-tip-popover strong {
  display: block;
  font-size: 12.5px;
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 4px;
}
.lab-tip-wrap:hover .lab-tip-popover,
.lab-tip-wrap:focus-within .lab-tip-popover,
.lab-tip-wrap.active .lab-tip-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lab-tip-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 12px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--navy-900) transparent transparent transparent;
}

.lab-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lab-step-label,
.lab-field-label {
  display: block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.lab-chip {
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  background: var(--bg-tint);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
  text-align: center;
  line-height: 1.25;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.lab-chip:hover {
  border-color: var(--blue-500);
  background: rgba(61, 123, 255, 0.08);
}
.lab-chip.active {
  background: rgba(61, 123, 255, 0.14);
  border-color: var(--blue-500);
  color: var(--link-color);
  box-shadow: 0 2px 8px rgba(61, 123, 255, 0.14);
}
.lab-sib-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lab-sib-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lab-sib-pill:hover {
  border-color: var(--blue-500);
}
.lab-sib-pill.active {
  background: rgba(61, 123, 255, 0.15);
  border-color: var(--blue-500);
  color: var(--link-color);
}
.lab-sib-code {
  font-size: 11px;
  opacity: 0.72;
  font-weight: 750;
}
.lab-select {
  width: 100%;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-input);
  border: 1.5px solid var(--border-input);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}
.lab-detected-pill {
  font-size: 12px;
  font-weight: 650;
  color: var(--k-green-fg);
  background: rgba(47, 180, 99, 0.12);
  border: 1px solid rgba(47, 180, 99, 0.28);
  padding: 4px 10px;
  border-radius: 8px;
}

/* Tool Header */
.lab-tool-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}
.lab-tool-header h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.lab-tool-sub {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Tool 2: Enhancer Container */
.lab-enhancer-container {
  max-width: 720px;
  margin: 0 auto;
}
.lab-drop-large {
  padding: 40px 24px;
  border-radius: 20px;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  gap: 16px;
}
.lab-drop-large .lab-drop-ic {
  width: 60px;
  height: 60px;
  font-size: 28px;
}
.lab-drop-large .lab-drop-text strong {
  font-size: 16px;
}
.lab-drop-large .lab-drop-text span {
  font-size: 14px;
}
.lab-btn-accent {
  background: rgba(61, 123, 255, 0.18) !important;
  color: var(--link-color) !important;
  border-color: var(--blue-500) !important;
}
.lab-btn-del:hover {
  background: rgba(239, 68, 88, 0.12) !important;
  color: var(--k-red-fg) !important;
  border-color: rgba(239, 68, 88, 0.35) !important;
}
.lab-tool-explainer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.lab-info-ic { font-size: 20px; flex: none; }

/* Tool 3: Warranty Container */
.lab-warranty-container {
  max-width: 820px;
  margin: 0 auto;
}
.lab-warranty-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.lab-warranty-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.lab-warranty-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.lab-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(61, 123, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex: none;
}
.lab-card-content { flex: 1; min-width: 0; }
.lab-card-category {
  display: block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.lab-card-date {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.lab-card-law {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--link-color);
  margin-bottom: 12px;
}
.lab-card-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--k-green-fg);
  background: rgba(47, 180, 99, 0.14);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.lab-badge-retention {
  color: var(--k-blue-fg);
  background: rgba(61, 123, 255, 0.14);
}
.lab-card-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}
.lab-btn-cal {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

/* Tool 4: Redactor Container */
.lab-redactor-container {
  max-width: 880px;
  margin: 0 auto;
}
.lab-redactor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.lab-redactor-col {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.lab-redactor-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}
.lab-redactor-area {
  flex: 1;
  min-height: 220px;
  font-size: 13px;
  line-height: 1.5;
}
.lab-redactor-preview {
  flex: 1;
  min-height: 220px;
  background: var(--bg-tint);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
}
.lab-redactor-preview pre {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.lab-redactor-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.lab-copy-msg {
  font-size: 13px;
  font-weight: 700;
  color: var(--k-green-fg);
}

/* Universal Promo Banner (under tools) */
.lab-promo-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(61, 123, 255, 0.10) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(61, 123, 255, 0.22);
  margin-top: 36px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
  padding: 6px 12px;
  border-radius: 10px;
}
.lab-drop-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 2px dashed var(--border-input);
  background: var(--bg-tint);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lab-drop-zone:hover,
.lab-drop-zone.drag-over {
  border-color: var(--blue-500);
  background: rgba(61, 123, 255, 0.08);
}
.lab-drop-zone:focus-visible {
  outline: 2.5px solid var(--blue-500);
  outline-offset: 2px;
}
.lab-drop-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(61, 123, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 21px;
  flex: none;
}
.lab-drop-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.lab-drop-text span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
  line-height: 1.4;
}
.lab-photo-box {
  background: var(--bg-tint);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
}
.lab-canvas-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #0a0d24;
  max-height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#labCanvas {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  display: block;
}
.lab-scan-laser {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2fb463, #6ee7a0, #2fb463, transparent);
  box-shadow: 0 0 14px #2fb463;
  opacity: 0;
  pointer-events: none;
}
.lab-canvas-wrap.scanning .lab-scan-laser {
  animation: labLaserSweep 1.1s ease-in-out 1;
}
@keyframes labLaserSweep {
  0% { top: 0%; opacity: 0.95; }
  50% { top: 92%; opacity: 1; }
  100% { top: 0%; opacity: 0; }
}
.lab-photo-bar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.lab-mini-btn {
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--ink);
  cursor: pointer;
}
.lab-mini-btn.active {
  background: rgba(61, 123, 255, 0.15);
  border-color: var(--blue-500);
  color: var(--link-color);
}
.lab-textarea {
  width: 100%;
  font: inherit;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg-input);
  border: 1.5px solid var(--border-input);
  border-radius: 12px;
  padding: 10px 12px;
  resize: vertical;
  min-height: 74px;
}
.lab-redact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.lab-check-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-soft);
  cursor: pointer;
}
.lab-redact-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--k-green-fg);
  background: rgba(47, 180, 99, 0.14);
  padding: 3px 9px;
  border-radius: 100px;
}

/* Voucher card (Right column) */
.lab-voucher {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lab-voucher-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed var(--border-subtle);
}
.lab-voucher-badge {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--k-blue-fg);
}
.lab-tax-mode-badge {
  font-size: 12px;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-tint);
  color: var(--ink-soft);
  border: 1px solid var(--border-subtle);
}
.lab-meta-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.95fr;
  gap: 10px;
}
.lab-meta-field span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.lab-meta-field input {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  background: var(--bg-tint);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 10px;
}
.lab-items-head {
  display: grid;
  grid-template-columns: 1fr 88px 98px 30px;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding: 0 2px 6px;
}
.lab-items-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lab-item-row {
  display: grid;
  grid-template-columns: 1fr 88px 98px 30px;
  gap: 8px;
  align-items: center;
}
.lab-item-row input,
.lab-item-row select {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
  background: var(--bg-tint);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 7px 9px;
}
.lab-item-price {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 650 !important;
}
.lab-item-del {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tint);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lab-item-del:hover {
  color: var(--k-red-fg);
  border-color: rgba(239, 68, 88, 0.35);
  background: rgba(239, 68, 88, 0.08);
}
.lab-add-btn {
  margin-top: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--link-color);
  background: transparent;
  border: 1px dashed var(--border-input);
  border-radius: 9px;
  padding: 7px 14px;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lab-add-btn:hover {
  background: rgba(61, 123, 255, 0.08);
  border-color: var(--blue-500);
}
.lab-vat-box {
  background: var(--bg-tint);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
}
.lab-vat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.lab-currency-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  flex: none;
}
.lab-table-wrap {
  overflow: auto;
  max-inline-size: 100%;
  container-type: inline-size;
}
.lab-vat-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.lab-vat-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: var(--bg-tint);
}
.lab-vat-table th,
.lab-vat-table td {
  padding: 6px 8px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-subtle);
}
.lab-vat-table th:first-child {
  text-align: left;
  font-weight: 700;
}
.lab-dk-rep {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(240, 140, 0, 0.12);
  border: 1px solid rgba(240, 140, 0, 0.30);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}
.lab-dk-rep-val {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--k-orange-fg);
  font-weight: 650;
}
.lab-total-bar {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1.5px solid var(--border-subtle);
}
.lab-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.lab-total-row strong {
  font-size: 22px;
  color: var(--link-color);
}
.lab-total-sub {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.lab-legal-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lab-legal-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-tint);
  border: 1px solid var(--border-subtle);
  min-width: 0;
}
.lab-pill-ic {
  font-size: 18px;
  flex: none;
}
.lab-legal-pill small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.lab-legal-pill strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.lab-export-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lab-btn-pdf {
  flex: 1 1 220px;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.lab-btn-sec {
  flex: 0 1 auto;
  justify-content: center;
  padding: 13px 16px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.lab-export-note {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
}
.lab-promo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(61, 123, 255, 0.11) 0%, rgba(168, 85, 247, 0.09) 100%);
  border: 1px solid rgba(61, 123, 255, 0.24);
}
.lab-promo-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-card);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
  box-shadow: 0 4px 12px rgba(20, 24, 60, 0.08);
}
.lab-promo-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.lab-promo-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
}
.lab-promo-copy p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-top: 2px;
}
.lab-promo-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--link-color);
}
.lab-promo-btn {
  flex: none;
  white-space: nowrap;
}

/* ---------- Sections ---------- */

section { padding: 104px 0; }
.section-light { background: var(--bg-page); }
.section-tint { background: var(--bg-tint); }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 15px; border-radius: 100px; margin-bottom: 18px;
}
.k-blue { color: var(--k-blue-fg); background: rgba(61, 123, 255, 0.13); }
.k-green { color: var(--k-green-fg); background: rgba(47, 180, 99, 0.14); }
.k-orange { color: var(--k-orange-fg); background: rgba(240, 140, 0, 0.15); }
.k-purple { color: var(--k-purple-fg); background: rgba(168, 85, 247, 0.14); }
.k-red { color: var(--k-red-fg); background: rgba(239, 68, 88, 0.13); }
.k-teal { color: var(--k-teal-fg); background: rgba(18, 165, 191, 0.14); }

h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08; font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: 18px;
  text-wrap: balance;
}
h3 { text-wrap: balance; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 36em; text-wrap: pretty; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.feature.flip .f-media { order: 2; }
.f-copy .lead { margin-bottom: 26px; }
.f-list { list-style: none; display: grid; gap: 14px; }
.f-list li {
  display: flex; gap: 13px; align-items: flex-start;
  font-size: 16px; color: var(--ink); font-weight: 480;
  text-wrap: pretty;
}
.f-list li strong { font-weight: 680; }
.f-list .tick {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(47, 180, 99, 0.16); color: var(--k-green-fg); font-size: 12.5px; font-weight: 800;
}
.f-media { display: flex; justify-content: center; position: relative; }
.f-media .device { width: min(340px, 78vw); }
.f-media::before {
  content: ""; position: absolute; width: 130%; aspect-ratio: 1;
  border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, var(--halo, #3d7bff14) 0%, transparent 62%);
}
.f-media .device { z-index: 1; }

/* Two staggered phones — overview behind, detail in front */
.f-media.duo { padding: 0 60px 56px 0; }
.f-media.duo .device { width: min(300px, 64vw); }
.f-media.duo .device-front {
  position: absolute; z-index: 2;
  width: min(240px, 52vw);
  right: 0; bottom: -56px;
  transform: rotate(2.5deg);
}

/* ---------- Feature sections (alternating full-width) ---------- */

.features-intro { padding-bottom: 24px; }
.intro-center { max-width: 660px; margin: 0 auto; text-align: center; }
.intro-center .lead { margin-left: auto; margin-right: auto; }

.feature-band { padding-top: 68px; padding-bottom: 68px; }
.feature-band h2 em { font-style: normal; color: var(--blue-500); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 24px; }
.chip {
  display: inline-flex; align-items: center;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  padding: 6px 13px; border-radius: 100px;
}
.section-tint .chip { background: var(--bg-chip-tint); }

/* ---------- Paper receipt (Receipts feature) ----------
   A realistic thermal-paper slip tucked behind the phone. */

.paper-receipt {
  position: absolute; z-index: 0;
  left: max(-30px, -6%); bottom: 4%;
  width: 196px;
  transform: rotate(-7deg);
  background:
    linear-gradient(178deg, #ffffff 0%, #fbfaf6 55%, #f4f2ea 100%);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 18px 44px rgba(8, 12, 46, 0.25), 0 4px 12px rgba(8, 12, 46, 0.12);
  padding: 18px 16px 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10.5px; line-height: 1.7; color: #3b4050;
  letter-spacing: 0.01em;
}
.paper-receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background:
    linear-gradient(-45deg, transparent 5.66px, #f4f2ea 0) 0 0 / 16px 8px repeat-x,
    linear-gradient(45deg, transparent 5.66px, #f4f2ea 0) 8px 0 / 16px 8px repeat-x;
}
.paper-receipt strong {
  display: block; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; margin-bottom: 2px;
}
.paper-receipt .pr-sub { display: block; text-align: center; opacity: 0.75; font-size: 9.5px; }
.paper-receipt .pr-rule {
  display: block; border-top: 1.5px dashed rgba(59, 64, 80, 0.35); margin: 8px 0;
}
.paper-receipt .pr-row { display: flex; justify-content: space-between; gap: 10px; }
.paper-receipt .pr-row i { font-style: normal; }
.paper-receipt .pr-total { font-weight: 700; font-size: 11.5px; }
.paper-receipt .pr-barcode {
  display: block; height: 26px; margin: 10px 6px 4px;
  background: repeating-linear-gradient(90deg,
    #2c3040 0 2px, transparent 2px 4px, #2c3040 4px 5px, transparent 5px 9px,
    #2c3040 9px 12px, transparent 12px 14px);
  opacity: 0.85;
}

/* ---------- Platforms (iOS + Android) ---------- */

.platform-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3.5vw, 44px); margin-top: 56px; justify-items: center;
}
.platform-row figure { margin: 0; text-align: center; }
.platform-row .device { width: min(258px, 70vw); }
.platform-row figcaption { margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.os-line {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
}
.os-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 650; color: var(--ink);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 100px; padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(8, 12, 46, 0.08);
}

/* ---------- Coming soon band ---------- */

.soon-band {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #fff7ec 0%, #fdeede 100%);
  border: 1.5px dashed rgba(240, 140, 0, 0.4);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 52px);
}
@media (prefers-color-scheme: dark) {
  .soon-band {
    background: linear-gradient(135deg, rgba(240, 140, 0, 0.14) 0%, rgba(240, 140, 0, 0.06) 100%);
    border-color: rgba(255, 192, 97, 0.35);
  }
}
.soon-copy .lead { margin-bottom: 24px; }
.soon-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(240, 140, 0, 0.5);
  animation: soonpulse 2.4s ease-out infinite;
}
@keyframes soonpulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 140, 0, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(240, 140, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 140, 0, 0); }
}
.btn-sm { padding: 11px 20px; font-size: 15px; }
.soon-art {
  position: relative; height: 190px;
  display: grid; place-items: center;
}
.soon-ticket {
  position: absolute;
  width: 150px; height: 78px; border-radius: 16px;
  background: var(--bg-card); box-shadow: 0 16px 40px rgba(160, 93, 0, 0.18);
  border: 1px solid rgba(240, 140, 0, 0.25);
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--k-orange-fg);
}
.soon-ticket::before, .soon-ticket::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: #fdeede; top: 50%; transform: translateY(-50%);
}
@media (prefers-color-scheme: dark) {
  .soon-ticket::before, .soon-ticket::after { background: #191d46; }
}
.soon-ticket::before { left: -8px; }
.soon-ticket::after { right: -8px; }
.soon-ticket span { position: relative; }
.soon-ticket   { transform: rotate(-8deg) translate(-42px, -26px); z-index: 3; }
.soon-ticket.t2 { transform: rotate(5deg) translate(46px, 2px); z-index: 2; opacity: 0.92; font-size: 16px; }
.soon-ticket.t3 { transform: rotate(-3deg) translate(-8px, 40px); z-index: 1; opacity: 0.85; font-size: 16px; }

/* ---------- Nav toggle (hamburger) ---------- */

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  color: inherit;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Everything strip ---------- */

.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(20,24,60,.06), 0 30px 70px rgba(20,24,60,.14); }
.card .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  margin-bottom: 18px; font-size: 24px;
}
.card h3 { font-size: 19px; font-weight: 750; letter-spacing: -0.015em; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- Privacy (dark) ---------- */

.privacy-section {
  background:
    radial-gradient(80% 60% at 80% 0%, #1d2a75 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--white);
}
.privacy-section h2 { color: var(--white); }
.privacy-top {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.privacy-device { margin: 0; display: flex; flex-direction: column; align-items: center; }
.privacy-device .device {
  width: min(280px, 70vw);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.privacy-device figcaption {
  margin-top: 18px; font-size: 14.5px; font-weight: 600;
  color: rgba(255, 255, 255, 0.72); text-align: center;
}
.privacy-section .lead { color: rgba(255, 255, 255, 0.80); }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.p-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg); padding: 30px 28px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.p-card .ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(110, 231, 160, 0.14); color: #6ee7a0; font-size: 22px; margin-bottom: 16px;
}
.p-card h3 { font-size: 18px; font-weight: 720; margin-bottom: 8px; }
.p-card p { font-size: 14.5px; color: rgba(255, 255, 255, 0.75); text-wrap: pretty; }
.privacy-link { margin-top: 40px; font-size: 15.5px; }
.privacy-link a { color: #9db4ff; font-weight: 650; }

/* ---------- Pricing ---------- */

.pricing-box {
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 880px;
}
.price-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 36px 32px;
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card);
}
.price-card.pro { border: 2px solid var(--blue-500); position: relative; }
.price-card .tag {
  position: absolute; top: -13px; left: 28px;
  background: var(--blue-500); color: var(--white);
  font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 100px;
}
.price-card h3 { font-size: 22px; font-weight: 780; margin-bottom: 4px; }
.price-card .p-sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }
.price-card ul { list-style: none; display: grid; gap: 11px; }
.price-card li { display: flex; gap: 11px; font-size: 15px; align-items: flex-start; text-wrap: pretty; }
.price-card li .tick {
  flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(47, 180, 99, 0.16); color: var(--k-green-fg); font-size: 11.5px; font-weight: 800;
}

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin-top: 44px; }
.faq details {
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 0;
  overflow: hidden;
}
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
}
.faq details[open]::details-content {
  block-size: auto;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 17px; font-weight: 650; padding: 18px 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; font-weight: 500; color: var(--blue-500);
  transition: transform 0.2s ease; flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 4px 20px; color: var(--ink-soft); font-size: 15.5px; max-width: 62ch; text-wrap: pretty; }

/* ---------- Final CTA ---------- */

.final-cta {
  background:
    radial-gradient(100% 120% at 50% 0%, #2b38a8 0%, var(--navy-800) 55%, var(--navy-950) 100%);
  color: var(--white); text-align: center;
}
.final-cta h2 { color: var(--white); }
.final-cta .lead { margin: 0 auto 34px; color: rgba(255, 255, 255, 0.8); }
.final-cta .cta-row { justify-content: center; }
.final-cta .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}
.final-cta .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Footer ---------- */

footer {
  background: var(--navy-950); color: rgba(255, 255, 255, 0.65);
  padding: 56px 0 40px; font-size: 14px;
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 11px; color: var(--white); font-weight: 750; font-size: 17px; }
.foot-brand img { width: 30px; height: 30px; border-radius: 8px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.foot-links a { color: rgba(255, 255, 255, 0.76); font-weight: 550; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--white); }
.foot-legal { width: 100%; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.10); font-size: 13px; }

/* ---------- Legal / support pages ---------- */

.page-hero {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
  color: var(--white); padding: calc(var(--nav-h) + 64px) 0 56px;
}
.page-hero h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 10px; }
.page-hero p { color: rgba(255, 255, 255, 0.78); font-size: 16px; }
.legal { max-width: 780px; padding: 64px 24px 96px; margin: 0 auto; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 15.5px; color: var(--ink-legal); text-wrap: pretty; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em; background: var(--bg-tint);
  padding: 2px 6px; border-radius: 5px;
}
.legal .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; }
.legal .glance {
  background: var(--bg-tint); border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 22px 24px; margin: 22px 0;
}
.legal .glance ul { margin: 0; }
.legal .glance li { margin: 6px 0; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 40px 0 12px; }
.support-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-card);
}
.support-card h3 { font-size: 18px; margin-bottom: 8px; }
.support-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- Reveal on scroll ---------- */

html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* MANDATORY Copy-Paste Safety: Disable sizing and motion animations for sensitive users */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::after, .hero-device .device, .hero-badge .pulse, .soon-pulse, .lab-canvas-wrap.scanning .lab-scan-laser { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .nav-cta, .nav-links, .lang-caret, .faq details::details-content, .lab-chip, .lab-sib-pill { transition: none !important; }
}

/* ---------- Responsive ---------- */

/* Tablet / smaller desktop */
@media (max-width: 980px) {
  section { padding: 80px 0; }
  .feature-band { padding-top: 60px; padding-bottom: 60px; }
  .lab-grid { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .f-media { order: 0; }
  .f-copy { text-align: center; max-width: 560px; margin: 0 auto; }
  .f-copy .kicker, .chips { justify-content: center; }
  .f-list { max-width: 480px; margin: 0 auto; }
  .f-list li { text-align: left; }
  .grid-cards, .privacy-grid { grid-template-columns: 1fr 1fr; }
  .privacy-top { grid-template-columns: 1fr; }
  .privacy-device { margin-top: 8px; }
}

/* Hamburger nav + hero stack (raised to 1060px so long-word locales like de/es/it never wrap desktop nav) */
@media (max-width: 1060px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 4px; margin-left: 0;
    background: var(--bg-menu);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    backdrop-filter: saturate(1.4) blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 18px; padding: 12px;
    box-shadow: 0 24px 60px rgba(8, 12, 46, 0.28);
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    color: var(--ink);
    max-height: calc(100vh - var(--nav-h) - 24px);
    overflow-y: auto;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links > a { color: var(--ink); opacity: 1; padding: 13px 14px; border-radius: 12px; font-size: 16px; font-weight: 600; }
  .nav-links > a:not(.nav-cta):hover { background: var(--bg-chip); }
  .nav-cta { text-align: center; margin-top: 6px; box-shadow: none; justify-content: center; }

  .lang-picker { padding: 4px 6px; }
  .lang-btn {
    width: 100%; justify-content: space-between;
    padding: 11px 14px; border-radius: 12px; font-size: 15px;
    background: var(--bg-chip) !important;
    border-color: var(--border-subtle) !important;
    color: var(--ink) !important;
  }
  .lang-menu {
    position: static; width: 100%; margin-top: 6px;
    box-shadow: none; background: var(--bg-chip);
    border-color: var(--border-subtle);
  }

  .hero { padding-top: calc(var(--nav-h) + 18px); }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { padding: 16px 0 0; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-device .device { margin-bottom: -100px; }
  .pricing-box, .support-grid { grid-template-columns: 1fr; }

  .soon-band { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .soon-copy .kicker { justify-content: center; }
  .soon-copy .lead { margin-left: auto; margin-right: auto; }
  .soon-art { display: none; }
}

/* Phone */
@media (max-width: 560px) {
  section { padding: 64px 0; }
  .feature-band { padding-top: 52px; padding-bottom: 52px; }
  .wrap { padding: 0 20px; }
  .grid-cards, .privacy-grid { grid-template-columns: 1fr; }
  .lab-sample-chips { width: 100%; justify-content: flex-start; }
  .lab-chip { flex: 1 1 auto; }
  .lab-tool-topbar { flex-direction: column; align-items: stretch; }
  .lab-country-bar { width: 100%; min-width: 0; }
  .lab-warranty-controls { grid-template-columns: 1fr; }
  .lab-warranty-cards-grid { grid-template-columns: 1fr; }
  .lab-redactor-split { grid-template-columns: 1fr; }
  .lab-promo-banner { flex-direction: column; text-align: center; }
  .lab-promo-banner .lab-promo-btn { width: 100%; justify-content: center; }
  .lab-meta-grid, .lab-legal-pills { grid-template-columns: 1fr; }
  .lab-items-head { display: none; }
  .lab-item-row {
    grid-template-columns: 1fr 1fr 32px;
    gap: 6px;
    padding: 8px;
    background: var(--bg-tint);
    border: 1px solid var(--border-subtle);
    border-radius: 11px;
  }
  .lab-item-row .lab-item-name {
    grid-column: 1 / -1;
    background: var(--bg-card);
  }
  .lab-item-row select,
  .lab-item-row .lab-item-price,
  .lab-item-row .lab-item-del {
    background: var(--bg-card);
  }
  .lab-voucher, .lab-panel { padding: 16px; }
  .lab-vat-box { padding: 12px 10px; }
  .lab-vat-table { font-size: 11.5px; }
  .lab-vat-table th, .lab-vat-table td { padding: 5px 4px; }
  .lab-promo-right { flex-wrap: wrap; }
  .lab-promo-btn { width: 100%; justify-content: center; }
  .strip-inner { gap: 10px 24px; font-size: 14px; }
  .hero-badge { font-size: 11.5px; letter-spacing: 0.07em; padding: 7px 13px; }
  .btn { padding: 14px 20px; font-size: 15px; }
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .f-media .device { width: min(300px, 74vw); }
  .f-media.duo { padding: 0 34px 44px 0; }
  .f-media.duo .device { width: min(250px, 60vw); }
  .f-media.duo .device-front { width: min(196px, 48vw); bottom: -44px; }
  .paper-receipt { width: 150px; font-size: 8.5px; padding: 13px 12px 6px; left: -8px; }
  .paper-receipt strong { font-size: 10px; }
}

/* Platforms row collapses gracefully */
@media (max-width: 760px) {
  .platform-row { grid-template-columns: 1fr; gap: 44px; }
}

/* Receipt Lab: per-country note on example tax rates (US). */
.lab-rates-note {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.lab-rates-note[hidden] { display: none; }

.lab-dk-rep-val[hidden] { display: none; }
