/* ==========================================================================
   Liberai — official site stylesheet
   Owner: TOTELOAD 82WOOD LINE Inc.
   --------------------------------------------------------------------------
   Palette and geometry are lifted from the Liberai product UI (dark theme):
     page canvas      #0B0E1E
     card surface     #161638
     brand violet     #AB8AF5
     CTA gradient     #AB8AF5 -> #F86FB4   (violet -> pink)
     accent pink      #F86FB4   (destructive / alert)
     secondary text   #9696BA
   All brand values live in :root. Re-skinning means editing that block only.
   ========================================================================== */

/* ---------- BRAND TOKENS ---------- */
:root {
  /* surfaces */
  --bg:            #0B0E1E;
  --bg-soft:       #080A18;
  --bg-lift:       #141634;
  --surface:       #161638;
  --surface-2:     #1E1E48;
  --line:          rgba(180, 176, 255, 0.13);
  --line-strong:   rgba(180, 176, 255, 0.24);

  /* text */
  --text:          #F4F3FB;
  --text-dim:      #A9A8C8;
  --text-faint:    #77769B;

  /* brand */
  --brand:         #AB8AF5;
  --brand-deep:    #8B5CF6;
  --brand-soft:    rgba(171, 138, 245, 0.16);
  --pink:          #F86FB4;
  --pink-soft:     rgba(248, 111, 180, 0.16);
  --violet:        #6D5BD0;
  --violet-soft:   rgba(109, 91, 208, 0.18);
  --amber:         #F5C24B;
  --red:           #FF5C7A;

  --cta:           linear-gradient(96deg, #AB8AF5 0%, #F86FB4 100%);
  --cta-soft:      linear-gradient(96deg, rgba(171,138,245,.22) 0%, rgba(248,111,180,.22) 100%);
  --mesh:          radial-gradient(120% 120% at 8% 4%,  rgba(109,91,208,.28) 0%, transparent 58%),
                   radial-gradient(120% 120% at 92% 20%, rgba(248,111,180,.20) 0%, transparent 56%),
                   radial-gradient(140% 120% at 50% 104%, rgba(88,60,180,.26) 0%, transparent 60%);

  --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:        0 1px 3px rgba(0, 0, 0, 0.45), 0 14px 30px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg:     0 2px 8px rgba(0, 0, 0, 0.5), 0 36px 64px -28px rgba(0, 0, 0, 0.85);
  --shadow-brand:  0 10px 28px -12px rgba(171, 138, 245, 0.55);

  /* geometry */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --pill: 999px;

  /* rhythm */
  --pad-x: clamp(20px, 5vw, 56px);
  --maxw: 1180px;
  --sect-y: clamp(64px, 8vw, 112px);

  /* type */
  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont,
          "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* motion */
  --ease: cubic-bezier(.2, .7, .25, 1);

  --nav-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

::selection { background: rgba(171, 138, 245, 0.4); color: #fff; }

/* ---------- LAYOUT HELPERS ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.sect { padding-block: var(--sect-y); position: relative; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--cta); }

.h-display { font-size: clamp(36px, 6.2vw, 68px); line-height: 1.06; letter-spacing: -0.045em; font-weight: 800; }
.h-sect    { font-size: clamp(27px, 4vw, 44px); }
.h-card    { font-size: 18px; font-weight: 750; letter-spacing: -0.025em; }

.lede { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--text-dim); line-height: 1.62; }
.muted { color: var(--text-dim); }
.small { font-size: 14px; }

/* the violet pill that wraps a key word — straight from the app's onboarding */
.hl {
  display: inline-block;
  padding: 0.04em 0.36em 0.1em;
  border-radius: 0.34em;
  background: rgba(171, 138, 245, 0.13);
  color: var(--brand);
  font-style: normal;
  box-shadow: inset 0 0 0 1px rgba(171, 138, 245, 0.22);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.cta-text {
  background: var(--cta);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- BACKGROUND FX ---------- */
.bg-fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-fx .blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .55; }
.bg-fx .b1 { width: 640px; height: 640px; top: -300px; left: -180px; background: radial-gradient(circle, rgba(109,91,208,.55), transparent 66%); }
.bg-fx .b2 { width: 580px; height: 580px; top: -180px; right: -200px; background: radial-gradient(circle, rgba(248,111,180,.38), transparent 66%); }
.bg-fx .b3 { width: 760px; height: 760px; bottom: -480px; left: 28%; background: radial-gradient(circle, rgba(94,70,200,.42), transparent 68%); }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 2; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: rgba(11, 14, 30, .78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(11, 14, 30, .94); }
.nav .wrap { display: flex; align-items: center; gap: 26px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.04em; }
.brand .mark { width: 28px; height: 28px; flex: none; border-radius: 9px; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--pill);
  font-size: 14.5px; font-weight: 550; color: var(--text-dim);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(171, 138, 245, .12); }

.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
.nav-toggle span + span { margin-top: 4px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 23px; border-radius: var(--pill);
  font-size: 15px; font-weight: 700; letter-spacing: -0.015em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--cta); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { box-shadow: 0 14px 36px -12px rgba(248, 111, 180, .6); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .05); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: rgba(171, 138, 245, .55); color: var(--brand); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center-row { justify-content: center; }

/* ---------- PLAY BADGE ---------- */
.play-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 20px 9px 15px; border-radius: var(--pill);
  background: #fff; color: #0B0E1E;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease);
  box-shadow: var(--shadow-lg);
}
.play-badge:hover { transform: translateY(-1px); box-shadow: 0 20px 46px -18px rgba(171,138,245,.7); }
.play-badge svg { width: 23px; height: 23px; flex: none; }
.play-badge .pb-txt { display: flex; flex-direction: column; line-height: 1.15; }
.play-badge .pb-top { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(11,14,30,.6); }
.play-badge .pb-bot { font-size: 15px; font-weight: 750; }

/* ---------- HERO ---------- */
.hero { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(30px, 4.5vw, 64px); align-items: center; }
.hero h1 { margin-top: 20px; }
.hero .lede { margin-top: 22px; max-width: 33em; }
.hero .btn-row { margin-top: 30px; }

.pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.pill {
  padding: 7px 14px; border-radius: var(--pill);
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}

.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 26px; font-size: 13.5px; font-weight: 550; color: var(--text-faint); }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .55; }

/* ---------- HERO, CENTRED VARIANT ----------
   Liberai deliberately breaks the left-copy / right-phone split: the copy is
   centred, and the store screenshot sits under it edge-to-edge. */
.hero-c { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero-c-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-c h1 { margin-top: 20px; max-width: 16ch; }
.hero-c .lede { margin-top: 22px; max-width: 44em; }
.hero-c .btn-row { margin-top: 32px; }

.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px;
  margin-top: 30px;
}
.hero-trust span {
  padding: 7px 15px; border-radius: var(--pill);
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.hero-c .shot-hero-wide {
  width: min(340px, 82vw); margin: clamp(44px, 6vw, 74px) auto 0;
}

/* ---------- BEFORE / AFTER COMPARISON ---------- */
.cmp { margin-top: 44px; display: grid; gap: 20px; justify-items: center; }

.cmp-stage {
  position: relative; width: min(430px, 92vw); aspect-ratio: 4 / 5;
  border-radius: var(--r-xl); overflow: hidden;
  background: #10132A; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(171, 138, 245, .22);
  touch-action: none;                 /* let the handle own the horizontal drag */
  user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
}
.cmp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* The "before" layer stays full-bleed and is revealed with clip-path, so the
   image never gets squashed by the handle position. --p is set inline (0-100%). */
.cmp-clip {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--p, 50%)) 0 0);
}

.cmp-tag {
  position: absolute; top: 14px; z-index: 4;
  padding: 5px 12px; border-radius: var(--pill);
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(8, 10, 24, .78); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); pointer-events: none;
}
.cmp-tag-l { left: 14px; }
.cmp-tag-r { right: 14px; color: var(--brand); border-color: rgba(171, 138, 245, .42); }

.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 5;
  width: 3px; margin-left: -1.5px;
  background: linear-gradient(180deg, rgba(171,138,245,.2), var(--brand) 12%, var(--brand) 88%, rgba(248,111,180,.2));
  box-shadow: 0 0 18px rgba(171, 138, 245, .55);
  cursor: ew-resize;
}
.cmp-handle:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.cmp-knob {
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #0B0E1E;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(171, 138, 245, .5);
}
.cmp-knob svg { width: 22px; height: 22px; }

.cmp-picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cmp-pick {
  padding: 9px 17px; border-radius: var(--pill); cursor: pointer;
  font-size: 13.4px; font-weight: 650; color: var(--text-dim);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.cmp-pick:hover { color: var(--text); border-color: var(--line-strong); }
.cmp-pick.is-on { background: var(--brand-soft); color: var(--brand); border-color: rgba(171, 138, 245, .45); }

.cmp-note { margin-top: 18px; text-align: center; font-size: 13.4px; color: var(--text-faint); }

/* ---------- ALTERNATING FEATURE ROWS ---------- */
.rows { display: grid; gap: clamp(38px, 6vw, 76px); margin-top: clamp(38px, 5vw, 60px); }
.row-item {
  display: grid; grid-template-columns: 1fr .78fr; gap: clamp(26px, 5vw, 64px);
  align-items: center;
}
.row-item.flip .row-copy { order: 2; }
.row-item.flip .row-art  { order: 1; }

.row-copy .num {
  display: block;
  font-size: 12px; font-weight: 800; letter-spacing: .16em;
  background: var(--cta); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.row-copy h3 { margin-top: 12px; font-size: clamp(21px, 2.4vw, 27px); }
.row-copy p { margin-top: 12px; color: var(--text-dim); font-size: 16px; max-width: 36em; }
.row-tag {
  display: inline-block; margin-top: 18px;
  padding: 5px 13px; border-radius: var(--pill);
  font-size: 11.5px; font-weight: 750; letter-spacing: .05em;
  color: var(--brand); background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(171, 138, 245, .24);
}
.row-art { display: flex; justify-content: center; }
.row-art .shot {
  width: min(248px, 62vw); border-radius: 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.row-item:hover .row-art .shot { transform: translateY(-5px); box-shadow: 0 22px 50px -20px rgba(171, 138, 245, .62); }

/* ---------- HORIZONTAL TEMPLATE RAIL ---------- */
.tpl-rail-wrap { position: relative; margin-top: 34px; }
.tpl-rail {
  --rail-pad: max(var(--pad-x), calc((100vw - var(--maxw)) / 2 + var(--pad-x)));
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding-inline: var(--rail-pad); padding-bottom: 12px;
  /* without this the first card snaps past the padding and scrollLeft starts at ~186,
     which makes the "previous" arrow look active on a fresh page load */
  scroll-padding-left: var(--rail-pad);
  -webkit-overflow-scrolling: touch;
}
.tpl-rail::-webkit-scrollbar { height: 5px; }
.tpl-rail::-webkit-scrollbar-track { background: rgba(255, 255, 255, .05); border-radius: 3px; }
.tpl-rail::-webkit-scrollbar-thumb { background: rgba(171, 138, 245, .38); border-radius: 3px; }
.tpl-rail .tpl { flex: 0 0 clamp(158px, 17vw, 208px); scroll-snap-align: start; }

.tpl-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-inline: var(--pad-x); }
.tpl-arrow {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); color: var(--text); border: 1px solid var(--line-strong);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.tpl-arrow:hover { color: var(--brand); border-color: rgba(171, 138, 245, .55); background: rgba(171, 138, 245, .1); }
.tpl-arrow svg { width: 19px; height: 19px; }
.tpl-arrow[disabled] { opacity: .35; cursor: default; }
.tpl-arrow[disabled]:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, .05); }

/* ---------- PROMISE GRID (full-bleed band) ---------- */
.sect-band { background: var(--bg-lift); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.promise {
  padding: 24px 20px 26px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(30, 30, 72, .5) 0%, rgba(22, 22, 56, .75) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.promise svg { width: 22px; height: 22px; }
.promise h3 { margin-top: 14px; font-size: 16.5px; font-weight: 750; letter-spacing: -0.02em; }
.promise p { margin-top: 8px; font-size: 14.4px; color: var(--text-dim); }

/* ---------- APP SCREENS (real store art) ---------- */
.phone-stage { position: relative; display: flex; justify-content: center; }

.shot {
  position: relative; margin: 0; display: block;
  border-radius: 28px; overflow: hidden; background: #10132A;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(171, 138, 245, .22), 0 0 60px -18px rgba(171, 138, 245, .5);
}
.shot img { display: block; width: 100%; height: auto; }
.shot-hero { width: min(294px, 74vw); animation: float 7.5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

/* rail of real screens */
.shot-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.6vw, 20px); margin-top: 52px; }
.shot-cell { margin: 0; }
.shot-cell .shot { border-radius: 20px; transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.shot-cell:hover .shot { transform: translateY(-5px); box-shadow: 0 18px 44px -18px rgba(171, 138, 245, .7); }
.shot-cell figcaption { margin-top: 16px; }
.shot-cell figcaption b { display: block; font-size: 14.5px; font-weight: 750; letter-spacing: -0.02em; }
.shot-cell figcaption span { display: block; margin-top: 5px; font-size: 13px; line-height: 1.5; color: var(--text-faint); }

/* floating chips beside the hero phone */
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--pill);
  background: rgba(22, 22, 56, .92); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  font-size: 12.5px; font-weight: 700; color: var(--text);
  backdrop-filter: blur(12px);
  animation: float2 6.5s ease-in-out infinite;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px rgba(171,138,245,.85); }
.chip.c-pink i { background: var(--pink); box-shadow: 0 0 10px rgba(248,111,180,.85); }
.chip.c-amber i { background: var(--amber); box-shadow: 0 0 10px rgba(245,194,75,.7); }
.chip-1 { top: 13%;  left: -5%;  animation-delay: .2s; }
.chip-2 { top: 47%;  right: -7%; animation-delay: 1.1s; }
.chip-3 { bottom: 12%; left: 0%;  animation-delay: 2s; }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- STRIP ---------- */
.strip { background: var(--bg-lift); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px; }
.strip .stat b { display: block; font-size: 15.5px; font-weight: 750; letter-spacing: -0.02em; }
.strip .stat span { font-size: 13px; color: var(--text-faint); }

/* ---------- SECTION HEAD ---------- */
.sect-head { max-width: 660px; }
.sect-head.center { margin-inline: auto; }
.sect-head .h-sect { margin-top: 14px; }
.sect-head .lede { margin-top: 14px; }

/* ---------- CARD GRIDS ---------- */
.grid { display: grid; gap: 16px; margin-top: 44px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; padding: 24px 22px 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(30, 30, 72, .55) 0%, rgba(22, 22, 56, .75) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -22px rgba(171, 138, 245, .55); border-color: rgba(171, 138, 245, .38); }

.card .num {
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  background: var(--cta); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card h3 { margin-top: 12px; }
.card p { margin-top: 9px; color: var(--text-dim); font-size: 14.6px; }

.icon-box {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center; margin-top: 14px;
  background: var(--brand-soft);
}
.icon-box svg { width: 21px; height: 21px; }
.icon-box.i-pink { background: var(--pink-soft); }
.icon-box.i-violet { background: var(--violet-soft); }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.step {
  position: relative; padding: 26px 22px 28px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(30, 30, 72, .5) 0%, rgba(22, 22, 56, .7) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step .n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-size: 14px; font-weight: 800; background: var(--cta); color: #fff;
}
.step h3 { margin-top: 16px; font-size: 17.5px; }
.step p { margin-top: 8px; color: var(--text-dim); font-size: 14.6px; }

/* ---------- TEMPLATE GALLERY ---------- */
.gallery { margin-top: 34px; }
.gallery-row + .gallery-row { margin-top: 30px; }
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.gallery-head h3 { font-size: 17px; }
.gallery-head span { font-size: 13.5px; font-weight: 650; color: var(--brand); }
.tpl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tpl {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
  background: #161638;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.tpl:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -18px rgba(171, 138, 245, .6); }
.tpl::after {
  content: attr(data-name);
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 9px 9px; font-size: 11.5px; font-weight: 700; color: #fff;
  background: linear-gradient(transparent, rgba(6, 6, 16, .86));
}
.tpl .new {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 2px 8px; border-radius: var(--pill);
  background: var(--pink); color: #fff; font-size: 10px; font-weight: 800;
}
.tpl img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- ONBOARDING SPOTLIGHT ---------- */
.onboard { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.q-stack { display: grid; gap: 12px; }
.q-card {
  background: linear-gradient(180deg, rgba(30, 30, 72, .5) 0%, rgba(22, 22, 56, .72) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.q-card h4 { font-size: 16.5px; font-weight: 750; }
.q-card h4 .hl { font-size: inherit; }
.q-card .q-sub { margin-top: 6px; font-size: 13px; color: var(--text-faint); }
.q-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.q-opt {
  padding: 7px 14px; border-radius: var(--pill); font-size: 13px; font-weight: 650;
  background: rgba(255, 255, 255, .05); color: var(--text-dim); border: 1px solid transparent;
}
.q-opt.on { background: var(--brand-soft); color: var(--brand); border-color: rgba(171, 138, 245, .4); }

/* ---------- CREDITS ---------- */
.credits-card {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px;
}
.cred {
  padding: 22px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(30, 30, 72, .5) 0%, rgba(22, 22, 56, .72) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.cred.hi { border-color: transparent; background: var(--cta); color: #fff; box-shadow: var(--shadow-brand); }
.cred .k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .74; }
.cred .v { margin-top: 12px; font-size: 26px; font-weight: 800; letter-spacing: -0.035em; display: flex; align-items: center; gap: 8px; }
.cred .v::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--amber); box-shadow: inset 0 -2px 0 rgba(0,0,0,.14); flex: none; }
.cred.hi .v::before { background: #FFE9A8; }
.cred .s { margin-top: 6px; font-size: 13px; opacity: .8; }

/* ---------- TRUST ---------- */
.trust {
  border-radius: var(--r-xl); padding: clamp(26px, 4vw, 46px);
  background: linear-gradient(180deg, rgba(30, 30, 72, .45) 0%, rgba(16, 16, 40, .8) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.trust-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(22px, 4vw, 50px); align-items: start; }
.trust ul { display: grid; gap: 13px; }
.trust li { display: flex; gap: 12px; font-size: 15px; color: var(--text-dim); }
.trust li svg { width: 19px; height: 19px; flex: none; margin-top: 3px; }
.trust li b { color: var(--text); font-weight: 750; }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: var(--r); background: rgba(22, 22, 56, .6); overflow: hidden; box-shadow: var(--shadow-sm); }
.qa summary {
  cursor: pointer; list-style: none; padding: 17px 20px;
  font-size: 15.5px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 20px; font-weight: 600; color: var(--brand); transition: transform .25s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa .qa-body { padding: 0 20px 19px; color: var(--text-dim); font-size: 14.8px; }
.qa .qa-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- CTA BAND ---------- */
.cta-band {
  border-radius: var(--r-xl); padding: clamp(34px, 5vw, 62px) clamp(22px, 4vw, 54px);
  text-align: center; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: var(--mesh); opacity: .9; pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band .btn-row { margin-top: 28px; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 100px); padding-top: 52px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 34px; }
.footer h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); font-weight: 800; }
.footer ul { margin-top: 15px; display: grid; gap: 10px; }
.footer a:hover { color: var(--brand); }
.footer .fl { font-size: 14.6px; color: var(--text-dim); }

.entity { margin-top: 15px; font-size: 14px; color: var(--text-dim); line-height: 1.75; }
.entity b { color: var(--text); font-weight: 750; }
.entity address { font-style: normal; }
.entity a { color: var(--brand); }

.legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; }
.legal-links a { color: var(--brand); font-weight: 650; }

.footer-bottom {
  margin-top: 44px; padding-block: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 13.4px; color: var(--text-faint);
}

/* ---------- LEGAL / DOC PAGES ---------- */
.doc-hero { padding-top: clamp(42px, 5vw, 72px); padding-bottom: 8px; }
.doc { max-width: 820px; padding-bottom: clamp(56px, 7vw, 96px); }
.doc h2 { font-size: 22.5px; margin-top: 42px; }
.doc h3 { font-size: 17px; margin-top: 26px; }
.doc p, .doc li { color: var(--text-dim); font-size: 15.4px; margin-top: 12px; }
.doc ul { margin-top: 12px; }
.doc ul li { position: relative; padding-left: 20px; }
.doc ul li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.doc a { color: var(--brand); font-weight: 600; border-bottom: 1px solid rgba(171, 138, 245, .4); }
.doc a:hover { border-bottom-color: var(--brand); }
.doc .meta { font-size: 13.6px; color: var(--text-faint); margin-top: 14px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14.6px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text-dim); vertical-align: top; }
.doc th { color: var(--text); font-weight: 700; width: 160px; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; }
.contact-card { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(22, 22, 56, .6); box-shadow: var(--shadow-sm); }
.contact-card .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); }
.contact-card .ico svg { width: 19px; height: 19px; }
.contact-card h3 { margin-top: 15px; font-size: 16.5px; }
.contact-card p { margin-top: 8px; color: var(--text-dim); font-size: 14.8px; }
.contact-card a { color: var(--brand); font-weight: 650; }

/* ---------- REVEAL ---------- */
/* Scoped to .js so the content stays visible if scripts never run. */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .phone-float, .chip { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero .lede { max-width: none; }
  .phone-stage { order: -1; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3, .steps, .credits-card { grid-template-columns: repeat(2, 1fr); }
  .tpl-grid { grid-template-columns: repeat(4, 1fr); }
  .shot-rail { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid, .onboard { grid-template-columns: 1fr; }
  .chip-1 { left: -2%; }
  .chip-2 { right: -3%; }
  /* alternating rows stack, but keep the artwork on the copy's dominant side */
  .row-item { grid-template-columns: 1fr 1fr; gap: 28px; }
  .row-item.flip .row-copy { order: 1; }
  .row-item.flip .row-art  { order: 2; }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --nav-h: 66px; }
  /* copy first on phones — the headline should be the first thing seen */
  .phone-stage { order: 0; }
  .shot-hero { width: min(238px, 62vw); }
  .chip { font-size: 11.5px; padding: 7px 12px; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--pad-x) 20px;
    background: rgba(11, 14, 30, .98); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .g-2, .g-3, .g-4, .steps, .contact-grid, .credits-card { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  /* the screen rail becomes a swipeable strip on phones */
  .shot-rail {
    display: flex; overflow-x: auto; gap: 14px; margin-inline: calc(var(--pad-x) * -1);
    padding-inline: var(--pad-x); padding-bottom: 10px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .shot-rail::-webkit-scrollbar { display: none; }
  .shot-cell { flex: 0 0 62%; scroll-snap-align: start; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .doc th { width: auto; }

  /* centred hero: cap the display size so it doesn't wrap to four lines */
  .hero-c h1 { max-width: 12ch; }
  .hero-c .shot-hero-wide { width: min(250px, 62vw); }
  .hero-trust span { font-size: 12.2px; padding: 6px 12px; }

  /* comparison stage grows to fill the phone — the pair stays readable */
  .cmp-stage { width: min(400px, 94vw); }
  .cmp-knob { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .cmp-knob svg { width: 19px; height: 19px; }

  .row-item, .row-item.flip { grid-template-columns: 1fr; gap: 22px; }
  .row-item.flip .row-copy { order: 1; }
  .row-item.flip .row-art  { order: 2; }
  .row-art .shot { width: min(220px, 58vw); }
  .row-copy p { font-size: 15.2px; }

  .tpl-rail .tpl { flex-basis: 42vw; }
  .promise-grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 400px) {
  .btn { padding: 12px 18px; font-size: 14.4px; }
  .h-display { font-size: 33px; }
}
