/* ==========================================================
   CLARO — shared styles
   Palette is pulled from the product photography: the pale
   blue-grey table the device sits on becomes the page base.
   ========================================================== */

:root {
  --ink: #0B2540;
  --ink-soft: #46617C;
  --ink-faint: #7890A8;
  --paper: #FFFFFF;
  --mist: #EEF4FA;
  --mist-deep: #DDEAF6;
  --blue: #0472D1;
  --blue-deep: #055797;
  --cyan: #2FA4E9;
  --sky: #E3F1FC;
  --line: rgba(11, 37, 64, 0.13);
  --line-soft: rgba(11, 37, 64, 0.07);
  --display: "Montserrat", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --good: #1B7A5A;
  --warn: #A6501B;

  --shell: 1080px;
  --r-lg: 24px;
  --r-md: 14px;

  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.09rem);
  --step-1: clamp(1.18rem, 1.10rem + 0.38vw, 1.42rem);
  --step-2: clamp(1.45rem, 1.28rem + 0.80vw, 2.05rem);
  --step-3: clamp(1.95rem, 1.60rem + 1.70vw, 3.20rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-deep); text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1.05em; max-width: 68ch; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.masthead-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
@media (min-width: 800px) { .brand img { height: 44px; } }
.masthead-links { display: none; gap: 26px; font-size: var(--step--1); font-weight: 500; }
.masthead-links a { color: var(--ink-soft); text-decoration: none; }
.masthead-links a:hover { color: var(--ink); }

@media (min-width: 800px) {
  .masthead-links { display: flex; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; padding: 17px 26px;
  font: inherit; font-weight: 700; font-size: 1.03rem;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--blue); color: #fff; text-decoration: none;
  box-shadow: 0 10px 24px rgba(4, 114, 209, 0.28);
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: var(--ink-faint); box-shadow: none; cursor: progress; }

.btn-quiet {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: none; font-weight: 600;
}
.btn-quiet:hover { background: var(--paper); }

@media (min-width: 560px) {
  .btn { width: auto; }
}

/* ---------- hero ---------- */

.hero { padding: 34px 0 8px; }
.hero-grid { display: grid; gap: 30px; }

.hero-art { position: relative; }
.hero-art img {
  position: relative; z-index: 2;
  border-radius: var(--r-lg);
  width: 100%;
}
/* the one deliberate motion moment: ultrasonic rings */
.ripples {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center; pointer-events: none;
}
.ripples i {
  position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--cyan); opacity: 0;
  animation: ring 4.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.ripples i:nth-child(2) { animation-delay: 1.5s; }
.ripples i:nth-child(3) { animation-delay: 3s; }
@keyframes ring {
  0% { transform: scale(0.75); opacity: 0; }
  22% { opacity: 0.55; }
  100% { transform: scale(1.85); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ripples { display: none; }
  html { scroll-behavior: auto; }
}

.lede {
  font-family: "Newsreader", Georgia, serif;
  font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft);
  font-weight: 300; max-width: 34ch;
}

.pricing { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 6px; }
.price { font-family: var(--display); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.price-note { font-size: var(--step--1); color: var(--ink-soft); }

.buy-block { margin-top: 18px; }
.stock {
  display: flex; align-items: center; gap: 8px;
  width: fit-content;
  font-size: var(--step--1); font-weight: 600; color: var(--good); margin-bottom: 14px;
}
.stock::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good);
}

.assurances {
  list-style: none; margin: 26px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 13px; font-size: var(--step--1);
}
.assurances li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-soft); }
.assurances b { color: var(--ink); font-weight: 600; }
.tick { flex: none; margin-top: 4px; color: var(--blue); }

@media (min-width: 860px) {
  .hero { padding: 56px 0 20px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 56px; }
  .hero-art { position: sticky; top: 100px; margin-top: 24px; }
  .hero-art { order: 2; }
}

/* ---------- generic sections ---------- */

.band { padding: 54px 0; }
.band-paper { background: var(--paper); }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

/* numbered steps — legitimately a sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  font-family: var(--display); font-weight: 800;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sky); color: var(--blue); font-size: 1.05rem; line-height: 1;
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }

/* spec list — rules, not cards */
.specs { margin: 0; display: grid; gap: 0; }
.specs div {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.specs dt { color: var(--ink-soft); font-size: var(--step--1); margin: 0; }
.specs dd { margin: 0; font-weight: 600; text-align: right; }

.figure { margin: 0; }
.figure img { border-radius: var(--r-md); background: #fff; }
.figure figcaption {
  font-size: var(--step--1); color: var(--ink-faint); margin-top: 10px;
}

.split { display: grid; gap: 34px; }
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
}

/* honest note — deliberately not styled as a warning card */
.plainly {
  border-left: 3px solid var(--cyan);
  padding: 4px 0 4px 20px; margin: 30px 0 0;
  color: var(--ink-soft); font-size: var(--step--1);
}
.plainly p { margin: 0; }

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

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 34px 20px 0;
  font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 17px;
  font-size: 1.5rem; font-weight: 400; color: var(--blue); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 20px; color: var(--ink-soft); font-size: var(--step--1); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- seller identity (ECTA s43) ---------- */

.identity {
  background: var(--paper); border-radius: var(--r-lg);
  padding: 30px; border: 1px solid var(--line-soft);
}
.identity h2 { font-size: var(--step-1); }
.identity dl { margin: 0; display: grid; gap: 0; }
.identity div {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.identity dt { color: var(--ink-faint); font-size: var(--step--1); }
.identity dd { margin: 0; font-weight: 500; }
@media (min-width: 640px) {
  .identity div { grid-template-columns: 190px 1fr; gap: 16px; align-items: baseline; }
}

/* ---------- checkout form ---------- */

.form-shell { max-width: 680px; margin: 0 auto; padding: 34px 20px 60px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: 7px; }
.field .hint { font-weight: 400; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--r-md); appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.16);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #B4341F; }
.field .err { display: none; color: #B4341F; font-size: var(--step--1); margin-top: 6px; }
.field input[aria-invalid="true"] ~ .err,
.field select[aria-invalid="true"] ~ .err { display: block; }

.row2 { display: grid; gap: 0; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; gap: 0 16px; } }

.order-summary {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 30px;
}
.order-line {
  display: flex; justify-content: space-between; gap: 14px; padding: 9px 0;
  font-size: var(--step--1); color: var(--ink-soft);
}
.order-total {
  display: flex; justify-content: space-between; gap: 14px;
  padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line);
  font-weight: 800; font-size: 1.2rem; color: var(--ink);
}
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 8px; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--blue); }
.consent label { font-size: var(--step--1); color: var(--ink-soft); }

.alert {
  display: none; background: #FDECE8; border: 1px solid #F0C4B9; color: #8C2B16;
  padding: 14px 16px; border-radius: var(--r-md); margin-bottom: 20px; font-size: var(--step--1);
}
.alert.on { display: block; }

/* ---------- result pages ---------- */

.result { text-align: center; padding: 70px 0 80px; max-width: 560px; margin: 0 auto; }
.result .mark {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 24px;
  display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 1.8rem;
}
.result p { margin-left: auto; margin-right: auto; }

/* ---------- sticky mobile buy bar ---------- */

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transform: translateY(120%); transition: transform 0.25s ease;
}
.dock.up { transform: translateY(0); }
.dock-price { font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.dock-price small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--ink-faint); }
.dock .btn { width: auto; padding: 14px 26px; flex: none; }
@media (min-width: 860px) { .dock { display: none; } }

/* ---------- policy pages ---------- */

.doc { background: var(--paper); }
.doc-body { padding: 40px 0 70px; max-width: 74ch; }
.doc-body h2 { font-size: var(--step-1); margin-top: 2.2em; }
.doc-body h2:first-of-type { margin-top: 1.2em; }
.doc-body h3 { font-size: var(--step-0); margin-top: 1.8em; }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 0 0 1.1em; }
.doc-body li { margin-bottom: 0.5em; }
.doc-title { padding-top: 40px; }
.updated { color: var(--ink-faint); font-size: var(--step--1); }
.doc-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: var(--step--1); }
.doc-body th, .doc-body td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; overflow-wrap: anywhere; }
.doc-body th:first-child { padding-right: 16px; }
.doc-body th { color: var(--ink-soft); font-weight: 600; }

/* ---------- footer ---------- */

.footer-logo { height: 46px; width: auto; margin-bottom: 14px; }
.footer { background: var(--ink); color: #C4D4E1; padding: 48px 0 40px; margin-top: 10px; }
.footer a { color: #EAF2F8; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 30px; }
.footer h4 { margin: 0 0 12px; font-size: var(--step--1); color: #fff; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: var(--step--1); }
.footer .fine {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem; color: #8FA6B8; line-height: 1.7;
}
.footer .fine p { max-width: none; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; } }

.pad-dock { height: 84px; }
@media (min-width: 860px) { .pad-dock { display: none; } }


/* ==========================================================
   v2 additions — multi-purpose positioning, brand, intro
   ========================================================== */

/* hero backdrop: soft brand wash, painted once, never animated */
.hero {
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(47, 164, 233, 0.16), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(4, 114, 209, 0.07), transparent 70%);
}
.hero-art img { box-shadow: 0 30px 60px -28px rgba(5, 87, 151, 0.45); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); background: var(--sky); border-radius: 999px;
  padding: 6px 12px; margin-bottom: 18px;
}

/* rotating object in the headline — transform/opacity only */
.h1-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rotator {
  display: block; position: relative; height: 1.14em; overflow: hidden;
  color: var(--blue);
}
.rotator span {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  opacity: 0; transform: translate3d(0, 70%, 0);
  animation: rot 14s cubic-bezier(0.22, 0.8, 0.25, 1) infinite both;
  animation-delay: calc(var(--i) * 2s - 0.6s);
  will-change: transform, opacity;
}
@keyframes rot {
  0%    { opacity: 0; transform: translate3d(0, 70%, 0); }
  4.5%  { opacity: 1; transform: translate3d(0, 0, 0); }
  13%   { opacity: 1; transform: translate3d(0, 0, 0); }
  16.5% { opacity: 0; transform: translate3d(0, -70%, 0); }
  100%  { opacity: 0; transform: translate3d(0, -70%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .rotator span { animation: none; }
  .rotator span:first-child { opacity: 1; transform: none; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 4px; padding: 0; list-style: none; }
.chips li {
  font-size: 0.84rem; font-weight: 600; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 6px 13px;
}
.chips li a { color: var(--blue); text-decoration: none; }

/* what it cleans */
.cleans {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .cleans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cleans { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.clean {
  background: var(--mist); border-radius: 18px; padding: 18px 16px 18px;
  display: grid; align-content: start; gap: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.clean:hover { transform: translateY(-3px); background: var(--sky); }
.clean svg {
  width: 48px; height: 48px; padding: 9px; margin-bottom: 8px;
  background: var(--paper); border-radius: 14px; box-shadow: 0 4px 12px -6px rgba(5, 87, 151, 0.35);
  fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.clean b { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.25; }
.clean span { font-size: 0.84rem; color: var(--ink-soft); line-height: 1.45; }
.clean small {
  justify-self: start; margin-top: 4px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
}

.keep-out { display: grid; gap: 30px; margin-top: 44px; }
@media (min-width: 800px) { .keep-out { grid-template-columns: 1fr 1fr; gap: 54px; } }
.keep-out h3 { font-size: var(--step-0); margin-bottom: 12px; }
.xlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--step--1); color: var(--ink-soft); }
.xlist li { display: flex; gap: 11px; align-items: flex-start; }
.xlist li::before {
  content: "×"; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; line-height: 1;
  background: #FBE9E3; color: #A5391C;
}
.xlist.ok li::before { content: "✓"; background: var(--sky); color: var(--blue); }

/* ---------- intro: logo assembles, then lifts away ----------
   Only transform and opacity animate, and every moving piece is its
   own <svg> box, so the whole sequence runs on the compositor.
   It is pure CSS: if the JS never runs, it still finishes and hides. */
.intro {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #F3F8FD 55%, #E6F1FB 100%);
  animation: intro-out 0.55s cubic-bezier(0.4, 0, 0.2, 1) 2.45s both;
  cursor: pointer;
}
.intro-stage {
  position: relative; width: min(58vw, 270px); aspect-ratio: 495 / 508;
  animation: stage-out 0.6s cubic-bezier(0.5, 0, 0.75, 0) 2.2s both;
  will-change: transform, opacity;
}
.il { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform, opacity; backface-visibility: hidden; }
.intro-mark .il { transform-origin: 50% 27.6%; }
.il-cres  { animation: in-cres 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.il-inner { animation: in-inner 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.il-tail  { animation: in-tail 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both; }
.il-arrow { animation: in-arrow 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25) 0.62s both; transform-origin: 30% 40%; }
@keyframes in-cres  { from { opacity: 0; transform: rotate(-150deg) scale(0.55); } to { opacity: 1; transform: none; } }
@keyframes in-inner { from { opacity: 0; transform: rotate(-240deg) scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes in-tail  { from { opacity: 0; transform: rotate(110deg) scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes in-arrow { from { opacity: 0; transform: translate3d(-22%, 16%, 0) scale(0.6); } to { opacity: 1; transform: none; } }

/* ultrasonic pulse, fired as the arrow lands */
.intro-rings { position: absolute; left: 50%; top: 27.6%; width: 0; height: 0; }
.intro-rings i {
  position: absolute; left: -28%; top: -28%; width: 56%; aspect-ratio: 1;
  border-radius: 50%; border: 2px solid #2FA4E9; opacity: 0;
  animation: pulse 1.2s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.intro-rings { width: min(58vw, 270px); height: min(58vw, 270px); transform: translate(-50%, -50%); }
.intro-rings i { left: 22%; top: 22%; }
.intro-rings i:nth-child(1) { animation-delay: 1.02s; }
.intro-rings i:nth-child(2) { animation-delay: 1.2s; }
.intro-rings i:nth-child(3) { animation-delay: 1.38s; }
@keyframes pulse { 0% { opacity: 0; transform: scale(0.7); } 8% { opacity: 0.55; } 100% { opacity: 0; transform: scale(2.1); } }

/* letters rise through a fixed slit (a static clip, which costs nothing) */
.intro-word { position: absolute; inset: 0; clip-path: inset(61.5% -2% 17.5% -2%); }
.il-ch { animation: in-ch 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: calc(1.05s + var(--i) * 0.065s); }
@keyframes in-ch { from { transform: translate3d(0, 22%, 0); } to { transform: none; } }
.il-store { animation: in-store 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both; }
@keyframes in-store { from { opacity: 0; transform: translate3d(0, 5%, 0); } to { opacity: 1; transform: none; } }

@keyframes stage-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(0.9) translate3d(0, -3%, 0); } }
@keyframes intro-out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }

/* page settles in underneath as the curtain lifts */
.intro-on .masthead, .intro-on #main { animation: page-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.45s both; }
@keyframes page-in { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

/* skipped (tap / key / scroll): fade out quickly */
.intro.skip { animation: intro-out 0.3s ease both; }
.intro.skip .intro-stage { animation: stage-out 0.3s ease both; }
.intro-skipped .masthead, .intro-skipped #main { animation: page-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }

.no-intro .intro { display: none; }
.no-intro .masthead, .no-intro #main { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .intro-on .masthead, .intro-on #main { animation: none; }
}

/* ---------- product gallery: native swipe with scroll-snap ---------- */
.gallery {
  position: relative; z-index: 2;
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--r-lg); aspect-ratio: 1; max-width: 100%;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  box-shadow: 0 30px 60px -28px rgba(5, 87, 151, 0.45);
  background: var(--paper);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; border-radius: 0; box-shadow: none; }
.hero-art .gallery img { box-shadow: none; border-radius: 0; }
.thumbs { position: relative; z-index: 2; display: flex; gap: 10px; margin-top: 14px; justify-content: center; }
.thumb {
  padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: var(--paper); flex: 1 1 0; max-width: 64px; aspect-ratio: 1; min-width: 0; opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.thumb.on { opacity: 1; border-color: var(--blue); }
@media (max-width: 420px) { .thumbs { gap: 7px; } }

/* how it works: photo beside the steps */
.how-grid { display: grid; gap: 30px; align-items: center; }
.how-photo { margin: 0; }
.how-photo img { border-radius: var(--r-lg); box-shadow: 0 24px 50px -30px rgba(5, 87, 151, 0.5); }
@media (min-width: 860px) { .how-grid { grid-template-columns: 0.9fr 1.1fr; gap: 54px; } }
