/* ══════════════════════════════════════════════════════════════════════════
   KWICKEY® — Stylesheet
   ──────────────────────────────────────────────────────────────────────────
   Naming convention
     - Reusable components use BEM:
         .block, .block__element, .block--modifier
         State classes: .is-* (e.g. .is-active, .is-discounted)
     - Page-specific section styles (hero, steps, scenarios, …) stay on
       their original kebab-case classes for minimal churn.
   ──────────────────────────────────────────────────────────────────────────
   TABLE OF CONTENTS
     1.  Tokens & reset
     2.  Utilities (fade-in, pill-btn)
     3.  COMPONENTS
         3.1  Button (.btn)
         3.2  Link (.link)
         3.3  Nav (.nav)
         3.4  Footer (.footer)
         3.5  Modal — base (.modal)
         3.6  Modal — visuals (.modal__visual)
         3.7  Form (.form__*)
         3.8  Auth form (.auth-form)
         3.9  Buy form (.buy__*)
     4.  PAGE SECTIONS
         4.1  Section primitives (.section, .section-label, …)
         4.2  Hero (home)
         4.3  Trust bar
         4.4  Steps grid (how it works)
         4.5  Scenarios
         4.6  Comparison table
         4.7  Calculator
         4.8  Testimonials
         4.9  Final CTA
         4.10 Page hero (sub-pages)
         4.11 FAQ accordion
         4.12 Legal pages
         4.13 Support box
     5.  Responsive overrides
   ══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. TOKENS & RESET ─── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --mint: #5a5eff;
  --mint-dim: rgba(90, 94, 255, 0.1);
  --mint-border: rgba(90, 94, 255, 0.3);
  --mint-hover: #4a4eff;

  /* Surfaces */
  --dark: #0a0a0a;
  --dark2: #141414;
  --white: #fff;
  --off-white: #f9f9f7;
  --warm-bg: #f6f5f0;

  /* Feedback */
  --error: #c0392b;
  --error-bg: rgba(231, 76, 60, 0.08);
  --error-border: rgba(231, 76, 60, 0.25);
  --success: #1f8a4c;
  --success-bg: rgba(46, 204, 113, 0.08);
  --success-border: rgba(46, 204, 113, 0.25);

  /* Typography */
  --font-display: 'Anybody', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Typography scale (used by app section + future refactors) */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;

  /* App surfaces — tech-startup neutrals */
  --app-bg: #fafaf8;
  --app-surface: #ffffff;
  --app-surface-2: #f5f4ef;
  --app-border: rgba(15, 15, 30, 0.06);
  --app-border-strong: rgba(15, 15, 30, 0.12);
  --app-divider: rgba(15, 15, 30, 0.06);
  --app-text: #0a0a0a;
  --app-muted: #6b6b76;
  --app-muted-2: #9a9aa3;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 15, 30, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 15, 30, 0.05);
  --shadow-md: 0 6px 20px rgba(15, 15, 30, 0.06);
  --shadow-lg: 0 16px 48px rgba(15, 15, 30, 0.1);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@supports not (overflow: clip) {
  html { overflow-x: hidden; }
}
body {
  font-family: var(--font-body);
  color: #111;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100%;
}

/* App skin — only applied on web-app pages (account, contact-card, scan) */
body[data-nav-variant="app"] {
  background: var(--app-bg);
}
body[data-nav-variant="app"] .nav {
  background: rgba(250, 250, 248, 0.85);
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; }

body.modal-locked { overflow: hidden; }

/* ─── 1b. Overflow guardrails (all viewports) ─── */

main,
header,
footer,
section,
.section-inner,
.app-page,
.app-page__inner,
.modal,
.modal__panel,
.auth-form,
.app-form {
  max-width: 100%;
  min-width: 0;
}

img, video, iframe, spline-viewer {
  max-width: 100%;
}

.form__field,
.app-form__fieldset {
  min-width: 0;
  max-width: 100%;
}

.form__field input,
.form__field textarea,
.app-form textarea,
select,
button {
  max-width: 100%;
  min-width: 0;
}

.form__label,
.app-checkbox-native span,
.app-form__legend {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ─── 2. UTILITIES ─── */

.fade-in {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.d1 { transition-delay: 0.12s; }
.fade-in.d2 { transition-delay: 0.24s; }
.fade-in.d3 { transition-delay: 0.36s; }
.fade-in.d4 { transition-delay: 0.5s; }

.hero-el { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.hero-el.show { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.scenario-content { animation: fadeUp 0.4s ease; }

@keyframes spin { to { transform: rotate(360deg); } }

.pill-btn {
  padding: 8px 16px; border-radius: 99px; border: 1px solid #333;
  background: transparent; color: #777; font-size: 13px; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
}
.pill-btn.active { border-color: var(--mint); background: var(--mint-dim); color: var(--mint); }

/* ══════════════════════════════════════════════════════════════════════════
   3. COMPONENTS
   ══════════════════════════════════════════════════════════════════════════ */

/* ─── 3.1 Button ─────────────────────────────────────────────────────────
   Usage:
     <button class="btn btn--mint">…</button>
     <button class="btn btn--outline">…</button>
     <button class="btn btn--mint btn--lg">…</button>
     <button class="btn btn--cta">
       <span class="btn__label">…</span>
       <span class="btn__spinner" aria-hidden="true"></span>
     </button>
   `.btn--cta` is the form-submit style with loading spinner support.
   ──────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 99px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  position: relative;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(1); }
.btn[disabled] { cursor: not-allowed; opacity: 0.7; }

.btn--mint    { background: var(--mint); color: var(--dark); padding: 14px 36px; font-size: 16px; }
.btn--outline { background: transparent; color: #fff; border: 1px solid #444; padding: 14px 28px; font-size: 15px; }
.btn--lg      { padding: 16px 48px; font-size: 18px; }
.btn--mint:hover { background: var(--mint-hover); }

/* Inline submit button used inside modals/forms. */
.btn--cta {
  width: 100%;
  background: var(--mint); color: var(--dark);
  padding: 15px 24px; font-size: 16px;
}
.btn--cta:hover { background: var(--mint-hover); transform: translateY(-1px); }
.btn--cta:active { transform: translateY(0); }

.btn__spinner {
  display: none;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(10, 10, 10, 0.25);
  border-top-color: var(--dark);
  animation: spin 0.7s linear infinite;
}
.btn.loading .btn__label { opacity: 0.7; }
.btn.loading .btn__spinner { display: inline-block; }

/* ─── 3.2 Link ───────────────────────────────────────────────────────────
   Inline mint-coloured action link, used inside text passages and form
   labels. Renders as a real <button> when it triggers JS (mode-switching).
   ──────────────────────────────────────────────────────────────────────── */

.link {
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--mint); cursor: pointer; font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.link:hover { border-bottom-color: var(--mint); }
.link:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 2px; }
.link--sm { font-size: 12px; font-weight: 500; }

/* ─── 3.3 Nav ────────────────────────────────────────────────────────────
   Rendered by js/components/nav.js into `<header data-nav>`. Active link
   is identified via `body[data-page]`.
   ──────────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #eee;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  gap: 12px;
  box-sizing: border-box;
}
.nav__logo {
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav__logo-mark { color: var(--mint); }

.nav__links {
  display: flex; gap: 28px; align-items: center;
  flex-shrink: 1; min-width: 0;
}
.nav__link { font-size: 14px; color: #555; transition: color 0.2s ease; }
.nav__link:hover { color: #111; }
.nav__link.is-active { color: #111; font-weight: 600; }

.nav__cta {
  background: #111; color: #fff;
  border-radius: 99px;
  padding: 10px 24px; font-size: 14px; font-weight: 600;
  line-height: 1.4;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav__cta:hover { background: #000; transform: translateY(-1px); color: #fff; }

/* Burger toggle — hidden on desktop, shown on mobile via media query */
.nav__burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  background: none; border: none; padding: 0;
  cursor: pointer;
  color: #111;
  flex-shrink: 0;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav__burger-line {
  position: absolute; left: 10px; right: 10px;
  height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav__burger-line:nth-child(1) { top: 13px; }
.nav__burger-line:nth-child(2) { top: 19px; }
.nav__burger-line:nth-child(3) { top: 25px; }
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* Off-canvas drawer — invisible on desktop, slides in on mobile when open */
.nav__drawer {
  position: fixed; inset: 0;
  z-index: 110;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
}
.nav-drawer-open .nav__drawer {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s linear 0s;
}
.nav__drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-drawer-open .nav__drawer-backdrop { opacity: 1; }
.nav__drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 86vw);
  background: #fff;
  padding: 80px 28px 32px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.nav-drawer-open .nav__drawer-panel { transform: translateX(0); }
.nav__drawer-link {
  font-size: 17px; color: #333;
  padding: 14px 4px;
  border-bottom: 1px solid #f0f0f0;
  display: block;
  transition: color 0.2s ease;
}
.nav__drawer-link:hover { color: var(--mint); }
.nav__drawer-link.is-active { color: #111; font-weight: 600; }
.nav__drawer-link--btn {
  background: none; border: none; padding: 14px 4px;
  font: inherit; color: #333; text-align: left;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.nav__drawer-link--btn:hover { color: var(--mint); }
.nav__drawer-cta {
  margin-top: 20px;
  background: var(--mint); color: #fff;
  border-radius: 99px;
  padding: 14px 24px;
  font-size: 15px; font-weight: 600;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav__drawer-cta:hover { background: var(--mint-hover); color: #fff; transform: translateY(-1px); }

body.nav-drawer-open { overflow: hidden; }

/* ─── 3.4 Footer ─────────────────────────────────────────────────────────
   Rendered by js/components/footer.js into `<footer data-footer>`.
   ──────────────────────────────────────────────────────────────────────── */

.footer {
  background: #050505; padding: 40px 32px;
  text-align: center; color: #fff;
}
.footer__logo { font-family: var(--font-display); font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.footer__logo-mark { color: var(--mint); }
.footer__info { font-size: 13px; color: #555; }
.footer__links { display: flex; justify-content: center; gap: 20px; margin-top: 12px; }
.footer__links a { font-size: 13px; color: #666; }
.footer__links a:hover { color: #999; }

/* ─── 3.5 Modal — base ───────────────────────────────────────────────────
   Generic modal. Subclasses add `.modal--<variant>` for theming.

     <div class="modal modal--auth" id="modal-auth" aria-hidden="true" role="dialog" aria-modal="true">
       <div class="modal__backdrop" data-modal-close></div>
       <div class="modal__panel" role="document">
         <button class="modal__close" data-modal-close>×</button>
         <div class="modal__visual modal__visual--dark">…</div>
         <div class="modal__body">…</div>
       </div>
     </div>
   ──────────────────────────────────────────────────────────────────────── */

.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  max-width: 100%;
  overflow-x: clip;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
@supports not (overflow: clip) {
  .modal { overflow-x: hidden; }
}
.modal.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative; z-index: 1;
  width: min(880px, calc(100vw - 48px));
  max-width: 100%;
  max-height: calc(100vh - 48px);
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.modal button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.modal.open .modal__panel { transform: translateY(0) scale(1); opacity: 1; }

.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex; align-items: center; justify-content: center;
  color: #111;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.modal__close:hover { background: #fff; transform: rotate(90deg); color: var(--mint); }
.modal__close:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

.modal__body {
  position: relative;
  padding: 40px 40px 36px;
  display: flex; flex-direction: column;
  overflow-y: auto;
  background: var(--white);
}

/* ─── 3.6 Modal visuals ───
   `.modal__visual` is the left-side spline container. Two themes:
     .modal__visual--dark  → for the auth modal (dark scene)
     .modal__visual--warm  → for the buy modal (light scene)

   Layout is identical for both themes: the spline scene sits inset from
   every edge with the same padding, keeping it visually consistent across
   modals and fully centered both horizontally and vertically.
   ──────────────────────────────────────────────────────────────────────── */

.modal__visual {
  position: relative;
  min-height: 360px;
  padding: 64px;
  overflow: hidden;
  isolation: isolate;
  display: flex; align-items: center; justify-content: center;
}
.modal__visual--dark { background: #050505; }
.modal__visual--warm { background: var(--warm-bg); }

/* The spline scene is locked to a 1:1 box, capped by the smaller of the
   available width / height. That keeps it perfectly square regardless of
   how tall the modal body next to it grows. */
.modal__visual spline-viewer {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  --logo-color: transparent;
  z-index: 0;
}
.modal__visual spline-viewer::part(logo) { display: none !important; visibility: hidden !important; }

.modal__visual-fade {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(circle at 20% 100%, rgba(90, 94, 255, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(5, 5, 5, 0) 60%, rgba(5, 5, 5, 0.5) 100%);
}

/* ─── 3.7 Form ───────────────────────────────────────────────────────────
   Reusable form primitives. Used inside modals and elsewhere.
   ──────────────────────────────────────────────────────────────────────── */

.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__label {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; font-weight: 600; color: #333;
}
.form__field input,
.form__field textarea,
.form__field select {
  width: 100%;
  background: var(--off-white);
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 13px 16px;
  /* ≥16px prevents iOS Safari auto-zoom on focus / autofill */
  font-size: 16px;
  font-family: var(--font-body);
  color: #111;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: #aaa; }
.form__field input:hover,
.form__field textarea:hover,
.form__field select:hover { border-color: #d8d8d8; }
.form__field input:focus,
.form__field textarea:focus,
.form__field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(90, 94, 255, 0.12);
}

/* iOS autofill can inject smaller computed font-size — keep at 16px */
.form__field input:-webkit-autofill,
.form__field input:-webkit-autofill:hover,
.form__field input:-webkit-autofill:focus,
.form__field textarea:-webkit-autofill,
.form__field textarea:-webkit-autofill:hover,
.form__field textarea:-webkit-autofill:focus {
  font-size: 16px;
  -webkit-text-fill-color: #111;
}

/* Password input + eye toggle */
.form__input-wrap { position: relative; }
.form__input-wrap input { padding-right: 48px; }
.form__eye {
  position: absolute; top: 50%; right: 6px;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 0; background: transparent; color: #888;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}
.form__eye:hover { color: var(--mint); background: rgba(90, 94, 255, 0.08); }
.form__eye:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.form__eye .form__eye-hide { display: none; }
.form__eye[data-visible="true"] .form__eye-show { display: none; }
.form__eye[data-visible="true"] .form__eye-hide { display: inline-flex; color: var(--mint); }

/* Checkbox */
.form__checkbox {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.5; color: #555;
  cursor: pointer; margin-top: 2px;
}
.form__checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.form__checkbox-box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1px solid #d8d8d8;
  background: #fff;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  margin-top: 1px;
}
.form__checkbox input:checked + .form__checkbox-box {
  background: var(--mint); border-color: var(--mint); color: var(--dark);
}
.form__checkbox input:focus-visible + .form__checkbox-box {
  outline: 2px solid var(--mint); outline-offset: 2px;
}
.form__checkbox-text a {
  color: var(--mint);
  border-bottom: 1px solid var(--mint-border);
  transition: border-color 0.2s ease;
}
.form__checkbox-text a:hover { border-bottom-color: var(--mint); }

/* Feedback messages */
.form__error,
.form__success {
  margin: -4px 0 -2px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px; line-height: 1.5;
}
.form__error   { background: var(--error-bg);   border: 1px solid var(--error-border);   color: var(--error); }
.form__success { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); }

/* Password strength meter
   Inserted by js/components/password-strength.js right after the
   `.form__input-wrap` of a "new password" field. Hidden while empty. */
.pw-strength {
  display: flex; flex-direction: column; gap: 8px;
  margin: 2px 0 0;
  animation: fadeUp 0.25s ease;
}
.pw-strength[hidden] { display: none; }

.pw-strength__bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: #e8e8e6;
  overflow: hidden;
}
.pw-strength__bar-fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: var(--error);
  border-radius: inherit;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.pw-strength[data-strength="1"] .pw-strength__bar-fill { width: 20%; background: var(--error); }
.pw-strength[data-strength="2"] .pw-strength__bar-fill { width: 40%; background: #e67e22; }
.pw-strength[data-strength="3"] .pw-strength__bar-fill { width: 60%; background: #e67e22; }
.pw-strength[data-strength="4"] .pw-strength__bar-fill { width: 80%; background: #b8a72c; }
.pw-strength[data-strength="5"] .pw-strength__bar-fill { width: 100%; background: var(--success); }

.pw-strength__list {
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
  margin: 0; padding: 0;
}
.pw-strength__item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; line-height: 1.4;
  color: #777;
}
.pw-strength__item--ok { display: none; }

.pw-strength__bullet {
  flex: 0 0 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #c0c0bd;
}

/* Success row — shown in place of the list when every rule passes. */
.pw-strength__done {
  display: none;
  align-items: center; gap: 8px;
  font-size: 12px; line-height: 1.4;
  color: var(--success);
  font-weight: 600;
}
.pw-strength__done-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
}
.pw-strength--valid .pw-strength__done { display: inline-flex; }
.pw-strength--valid .pw-strength__list { display: none; }

/* ─── 3.8 Auth form ──────────────────────────────────────────────────────
   Specific layout for the 4 forms inside the auth modal.
   ──────────────────────────────────────────────────────────────────────── */

.auth-form {
  display: flex; flex-direction: column; gap: 16px;
  animation: fadeUp 0.35s ease;
}
.auth-form[hidden] { display: none; }

.auth-form__header { margin-bottom: 4px; }
.auth-form__title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.5px; line-height: 1.15;
  color: #111; margin-bottom: 8px;
}
.auth-form__switch {
  font-size: 14px; color: #777; line-height: 1.5;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline;
}
.auth-form__mini { font-size: 13px; color: #777; text-align: center; margin-top: 4px; }

/* ─── 3.9 Buy form ───────────────────────────────────────────────────────
   Quantity stepper, price display, status meta inside the buy modal.
   ──────────────────────────────────────────────────────────────────────── */

.buy__eyebrow {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 2px;
  color: #555; text-transform: uppercase; font-weight: 600; margin-bottom: 8px;
}
.buy__eyebrow-mark { color: var(--mint); }
.buy__title {
  font-family: var(--font-display); font-size: 26px; font-weight: 800;
  letter-spacing: -0.5px; line-height: 1.15; color: #111; margin-bottom: 6px;
}
.buy__sub { font-size: 14px; color: #777; line-height: 1.55; margin-bottom: 22px; }

.buy__qty-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 6px;
}
.buy__qty-label { font-size: 14px; font-weight: 600; color: #111; }
.buy__qty-control {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid #eaeaea; border-radius: 99px; padding: 4px;
  background: var(--off-white);
}
.buy__qty-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: #fff; color: #111;
  font-size: 18px; font-weight: 600; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.buy__qty-btn:hover { background: var(--mint); color: var(--dark); }
.buy__qty-btn:active { transform: scale(0.94); }
.buy__qty-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.buy__qty-btn[disabled]:hover { background: #fff; color: #111; }
.buy__qty-value {
  min-width: 32px; text-align: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #111;
}
.buy__qty-hint { font-size: 12px; color: #999; margin-bottom: 22px; }

.buy__price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid #eee; border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}
.buy__price-label {
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: #888; font-weight: 600; margin-bottom: 4px;
}
.buy__price-display { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buy__price-original { color: #999; font-size: 18px; font-weight: 500; }
.buy__price-final {
  font-family: var(--font-display); font-size: 44px; font-weight: 800;
  color: #111; letter-spacing: -1px; line-height: 1;
  transition: color 0.25s ease;
}
.buy__price-final.is-discounted { color: var(--mint); }
.buy__price-badge {
  display: inline-block;
  font-size: 12px; font-weight: 600; color: var(--mint);
  background: var(--mint-dim); border: 1px solid var(--mint-border);
  padding: 6px 12px; border-radius: 99px;
}
.buy__price-badge b { font-weight: 700; }

.buy__meta { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; }
.buy__meta-line { font-size: 13px; color: #555; line-height: 1.45; }
.buy__status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55);
  animation: statusPulse 2.4s ease-in-out infinite;
  flex-shrink: 0; margin-top: 6px;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55); }
  50%      { opacity: 0.55; box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
}

/* ══════════════════════════════════════════════════════════════════════════
   4. PAGE SECTIONS
   ══════════════════════════════════════════════════════════════════════════ */

/* ─── 4.1 Section primitives ─── */

.section { padding: 100px 32px; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-label {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 2px;
  color: var(--mint); text-transform: uppercase; margin-bottom: 12px; font-weight: 600;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px);
  font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 16px;
}
.section-desc { font-size: 17px; color: #777; max-width: 500px; line-height: 1.6; }

/* ─── 4.2 Hero (home) ─── */

.hero {
  background: var(--dark); color: var(--white);
  padding: 100px 32px 80px; position: relative; overflow: hidden;
}
.hero-glow-1 {
  position: absolute; top: -200px; right: -200px; width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 94, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute; bottom: -100px; left: -100px; width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 94, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 99px;
  border: 1px solid var(--mint-border); background: rgba(90, 94, 255, 0.08);
  font-size: 13px; color: var(--mint); margin-bottom: 28px; font-weight: 500;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(42px, 7vw, 72px);
  font-weight: 800; line-height: 1.05; letter-spacing: -2px; margin-bottom: 24px;
}
.hero h1 .accent { color: var(--mint); }
.hero-sub { font-size: 19px; line-height: 1.6; color: #999; max-width: 480px; margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-features { display: flex; gap: 32px; margin-top: 56px; flex-wrap: wrap; }
.hero-feat { flex: 1 1 140px; min-width: 0; }
.hero-feat-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.hero-feat-sub { font-size: 13px; color: #666; }

/* ─── 4.3 Trust bar ─── */

.trust-bar {
  background: var(--warm-bg); padding: 20px 32px;
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; align-items: center;
}
.trust-bar span { font-size: 13px; color: #666; font-weight: 500; letter-spacing: 0.3px; }

/* ─── 4.4 Steps grid ─── */

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--off-white); border-radius: 16px; padding: 40px 28px;
  position: relative; border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06); }
.step-icon { font-size: 40px; margin-bottom: 16px; }
.step-num {
  font-family: var(--font-display); font-size: 64px; font-weight: 800;
  color: rgba(0, 0, 0, 0.04); position: absolute; top: 16px; right: 20px; line-height: 1;
}
.step-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 15px; color: #777; line-height: 1.6; }

/* ─── 4.5 Scenarios ─── */

.scenarios { background: var(--dark); color: var(--white); }
.scenario-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.scenario-btn {
  padding: 10px 20px; border-radius: 99px; border: 1px solid #333;
  background: transparent; color: #888; font-size: 14px; cursor: pointer;
  transition: all 0.3s; font-family: var(--font-body);
}
.scenario-btn.active { border-color: var(--mint); background: var(--mint-dim); color: var(--mint); }
.scenario-card {
  background: var(--dark2); border-radius: 16px; padding: 48px 40px;
  border: 1px solid #222; min-height: 180px;
}
.scenario-flex { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.scenario-text { flex: 1; min-width: 280px; }
.scenario-text .icon { font-size: 56px; line-height: 1; margin-bottom: 12px; }
.scenario-text h3 { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.scenario-text p { font-size: 16px; color: #999; line-height: 1.6; max-width: 440px; }
.scenario-cost {
  background: rgba(90, 94, 255, 0.08); border: 1px solid rgba(90, 94, 255, 0.2);
  border-radius: 12px; padding: 20px 28px; text-align: center; min-width: 160px;
}
.scenario-cost-label { font-size: 12px; color: var(--mint); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.scenario-cost-val { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: #fff; }

/* ─── 4.6 Comparison table ─── */

.compare-table {
  border-radius: 16px; border: 1px solid #eee;
  overflow: hidden;
  max-width: 100%;
}
.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  overscroll-behavior-x: contain;
}
.compare-header {
  display: grid; grid-template-columns: 1fr 100px 100px 100px;
  background: var(--off-white); padding: 14px 24px;
  font-weight: 600; font-size: 13px; color: #555;
}
.compare-row {
  display: grid; grid-template-columns: 1fr 100px 100px 100px;
  padding: 14px 24px; border-top: 1px solid #f0f0f0;
}
.compare-row:nth-child(even) { background: var(--off-white); }
.compare-row span { font-size: 14px; color: #444; }
.compare-row .check { text-align: center; font-size: 18px; }
.compare-row .dim { opacity: 0.3; }

/* ─── 4.7 Calculator ─── */

.calc-section { background: var(--warm-bg); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.calc-box { background: var(--dark); border-radius: 16px; padding: 36px 32px; max-width: 520px; }
.calc-title { font-family: var(--font-display); font-size: 13px; letter-spacing: 2px; color: var(--mint); text-transform: uppercase; margin-bottom: 16px; }
.calc-desc { font-size: 15px; color: #999; margin-bottom: 24px; line-height: 1.6; }
.calc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.calc-result {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid #222; padding-top: 20px;
}
.calc-result-label { font-size: 13px; color: #666; }
.calc-result-val { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: #fff; letter-spacing: -1px; }
.calc-result-val.green { color: var(--mint); }
.calc-ratio { font-size: 14px; color: var(--mint); margin-top: 12px; text-align: center; }

/* ─── 4.8 Testimonials ─── */

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
  background: var(--off-white); border-radius: 16px; padding: 32px 24px;
  border: 1px solid #eee; display: flex; flex-direction: column; height: 100%;
}
.testimonial-badge {
  display: inline-block; font-size: 11px; font-weight: 600; color: var(--mint);
  background: var(--mint-dim); padding: 4px 10px; border-radius: 99px;
  margin-bottom: 16px; align-self: flex-start;
}
.testimonial-card blockquote { font-size: 15px; line-height: 1.65; color: #555; flex: 1; margin-bottom: 20px; }
.testimonial-card cite { font-size: 14px; font-weight: 600; color: #111; font-style: normal; }

/* ─── 4.9 Final CTA ─── */

.final-cta {
  background: var(--dark); color: var(--white); text-align: center;
  position: relative; overflow: hidden;
}
.final-cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 94, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta-inner { position: relative; z-index: 1; }
.final-cta h2 {
  font-family: var(--font-display); font-size: clamp(36px, 6vw, 56px);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px;
}
.final-cta p { font-size: 17px; color: #888; max-width: 480px; margin: 0 auto 36px; line-height: 1.6; }
.final-cta .sub { font-size: 13px; color: #555; margin-top: 16px; }

/* ─── 4.10 Page hero (sub-pages) ─── */

.page-hero {
  background: var(--dark); color: var(--white);
  padding: 120px 32px 100px;
  position: relative; overflow: hidden; text-align: center;
}
.page-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(48px, 8vw, 84px);
  font-weight: 800; letter-spacing: -2.5px; line-height: 1; margin-bottom: 24px;
}
.page-hero h1 .accent { color: var(--mint); }
.page-hero p { font-size: 18px; line-height: 1.65; color: #999; max-width: 520px; margin: 0 auto; }
.page-hero p a {
  color: var(--mint);
  border-bottom: 1px solid var(--mint-border); padding-bottom: 1px;
  transition: border-color 0.2s ease;
}
.page-hero p a:hover { border-bottom-color: var(--mint); }

/* ─── 4.11 FAQ accordion ─── */

.faq-section { padding: 80px 32px 60px; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eaeaea; }
.faq-item:first-child { border-top: 1px solid #eaeaea; }
.faq-question {
  width: 100%; background: transparent; border: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 19px; font-weight: 600; color: #111;
  transition: color 0.25s ease;
}
.faq-question:hover { color: var(--mint); }
.faq-question:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 4px; }
.faq-icon {
  position: relative; width: 22px; height: 22px; flex-shrink: 0;
  color: #111;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}
.faq-question:hover .faq-icon { color: var(--mint); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-icon::after  { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--mint); }
.faq-answer {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.faq-item.open .faq-answer { opacity: 1; }
.faq-answer-inner { padding: 0 4px 28px; font-size: 16px; color: #555; line-height: 1.7; max-width: 620px; }
.faq-answer-inner ol, .faq-answer-inner ul { margin: 6px 0 0; padding-left: 22px; }
.faq-answer-inner li { margin-bottom: 4px; }
.faq-answer-inner li:last-child { margin-bottom: 0; }
.faq-answer-inner strong { color: #111; font-weight: 600; }

/* ─── 4.12 Legal pages ─── */

.legal-section { padding: 72px 32px 120px; }
.legal-content {
  max-width: 720px; margin: 0 auto; color: #444; line-height: 1.7;
  overflow-x: clip;
}
@supports not (overflow: clip) {
  .legal-content { overflow-x: hidden; }
}
.legal-content h2 {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  letter-spacing: -0.4px; color: #111; margin: 48px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: #111; letter-spacing: -0.2px; margin: 28px 0 10px;
}
.legal-content p { font-size: 16px; margin-bottom: 14px; }
.legal-content ul, .legal-content ol { margin: 6px 0 16px; padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content li:last-child { margin-bottom: 0; }
.legal-content strong { color: #111; font-weight: 600; }
.legal-content a { color: var(--mint); border-bottom: 1px solid var(--mint-border); transition: border-color 0.2s ease; }
.legal-content a:hover { border-bottom-color: var(--mint); }
.legal-content .legal-subheading {
  font-family: var(--font-display); font-weight: 700; color: #111;
  font-size: 15px; letter-spacing: -0.1px; margin: 24px 0 8px;
}
.legal-table-wrap {
  margin: 6px 0 18px; border: 1px solid #eee; border-radius: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  max-width: 100%;
  overscroll-behavior-x: contain;
}
.legal-content table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 540px; }
.legal-content thead { background: var(--off-white); }
.legal-content th, .legal-content td {
  text-align: left; padding: 11px 14px;
  border-bottom: 1px solid #eee; vertical-align: top;
}
.legal-content th {
  font-family: var(--font-display); font-weight: 600; color: #111;
  font-size: 12px; letter-spacing: 0.4px; text-transform: uppercase;
}
.legal-content tr:last-child td { border-bottom: none; }
.legal-content td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #111; font-weight: 600; white-space: nowrap;
}
.legal-content .legal-table-note { font-size: 13px; color: #888; margin: -6px 0 24px; }
.legal-meta {
  display: inline-block;
  font-size: 13px; color: #888;
  background: var(--off-white); border: 1px solid #eee; border-radius: 99px;
  padding: 6px 14px; margin-bottom: 32px;
}
.legal-placeholder {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--mint); background: var(--mint-dim);
  padding: 2px 8px; border-radius: 4px;
}

/* ─── 4.13 Support box (FAQ page) ─── */

.support-section { padding: 40px 32px 120px; }
.support-box {
  max-width: 720px; margin: 0 auto;
  background: var(--off-white); border: 1px solid #eee; border-radius: 16px;
  padding: 40px 36px; text-align: center;
}
.support-box h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  letter-spacing: -0.5px; margin-bottom: 10px;
}
.support-box p { font-size: 15px; color: #777; line-height: 1.65; margin-bottom: 20px; }
.support-box a {
  display: inline-block; font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--mint); padding: 10px 22px; border-radius: 99px;
  background: var(--mint-dim); border: 1px solid var(--mint-border);
  transition: transform 0.2s ease, background 0.2s ease;
}
.support-box a:hover { transform: translateY(-2px); background: rgba(90, 94, 255, 0.18); }

/* ══════════════════════════════════════════════════════════════════════════
   5. RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .section { padding-left: 24px; padding-right: 24px; }
  .hero { padding-left: 24px; padding-right: 24px; }
  .page-hero { padding-left: 24px; padding-right: 24px; }
  .app-page { padding-left: 20px; padding-right: 20px; }
  .legal-section { padding-left: 24px; padding-right: 24px; }
  .faq-section { padding-left: 24px; padding-right: 24px; }
  .app-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  }
  .scenario-text { min-width: 0; }
  .legal-content td:first-child { white-space: normal; }
}

@media (max-width: 768px) {
  /* Nav — desktop links collapse into a burger drawer */
  .nav { padding: 0 16px; }
  .nav__links { display: none !important; }
  .nav__burger { display: inline-flex !important; align-items: center; justify-content: center; }

  /* Sections */
  .steps-grid { grid-template-columns: 1fr; }
  .compare-scroll { margin: 0; padding: 0; width: 100%; }
  .compare-header, .compare-row {
    grid-template-columns: 1fr 56px 56px 56px;
    padding: 12px 16px;
    min-width: 300px;
  }
  .scenario-text { min-width: 0; }
  .scenario-cost { min-width: 0; width: 100%; }
  .trust-bar { gap: 12px 20px; padding: 16px 20px; }
  .calc-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-features { flex-direction: column; gap: 16px; }
  .hero h1 { font-size: 42px; }
  .section { padding: 64px 20px; }
  .hero { padding: 64px 20px 56px; }
  .scenario-card { padding: 32px 24px; }
  .page-hero { padding: 72px 20px 56px; }
  .faq-section { padding: 56px 20px 40px; }
  .support-section { padding: 24px 20px 72px; }
  .support-box { padding: 32px 24px; }
  .faq-question { font-size: 17px; padding: 22px 2px; gap: 16px; }
  .legal-section { padding: 48px 20px 80px; }
  .legal-content h2 { font-size: 21px; margin-top: 40px; }
  .legal-content h3 { font-size: 16px; }
}

@media (max-width: 880px) {
  /* Modal — stack on small screens */
  .modal { padding: 12px; align-items: flex-end; }
  .modal__panel {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 22px;
  }
  .modal__body { padding: 28px 24px 28px; }
  .modal__visual { min-height: 240px; padding: 40px; }

  .auth-form__title,
  .buy__title { font-size: 22px; }
  .buy__price-final { font-size: 36px; }
}

/* Auth + buy modal mobile — hide spline, compact form, sheet-style entry */
@media (max-width: 768px) {
  .modal--auth .modal__visual,
  .modal--buy .modal__visual { display: none; }
  .modal--auth .modal__panel,
  .modal--buy .modal__panel {
    width: min(480px, 100%);
    border-radius: 22px;
  }
  .modal--auth .modal__body,
  .modal--buy .modal__body { padding: 32px 24px 24px; }
  .buy__title { font-size: 22px; letter-spacing: -0.4px; }
  .buy__sub { font-size: 13px; margin-bottom: 18px; }
  .auth-form { gap: 14px; }
  .auth-form__header { margin-bottom: 2px; }
  .auth-form__title { font-size: 22px; letter-spacing: -0.4px; }
  .auth-form__switch { font-size: 13px; }
  .form__field input,
  .form__field textarea,
  .form__field select { padding: 12px 14px; border-radius: 10px; }
  .form__label { font-size: 12px; }
}

@media (max-width: 480px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal__visual { min-height: 200px; padding: 28px; }
  .modal__body { padding: 24px 20px 22px; }
  .buy__price-row { flex-wrap: wrap; }
  .buy__price-badge { font-size: 11px; padding: 5px 10px; }
  .buy__price-final { font-size: 32px; }

  /* Edge-to-edge bottom sheet for auth, buy + add-code on small mobiles */
  .modal--auth .modal__panel,
  .modal--buy .modal__panel,
  .modal--add-code .modal__panel {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 12px);
    border-radius: 22px 22px 0 0;
  }
  .modal--auth .modal__body,
  .modal--buy .modal__body { padding: 30px 22px 28px; }
  .auth-form__title,
  .buy__title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal, .modal__panel, .modal__close { transition: none; }
  .auth-form { animation: none; }
  .buy__status-dot { animation: none; }
  .pw-strength { animation: none; }
  .pw-strength__bar-fill { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   6. APP — Tech-startup skin (Konto / Kontakt-Karte / Scan)
   ──────────────────────────────────────────────────────────────────────────
   Scoped to body[data-nav-variant="app"]. Marketing pages are untouched.
   TABLE OF CONTENTS
     6.1  Page shell (.app-page)
     6.2  Status / hints
     6.3  Toolbar
     6.4  Buttons (.app-btn)
     6.5  Cards (.app-card)
     6.6  Empty state
     6.7  Spline header
     6.8  Forms (.app-form)
     6.9  Scan + finder card
     6.10 Add-code modal
     6.11 Nav helpers
     6.12 Responsive overrides
   ══════════════════════════════════════════════════════════════════════════ */

.nav__link--btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0 4px;
}
.nav__link--btn:hover { color: var(--mint); }

/* ─── 6.1 Page shell ─── */

.app-page {
  padding: 56px 24px 96px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  max-width: 100%;
}
@supports not (overflow: clip) {
  .app-page { overflow-x: hidden; }
}
.app-page__inner {
  max-width: 1040px;
  margin: 0 auto;
  min-width: 0;
  overflow-x: clip;
}
@supports not (overflow: clip) {
  .app-page__inner { overflow-x: hidden; }
}
.app-page__inner--narrow { max-width: 640px; }

.app-page__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.1;
  color: var(--app-text);
  margin: 0 0 6px;
}
.app-page__lead {
  margin: 0 0 28px;
  color: var(--app-muted);
  font-size: var(--text-md);
  line-height: 1.5;
}

.app-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.app-page__intro { min-width: 0; flex: 1 1 200px; }
.app-page__intro .app-page__lead { margin-bottom: 0; }
.app-page__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
}

/* ─── 6.2 Status / hints ─── */

.app-status {
  font-size: var(--text-sm);
  color: var(--app-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}
.app-status:empty { display: none; }

.app-status--error,
.app-status--warn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: var(--text-sm);
}
.app-status--error {
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid var(--error-border);
}
.app-status--warn {
  color: #8a6d00;
  background: rgba(255, 196, 0, 0.08);
  border: 1px solid rgba(255, 196, 0, 0.3);
}
.app-status--error code,
.app-status--warn code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.app-hint {
  font-size: var(--text-sm);
  color: var(--app-muted);
  line-height: 1.55;
  margin: 12px 0;
}
.app-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: var(--app-surface);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--app-border);
}

/* ─── 6.3 Toolbar ─── */

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

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

.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid var(--app-border-strong);
  background: var(--app-surface);
  color: var(--app-text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease,
              transform 0.15s ease, color 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.app-btn:hover { border-color: var(--app-text); }
.app-btn:active { transform: scale(0.98); }
.app-btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.app-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.app-btn[disabled]:hover { border-color: var(--app-border-strong); }

.app-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  width: 16px;
  height: 16px;
}

.app-btn--primary {
  background: var(--mint);
  border-color: var(--mint);
  color: #fff;
  box-shadow: 0 4px 14px rgba(90, 94, 255, 0.25);
}
.app-btn--primary:hover {
  background: var(--mint-hover);
  border-color: var(--mint-hover);
  box-shadow: 0 6px 20px rgba(90, 94, 255, 0.32);
}

.app-btn--secondary {
  background: var(--app-surface);
  color: var(--app-text);
  border-color: var(--app-border-strong);
}
.app-btn--secondary:hover { border-color: var(--app-text); }

.app-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--app-muted);
}
.app-btn--ghost:hover {
  color: var(--app-text);
  background: var(--app-surface);
  border-color: transparent;
}

.app-btn--danger {
  background: var(--app-surface);
  border-color: var(--app-border-strong);
  color: #c0392b;
}
.app-btn--danger:hover { border-color: #c0392b; background: #fff8f8; }

/* ─── 6.5 Cards ─── */

.app-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.app-card {
  position: relative;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--app-border-strong);
}

.app-card__spline {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #f6f5f0 0%, #efeee8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.app-card__spline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(90, 94, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.app-card__spline spline-viewer {
  width: 100%;
  height: 100%;
  --logo-color: transparent;
}
.app-card__spline spline-viewer::part(logo) { display: none !important; visibility: hidden !important; }

.app-card__body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.app-card__title {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--app-text);
  line-height: 1.3;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-card__meta {
  font-size: var(--text-xs);
  color: var(--app-muted);
  margin: 0 0 14px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.app-card__meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  background: var(--app-surface-2);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--app-text);
  letter-spacing: 0.2px;
}
.app-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.app-card__actions .app-btn {
  flex: 1;
  min-height: 36px;
  padding: 8px 12px;
}

/* ─── 6.6 Empty state ─── */

.app-empty {
  padding: 64px 24px;
  border: 1px dashed var(--app-border-strong);
  border-radius: var(--radius-lg);
  color: var(--app-muted);
  text-align: center;
  font-size: var(--text-md);
  background: var(--app-surface);
}

/* ─── 6.7 Spline header (kontakt-karte) ─── */

.app-spline-header {
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #f6f5f0 0%, #efeee8 100%);
  border: 1px solid var(--app-border);
  isolation: isolate;
}
.app-spline-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(90, 94, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.app-spline-header spline-viewer {
  width: 100%;
  height: 100%;
  --logo-color: transparent;
}
.app-spline-header spline-viewer::part(logo) { display: none !important; visibility: hidden !important; }

/* ─── 6.8 Forms ─── */

.app-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-form__fieldset {
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  margin: 0;
  box-shadow: var(--shadow-xs);
}
.app-form__legend {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  color: var(--app-text);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0 0 14px;
  display: block;
  float: none;
}

.app-form .form__field { margin-bottom: 14px; }
.app-form .form__field:last-of-type { margin-bottom: 4px; }
.app-form .form__field input {
  border-radius: 10px;
  padding: 12px 14px;
}

.app-form textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  background: var(--off-white);
  border: 1px solid #eaeaea;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--app-text);
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.app-form textarea::placeholder { color: #aaa; }
.app-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(90, 94, 255, 0.12);
}

.app-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.app-form__actions .btn--cta { flex: 0 1 260px; }

.app-link {
  font-size: var(--text-sm);
  color: var(--mint);
  font-weight: 500;
  transition: opacity 0.18s ease;
}
.app-link:hover { opacity: 0.7; }

.app-checkbox-native {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 2px;
  padding: 14px 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--app-text);
}
.app-checkbox-native input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--mint);
}

/* intl-tel-input — full width, no page-level horizontal scroll */
.form__field--phone {
  overflow: hidden;
  max-width: 100%;
}
.app-form .form__field--phone .iti {
  display: flex !important;
  align-items: stretch;
  width: 100% !important;
  max-width: 100% !important;
}
.app-form .form__field--phone .iti__country-container { flex-shrink: 0; }
.app-form .form__field--phone .iti__selected-country { max-width: 38vw; }
.app-form .form__field--phone .iti__tel-input,
.app-form .form__field--phone .iti input[type="tel"] {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  font-size: 16px !important;
}
.iti { max-width: 100%; }
.iti input[type="tel"] { font-size: 16px; }

/* ─── 6.9 Scan + finder card ─── */

.app-scan {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}
.app-scan-actions .btn--cta { flex: 0 1 260px; }

.app-finder-card {
  border: 1px solid var(--app-border);
  border-radius: var(--radius-lg);
  padding: 26px 24px 22px;
  background: var(--app-surface);
  box-shadow: var(--shadow-sm);
}
.app-finder-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--mint-dim);
  color: var(--mint);
  border: 1px solid var(--mint-border);
  margin: 0 0 18px;
}
.app-finder-card p {
  margin: 0 0 8px;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--app-text);
}
.app-finder-card p strong {
  color: var(--app-muted);
  font-weight: 500;
  display: inline-block;
  min-width: 90px;
}
.app-finder-card a {
  color: var(--mint);
  border-bottom: 1px solid var(--mint-border);
  transition: border-color 0.2s ease;
}
.app-finder-card a:hover { border-bottom-color: var(--mint); }
.app-finder-card .btn--cta {
  margin-top: 8px;
  width: auto;
  display: inline-flex;
}

.app-rule {
  border: none;
  border-top: 1px solid var(--app-divider);
  margin: 18px 0;
}

/* ─── 6.10 Add-code modal ─── */

.modal--add-code .modal__panel {
  grid-template-columns: 1fr;
  width: min(480px, 100%);
}
.modal--add-code .modal__body { padding: 36px 32px 28px; }

.add-code-qr-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0a0a0a;
  margin: 14px 0 12px;
  min-height: 200px;
  border: 1px solid var(--app-border-strong);
}
.add-code-qr-video {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  vertical-align: middle;
}
.app-add-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.app-add-qr-result {
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--off-white);
  border: 1px solid var(--app-border);
  color: var(--app-text);
}
.app-add-qr-result--error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error);
}
.app-add-qr-result--ok {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

.app-modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.4px;
  line-height: 1.15;
  color: var(--app-text);
}
.app-modal-text {
  margin: 0 0 18px;
  font-size: var(--text-md);
  color: var(--app-muted);
  line-height: 1.55;
}
.app-modal-hint {
  margin: 16px 0 0;
  font-size: var(--text-xs);
  color: var(--app-muted-2);
  line-height: 1.5;
}
.app-modal-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  background: var(--off-white);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--app-text);
}
.app-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.app-modal-back {
  margin-bottom: 14px;
  align-self: flex-start;
}

/* ─── 6.11 Responsive overrides ─── */

@media (max-width: 1024px) {
  .app-page { padding: 48px 24px 80px; }
  .app-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  }
}

@media (max-width: 768px) {
  /* App nav follows the same burger pattern */
  body[data-nav-variant="app"] .nav__links { display: none; }

  .app-page { padding: 24px 16px 64px; }
  .app-page__title {
    font-size: clamp(22px, 6vw, 26px);
    letter-spacing: -0.4px;
  }
  .app-page__header {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
  }
  .app-page__intro {
    flex: 1 1 auto;
    min-width: 0;
  }
  .app-page__actions {
    justify-content: flex-end;
    margin-left: auto;
    flex-shrink: 0;
  }
  .app-page__actions .app-btn--icon-add .app-btn__label {
    display: none;
  }
  .app-page__actions .app-btn--icon-add {
    width: 44px;
    min-width: 44px;
    padding: 0;
    gap: 0;
  }
  .app-page__actions .app-btn--icon-add .app-btn__icon {
    width: auto;
    height: auto;
    font-size: 22px;
    font-weight: 700;
  }
  .app-page__lead {
    font-size: var(--text-sm);
    margin-bottom: 20px;
  }
  .app-page__intro .app-page__lead { margin-bottom: 0; }
  .app-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .app-card__body { padding: 16px; }
  .app-card__actions .app-btn { min-height: 40px; }

  .app-form { gap: 14px; }
  .app-form__fieldset {
    padding: 18px 16px 12px;
    border-radius: 14px;
  }
  .app-form__legend { padding-bottom: 10px; }
  .app-form .form__field--phone .iti__selected-country { max-width: 34vw; }
  .app-form__actions { gap: 12px; }
  .app-form__actions .btn--cta { flex: 1 1 100%; }

  .app-finder-card { padding: 22px 20px 18px; }
  .app-finder-card p strong { min-width: 80px; }
  .app-spline-header {
    aspect-ratio: 16 / 8;
    margin-bottom: 18px;
    border-radius: 14px;
  }

  .modal--add-code .modal__body { padding: 28px 22px 24px; }
  .app-modal-title { font-size: 22px; }

  /* Slightly bigger touch targets on mobile */
  .app-btn {
    min-height: 44px;
    padding: 10px 18px;
  }
}

@media (max-width: 480px) {
  .app-finder-card p strong {
    display: block;
    min-width: 0;
    margin-bottom: 2px;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.6px;
  }
}

/* ─── Stripe Test Mode banner ─── */

body.has-stripe-test-banner {
  padding-top: 52px;
}

.stripe-test-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 8px 16px;
  background: #7c2d12;
  color: #fff7ed;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.stripe-test-banner__title {
  font-weight: 700;
  margin: 0 0 2px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stripe-test-banner__text {
  margin: 0;
}

.stripe-test-banner code {
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.stripe-test-banner a {
  color: #fed7aa;
  margin-left: 8px;
  text-decoration: underline;
}
