/* ==========================================================================
   QLOSI × IQ LASER VISION — LANDING PAGE
   base.css — reset, design tokens, layout, components
   --------------------------------------------------------------------------
   This file holds ALL structure and the default (Qlosi) color assignments.
   The theme file (theme-hybrid.css) layers on top and only reassigns color
   slots. Load base.css FIRST, then the theme file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Qlosi brand */
  --qlosi-ink:        #2d1f42;   /* deep purple page ground */
  --qlosi-ink-deep:   #241933;
  --qlosi-purple:     #4b336f;
  --qlosi-purple-lo:  #5d4185;
  --qlosi-green:      #7fcbae;
  --qlosi-green-dk:   #5fae90;

  /* IQ Laser Vision brand */
  --iqlv-cyan:        #00afef;
  --iqlv-cyan-dk:     #0090c7;
  --iqlv-ink:         #333333;

  /* Neutrals */
  --white:            #ffffff;
  --paper:            #f7f5fa;
  --paper-warm:       #fbfafc;
  --line-light:       rgba(45, 31, 66, 0.12);
  --line-dark:        rgba(255, 255, 255, 0.14);

  /* --- THEMEABLE SLOTS (theme files override these) ------------------- */
  --accent:           var(--qlosi-green);
  --accent-ink:       var(--qlosi-ink);       /* text on --accent */
  --accent-hover:     var(--qlosi-green-dk);

  --page-bg:          var(--qlosi-ink);
  --page-fg:          var(--white);

  /* Light sections (product, next-steps, faq, guide) */
  --light-bg:         var(--paper);
  --light-fg:         var(--qlosi-ink);
  --light-muted:      rgba(45, 31, 66, 0.68);

  /* Booking section */
  --booking-bg:       var(--qlosi-purple);
  --booking-fg:       var(--white);
  --booking-accent:   var(--qlosi-green);
  --booking-accent-ink: var(--qlosi-ink);

  /* Partner trust strip */
  --trust-bg:         rgba(255, 255, 255, 0.04);
  --trust-fg:         var(--white);
  --trust-figure:     var(--qlosi-green);
  --trust-border:     var(--line-dark);

  /* Footer */
  --footer-bg:        var(--qlosi-ink-deep);
  --footer-fg:        rgba(255, 255, 255, 0.62);

  /* Type */
  --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Fluid type scale */
  --t-display:  clamp(2.6rem, 7.4vw, 5.6rem);
  --t-h2:       clamp(1.9rem, 3.9vw, 3.1rem);
  --t-h3:       clamp(1.3rem, 2.1vw, 1.7rem);
  --t-lede:     clamp(1.05rem, 1.5vw, 1.28rem);
  --t-body:     clamp(0.97rem, 1.05vw, 1.06rem);
  --t-small:    0.86rem;
  --t-eyebrow:  0.74rem;

  /* Space */
  --gutter:     clamp(1.25rem, 5vw, 3.5rem);
  --section-y:  clamp(4rem, 9vh, 7.5rem);
  --measure:    68ch;
  --max:        1220px;

  /* Form */
  --radius:     14px;
  --radius-lg:  22px;
  --radius-pill: 999px;

  --shadow-sm:  0 2px 8px rgba(36, 25, 51, 0.08);
  --shadow-md:  0 14px 38px -12px rgba(36, 25, 51, 0.28);
  --shadow-lg:  0 34px 70px -20px rgba(36, 25, 51, 0.42);

  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --dur:        420ms;

  /* Sticky bar heights, used to keep content clear of them */
  --isi-bar-h:  52px;
  --book-bar-h: 0px;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.62;
  color: var(--page-fg);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* keep the last section clear of the two stacked sticky bars */
  padding-bottom: calc(var(--isi-bar-h) + var(--book-bar-h));
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

p  { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }

a { color: inherit; }

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.9rem 1.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. SHARED PRIMITIVES
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: var(--t-eyebrow);
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__headline { font-size: var(--t-h2); }
.section-head__sub {
  margin-top: 1.05rem;
  font-size: var(--t-lede);
  font-weight: 400;
  line-height: 1.58;
  opacity: 0.82;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.85rem 1.65rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 260ms var(--ease),
              background-color 200ms var(--ease), border-color 200ms var(--ease),
              color 200ms var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
  opacity: 0.9;
}
.btn--ghost:hover {
  opacity: 1;
  background: color-mix(in srgb, currentColor 10%, transparent);
  transform: translateY(-2px);
}

.btn--sm  { min-height: 44px; padding: 0.6rem 1.25rem; font-size: 0.87rem; }
.btn--lg  { min-height: 56px; padding: 1rem 2rem; font-size: 1.02rem; }
.btn--xl  { min-height: 64px; padding: 1.15rem 2.6rem; font-size: 1.1rem; }
.btn--block { display: flex; width: 100%; }
.btn--block + .btn--block { margin-top: 0.7rem; }

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* ---- ISI callouts inside sections ---- */
.isi-callout {
  margin-top: 2.2rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--t-small);
  line-height: 1.55;
}
.isi-callout p { margin: 0; }
.isi-callout strong { letter-spacing: 0.06em; }

/* ---- Cards (quiz steps) ---- */
.card {
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(1.9rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  text-align: center;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--success { background: var(--accent); color: var(--accent-ink); }
.card__emoji { display: block; font-size: 2.6rem; margin-bottom: 0.9rem; }
.card__headline { font-size: var(--t-h3); margin-bottom: 0.8rem; }
.card__body { font-size: var(--t-body); opacity: 0.85; margin-bottom: 1.6rem; }

/* ---- Forms ---- */
.lead-form { text-align: left; }
.field { margin-bottom: 1rem; }
.field__label {
  display: block;
  margin-bottom: 0.38rem;
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.field__input {
  width: 100%;
  min-height: 52px;                /* comfortable mobile tap target */
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1rem;                 /* 16px min: stops iOS zoom-on-focus */
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.field__input::placeholder { color: currentColor; opacity: 0.45; }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.13);
}
.field__input:user-invalid { border-color: #e57373; }

.field__error {
  margin: 0 0 0.85rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: rgba(229, 115, 115, 0.16);
  color: #ffc9c9;
  font-size: var(--t-small);
  font-weight: 600;
}

.lead-form__privacy {
  margin: 0.95rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.68;
  text-align: center;
}
.lead-form__privacy a { text-decoration: underline; }

/* Light-surface form variant */
.lead-form--boxed {
  padding: clamp(1.6rem, 3vw, 2.3rem);
  background: var(--white);
  color: var(--light-fg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.lead-form--boxed .field__input {
  background: var(--paper-warm);
  border-color: var(--line-light);
}
.lead-form--boxed .field__input:focus { background: var(--white); }
.lead-form--boxed .field__error { background: #fdecec; color: #b3261e; }

/* --------------------------------------------------------------------------
   4. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--page-bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background-color 320ms var(--ease), border-color 320ms var(--ease),
              box-shadow 320ms var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--page-bg) 96%, transparent);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.7);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.8rem var(--gutter);
}

.cobrand { display: flex; align-items: center; gap: clamp(0.65rem, 2vw, 1.15rem); }
.cobrand__qlosi   { width: auto; height: clamp(26px, 4vw, 34px); }
.cobrand__partner { width: auto; height: clamp(20px, 3vw, 27px); }
.cobrand__divider {
  display: block;
  flex: 0 0 auto;
  width: 1px;
  height: 26px;
  background: var(--line-dark);
}

.site-header__cta { flex: 0 0 auto; }

.site-header__progress {
  height: 2px;
  background: var(--line-dark);
}
.site-header__progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 90ms linear;
}

/* --------------------------------------------------------------------------
   5. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  padding: clamp(3.5rem, 9vh, 6.5rem) var(--gutter) clamp(3rem, 7vh, 5rem);
  isolation: isolate;
}

/* Atmospheric gradient mesh + grain — depth without an image payload */
.hero__atmosphere { position: absolute; inset: 0; z-index: -2; }
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
}
.hero__orb--1 {
  width: 46vw; height: 46vw;
  top: -14vw; left: -10vw;
  background: radial-gradient(circle, var(--qlosi-purple-lo) 0%, transparent 68%);
}
.hero__orb--2 {
  width: 38vw; height: 38vw;
  bottom: -12vw; right: -8vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 66%);
  opacity: 0.3;
}
.hero__orb--3 {
  width: 30vw; height: 30vw;
  top: 32%; left: 46%;
  background: radial-gradient(circle, var(--qlosi-purple) 0%, transparent 70%);
  opacity: 0.4;
}
.hero::after {
  /* fine grain overlay */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.11'/%3E%3C/svg%3E");
}

/* Product vials bleed off-canvas, asymmetric */
.hero__products { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__vial { position: absolute; filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.45)); }
.hero__vial--1 {
  width: clamp(150px, 21vw, 320px);
  top: 8%; left: -3%;
  transform: rotate(-16deg);
  animation: float-a 13s ease-in-out infinite;
}
.hero__vial--2 {
  width: clamp(170px, 25vw, 380px);
  bottom: 2%; right: 2%;
  transform: rotate(9deg);
  animation: float-b 16s ease-in-out infinite;
}
.hero__vial--3 {
  width: clamp(120px, 17vw, 250px);
  top: 4%; right: 12%;
  opacity: 0.55;
  transform: rotate(24deg);
  animation: float-a 19s ease-in-out infinite reverse;
}
@keyframes float-a {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -22px; }
}
@keyframes float-b {
  0%, 100% { translate: 0 0; }
  50%      { translate: -14px 16px; }
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

.hero__headline {
  font-size: var(--t-display);
  font-weight: 900;
  letter-spacing: -0.042em;
  line-height: 0.93;
  max-width: 20ch;
}
.hero__line { display: block; }
.hero__line--2 { color: var(--accent); }

.hero__sub {
  max-width: 44ch;
  margin: clamp(1.2rem, 2.4vw, 1.9rem) 0 clamp(1.7rem, 3vw, 2.4rem);
  font-size: var(--t-lede);
  font-weight: 400;
  line-height: 1.58;
  opacity: 0.9;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero__tertiary {
  display: inline-block;
  margin-top: 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.72;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 200ms var(--ease);
}
.hero__tertiary:hover { opacity: 1; }

/* Staggered load-in */
.hero__headline,
.hero__sub,
.hero__actions,
.hero__tertiary {
  animation: rise 900ms var(--ease) both;
}
.hero__sub       { animation-delay: 130ms; }
.hero__actions   { animation-delay: 250ms; }
.hero__tertiary  { animation-delay: 360ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .hero { min-height: 0; text-align: left; }
  .hero__vial--3 { display: none; }
  .hero__vial--1 { width: 128px; top: auto; bottom: 1%; left: -6%; opacity: 0.5; }
  .hero__vial--2 { width: 150px; bottom: -3%; right: -8%; opacity: 0.55; }
  .hero__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   6. PARTNER TRUST STRIP
   -------------------------------------------------------------------------- */
.trust {
  background: var(--trust-bg);
  color: var(--trust-fg);
  border-block: 1px solid var(--trust-border);
}
.trust__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(1.8rem, 4vw, 2.6rem) var(--gutter);
}
.trust__lede {
  margin: 0 0 1.5rem;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  text-align: center;
}
.trust__lede strong { font-weight: 800; opacity: 1; }

.trust__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}
.trust__stat { text-align: center; }
.trust__figure {
  display: block;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--trust-figure);
}
.trust__star { font-size: 0.6em; margin-left: 0.1em; }
.trust__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0.72;
}
@media (max-width: 700px) {
  .trust__stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
}

/* --------------------------------------------------------------------------
   7. QUIZ
   -------------------------------------------------------------------------- */
.quiz {
  padding: var(--section-y) var(--gutter);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(127, 203, 174, 0.09), transparent 70%),
    var(--page-bg);
}
.quiz__inner { max-width: 1000px; margin-inline: auto; }

.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: rise 520ms var(--ease) both; }

.quiz__headline { font-size: var(--t-h2); }
.quiz__subtitle { margin-top: 0.7rem; font-size: var(--t-lede); opacity: 0.78; }

.quiz__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 0.9rem;
  margin: clamp(1.8rem, 3.5vw, 2.6rem) 0;
}

/* Image-card checkbox. The native input is visually hidden but focusable. */
.quiz__option {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: border-color 220ms var(--ease), background-color 220ms var(--ease),
              transform 220ms var(--ease);
}
.quiz__option:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.08); }

.quiz__checkbox {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
}
.quiz__option:has(.quiz__checkbox:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.quiz__option:has(.quiz__checkbox:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.quiz__option-media { overflow: hidden; }
.quiz__option-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 520ms var(--ease), filter 320ms var(--ease);
  filter: saturate(0.85);
}
.quiz__option:hover .quiz__option-media img { transform: scale(1.05); }
.quiz__option:has(.quiz__checkbox:checked) .quiz__option-media img { filter: saturate(1.05); }

.quiz__option-body {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 0.95rem 1rem;
}
.quiz__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 2px solid var(--line-dark);
  border-radius: 6px;
  color: transparent;
  transition: all 200ms var(--ease);
}
.quiz__mark svg { width: 13px; height: 13px; }
.quiz__option:has(.quiz__checkbox:checked) .quiz__mark {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.quiz__option-text {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.38;
}

.quiz__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.quiz__counter { margin: 0; font-size: var(--t-small); font-weight: 600; opacity: 0.68; }
.quiz__count { color: var(--accent); font-weight: 800; }

/* Compact single-column rows on small screens */
@media (max-width: 560px) {
  .quiz__grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .quiz__option { flex-direction: row; align-items: center; }
  .quiz__option-media { flex: 0 0 84px; }
  .quiz__option-media img { aspect-ratio: 1; }
  .quiz__option-body { flex: 1; padding: 0.75rem 0.9rem; align-items: center; }
  .quiz__footer { flex-direction: column; align-items: stretch; }
  .quiz__counter { text-align: center; }
  .quiz__footer .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   8. PRODUCT ("What is Qlosi") — light section
   -------------------------------------------------------------------------- */
.product {
  padding: var(--section-y) var(--gutter);
  background: var(--light-bg);
  color: var(--light-fg);
}
.product__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  max-width: var(--max);
  margin-inline: auto;
}
.product__visual { position: sticky; top: 110px; }
.product__visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.product__headline { font-size: var(--t-h2); }
.product__para {
  margin-top: 1.15rem;
  max-width: var(--measure);
  color: var(--light-muted);
  font-size: var(--t-lede);
  line-height: 1.6;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* always a clean 2×2 */
  gap: clamp(1.1rem, 2.4vw, 1.8rem);
  margin: clamp(2rem, 4vw, 2.8rem) 0;
}
@media (max-width: 440px) { .features { grid-template-columns: 1fr; } }
.feature {
  padding: 1.3rem 1.25rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__icon { display: block; width: 46px; margin-bottom: 0.85rem; }
.feature__icon img { width: 100%; }
.feature__title { font-size: 1rem; margin-bottom: 0.4rem; letter-spacing: -0.015em; }
.feature__body { margin: 0; font-size: 0.87rem; line-height: 1.5; color: var(--light-muted); }

.product__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.product .isi-callout { background: rgba(45, 31, 66, 0.05); }

@media (max-width: 900px) {
  .product__inner { grid-template-columns: 1fr; }
  .product__visual { position: static; max-width: 380px; }
  .product__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   9. NEXT STEPS
   -------------------------------------------------------------------------- */
.next-step {
  padding: var(--section-y) var(--gutter);
  background: var(--page-bg);
}
.next-step__inner { max-width: var(--max); margin-inline: auto; }
.next-step .section-head { margin-inline: auto; text-align: center; }

.next-step__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(1.2rem, 2.8vw, 2rem);
}

.path-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* The booking path gets visual primacy */
.path-card--primary {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}

.path-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.path-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.4rem, 2.6vw, 2rem);
}
.path-card__title { font-size: var(--t-h3); margin-bottom: 0.7rem; }
.path-card__desc { font-size: 0.95rem; line-height: 1.58; opacity: 0.82; }

.bullets { margin: 0.4rem 0 1.6rem; display: grid; gap: 0.7rem; }
.bullets li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.9rem; line-height: 1.45; }
/* Icons are inline SVG using stroke="currentColor", so they stay legible on
   whatever background the active theme gives the card. */
.bullets__icon { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; color: var(--accent); }
.path-card__body .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   10. TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonials {
  padding: var(--section-y) var(--gutter);
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(127, 203, 174, 0.08), transparent 70%),
    var(--qlosi-ink-deep);
}
.testimonials__inner { max-width: var(--max); margin-inline: auto; }
.testimonials .section-head { margin-inline: auto; text-align: center; }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: clamp(1.2rem, 2.6vw, 1.9rem);
}
.quote-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
}
.quote-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
/* Portraits vary in aspect ratio; a fixed ratio keeps the row even. */
.quote-card__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
}
.quote-card__quote {
  margin: 0;
  padding: clamp(1.3rem, 2.4vw, 1.8rem) clamp(1.3rem, 2.4vw, 1.8rem) 0.9rem;
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.56;
  flex: 1;
}
.quote-card__attribution {
  padding: 0 clamp(1.3rem, 2.4vw, 1.8rem) clamp(1.3rem, 2.4vw, 1.8rem);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   11. BOOKING SECTION
   -------------------------------------------------------------------------- */
.booking {
  position: relative;
  overflow: hidden;
  padding: calc(var(--section-y) * 1.05) var(--gutter);
  background: var(--booking-bg);
  color: var(--booking-fg);
  --accent: var(--booking-accent);
  --accent-ink: var(--booking-accent-ink);
}
.booking::before {
  /* concentric rings — an ophthalmic motif, drawn in CSS */
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 130vmax; height: 130vmax;
  translate: -50% -50%;
  pointer-events: none;
  opacity: 0.16;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 58px,
    currentColor 58px 59px
  );
  mask-image: radial-gradient(circle at center, #000 12%, transparent 62%);
}
.booking__inner { position: relative; max-width: 780px; margin-inline: auto; text-align: center; }

.booking__mount:empty { display: none; }
.booking__mount:not(:empty) { margin-top: 2rem; }

/* When the embed is present, hide the redirect fallback. */
.booking[data-booking-embedded="true"] .booking__fallback { display: none; }

.booking__reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  margin-top: 2.4rem;
}
.booking__reassurance li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.9;
}
.booking__reassurance svg { width: 19px; height: 19px; color: var(--accent); }

/* --------------------------------------------------------------------------
   12. DOCTOR VISIT PREP
   -------------------------------------------------------------------------- */
.visit {
  padding: var(--section-y) var(--gutter);
  background: var(--page-bg);
}
.visit__inner { max-width: var(--max); margin-inline: auto; }

.opening-line {
  position: relative;
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
  padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.opening-line__label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: var(--t-eyebrow);
  font-weight: 800;
  letter-spacing: 0.19em;
  color: var(--accent);
}
.opening-line__text {
  margin: 0;
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.44;
  letter-spacing: -0.015em;
}

.visit__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.8rem, 4vw, 3.4rem);
}
.visit__col-heading {
  font-size: 1.12rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line-dark);
}

.tips { display: grid; gap: 1.15rem; }
.tip { display: flex; gap: 1rem; }
.tip__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
}
.tip__title { font-size: 0.98rem; margin-bottom: 0.28rem; }
.tip__desc { margin: 0; font-size: 0.89rem; line-height: 1.52; opacity: 0.78; }

.messages { display: grid; gap: 0.85rem; }
.msg {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
}
.msg--patient {
  border-left: 3px solid var(--accent);
  margin-right: clamp(0px, 4vw, 2rem);
}
.msg--doctor {
  border-left: 3px solid rgba(255, 255, 255, 0.35);
  margin-left: clamp(0px, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.02);
}
.msg__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  opacity: 0.6;
}
.msg--patient .msg__label { color: var(--accent); opacity: 1; }
.msg__text { margin: 0; font-size: 0.91rem; line-height: 1.55; }

.why-box {
  margin-top: 1.5rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  border: 1px dashed var(--line-dark);
}
.why-box__heading { font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--accent); }
.why-box__text { margin: 0; font-size: 0.88rem; line-height: 1.55; opacity: 0.82; }

.visit__cta { margin-top: clamp(2.2rem, 4vw, 3rem); text-align: center; }
@media (max-width: 560px) { .visit__cta .btn { width: 100%; } }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq {
  padding: var(--section-y) var(--gutter);
  background: var(--light-bg);
  color: var(--light-fg);
}
.faq__inner { max-width: 860px; margin-inline: auto; }
.faq__headline {
  font-size: var(--t-h2);
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.faq__grid { display: grid; gap: 0.75rem; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.is-open { border-color: color-mix(in srgb, var(--qlosi-purple) 40%, transparent); box-shadow: var(--shadow-sm); }

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 60px;
  padding: 1.05rem 1.25rem;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  cursor: pointer;
}
.faq-item__toggle {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--qlosi-purple) 12%, transparent);
}
.faq-item__toggle::before,
.faq-item__toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  background: var(--qlosi-purple);
  border-radius: 2px;
  transition: transform 260ms var(--ease), opacity 200ms var(--ease);
}
.faq-item__toggle::before { width: 11px; height: 2px; }
.faq-item__toggle::after  { width: 2px; height: 11px; }
.faq-item.is-open .faq-item__toggle::after { transform: rotate(90deg); opacity: 0; }

.faq-item__a { padding: 0 1.25rem 1.25rem; }
.faq-item__a p { margin: 0; font-size: 0.94rem; line-height: 1.62; color: var(--light-muted); }

/* --------------------------------------------------------------------------
   14. STATS CTA BANNER
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: calc(var(--section-y) * 1.1) var(--gutter);
  background:
    radial-gradient(ellipse 80% 70% at 50% 110%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--qlosi-ink-deep);
  text-align: center;
}
.cta-banner__inner { position: relative; max-width: 760px; margin-inline: auto; }
.cta-banner__headline {
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.cta-banner__white  { display: block; }
.cta-banner__accent { display: block; color: var(--accent); }
.cta-banner__sub {
  margin: clamp(1.2rem, 2.4vw, 1.8rem) 0 0.5rem;
  font-size: var(--t-lede);
  opacity: 0.86;
}
.cta-banner__sub strong { color: var(--accent); font-weight: 800; }
.cta-banner__tagline {
  margin-bottom: clamp(1.6rem, 3vw, 2.3rem);
  font-size: 1.05rem;
  font-weight: 700;
}
.cta-banner__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
@media (max-width: 560px) { .cta-banner__actions .btn { width: 100%; } }

/* --------------------------------------------------------------------------
   15. DISCUSSION GUIDE
   -------------------------------------------------------------------------- */
.guide {
  padding: var(--section-y) var(--gutter);
  background: var(--light-bg);
  color: var(--light-fg);
}
.guide__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--max);
  margin-inline: auto;
}
.guide__headline { font-size: var(--t-h2); }
.guide__desc {
  margin-top: 1rem;
  font-size: var(--t-lede);
  line-height: 1.58;
  color: var(--light-muted);
}
.perks { display: grid; gap: 0.75rem; margin-top: 1.6rem; }
.perks li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.94rem; font-weight: 600; }
.perks__check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--qlosi-green) 24%, transparent);
  color: var(--qlosi-green-dk);
}
.perks__check svg { width: 14px; height: 14px; }

.guide__confirm {
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.guide__confirm .card__headline,
.guide__confirm .card__body { color: var(--light-fg); }
.guide__confirm .card__body { opacity: 0.72; }

/* --------------------------------------------------------------------------
   16. ISI SECTION
   -------------------------------------------------------------------------- */
.isi {
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  background: var(--white);
  color: var(--qlosi-ink);
  border-top: 4px solid var(--qlosi-purple);
}
.isi__inner { max-width: 900px; margin-inline: auto; }
.isi__title {
  font-size: 1.25rem;
  margin-bottom: 1.3rem;
  color: var(--qlosi-purple);
  letter-spacing: -0.01em;
}
.isi__body { font-size: 0.9rem; line-height: 1.68; }
.isi__body h3 {
  font-size: 0.94rem;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.005em;
}
.isi__body h3:first-child { margin-top: 0; }
.isi__body ul { display: grid; gap: 0.55rem; margin: 0 0 1.2rem; padding-left: 1.2rem; list-style: disc; }
.isi__body li { padding-left: 0.15rem; }
.isi__body a { color: var(--qlosi-purple); font-weight: 600; }

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(2.5rem, 5vw, 3.6rem) var(--gutter);
  background: var(--footer-bg);
  color: var(--footer-fg);
}
.site-footer__inner { max-width: var(--max); margin-inline: auto; text-align: center; }

.site-footer__brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 2.5rem);
  padding-bottom: 1.8rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--line-dark);
}
.site-footer__qlosi   { width: auto; height: 30px; }
.site-footer__partner { width: auto; height: 24px; opacity: 0.9; }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem clamp(1rem, 3vw, 2rem);
  margin-bottom: 1.8rem;
}
.site-footer__links a {
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.site-footer__links a:hover { color: var(--accent); }

.site-footer__legal p {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  line-height: 1.6;
  opacity: 0.78;
}
.site-footer__legal p:last-child { margin-bottom: 0; }

/* Page host (IQ Laser Vision) sits above the Orasis copyright block. */
.site-footer__host {
  font-size: 0.82rem !important;
  opacity: 0.95 !important;
}
.site-footer__host + .site-footer__host { margin-top: -0.25rem; }
.site-footer__host strong { font-weight: 800; }

/* Deliberately conspicuous: an unfilled placeholder must not ship unnoticed.
   IQLV removes this class once the real address is in. */
.is-placeholder {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  margin-bottom: 1rem !important;
  border: 1px dashed currentColor;
  border-radius: 6px;
  opacity: 0.65 !important;
  font-style: italic;
}
.site-footer__jobcode {
  margin-top: 1rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.6 !important;
}

/* --------------------------------------------------------------------------
   18. STICKY BARS
   -------------------------------------------------------------------------- */
.sticky-isi {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  /* Height must come from content only. --isi-bar-h is MEASURED from this
     element by main.js; consuming it here would create a feedback loop. */
  padding: 0.5rem var(--gutter);
  background: var(--qlosi-ink-deep);
  border-top: 1px solid var(--line-dark);
  color: var(--white);
}
.sticky-isi__text { font-size: 0.8rem; font-weight: 600; opacity: 0.88; }
.sticky-isi__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;            /* tap target */
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.79rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* Mobile-only booking bar, stacked directly above the ISI bar */
.sticky-book {
  position: fixed;
  bottom: var(--isi-bar-h);
  left: 0; right: 0;
  z-index: 94;
  display: none;
  padding: 0.6rem var(--gutter);
  background: color-mix(in srgb, var(--page-bg) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-dark);
  animation: slide-up 340ms var(--ease) both;
}
@keyframes slide-up {
  from { transform: translateY(100%); }
  to   { transform: none; }
}

@media (max-width: 780px) {
  .sticky-book:not([hidden]) { display: block; }
  .site-header__cta { display: none; }   /* the sticky bar covers this role */
  .sticky-isi { flex-direction: column; gap: 0.3rem; text-align: center; }
  .sticky-isi__text { font-size: 0.72rem; }
}
/* --isi-bar-h and --book-bar-h are measured at runtime by main.js
   (§ STICKY BAR HEIGHTS) because both bars wrap to different heights
   depending on viewport width and font loading. Values in :root are
   only the pre-JS fallback. */

/* --------------------------------------------------------------------------
   19. SCROLL REVEAL
   Progressive enhancement: JS adds .js-reveal to <html>, which is what
   arms the hidden state. With JS off, everything renders visible.
   -------------------------------------------------------------------------- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   20. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .sticky-isi, .sticky-book, .hero__products, .hero__atmosphere { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .quiz__step { display: block !important; }
}
