/* QRBAK home page, "ember" design.

   One full-bleed backdrop lit from above by a warm ember glow over a faint dot grid; glass cards with a
   hairline border; display type set tight (Bricolage Grotesque 600, -0.045em); one accent family
   (ember #FF6A3D -> #FFA061) and 3D objects (AI-generated, /static/img/home) instead of icons.
   Motion: hero copy rises in on load, the stage loops a scan, everything else reveals once on scroll
   (site.js adds .in to [data-r]); numbers count up; films play only while on screen.
   Reduced motion: every animation stops and everything shows at rest. Loaded after site.css. */

@property --h-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

body.p-home {
  --h-e: cubic-bezier(0.16, 1, 0.3, 1);
  --h-glow: 255 106 61;
  --h-ember: #FF6A3D;
  --h-ember-2: #FFA061;
  /* light */
  --h-bg: #F4EEE7;
  --h-bg-2: #F8F3ED;
  --h-fg: #1B1411;
  --h-fg-2: rgb(27 20 17 / 0.68);
  --h-fg-3: rgb(27 20 17 / 0.46);
  --h-line: rgb(27 20 17 / 0.08);
  --h-line-2: rgb(27 20 17 / 0.14);
  --h-card: linear-gradient(180deg, rgb(255 255 255 / 0.92), rgb(255 252 248 / 0.74));
  --h-glass: rgb(255 255 255 / 0.72);
  --h-dot: rgb(27 20 17 / 0.07);
  --h-glow-a: 0.20;
  --h-shadow: 0 28px 70px -36px rgb(90 40 20 / 0.32);
  --h-num: linear-gradient(180deg, #FF8A5C, #E5461C);
  --h-btn-bg: #1B1411;
  --h-btn-fg: #FFF8F2;
  background: var(--h-bg);
  color: var(--h-fg);
}
:root[data-mode="dark"] body.p-home {
  --h-bg: #0A0807;
  --h-bg-2: #0E0A09;
  --h-fg: #F7EFE8;
  --h-fg-2: rgb(247 239 232 / 0.66);
  --h-fg-3: rgb(247 239 232 / 0.42);
  --h-line: rgb(255 255 255 / 0.08);
  --h-line-2: rgb(255 255 255 / 0.14);
  --h-card: linear-gradient(180deg, rgb(255 255 255 / 0.065), rgb(255 255 255 / 0.018));
  --h-glass: rgb(22 16 14 / 0.72);
  --h-dot: rgb(255 255 255 / 0.07);
  --h-glow-a: 0.30;
  --h-shadow: 0 34px 90px -34px rgb(0 0 0 / 0.75);
  --h-num: linear-gradient(180deg, #FFD7B8, #FF6A3D);
  --h-btn-bg: #FFFFFF;
  --h-btn-fg: #140D0A;
}
@media (prefers-color-scheme: dark) {
  :root[data-mode="auto"] body.p-home {
    --h-bg: #0A0807;
    --h-bg-2: #0E0A09;
    --h-fg: #F7EFE8;
    --h-fg-2: rgb(247 239 232 / 0.66);
    --h-fg-3: rgb(247 239 232 / 0.42);
    --h-line: rgb(255 255 255 / 0.08);
    --h-line-2: rgb(255 255 255 / 0.14);
    --h-card: linear-gradient(180deg, rgb(255 255 255 / 0.065), rgb(255 255 255 / 0.018));
    --h-glass: rgb(22 16 14 / 0.72);
    --h-dot: rgb(255 255 255 / 0.07);
    --h-glow-a: 0.30;
    --h-shadow: 0 34px 90px -34px rgb(0 0 0 / 0.75);
    --h-num: linear-gradient(180deg, #FFD7B8, #FF6A3D);
    --h-btn-bg: #FFFFFF;
    --h-btn-fg: #140D0A;
  }
}

/* ---------- backdrop and rhythm ---------- */
.p-home main { margin-block-start: -82px; }
.h-frame {
  position: relative; isolation: isolate; overflow: clip;
  background:
    radial-gradient(70% 520px at 50% 0%, rgb(var(--h-glow) / var(--h-glow-a)), transparent 72%),
    radial-gradient(38% 380px at 88% 4%, rgb(255 176 110 / calc(var(--h-glow-a) * 0.55)), transparent 70%),
    radial-gradient(34% 360px at 10% 10%, rgb(255 61 46 / calc(var(--h-glow-a) * 0.45)), transparent 70%),
    var(--h-bg-2);
}
.h-frame::before {
  content: ''; position: absolute; inset: 0 0 auto; block-size: 1100px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--h-dot) 1.2px, transparent 1.3px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 78%);
}
.h-wrap { inline-size: 100%; max-inline-size: calc(1200px + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.h-sec { padding-block-start: clamp(88px, 11vw, 140px); }
.h-center { justify-content: center; }

.h-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--h-line-2); background: rgb(var(--h-glow) / 0.08);
  font-size: 0.875rem; font-weight: 500; line-height: 1.3; color: var(--h-fg);
}
.h-eyebrow svg { flex: none; color: var(--h-ember); }
.h-head { max-inline-size: 46rem; margin-inline: auto; text-align: center; }
.h-head h2, .h-copy h2, .h-film-copy h2, .h-closing h2, .h-faq h2, .p-home .themes-copy h2 {
  font: 600 clamp(2.1rem, 1.25rem + 3.1vw, 3.7rem)/1.03 var(--font-display);
  letter-spacing: -0.042em; text-wrap: balance; color: inherit;
}
.h-head p { margin-block-start: 18px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.55; color: var(--h-fg-2); }

/* buttons on the home page: pills */
.p-home .btn { border-radius: 999px; }
.p-home .btn-primary {
  background: var(--h-btn-bg); color: var(--h-btn-fg);
  box-shadow: 0 12px 36px -12px rgb(var(--h-glow) / 0.75);
  transition: transform 200ms var(--h-e), box-shadow 200ms var(--h-e), background-color 160ms;
}
.p-home .btn-primary:hover { background: var(--h-btn-bg); transform: translateY(-1px); box-shadow: 0 16px 44px -12px rgb(var(--h-glow) / 0.9); }
.p-home .quiet { color: var(--h-fg); text-decoration-color: var(--h-line-2); }
.p-home .quiet:hover { color: var(--h-ember); }

/* ---------- hero ---------- */
.h-hero { padding-block: 150px 0; text-align: center; }
.h-hero-head { display: grid; justify-items: center; }
.h-display {
  margin-block-start: 26px; max-inline-size: 15ch;
  font: 600 clamp(2.55rem, 1.2rem + 5.6vw, 5.75rem)/0.98 var(--font-display);
  letter-spacing: -0.048em; text-wrap: balance;
  background: linear-gradient(180deg, var(--h-fg) 38%, color-mix(in oklab, var(--h-fg) 62%, var(--h-ember)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-lede { margin-block-start: 24px; max-inline-size: 38rem; font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.28rem); line-height: 1.55; color: var(--h-fg-2); text-wrap: pretty; }
.h-in { animation: h-rise 1.1s var(--h-e) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
@keyframes h-rise { from { opacity: 0; transform: translateY(22px); filter: blur(8px); } }

.h-upload { display: grid; justify-items: center; gap: 22px; margin-block-start: 38px; }
.h-upload .actions { justify-content: center; }
.h-upload-card {
  position: relative; inline-size: min(580px, 100%); padding: 8px; border-radius: 30px;
  background: var(--h-card); border: 1px solid var(--h-line-2);
  box-shadow: var(--h-shadow), 0 24px 90px -30px rgb(var(--h-glow) / 0.45);
}
.h-upload-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--h-a), transparent 0 62%, rgb(var(--h-glow) / 0.95) 76%, rgb(255 200 160) 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: h-orbit 7s linear infinite;
}
@keyframes h-orbit { to { --h-a: 360deg; } }
.h-upload .scan { text-align: center; }
.h-upload .scan-drop {
  display: grid; justify-items: center; gap: 16px;
  padding: 34px 22px 30px; border: 1.5px dashed var(--h-line-2); border-radius: 23px;
  background: rgb(var(--h-glow) / 0.025); box-shadow: none; color: var(--h-fg);
  transition: border-color 200ms, background-color 200ms;
}
.h-upload .scan-drop.over { border-color: var(--h-ember); background: rgb(var(--h-glow) / 0.08); }
.h-upload .scan-title { font: 600 1.1875rem/1.3 var(--font-display); letter-spacing: -0.015em; color: var(--h-fg); }
.h-upload .scan-pick {
  min-block-size: 56px; padding: 0 28px; border-radius: 999px;
  background: linear-gradient(180deg, #FF7D4F, #EE4A1E); color: #FFF;
  box-shadow: 0 14px 34px -10px rgb(var(--h-glow) / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.35);
  transition: transform 200ms var(--h-e), box-shadow 200ms var(--h-e);
}
.h-upload .scan-pick:hover { background: linear-gradient(180deg, #FF8A5E, #F0521F); transform: translateY(-1px); box-shadow: 0 18px 40px -10px rgb(var(--h-glow) / 1), inset 0 1px 0 rgb(255 255 255 / 0.4); }
.h-upload .scan-alt { color: var(--h-fg-2); }
.h-upload .scan .btn-dark { border-radius: 999px; background: var(--h-btn-bg); color: var(--h-btn-fg); }
.h-upload .scan-formats, .h-upload .scan-privacy { color: var(--h-fg-3); }
.h-upload .scan-formats { margin-block-start: 10px; }
.h-upload .scan-privacy { margin-block-end: 8px; }
.h-upload .scan-manual { font-size: 0.9375rem; }
.h-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block-start: 6px; }
.h-points li {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--h-line); background: rgb(255 255 255 / 0.03);
  font-size: 0.875rem; line-height: 1.3; color: var(--h-fg-2); text-align: start;
}
.h-points svg { flex: none; color: var(--h-ember); }

/* ---------- the stage: paper -> AI -> live QR menu ---------- */
.h-stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
  margin-block-start: 72px; padding: 52px 44px 40px;
  border-radius: 38px; border: 1px solid var(--h-line);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.01));
  box-shadow: var(--h-shadow);
}
.h-stage::before {
  content: ''; position: absolute; inset: auto 10% -40% 10%; block-size: 80%; z-index: -1;
  background: radial-gradient(closest-side, rgb(var(--h-glow) / 0.32), transparent);
  filter: blur(10px);
}
.h-stage figcaption, .h-flow-cap {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-block-start: 22px; font-size: 0.9375rem; font-weight: 500; color: var(--h-fg-2);
}
.h-step {
  display: inline-grid; place-items: center; inline-size: 22px; block-size: 22px; border-radius: 50%;
  background: rgb(var(--h-glow) / 0.16); color: var(--h-ember); font-size: 0.75rem; font-weight: 700;
}
.h-paper { justify-self: end; display: grid; justify-items: center; inline-size: min(320px, 100%); }
.h-paper-img {
  position: relative; inline-size: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 20px;
  box-shadow: 0 40px 60px -28px rgb(0 0 0 / 0.75), 0 0 0 1px rgb(255 255 255 / 0.06);
  transform: rotate(-4deg); animation: h-tilt 9s ease-in-out infinite;
}
[dir="rtl"] .h-paper-img { transform: rotate(4deg); }
.h-paper-img img { inline-size: 100%; block-size: 100%; object-fit: cover; }
@keyframes h-tilt { 50% { transform: rotate(-2deg) translateY(-6px); } }
.h-beam {
  position: absolute; inset-inline: -2%; inset-block-start: -30%; block-size: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgb(var(--h-glow) / 0.05) 20%, rgb(var(--h-glow) / 0.38) 78%, rgb(255 224 196 / 0.95) 97%, transparent);
  mix-blend-mode: screen;
  animation: h-scan 5s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes h-scan { 0% { inset-block-start: -30%; } 70%, 100% { inset-block-start: 100%; } }
.h-hit {
  position: absolute; left: var(--x); inset-block-start: var(--y); inline-size: var(--w); block-size: 6.5%;
  border-radius: 8px; border: 1.5px solid rgb(var(--h-glow)); background: rgb(var(--h-glow) / 0.16);
  box-shadow: 0 0 22px rgb(var(--h-glow) / 0.55);
  opacity: 0; animation: h-hit 5s var(--h-e) infinite; animation-delay: var(--t, 1s);
}
@keyframes h-hit { 0% { opacity: 0; transform: scale(0.85); } 5% { opacity: 1; transform: scale(1); } 52% { opacity: 1; } 64%, 100% { opacity: 0; transform: scale(1); } }

.h-flow { position: relative; display: grid; justify-items: center; inline-size: 190px; }
.h-flow-icon { inline-size: 132px; block-size: 132px; filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.5)); animation: h-float 6s ease-in-out infinite; }
@keyframes h-float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.h-chip {
  position: absolute; inset-block-start: 34%; left: 50%; z-index: 2;
  display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 13px;
  border: 1px solid var(--h-line-2); background: var(--h-glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px -12px rgb(0 0 0 / 0.6);
  opacity: 0; animation: h-chip 3.9s cubic-bezier(0.45, 0, 0.2, 1) infinite; animation-delay: calc(var(--i) * 1.3s);
}
.h-chip i { inline-size: 20px; block-size: 20px; border-radius: 7px; background: linear-gradient(135deg, #FFC08A, #FF6A3D); }
.h-chip b { inline-size: 58px; block-size: 6px; border-radius: 3px; background: var(--h-fg-3); }
.h-chip em { inline-size: 22px; block-size: 6px; border-radius: 3px; background: rgb(var(--h-glow) / 0.85); }
@keyframes h-chip {
  0% { opacity: 0; transform: translate(-175%, calc(var(--i) * 30px - 30px)) scale(0.9); }
  18%, 78% { opacity: 1; }
  100% { opacity: 0; transform: translate(75%, calc(var(--i) * 30px - 30px)) scale(1); }
}
[dir="rtl"] .h-chip { animation-direction: reverse; }
.h-live { justify-self: start; display: grid; justify-items: center; }
.h-live .phone {
  --s: 0.56;
  --phone-shadow: 0 50px 80px -40px rgb(0 0 0 / 0.85), 0 0 80px -20px rgb(var(--h-glow) / 0.45);
  animation: h-float 7s ease-in-out infinite; animation-delay: -2s;
}

/* ---------- bento ---------- */
.h-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 212px; grid-auto-flow: row dense;
  gap: 16px; margin-block-start: 60px;
}
.h-tile {
  --glow: 255 106 61;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
  padding: 22px; border-radius: 28px; border: 1px solid var(--h-line); background: var(--h-card);
  transition: transform 600ms var(--h-e), border-color 400ms;
}
.h-tile::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(75% 60% at 50% 112%, rgb(var(--glow) / 0.32), transparent 70%);
  opacity: 0.6; transition: opacity 500ms;
}
.h-tile:hover { transform: translateY(-4px); border-color: var(--h-line-2); }
.h-tile:hover::after { opacity: 1; }
.h-tile h3 { font: 600 1.0625rem/1.28 var(--font-text); letter-spacing: -0.01em; text-wrap: balance; }
.h-tile p { margin-block-start: 8px; font-size: 0.9375rem; line-height: 1.45; color: var(--h-fg-2); }
.h-ico {
  inline-size: 112px; block-size: 112px; object-fit: contain; pointer-events: none; user-select: none;
  filter: drop-shadow(0 18px 26px rgb(0 0 0 / 0.42));
  transition: transform 700ms var(--h-e);
}
.h-tile:hover .h-ico { transform: translateY(-6px) scale(1.06) rotate(-2deg); }
.h-ico-lg { inline-size: 150px; block-size: 150px; }
.h-ico-xl { inline-size: 200px; block-size: 200px; }
.h-tile-centre { grid-column: span 2; grid-row: span 2; justify-content: center; }
.h-tile-centre h3 { margin-block-start: 14px; font: 600 clamp(1.6rem, 1.15rem + 1.5vw, 2.45rem)/1.06 var(--font-display); letter-spacing: -0.038em; }
.h-tile-centre p { max-inline-size: 27rem; font-size: 1rem; }
.h-ring {
  position: absolute; inset-block-start: 12%; left: 50%; z-index: -1; inline-size: 300px; block-size: 300px; translate: -50% 0;
  border-radius: 50%; opacity: 0.42; filter: blur(48px);
  background: conic-gradient(from 0deg, #FF6A3D, #FFC08A, #FF3D2E, #FFA061, #FF6A3D);
  animation: h-spin 16s linear infinite;
}
@keyframes h-spin { to { rotate: 360deg; } }
.h-tile-tall { grid-row: span 2; justify-content: center; gap: 14px; }
.h-tile-wide { grid-column: span 2; flex-direction: row; justify-content: flex-start; gap: 22px; text-align: start; }
.h-num-tile { align-items: flex-start; justify-content: flex-end; text-align: start; }
.h-tile .h-num {
  margin: 0; font: 600 clamp(3.4rem, 2.4rem + 3.2vw, 5rem)/0.92 var(--font-display); letter-spacing: -0.06em; font-variant-numeric: tabular-nums;
  background: var(--h-num); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-tile .h-lab { margin-block-start: 10px; font-size: 0.9375rem; line-height: 1.4; color: var(--h-fg-2); }
.h-ico-corner { position: absolute; inset-block-start: -4px; inset-inline-end: -4px; z-index: -1; inline-size: 108px; block-size: 108px; }
.h-tag {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px; z-index: 2;
  padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-style: normal; font-weight: 700; letter-spacing: 0.02em;
  color: #2A120A; background: linear-gradient(180deg, #FFD3B2, #FF9064);
}

/* ---------- films (AI-generated loops) ---------- */
.h-film, .h-closing {
  position: relative; isolation: isolate; overflow: hidden;
  margin: clamp(88px, 11vw, 140px) 12px 0; border-radius: 30px; color: #F7EFE8;
}
.h-film-media { position: absolute; inset: 0; z-index: -2; background: #0A0807; }
.h-film-media video { inline-size: 100%; block-size: 100%; object-fit: cover; }
.h-film { display: grid; align-items: end; min-block-size: min(88vh, 780px); }
.h-film::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(10 7 6 / 0.9) 0%, rgb(10 7 6 / 0.62) 42%, rgb(10 7 6 / 0.08) 78%),
    linear-gradient(0deg, rgb(10 7 6 / 0.78), transparent 48%);
}
[dir="rtl"] .h-film::before { transform: scaleX(-1); }
.h-film-copy { padding-block: 80px; }
.h-film-copy h2 { max-inline-size: 13ch; }
.h-film-copy > p { max-inline-size: 32rem; margin-block-start: 18px; font-size: 1.125rem; line-height: 1.55; color: rgb(247 239 232 / 0.78); }
.h-film .actions, .h-closing .actions { margin-block-start: 32px; }
.h-film .btn-primary, .h-closing .btn-primary { background: #FFF; color: #140D0A; }
.h-film .quiet, .h-closing .quiet { color: #F7EFE8; text-decoration-color: rgb(255 255 255 / 0.35); }
.h-film .fact { margin-block-start: 22px; color: rgb(247 239 232 / 0.6); }

/* ---------- steps ---------- */
.h-steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block-start: 60px; }
.h-card { position: relative; overflow: hidden; padding: 30px 28px 28px; border-radius: 28px; border: 1px solid var(--h-line); background: var(--h-card); }
.h-big {
  display: block; font: 600 5.5rem/0.85 var(--font-display); letter-spacing: -0.07em;
  background: linear-gradient(180deg, rgb(var(--h-glow) / 0.95), rgb(var(--h-glow) / 0.06));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-card h3 { margin-block-start: 22px; font: 600 1.375rem/1.2 var(--font-display); letter-spacing: -0.022em; }
.h-card p { margin-block-start: 10px; color: var(--h-fg-2); }
.h-card .h-time {
  display: inline-flex; align-items: center; gap: 7px; margin-block-start: 20px; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--h-line-2); font-size: 0.8125rem; font-weight: 500; color: var(--h-fg);
}
.h-card .h-time svg { color: var(--h-ember); }

/* ---------- split sections and spotlights ---------- */
.h-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.h-split-rev > .h-copy { order: 2; }
.h-copy h2 { margin-block-start: 18px; }
.h-copy > p { max-inline-size: 34em; margin-block-start: 18px; font-size: 1.0625rem; line-height: 1.6; color: var(--h-fg-2); }
.h-copy h3 { margin-block-start: 34px; font: 600 1.25rem/1.25 var(--font-display); letter-spacing: -0.015em; }
.h-copy h3 + p { margin-block-start: 8px; }
.h-copy .try { margin-block-start: 22px; font-size: 0.9375rem; font-weight: 600; color: var(--h-ember); }
.h-glass { padding: 22px; border-radius: 32px; border: 1px solid var(--h-line); background: var(--h-card); box-shadow: var(--h-shadow); }
.p-home .oneqr-demo { grid-column: auto; }
.p-home .oneqr-demo .sheet { border-radius: 22px; }
.p-home .oneqr-demo .board { border-radius: 22px; background: var(--surface); }
.p-home .chip input:checked + span { background: linear-gradient(180deg, #FF7D4F, #EE4A1E); color: #FFF; }

.h-list { display: grid; gap: 18px; margin-block-start: 32px; }
.h-list li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: center; }
.h-list img { inline-size: 58px; block-size: 58px; object-fit: contain; filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.35)); }
.h-list b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; line-height: 1.3; }
.h-list b .h-tag { position: static; }
.h-points .h-tag { position: static; flex: none; }
.h-copy > .h-note { display: flex; align-items: center; gap: 10px; margin-block-start: 20px; font-size: 0.9375rem; color: var(--h-fg-2); }
.h-note .h-tag { position: static; flex: none; }
.h-list span { display: block; margin-block-start: 3px; font-size: 0.9375rem; line-height: 1.45; color: var(--h-fg-2); }

.h-photo { position: relative; }
.h-photo > img:first-child { inline-size: 100%; block-size: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 32px; box-shadow: var(--h-shadow); }
.h-ticket {
  position: absolute; inset-inline-start: -26px; inset-block-end: 36px; inline-size: min(256px, 60%);
  padding: 15px; border-radius: 19px; color: #F7EFE8;
  background: rgb(22 15 13 / 0.78); border: 1px solid rgb(255 255 255 / 0.12);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 34px 60px -24px rgb(0 0 0 / 0.75);
  animation: h-ticket 6s var(--h-e) infinite;
}
.h-ticket-top { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.h-ticket-top b { font: 700 1rem/1 var(--font-display); }
.h-ticket-top em { margin-inline-start: auto; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-style: normal; font-weight: 600; background: rgb(255 180 60 / 0.2); color: #FFD08F; }
.h-ticket i { display: block; inline-size: var(--w); block-size: 7px; margin-block-start: 11px; border-radius: 4px; background: rgb(255 255 255 / 0.18); }
.h-ticket-btn { display: block; margin-block-start: 15px; padding: 9px; border-radius: 12px; text-align: center; font-size: 0.875rem; font-weight: 600; color: #FFF; background: linear-gradient(180deg, #FF7D4F, #EE4A1E); }
@keyframes h-ticket { 0% { opacity: 0; transform: translateY(26px) scale(0.95); } 12%, 84% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
.h-photo-ico { position: absolute; inset-block-start: -38px; inset-inline-end: -18px; inline-size: 132px; block-size: 132px; filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.5)); animation: h-bell 6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes h-bell { 0%, 12%, 100% { transform: rotate(0); } 2% { transform: rotate(-13deg); } 4% { transform: rotate(11deg); } 6% { transform: rotate(-7deg); } 8% { transform: rotate(4deg); } 10% { transform: rotate(-2deg); } }

.h-lang-stage {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-block-size: 440px;
  border-radius: 32px; border: 1px solid var(--h-line); background: var(--h-card); box-shadow: var(--h-shadow);
}
.h-marquee {
  position: absolute; inset: 0; z-index: -1; display: grid; align-content: center; gap: 14px; direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.h-marquee-row { display: flex; inline-size: max-content; animation: h-marquee 70s linear infinite; }
.h-marquee-row.h-rev { animation-direction: reverse; animation-duration: 82s; }
.h-marquee-row.h-slow { animation-duration: 96s; margin-inline-start: -120px; }
.h-marquee-row span { display: flex; gap: 10px; padding-inline-end: 10px; }
.h-marquee-row i { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--h-line-2); font-size: 0.9375rem; font-style: normal; white-space: nowrap; color: var(--h-fg-3); }
@keyframes h-marquee { to { transform: translateX(-50%); } }
.h-dish {
  display: grid; justify-items: center; gap: 6px; inline-size: min(340px, 86%); padding: 0 26px 28px;
  border-radius: 28px; border: 1px solid var(--h-line-2); background: var(--h-glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--h-shadow);
}
.h-dish img { inline-size: 104px; block-size: 104px; margin-block: -52px 4px; filter: drop-shadow(0 20px 26px rgb(0 0 0 / 0.45)); animation: h-float 6s ease-in-out infinite; }
.h-dish-lang { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.03em; color: var(--h-ember); }
.h-dish-name {
  min-block-size: 2.5em; display: grid; place-items: center; text-align: center;
  font: 600 1.6rem/1.2 var(--font-display); letter-spacing: -0.02em;
  transition: opacity 380ms var(--h-e), transform 380ms var(--h-e), filter 380ms var(--h-e);
}
.h-dish-name.out, .h-dish-lang.out { opacity: 0; transform: translateY(8px); filter: blur(5px); }
.h-dish-lang { transition: opacity 380ms var(--h-e), transform 380ms var(--h-e), filter 380ms var(--h-e); }

/* ---------- themes, plans, FAQ in the new skin ---------- */
.p-home .themes-copy > p { color: var(--h-fg-2); }
.p-home .tp-item { border-radius: 16px; }
.p-home .tp-item[aria-current="true"] { background: var(--h-card); box-shadow: inset 0 0 0 1.5px var(--h-ember); }
.p-home .stage .phone { --phone-shadow: 0 50px 80px -40px rgb(0 0 0 / 0.8), 0 0 70px -24px rgb(var(--h-glow) / 0.4); }
.p-home .plans { display: grid; justify-items: center; }
.p-home .tariff { inline-size: 100%; border-radius: 30px; border-color: var(--h-line); background: var(--h-card); box-shadow: var(--h-shadow); }
.p-home .seg { border-radius: 999px; }
.p-home .seg span { border-radius: 999px; }
.p-home .pricing .actions { margin-block-start: 36px; }
.h-faq { display: grid; gap: 40px; max-inline-size: 880px; }
.h-faq h2 { text-align: center; }
.p-home .faq details { border-radius: 20px; border: 1px solid var(--h-line); background: var(--h-card); padding-inline: 22px; margin-block-end: 10px; }
.p-home .faq summary { color: var(--h-fg); }

/* ---------- closing ---------- */
.h-closing { display: grid; place-items: center; min-block-size: 640px; margin-block-end: 12px; text-align: center; }
.h-closing::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 70% at 50% 50%, rgb(10 7 6 / 0.55), rgb(10 7 6 / 0.9));
}
.h-closing-copy { max-inline-size: 48rem; padding-block: 96px; }
.h-closing h2 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.8rem); line-height: 1; }
.h-closing-copy > p { max-inline-size: 34rem; margin: 20px auto 0; font-size: 1.125rem; line-height: 1.55; color: rgb(247 239 232 / 0.8); }
.h-closing .actions { justify-content: center; }

/* ---------- scroll reveal (site.js adds .in) ---------- */
.js [data-r] { opacity: 0; transform: translateY(26px) scale(0.985); filter: blur(6px); transition: opacity 1s var(--h-e), transform 1s var(--h-e), filter 1s var(--h-e); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-r].in { opacity: 1; transform: none; filter: none; }

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .h-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 188px; }
  .h-tile-centre { order: -1; }
  .h-split, .h-split-rev { grid-template-columns: minmax(0, 1fr); }
  .h-split-rev > .h-copy { order: 0; }
  .h-photo { margin-inline: 18px; }
  .h-steps-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 819px) {
  .h-hero { padding-block-start: 128px; }
  .h-stage { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; margin-block-start: 48px; padding: 30px 14px 24px; border-radius: 28px; }
  .h-paper { justify-self: center; inline-size: 100%; max-inline-size: 190px; }
  .h-live .phone { --s: 0.42; }
  .h-live { justify-self: center; }
  .h-flow { position: absolute; inset-block-start: 40%; left: 50%; translate: -50% -50%; z-index: 3; inline-size: auto; }
  .h-flow-icon { inline-size: 84px; block-size: 84px; }
  .h-chip, .h-flow-cap { display: none; }
  .h-stage figcaption { margin-block-start: 14px; font-size: 0.75rem; text-align: center; white-space: nowrap; }
  .h-film { min-block-size: 620px; }
  .h-film::before { background: linear-gradient(0deg, rgb(10 7 6 / 0.92) 0%, rgb(10 7 6 / 0.55) 55%, rgb(10 7 6 / 0.15) 100%); }
  .h-film-copy { padding-block: 56px 40px; }
  .h-photo-ico { inline-size: 96px; block-size: 96px; inset-block-start: -30px; }
  .h-lang-stage { min-block-size: 380px; }
}
@media (max-width: 560px) {
  .h-grid { gap: 10px; grid-auto-rows: 172px; }
  .h-tile { padding: 16px; border-radius: 22px; }
  .h-tile:not(.h-tile-centre):not(.h-tile-tall):not(.h-num-tile) p { display: none; }
  .h-tile .h-lab { margin-block-start: 6px; font-size: 0.8125rem; line-height: 1.35; }
  .h-ico { inline-size: 84px; block-size: 84px; }
  .h-ico-lg { inline-size: 104px; block-size: 104px; }
  .h-ico-xl { inline-size: 150px; block-size: 150px; }
  .h-ico-corner { inline-size: 76px; block-size: 76px; }
  .h-tile-wide { flex-direction: column; justify-content: center; text-align: center; gap: 8px; }
  .h-tile h3 { font-size: 0.9375rem; }
  .h-film, .h-closing { margin-inline: 6px; border-radius: 22px; }
  .h-ticket { inset-inline-start: -8px; inset-block-end: 18px; }
  .h-dish-name { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .h-in, .h-upload-card::before, .h-paper-img, .h-beam, .h-hit, .h-flow-icon, .h-chip, .h-live .phone, .h-ring,
  .h-ticket, .h-photo-ico, .h-marquee-row, .h-dish img { animation: none !important; }
  .h-hit { opacity: 1; } .h-chip { opacity: 0; } .h-beam { display: none; }
  .js [data-r] { opacity: 1; transform: none; filter: none; transition: none; }
}
