/* =========================================================
   Split & Settle — home page
   Default rules = static layout (no JS / reduced motion).
   `.is-animated` (added by home.js) switches pinned scenes to stage mode.
   ========================================================= */

/* ---------------- HERO ---------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  padding: 128px 0 96px; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 70% at 18% 55%, rgba(10,15,28,.86), rgba(10,15,28,.35) 70%),
    linear-gradient(180deg, rgba(10,15,28,.6) 0%, rgba(10,15,28,.15) 35%, rgba(10,15,28,.55) 75%, var(--ink) 100%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 48px; }
.hero__copy { max-width: 660px; }
.hero__title { font-size: clamp(60px, 9.2vw, 138px); margin: 22px 0 26px; text-wrap: balance; }
.hero__title em { color: var(--amber); }
.hero__sub { color: #c9cfdb; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14px; color: var(--muted-dark); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.hero__device { display: flex; justify-content: center; perspective: 1400px; }
.hero__tilt { position: relative; transform-style: preserve-3d; }
.hero__phone { --w: clamp(240px, 22vw, 320px); }
.hero__chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 500;
  background: rgba(16,23,42,.7); border: 1px solid var(--hair-dark);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
  transform: translateZ(60px);
}
.hero__chip b { font-variant-numeric: tabular-nums; color: #fff; margin-left: 6px; }
.hero__chip i { font-style: normal; color: var(--amber); }
.hero__chip--a { left: -26%; top: 28%; }
.hero__chip--b { right: -22%; top: 62%; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--you { background: var(--blue); } .dot--sam { background: var(--amber); } .dot--priya { background: #39c2b0; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  display: grid; justify-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-dark); text-decoration: none;
}
.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(var(--amber), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
  .hero { padding: 112px 0 72px; min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__title { font-size: clamp(54px, 15vw, 96px); }
  .hero__phone { --w: min(62vw, 250px); }
  .hero__chip { font-size: 13px; padding: 8px 12px; }
  .hero__chip--a { left: -18%; } .hero__chip--b { right: -16%; }
  .hero__scroll { display: none; }
}
@media (max-width: 420px) {
  .hero__ctas .btn { width: 100%; }
  .hero__chip--a { left: -12%; top: 18%; } .hero__chip--b { right: -10%; }
}

/* ---------------- EXPLODED RECEIPT ---------------- */
.xr {
  position: relative; overflow-x: clip; padding: clamp(96px, 12vw, 150px) 0 clamp(72px, 9vw, 120px);
  background:
    radial-gradient(60% 50% at 70% 60%, rgba(243,182,91,.10), transparent 70%),
    radial-gradient(50% 40% at 15% 30%, rgba(47,116,230,.14), transparent 70%),
    var(--ink);
}
.xr__intro { margin-bottom: 40px; }
.xr__pin { position: relative; }

/* --- static (default) layout --- */
.xr__rail { display: none; }
.xr__stage { width: min(100% - 2 * var(--gutter), 1100px); margin: 0 auto; display: grid; gap: 88px; }
.xr__scap { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; margin-bottom: 28px; max-width: 24em; }
.xr__scap span { font-family: var(--f-ui); font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--amber); vertical-align: middle; margin-right: 10px; }
.xr__panel--snap { display: grid; grid-template-columns: auto 1fr; gap: 28px 48px; align-items: center; }
.xr__panel--snap .xr__scap { grid-column: 1 / -1; }
.xr__tags { list-style: none; display: grid; gap: 12px; align-content: center; }
.xr__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.xr:not(.is-animated) .rl--tip { display: none; }
.xr__panel { min-width: 0; }
.xr__panel--send { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 40px; align-items: center; }
.xr__panel--send .xr__scap { grid-column: 1 / -1; margin-bottom: 0; }
@media (max-width: 760px) {
  .xr__panel--snap, .xr__panel--send { grid-template-columns: 1fr; justify-items: center; }
  .xr__cards { grid-template-columns: 1fr; }
  .xr__tags { grid-auto-flow: row; justify-items: start; }
}

/* receipt */
.rc {
  --rw: 320px;
  position: relative; width: var(--rw); padding: 30px 24px 34px;
  font-family: var(--f-mono); font-size: 14px; line-height: 1.35; color: #29251e;
  transform-style: preserve-3d;
}
.rc__paper { position: absolute; inset: 0; transform-style: preserve-3d; }
.rc__paper i {
  position: absolute; left: 0; right: 0; height: calc(12.5% + 1px);
  background:
    linear-gradient(90deg, rgba(0,0,0,.035), transparent 12%, transparent 88%, rgba(0,0,0,.035)),
    var(--noise) 0 0 / 180px 180px,
    #fbf8f1;
  background-blend-mode: normal, multiply, normal;
}
.rc__paper i:nth-child(1) { top: 0; } .rc__paper i:nth-child(2) { top: 12.5%; } .rc__paper i:nth-child(3) { top: 25%; }
.rc__paper i:nth-child(4) { top: 37.5%; } .rc__paper i:nth-child(5) { top: 50%; } .rc__paper i:nth-child(6) { top: 62.5%; }
.rc__paper i:nth-child(7) { top: 75%; } .rc__paper i:nth-child(8) { top: 87.5%; height: 12.5%; }
.rc__paper i:first-child::before, .rc__paper i:last-child::after {
  content: ""; position: absolute; left: 0; right: 0; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M0 9V5l4-4 5 5 4-5 6 6 3-4 5 4 6-6 4 5 5-5 3 3 6-3 4 5 5-5 6 6 3-4 4 3 6-5 5 5 4-4 5 5 3-3 6 3 4-5 4 4 4-3V9z' fill='%23fbf8f1'/%3E%3C/svg%3E") 0 0 / 120px 9px repeat-x;
}
.rc__paper i:first-child::before { top: -8px; }
.rc__paper i:last-child::after { bottom: -8px; transform: scaleY(-1); }
.rc::after { /* soft shadow under paper */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -24px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.55); filter: blur(22px); transform: translateZ(-1px); z-index: -1;
}
.rc > *:not(.rc__paper) { position: relative; }
.rc__head { text-align: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed rgba(41,37,30,.35); }
.rc__head p { margin: 0; font-size: 12px; color: #6a6254; }
.rc__head .rc__name { font-size: 20px; font-weight: 700; letter-spacing: .18em; color: #1d1a15; margin-bottom: 4px; }
.rc__meta { display: flex; justify-content: space-between; margin-top: 10px !important; }
.rc__lines { list-style: none; transform-style: preserve-3d; }
.rl {
  --hl: 0; --ck: 0;
  position: relative; display: flex; justify-content: space-between; gap: 12px;
  padding: 4px 8px; margin: 0 -8px; border-radius: 4px; white-space: nowrap;
  backface-visibility: hidden;
}
.rl > span:last-child { font-variant-numeric: tabular-nums; }
.rl::before {
  content: ""; position: absolute; inset: 0; border-radius: 4px; z-index: -1;
  background: linear-gradient(90deg, rgba(47,116,230,.22), rgba(47,116,230,.08));
  box-shadow: inset 2px 0 0 var(--blue);
  opacity: var(--hl);
}
.rl::after {
  content: "✓"; position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-ui); font-size: 12px; font-weight: 700; color: var(--blue); opacity: var(--ck);
}
.rc__sums { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(41,37,30,.35); }
.rl--sum { color: #4d473c; }
.rl--total { font-weight: 700; font-size: 16px; color: #1d1a15; margin-top: 4px; }
.rc__foot { text-align: center; margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(41,37,30,.35); font-size: 11px; color: #6a6254; letter-spacing: .1em; }
.rc__foot p { margin: 0 0 8px; }
.rc__barcode { height: 26px; margin: 0 18px; background: repeating-linear-gradient(90deg, #2a2620 0 2px, transparent 2px 4px, #2a2620 4px 5px, transparent 5px 8px, #2a2620 8px 11px, transparent 11px 12px); opacity: .75; }
.rc__scan {
  position: absolute !important; left: -14px; right: -14px; top: 0; height: 3px; border-radius: 3px; opacity: 0;
  background: linear-gradient(90deg, transparent, #8db5ff 15%, #fff 50%, #8db5ff 85%, transparent);
  box-shadow: 0 0 18px 4px rgba(47,116,230,.65), 0 0 60px 14px rgba(47,116,230,.35);
  pointer-events: none;
}
.rc__scan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 70px; background: linear-gradient(0deg, rgba(47,116,230,.18), transparent); }

.tag {
  display: inline-flex; align-items: center; gap: 8px; width: max-content;
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(47,116,230,.18); color: #d6e5ff; border: 1px solid rgba(141,181,255,.4);
  box-shadow: 0 10px 30px -12px rgba(47,116,230,.8);
}
.tag span { color: #8fe3b0; }

/* person cards */
.pc {
  --c: var(--blue);
  position: relative; padding: 16px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid var(--hair-dark);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
  font-size: 14px;
}
.pc::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; border-radius: 2px; background: var(--c); opacity: .9; }
.pc--sam { --c: var(--amber); }
.pc--priya { --c: #39c2b0; }
.pc__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.av {
  width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font: 700 14px/1 var(--f-ui); font-style: normal; color: #fff; background: var(--blue);
}
.pc--you .av, .av--you { background: var(--blue); color: #fff; }
.pc--sam .av, .av--sam { background: var(--amber); color: #2a1a04; }
.pc--priya .av, .av--priya { background: #39c2b0; color: #062520; }
.pc__name { font-weight: 600; font-size: 16px; }
.pc__total { margin-left: auto; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pc__chips { list-style: none; display: grid; gap: 6px; }
.chip {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.07);
  box-shadow: inset 2px 0 0 var(--c); white-space: nowrap;
}
.chip__a { font-variant-numeric: tabular-nums; color: #dfe4ee; }
.frac { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 4px; margin-left: 4px; border-radius: 6px; background: rgba(243,182,91,.2); color: var(--amber); font-size: 12px; font-weight: 700; }
.pc__rows { display: grid; gap: 2px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--hair-dark); font-size: 13px; color: var(--muted-dark); }
.pc__rows div { display: flex; justify-content: space-between; }
.pc__rows dd { margin: 0; font-variant-numeric: tabular-nums; color: #dfe4ee; }

/* static tax table */
.xr__tablewrap { overflow-x: auto; }
.xr__table { width: 100%; max-width: 720px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 16px; }
.xr__table th, .xr__table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--hair-dark); }
.xr__table th:first-child { text-align: left; }
.xr__table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-dark); font-weight: 600; }
@media (max-width: 520px) { .xr__table { font-size: 14px; } .xr__table th, .xr__table td { padding: 10px 6px; } }
.xr__table tfoot th, .xr__table tfoot td { color: var(--amber); font-weight: 600; border-bottom: 0; }

/* send */
.xr__tagline { font-size: clamp(44px, 6vw, 72px); margin: 0; }
.xr__tagline em { color: var(--amber); }
.thread { position: relative; width: 100%; max-width: 380px; padding: 18px; display: grid; gap: 10px; justify-items: end; }
.thread__panel { position: absolute; inset: 0; border-radius: 30px; background: linear-gradient(170deg, rgba(255,255,255,.10), rgba(255,255,255,.04)); border: 1px solid var(--hair-dark); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.thread > *:not(.thread__panel) { position: relative; }
.thread__head { justify-self: stretch; display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; border-bottom: 1px solid var(--hair-dark); margin-bottom: 4px; }
.thread__head b { display: block; font-size: 15px; } .thread__head small { color: var(--muted-dark); font-size: 12px; }
.thread__avs { display: flex; } .thread__avs .av { width: 30px; height: 30px; font-size: 12px; box-shadow: 0 0 0 2px var(--ink); }
.thread__avs .av + .av { margin-left: -8px; }
.bub { max-width: 88%; padding: 10px 14px; border-radius: 20px; font-size: 14px; line-height: 1.4; }
.bub--out { background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.bub--in { background: #e9ebf1; color: var(--text-dark); border-bottom-left-radius: 6px; justify-self: start; }
.bub--in b { display: block; font-size: 12px; color: var(--muted-light); font-weight: 600; }
.bub--media { padding: 0; width: 84%; }
.thread__status { margin: -4px 4px 0; font-size: 12px; color: var(--muted-dark); }
.share {
  border-radius: 18px; padding: 16px; background: #fbf8f1; color: #1d1a15;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
  font-size: 14px;
}
.share__head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px dashed rgba(41,37,30,.3); }
.share__head b { font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.share__head span { font-size: 12px; color: #6a6254; }
.share ul { list-style: none; display: grid; gap: 8px; }
.share li { display: flex; align-items: center; gap: 10px; }
.share li .av { width: 26px; height: 26px; font-size: 11px; }
.share li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.share__total { display: flex; justify-content: space-between; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed rgba(41,37,30,.3); font-size: 12px; color: #6a6254; }
.share__total b { font-size: 16px; color: #1d1a15; font-variant-numeric: tabular-nums; }

/* --- animated (stage) mode --- */
.xr.is-animated .static-only { display: none !important; }
.xr.is-animated .xr__intro { margin-bottom: 0; }
.xr.is-animated .xr__pin {
  height: 100vh; height: 100svh; max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 32px;
  padding: 104px var(--gutter) 36px;
}
.xr.is-animated .xr__rail { display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.xr__steps { list-style: none; display: grid; gap: 4px; counter-reset: none; }
.xr__steps li {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 0 9px 18px;
  color: rgba(238,241,247,.42); font-weight: 500; transition: color .4s;
}
.xr__steps li::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.12); transition: background-color .4s; }
.xr__steps li.is-active { color: #fff; }
.xr__steps li.is-active::before { background: var(--amber); }
.xr__steps li.is-done { color: rgba(238,241,247,.7); }
.xr__steps .n { font-size: 12px; letter-spacing: .12em; font-weight: 700; color: var(--amber); opacity: .8; font-variant-numeric: tabular-nums; }
.xr__caps { display: grid; }
.xr__cap { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.xr__cap.is-active { opacity: 1; transform: none; pointer-events: auto; }
.xr__cap h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 3vw, 44px); line-height: 1.02; margin-bottom: 14px; letter-spacing: -0.01em; }
.xr__cap p { color: var(--muted-dark); margin: 0; font-size: 17px; }
.xr.is-animated .xr__area { position: relative; min-height: 0; min-width: 0; }
.xr.is-animated .xr__fit { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.xr.is-animated .xr__stage { position: relative; width: 100%; height: 100%; display: block; gap: 0; margin: 0; perspective: 1500px; perspective-origin: 50% 40%; transform-style: preserve-3d; }
.xr.is-animated .xr__panel { position: static; display: block; transform-style: preserve-3d; }
.xr.is-animated .xr__cards { display: block; transform-style: preserve-3d; }
.xr.is-animated .rc { position: absolute; }
.xr.is-animated .rc::after { display: none; }
.xr.is-animated .xr__tags { position: absolute; left: 0; top: 0; }
.xr.is-animated .tag { position: absolute; white-space: nowrap; }
.xr.is-animated .pc { position: absolute; }
.xr.is-animated .rl--tip { display: flex; position: absolute; margin: 0; font-family: var(--f-mono); font-size: 14px; line-height: 1.35; color: #29251e; background: #fbf8f1; box-shadow: 0 14px 30px -14px rgba(0,0,0,.7); }
.xr.is-animated .xr__tagline { position: absolute; }
.xr.is-animated .thread { position: absolute; }
.tok {
  position: absolute; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 4px 8px; border-radius: 4px; white-space: nowrap; pointer-events: none;
  font-family: var(--f-mono); font-size: 14px; line-height: 1.35; color: #29251e;
  background: #fbf8f1; box-shadow: 0 16px 30px -14px rgba(0,0,0,.75);
  will-change: transform, opacity;
}
.tok .frac { background: rgba(201,134,42,.18); color: #8a5512; }
.tok .chip__a { color: #29251e; }
.coin {
  position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff3d4, #f3b65b 45%, #b97a20 100%);
  box-shadow: 0 0 10px rgba(243,182,91,.6), inset 0 -2px 0 rgba(0,0,0,.25);
  will-change: transform, opacity;
}

/* wide stage (1000 x 640 design units) */
.xr--wide .xr__fit { width: 1000px; height: 640px; }
.xr--wide .rc { left: 340px; top: 44px; }
.xr--wide .pc { top: 290px; width: 290px; }
.xr--wide .pc--you { left: 20px; } .xr--wide .pc--sam { left: 355px; } .xr--wide .pc--priya { left: 690px; }
.xr--wide .rl--tip { width: 288px; }
.xr--wide .pc__chips { min-height: 138px; }
.xr--wide .xr__tagline { left: 10px; top: 190px; width: 540px; font-size: 76px; }
.xr--wide .thread { left: 600px; top: 40px; width: 380px; }

/* tall stage (360 x 760 design units) */
.xr--tall .xr__pin {
  grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px !important; padding: 80px 16px 18px !important;
}
.xr--tall .xr__rail { display: contents !important; }
.xr--tall .xr__steps { grid-row: 1; display: flex; justify-content: space-between; gap: 4px; }
.xr--tall .xr__steps li { padding: 0 2px 8px; font-size: 12px; gap: 0; flex: 1 1 auto; justify-content: center; text-align: center; white-space: nowrap; }
.xr--tall .xr__steps li::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 2px; }
.xr--tall .xr__steps .n { display: none; }
.xr--tall .xr__area { grid-row: 2; }
.xr--tall .xr__caps { grid-row: 3; }
.xr--tall .xr__cap h3 { font-size: 26px; margin-bottom: 6px; }
.xr--tall .xr__cap p { font-size: 14px; line-height: 1.45; }
.xr--tall .xr__fit { width: 360px; height: 760px; }
.xr--tall .rc { --rw: 280px; left: 40px; top: 20px; }
.xr--tall .pc { left: 8px; width: 344px; padding: 10px 12px 10px; border-radius: 18px; }
.xr--tall .pc--you { top: 288px; } .xr--tall .pc--sam { top: 446px; } .xr--tall .pc--priya { top: 604px; }
.xr--tall .pc__head { margin-bottom: 8px; }
.xr--tall .pc__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.xr--tall .chip { padding: 3px 8px; font-size: 12px; gap: 6px; border-radius: 8px; }
.xr--tall .pc__rows { display: flex; gap: 12px; margin-top: 8px; padding-top: 6px; font-size: 12px; }
.xr--tall .pc__rows div { gap: 5px; }
.xr--tall .rl--tip { width: 248px; }
.xr--tall .xr__tagline { left: 0; top: 50px; width: 360px; font-size: 50px; text-align: center; }
.xr--tall .thread { left: 20px; top: 250px; width: 320px; }

/* ---------------- DECONSTRUCTED PHONE ---------------- */
.dx {
  position: relative; overflow: clip;
  background:
    radial-gradient(55% 60% at 70% 50%, rgba(47,116,230,.22), transparent 70%),
    linear-gradient(180deg, var(--ink), #0b1222 60%, var(--ink));
}
.dx__pin { padding-block: clamp(96px, 12vw, 160px); }
.dx__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.dx__copy .h2 { margin: 18px 0 22px; }
.dx__scene { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; justify-content: center; }
.dx__device { --dw: 280px; position: relative; width: var(--dw); aspect-ratio: 1 / 2.09; transform-style: preserve-3d; }
.dx__frame {
  position: absolute; inset: 0; border-radius: calc(var(--dw) * .17);
  background: linear-gradient(145deg, #4a5266, #151a25 28%, #0b0e15 70%, #39415a);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2), inset 0 0 0 calc(var(--dw) * .012) #05070c, 0 50px 90px -40px rgba(0,0,0,.9);
}
.dx__frame::before { content: ""; position: absolute; left: -3px; top: 22%; width: 3px; height: 7%; border-radius: 2px; background: #333a4c; box-shadow: 0 calc(var(--dw) * .16) 0 #333a4c; }
.dx__frame::after { content: ""; position: absolute; right: -3px; top: 28%; width: 3px; height: 11%; border-radius: 2px; background: #333a4c; }
.dx__bands { position: absolute; inset: calc(var(--dw) * .035); transform-style: preserve-3d; }
.dx__band { position: absolute; left: 0; right: 0; height: 20%; overflow: hidden; background: #dfe6f3; }
.dx__band img { position: absolute; left: 0; width: 100%; height: 500%; max-width: none; object-fit: cover; object-position: top center; }
.dx__band:nth-child(1) { top: 0; border-radius: calc(var(--dw) * .135) calc(var(--dw) * .135) 0 0; }
.dx__band:nth-child(2) { top: 20%; } .dx__band:nth-child(3) { top: 40%; } .dx__band:nth-child(4) { top: 60%; }
.dx__band:nth-child(5) { top: 80%; border-radius: 0 0 calc(var(--dw) * .135) calc(var(--dw) * .135); }
.dx__band:nth-child(1) img { top: 0; } .dx__band:nth-child(2) img { top: -100%; } .dx__band:nth-child(3) img { top: -200%; }
.dx__band:nth-child(4) img { top: -300%; } .dx__band:nth-child(5) img { top: -400%; }
.dx__glass {
  position: absolute; inset: calc(var(--dw) * .035); border-radius: calc(var(--dw) * .135); pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.04) 30%, rgba(255,255,255,0) 60%, rgba(255,255,255,.10) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.dx__glass .device__island { top: 2.4%; height: 3.6%; }
.dx__labels { list-style: none; display: grid; gap: 22px; max-width: 280px; }
.dx__label b { display: block; font-size: 17px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.dx__label span { display: block; font-size: 15px; color: var(--muted-dark); line-height: 1.4; }
.dx__label i { display: block; width: 28px; height: 2px; margin-bottom: 10px; background: var(--amber); border-radius: 2px; }
@media (max-width: 900px) {
  .dx__layout { grid-template-columns: 1fr; }
  .dx__scene { grid-template-columns: auto minmax(0, 1fr); gap: 22px; justify-content: start; }
  .dx__device { --dw: min(42vw, 220px); }
}

/* animated */
.dx.is-animated .dx__pin { height: 100vh; height: 100svh; padding: 96px 0 32px; display: grid; align-items: center; }
.dx.is-animated .dx__scene { display: block; height: min(72vh, 680px); perspective: 1600px; perspective-origin: 50% 45%; }
.dx.is-animated .dx__device { --dw: min(30vh, 290px); position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.dx.is-animated .dx__labels { position: absolute; inset: 0; display: block; max-width: none; pointer-events: none; }
.dx.is-animated .dx__label { position: absolute; width: 210px; }
.dx.is-animated .dx__label i { width: 64px; position: relative; }
.dx.is-animated .dx__label i::after { content: ""; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.dx.is-animated .dx__label[data-side="left"] { text-align: right; }
.dx.is-animated .dx__label[data-side="left"] i { margin-left: auto; }
.dx.is-animated .dx__label[data-side="left"] i::after { right: auto; left: -4px; }
@media (max-width: 900px) {
  .dx.is-animated .dx__pin { padding: 84px 0 16px; align-items: start; }
  .dx.is-animated .dx__layout { gap: 8px; }
  .dx.is-animated .dx__copy .h2 { font-size: 40px; margin: 10px 0 8px; }
  .dx.is-animated .dx__copy .lede { font-size: 15px; }
  .dx.is-animated .dx__scene { height: calc(100svh - 330px); min-height: 380px; }
  .dx.is-animated .dx__device { --dw: min(36vw, 26vh, 200px); left: 30%; }
  .dx.is-animated .dx__label { width: 46%; }
  .dx.is-animated .dx__label b { font-size: 14px; }
  .dx.is-animated .dx__label span { font-size: 12px; }
  .dx.is-animated .dx__label i { width: 30px; }
}

/* ---------------- MARQUEE ---------------- */
.marquee {
  position: relative; overflow: hidden; background: var(--ink); color: var(--text-light);
  border-block: 1px solid var(--hair-dark); padding: 26px 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { list-style: none; display: flex; flex: none; }
.marquee__list li { display: flex; align-items: center; font-family: var(--f-display); font-style: italic; font-size: clamp(28px, 3.6vw, 46px); white-space: nowrap; padding-right: 40px; }
.marquee__list li::after { content: "✦"; font-style: normal; font-size: .5em; color: var(--amber); margin-left: 40px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- FEATURES / BENTO ---------------- */
.features { background: linear-gradient(180deg, #e9ecf3, var(--paper) 280px); }
.features .h2 em, .seen .h2 em, .pricing .h2 em, .faq .h2 em { color: var(--blue-deep); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.bento__card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 24px; min-height: 420px;
  padding: 34px 32px 0; border-radius: 30px;
  background: var(--white); color: var(--text-dark);
  box-shadow: 0 1px 0 rgba(13,19,34,.04), 0 30px 60px -40px rgba(13,19,34,.35);
  border: 1px solid rgba(13,19,34,.06);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.bento__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(47,116,230,.10), transparent 60%);
}
.bento__card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(13,19,34,.04), 0 40px 70px -40px rgba(13,19,34,.45); }
.bento__card:hover::before { opacity: 1; }
.bento__card.dark { background: var(--ink-2); color: var(--text-light); border-color: var(--hair-dark); }
.bento__card.dark::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(243,182,91,.14), transparent 60%); z-index: 1; }
.bento__text { position: relative; z-index: 2; max-width: 34em; }
.bento__text p:last-child { margin-bottom: 0; }
.bento__text > p:not(.bento__kicker) { color: var(--muted-light); font-size: 16px; }
.bento__card.dark .bento__text > p:not(.bento__kicker) { color: #c3c9d6; }
.bento__kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 12px; }
.bento__card.dark .bento__kicker { color: var(--amber); }
.bento .h3 { margin-bottom: 12px; }
.bento .h3 em { color: var(--blue-deep); font-size: 1.08em; }
.bento__card.dark .h3 em { color: var(--amber); }
.bento__shot { position: relative; z-index: 2; margin-top: auto; display: flex; justify-content: center; height: 300px; overflow: hidden; }
.device--crop { --w: 250px; transition: transform .8s var(--ease); align-self: flex-start; margin-top: 8px; }
.bento__card:hover .device--crop { transform: translateY(-12px) rotate(-1.5deg); }
.bento__bgvideo { position: absolute; inset: 0; z-index: 0; }
.bento__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(16,23,42,.92) 0%, rgba(16,23,42,.72) 45%, rgba(16,23,42,.35) 100%); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pills li { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--paper); border: 1px solid var(--hair-light); }
.pills--dark li { background: rgba(255,255,255,.08); border-color: var(--hair-dark); }

.b-settle { grid-column: span 7; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding-bottom: 0; }
.b-settle .bento__text { align-self: start; padding-bottom: 34px; }
.b-settle .bento__shot { height: 380px; margin-top: 0; }
.b-trips { grid-column: span 5; }
.b-scan, .b-tips, .b-travel { grid-column: span 4; min-height: 600px; }
.b-biz { grid-column: span 8; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.b-biz .bento__text { align-self: start; padding-bottom: 34px; }
.b-biz .bento__shot { height: 380px; }
.b-private { grid-column: span 4; justify-content: flex-end; padding-bottom: 34px; background: radial-gradient(80% 60% at 70% 20%, rgba(47,116,230,.35), transparent 70%), var(--ink) !important; }
.b-shared, .b-ways, .b-tax { grid-column: span 4; min-height: 340px; justify-content: space-between; padding-bottom: 34px; }
.lock { width: 96px; height: 96px; color: var(--amber); margin-bottom: auto; }
.lock svg { width: 100%; height: 100%; filter: drop-shadow(0 0 22px rgba(243,182,91,.5)); }
.share-ill { display: flex; align-items: center; gap: 10px; }
.share-ill .av { width: 46px; height: 46px; font-size: 17px; box-shadow: 0 0 0 4px var(--white); }
.share-ill .av + .av { margin-left: -16px; }
.share-ill__sync { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--blue-deep); margin-right: 6px; }
.share-ill__sync svg { width: 22px; height: 22px; }
.bento__card:hover .share-ill__sync svg { animation: spin 1.4s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
.ways { display: flex; flex-wrap: wrap; gap: 8px; }
.ways span { padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--paper); border: 1px solid var(--hair-light); transition: background-color .3s, color .3s; }
.ways span.on, .ways span:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.pin-ill { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(47,116,230,.1); color: var(--blue-deep); }
.pin-ill svg { width: 30px; height: 30px; }
.bento__card:hover .pin-ill svg { animation: bob .9s var(--ease); }
@keyframes bob { 40% { transform: translateY(-6px); } }

@media (max-width: 1060px) {
  .b-settle, .b-biz { grid-column: span 12; }
  .b-trips, .b-private { grid-column: span 6; }
  .b-scan, .b-tips, .b-travel, .b-shared, .b-ways, .b-tax { grid-column: span 6; }
  .b-travel { grid-column: span 12; }
}
@media (max-width: 700px) {
  .bento { gap: 14px; }
  .bento__card { grid-column: 1 / -1 !important; min-height: 0 !important; padding: 26px 22px 0; }
  .b-settle, .b-biz { display: flex; align-items: stretch; }
  .b-settle .bento__text, .b-biz .bento__text { padding-bottom: 0; }
  .b-settle .bento__shot, .b-biz .bento__shot, .bento__shot { height: 260px; }
  .device--crop { --w: 220px; }
  .b-private, .b-shared, .b-ways, .b-tax { padding-bottom: 26px; gap: 28px; }
}

/* ---------------- SPLIT, AS THEY SEE IT ---------------- */
.seen { background: linear-gradient(180deg, var(--paper), #eef0f6); }
.seen__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: center; }
.seen__copy .h2 { margin: 18px 0 22px; }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.ticks li::before { content: "✓"; display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; background: rgba(47,116,230,.12); color: var(--blue-deep); transform: translateY(2px); }
.chat {
  border-radius: 38px; padding: 10px; background: #fff; box-shadow: 0 50px 100px -50px rgba(13,19,34,.55), 0 0 0 1px rgba(13,19,34,.06);
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--hair-light); color: var(--text-dark); }
.chat__head b { display: block; font-size: 15px; } .chat__head small { color: var(--muted-light); font-size: 12px; }
.chat__head .av { box-shadow: 0 0 0 2px #fff; }
.chat__body { display: grid; gap: 8px; padding: 14px 12px 16px; justify-items: end; }
.chat__day { justify-self: center; font-size: 12px; color: var(--muted-light); margin: 0 0 6px; }
.chat .bub--out { max-width: 82%; }
.bub--img { padding: 0; width: 72%; max-width: 270px; border-radius: 22px; overflow: hidden; background: #dfe3ec; border-bottom-right-radius: 6px; }
.bub--img img { width: 100%; aspect-ratio: 1170 / 2000; object-fit: cover; }
.chat__status { font-size: 12px; color: var(--muted-light); margin: -2px 6px 6px; }
@media (max-width: 860px) {
  .seen__grid { grid-template-columns: 1fr; gap: 48px; }
  .seen__thread { max-width: 420px; justify-self: center; width: 100%; }
}

/* ---------------- TUTORIALS ---------------- */
.tuts { background: radial-gradient(60% 50% at 80% 0%, rgba(47,116,230,.2), transparent 70%), var(--ink); }
.tuts__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.tuts__head .h2 { margin-top: 16px; }
.tuts__strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tuts__strip .tcard__poster { max-height: 520px; aspect-ratio: 3 / 5; }
@media (max-width: 1000px) {
  .tuts__strip {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(64vw, 280px);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scrollbar-width: thin; scroll-padding-inline: var(--gutter);
  }
  .tuts__strip > * { scroll-snap-align: start; }
}

/* ---------------- PRICING ---------------- */
.pricing { background: linear-gradient(180deg, #eef0f6, var(--paper)); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; padding: 40px 38px; border-radius: 32px; background: #fff; border: 1px solid rgba(13,19,34,.07); box-shadow: 0 30px 60px -40px rgba(13,19,34,.35); }
.plan--pro { background: radial-gradient(90% 60% at 100% 0%, rgba(243,182,91,.22), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(47,116,230,.3), transparent 70%), var(--ink); border: 1px solid rgba(243,182,91,.35); box-shadow: 0 50px 90px -40px rgba(10,15,28,.7); }
.plan__badge { position: absolute; top: 24px; right: 24px; margin: 0; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--amber); color: #2a1a04; }
.plan__name { font-size: 20px; letter-spacing: -0.01em; }
.plan__price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; }
.plan__amt { font-family: var(--f-display); font-size: 84px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan__once { font-size: 18px; color: var(--amber); font-weight: 600; }
.plan__sub { color: var(--muted-light); }
.plan--pro .plan__sub { color: var(--muted-dark); }
.plan__list { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.plan__list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.plan__list li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: rgba(47,116,230,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%231f57ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.plan--pro .plan__list li::before { background-color: rgba(243,182,91,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23f3b65b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan__note { margin: 26px 0 0; font-size: 14px; color: var(--muted-dark); }
.promises { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 40px auto 0; }
.promises li { padding: 20px 22px; border-radius: 20px; background: rgba(255,255,255,.7); border: 1px solid rgba(13,19,34,.07); color: var(--muted-light); font-size: 15px; }
.promises b { display: block; color: var(--text-dark); font-size: 16px; }
@media (max-width: 760px) {
  .plans, .promises { grid-template-columns: 1fr; }
  .plan { padding: 32px 26px; }
}

/* ---------------- FAQ ---------------- */
.faq { padding-top: 40px; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq__intro { position: sticky; top: 120px; }
.faq__intro .h2 { margin: 18px 0 22px; }
.faq__intro a, .qa a { color: var(--blue-deep); text-underline-offset: 3px; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; gap: 24px; } .faq__intro { position: static; } }

/* ---------------- FINALE ---------------- */
.finale { position: relative; min-height: 92vh; min-height: 92svh; display: grid; align-items: center; overflow: hidden; text-align: center; padding: 120px 0; }
.finale__bg { position: absolute; inset: 0; }
.finale__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.finale__scrim { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(10,15,28,.55), rgba(10,15,28,.88)), linear-gradient(180deg, var(--paper) 0, rgba(10,15,28,0) 1px); }
.finale__inner { display: grid; justify-items: center; gap: 22px; }
.finale__title { font-size: clamp(56px, 9vw, 136px); }
.finale__title em { color: var(--amber); }
.finale .lede { color: #d0d5e0; }
.notify { font-size: 15px; color: var(--muted-dark); margin: 6px 0 0; }
.notify a { color: var(--amber); text-underline-offset: 3px; }
.notify:focus { outline: none; }
.notify.is-flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 100% { color: var(--muted-dark); } 25% { color: #fff; text-shadow: 0 0 20px rgba(243,182,91,.8); } }

/* Hero intro: hidden until home.js animates it in; a 2.5s CSS fallback reveals it if scripts never run. */
@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__eyebrow, .hero__sub, .hero__ctas, .hero__facts, .hero__phone, .hero__chip {
    visibility: hidden; animation: reveal-fallback 0s 2.5s forwards;
  }
}
@keyframes reveal-fallback { to { visibility: visible; } }
