/* QRTrust genuine-check microsite. Mobile-first, built on the Repsol Lubricants tokens
   (navy + lubricants gradient, turquoise for actions, warm "touch" colours as accents only). */
.qv {
  --ink: var(--text-strong, #001E37);
  --body: var(--text-body, #1C3D5A);
  --soft: var(--text-muted, #4E6A84);
  --navy: var(--navy-900, #001E37);
  --accent: var(--brand-primary, #006A82);
  --touch: var(--brand-accent, #FF590A);
  --card: var(--surface-card, #fff);
  --line: var(--border-subtle, #DBE6F0);
  --ok: var(--state-success, #1E7F4E);
  --ok-bg: #E3F3EA;
  --warn: var(--state-warning, #B54300);
  --warn-bg: var(--peach-100, #FBE6DB);
  --bad: var(--state-danger, #C8102E);
  --bad-bg: #FCE4E8;
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 16px;
  color: var(--body);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  background: var(--surface-app, #E9F0F6);
}
/* Navy-to-orange light-streak band behind the header (navy at the top keeps the white logo legible),
   fading into the light app surface. The Lubricants gradient shows while the photo loads. */
.qv::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 230px;
  background: url("../img/bg-gradient.webp") center top / cover no-repeat, var(--grad-lubricants, #001E37);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.qv.qv-page-index::before { height: 380px; }
.qv * { box-sizing: border-box; }
.qv p { margin: 0 0 12px; line-height: 1.5; }
.qv [hidden] { display: none !important; }

/* ---------------------------------------------------------------- frame --- */
.qv-top { display: flex; justify-content: center; padding: 18px 16px 6px; }
.qv-brand { display: inline-flex; align-items: center; padding: 4px 0; }
.qv-brand img { height: 40px; width: auto; }   /* white wordmark: sits directly on the navy band */
.qv-page-index .qv-top { display: none; }   /* the hero carries the logo on the landing page */
.qv-page-index .qv-hero { padding-top: 34px; }
.qv-wrap { width: 100%; max-width: 460px; margin: 0 auto; padding: 12px 16px 24px; flex: 1; }
.qv-foot { max-width: 460px; margin: 0 auto; padding: 8px 24px 28px; text-align: center; }
.qv .qv-foot p { font-size: 13px; color: var(--soft); margin: 0; }

/* ----------------------------------------------------------------- hero --- */
.qv-hero { text-align: center; color: #fff; padding: 14px 4px 26px; }
.qv-hero h1 { margin: 0 0 22px; display: flex; justify-content: center; }
.qv-hero h1 img { height: 48px; width: auto; }
.qv .qv-hero .qv-tag {
  display: inline-block; margin: 0 0 12px; padding: 5px 14px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px;
  font-family: var(--font-display, inherit); font-weight: 500; font-size: 11px; line-height: 1.4; letter-spacing: .2em;
  text-transform: uppercase; color: #fff;
}
.qv .qv-hero .qv-tagline {
  margin: 0; font-family: var(--font-display, inherit); font-weight: 800; text-transform: uppercase;
  font-size: 32px; line-height: .92; letter-spacing: var(--tracking-display, -.04em); color: #fff;
  text-shadow: 0 2px 12px rgba(0,30,55,.35);
}

/* ---------------------------------------------------------------- cards --- */
.qv-card {
  background: var(--card); border-radius: var(--radius-card, 12px);
  box-shadow: var(--shadow-raised, 0 10px 30px rgba(0,30,55,.16));
  padding: 22px 20px; margin-bottom: 16px;
}
.qv h1 {
  font-family: var(--font-display, inherit); font-weight: 800; text-transform: uppercase; color: var(--ink);
  font-size: 28px; line-height: 1; margin: 0 0 12px; letter-spacing: var(--tracking-headline, -.02em);
}
.qv .qv-eyebrow {
  font-family: var(--font-display, inherit); font-size: 11px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 8px;
}

/* ---------------------------------------------------------------- check --- */
.qv-intro { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.qv-label-art { width: 92px; height: auto; flex: 0 0 auto; }
.qv-bottle-art { width: 54px; height: auto; flex: 0 0 auto; }   /* where the sticker sits on the bottle */
.qv .qv-intro p { margin: 0; color: var(--body); font-size: 15px; }

.qv-cam {
  display: none; position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden;
  background: var(--navy); margin: 0 0 14px;
}
.qv-cam.open { display: block; }
.qv-cam video, .qv-cam #vf-reader, .qv-cam #vf-reader video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qv-cam .frame {
  position: absolute; inset: 18%; border: 3px solid var(--teal-400, #00BED4); border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(0,30,55,.45); pointer-events: none;
}
.qv-cam .idle {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: #fff; text-align: center; padding: 20px; font-size: 15px;
}
.qv-cam.on .idle { display: none; }
.qv-cam:not(.on) .frame { display: none; }
.qv-spinner {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--teal-400, #00BED4);
  animation: qv-spin .8s linear infinite;
}
@keyframes qv-spin { to { transform: rotate(360deg); } }

.qv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px;
  border: 0; border-radius: var(--radius-button, 999px); padding: 0 22px; font: inherit; font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; cursor: pointer; text-decoration: none;
  background: var(--brand-accent, #FF590A); color: #fff; box-shadow: 0 6px 18px rgba(255,89,10,.30);
  transition: transform var(--dur-instant, 80ms), background var(--dur-fast, 140ms);
}
.qv-btn svg { width: 22px; height: 22px; }
.qv-btn:hover { background: var(--orange-600, #E04A00); color: #fff; text-decoration: none; }
.qv-btn:active { transform: scale(var(--press-scale, .97)); }
.qv-btn:focus-visible, .qv-input:focus-visible { outline: none; box-shadow: var(--ring-focus, 0 0 0 3px rgba(0,190,212,.40)); }
.qv-btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border-default, #B8D2E6); box-shadow: none; }
.qv-btn.ghost:hover { background: var(--card); border-color: var(--navy); color: var(--ink); }
.qv-btn.dark { background: var(--navy); box-shadow: none; }
.qv-btn.dark:hover { background: var(--navy-800, #0A2C4A); }
.qv-btn[disabled] { opacity: .55; cursor: default; }
.qv-btn + .qv-btn { margin-top: 10px; }

.qv-or { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 13px; margin: 20px 0 14px; text-align: center; }
.qv-or::before, .qv-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.qv-type { display: flex; gap: 8px; }
.qv-type .qv-btn { width: auto; flex: 0 0 auto; }
.qv-input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius-input, 8px);
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 17px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--surface-sunken, #F4F8FB); color: var(--ink);
}
.qv-input::placeholder { color: var(--navy-400, #95B0C6); }
.qv-input:focus { outline: none; border-color: var(--accent); background: #fff; }
.qv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.qv-msg { border-radius: var(--radius-sm, 8px); padding: 12px 14px; font-size: 14px; margin: 0 0 14px; line-height: 1.45; }
.qv-msg.err { background: var(--bad-bg); color: var(--bad); }
.qv-msg.info { background: var(--teal-050, #E8FBFD); color: var(--navy); }

/* ---------------------------------------------------------- how it works --- */
.qv-steps { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card, 12px); padding: 20px; margin-bottom: 16px; }
.qv-steps h2 {
  font-family: var(--font-display, inherit); font-weight: 800; text-transform: uppercase; letter-spacing: var(--tracking-headline, -.02em);
  font-size: 20px; line-height: 1; color: var(--navy); margin: 0 0 16px;
}
.qv-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.qv-steps li { display: flex; gap: 14px; align-items: flex-start; }
.qv-step-ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: var(--radius-sm, 8px); display: flex; align-items: center; justify-content: center;
  background: var(--peach-100, #FBE6DB); color: var(--orange-600, #E04A00);
}
.qv-step-ico svg { width: 22px; height: 22px; stroke-width: 1.6; }   /* brand icons: thin, technical stroke */
.qv-steps strong { display: block; color: var(--ink); font-size: 15px; font-weight: 700; }
.qv-steps li span:not(.qv-step-ico) { display: block; color: var(--soft); font-size: 14px; line-height: 1.45; }

.qv-why {
  display: flex; gap: 12px; align-items: flex-start; background: var(--warn-bg); border-radius: var(--radius-card, 12px);
  border-left: 4px solid var(--touch);
  padding: 16px 18px; margin-bottom: 8px;
}
.qv-why svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--touch); margin-top: 1px; }
.qv .qv-why p { margin: 0; font-size: 14px; color: var(--body); }
.qv-why strong { color: var(--ink); }

/* -------------------------------------------------------------- results --- */
.qv-result { text-align: center; padding-top: 28px; }
.qv .qv-result p { color: var(--body); }
.qv-badge {
  width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.qv-badge svg { width: 42px; height: 42px; }
.qv-result.ok .qv-badge { background: var(--ok-bg); color: var(--ok); box-shadow: 0 0 0 8px rgba(30,127,78,.08); }
.qv-result.warn .qv-badge { background: var(--warn-bg); color: var(--warn); box-shadow: 0 0 0 8px rgba(255,89,10,.10); }
.qv-result.bad .qv-badge { background: var(--bad-bg); color: var(--bad); box-shadow: 0 0 0 8px rgba(200,16,46,.08); }
.qv .qv-result.ok .qv-eyebrow, .qv-result.ok h1 { color: var(--ok); }
.qv .qv-result.warn .qv-eyebrow, .qv-result.warn h1 { color: var(--warn); }
.qv .qv-result.bad .qv-eyebrow, .qv-result.bad h1 { color: var(--bad); }

.qv-kv { text-align: left; background: var(--surface-sunken, #F4F8FB); border-radius: var(--radius-sm, 8px); padding: 4px 14px; margin-top: 18px; }
.qv-kv div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.qv-kv div:last-child { border-bottom: 0; }
.qv-kv span { color: var(--soft); flex: 0 0 auto; }
.qv-kv strong { text-align: right; font-weight: 700; color: var(--ink); word-break: break-word; }
.qv-kv .mono { font-family: var(--font-mono, ui-monospace, monospace); letter-spacing: .06em; }
.qv .qv-count { font-size: 13px; color: var(--soft); margin: 14px 0 0; }
.qv-count a { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .qv-spinner { animation-duration: 2.4s; }
  .qv-btn { transition: none; }
}

/* "Claim points in <app>": store links for people without the app. */
.qv-store { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--soft); }
.qv-store a { color: var(--ink); font-weight: 600; }
.qv-store + .qv-btn { margin-top: 14px; }
