/* ==========================================================================
   Moveli — official site stylesheet
   Owner: TOTELOAD 82WOOD LINE Inc.
   --------------------------------------------------------------------------
   Palette and geometry are lifted from the Moveli product UI (Figma):
     primary violet   #5B45E8
     CTA gradient     #5B45E8 -> #4ECB7E   (the app's signature control)
     page canvas      #EBECE4              (warm grey-beige app surface)
     cards            #FFFFFF
     accents          orchid #C88CF0 · amber #F0B429 · selected #ECE9FE
   All brand values live in :root. Re-skinning means editing that block only.
   ========================================================================== */

/* ---------- BRAND TOKENS ---------- */
:root {
  /* surfaces */
  --bg:            #EBECE4;
  --bg-soft:       #F3F4EC;
  --bg-lift:       #FFFFFF;
  --surface:       #FFFFFF;
  --surface-2:     #F7F8F2;
  --line:          rgba(22, 22, 16, 0.09);
  --line-strong:   rgba(22, 22, 16, 0.16);

  /* text */
  --text:          #16160F;
  --text-dim:      #62625A;
  --text-faint:    #96968C;

  /* brand */
  --brand:         #5B45E8;
  --brand-deep:    #4A34D4;
  --brand-soft:    #ECE9FE;
  --orchid:        #C88CF0;
  --green:         #4ECB7E;
  --green-soft:    #E2F6EA;
  --amber:         #F0B429;
  --red:           #E5484D;

  --cta:           linear-gradient(96deg, #5B45E8 0%, #4ECB7E 100%);
  --cta-soft:      linear-gradient(96deg, #EDE9FE 0%, #E2F6EA 100%);
  --mesh:          radial-gradient(120% 120% at 8% 4%,  #E7E2FB 0%, transparent 58%),
                   radial-gradient(120% 120% at 92% 20%, #E4F4EC 0%, transparent 56%),
                   radial-gradient(140% 120% at 50% 104%, #F7E7F3 0%, transparent 60%);

  --shadow-sm:     0 1px 2px rgba(22, 22, 16, 0.05);
  --shadow:        0 1px 3px rgba(22, 22, 16, 0.05), 0 12px 28px -14px rgba(22, 22, 16, 0.14);
  --shadow-lg:     0 2px 6px rgba(22, 22, 16, 0.06), 0 32px 60px -28px rgba(22, 22, 16, 0.24);
  --shadow-brand:  0 10px 26px -12px rgba(91, 69, 232, 0.62);

  /* 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(91, 69, 232, 0.22); }

/* ---------- 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 lavender 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: var(--brand-soft);
  color: var(--brand);
  font-style: normal;
  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(110px); }
.bg-fx .b1 { width: 620px; height: 620px; top: -300px; left: -180px; background: radial-gradient(circle, rgba(91,69,232,.20), transparent 66%); }
.bg-fx .b2 { width: 560px; height: 560px; top: -180px; right: -200px; background: radial-gradient(circle, rgba(78,203,126,.20), transparent 66%); }
.bg-fx .b3 { width: 720px; height: 720px; bottom: -460px; left: 30%; background: radial-gradient(circle, rgba(200,140,240,.16), transparent 68%); }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .022;
  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(235, 236, 228, .76);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(235, 236, 228, .92); }
.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; }

.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(22,22,16,.05); }

.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 34px -12px rgba(78,203,126,.72); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: rgba(91,69,232,.4); 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: var(--text); color: #fff;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease);
  box-shadow: var(--shadow);
}
.play-badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.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(255,255,255,.62); }
.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: var(--surface); 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; }

/* ---------- 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: #EFEDE6;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(22,22,16,.07);
}
.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: var(--shadow); }
.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(255,255,255,.94); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 12.5px; font-weight: 700; color: var(--text);
  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(91,69,232,.55); }
.chip.c-green i { background: var(--green); box-shadow: 0 0 10px rgba(78,203,126,.6); }
.chip.c-amber i { background: var(--amber); box-shadow: 0 0 10px rgba(240,180,41,.6); }
.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(--surface); 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: var(--surface);
  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: var(--shadow); border-color: rgba(91,69,232,.24); }

.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-green { background: var(--green-soft); }

/* ---------- TABS ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 36px; }
.tab {
  padding: 10px 18px; border-radius: var(--pill); cursor: pointer;
  font-size: 14.5px; font-weight: 700; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--line);
  transition: all .22s var(--ease);
}
.tab:hover { color: var(--brand); border-color: rgba(91,69,232,.3); }
.tab[aria-selected="true"] { color: #fff; background: var(--cta); border-color: transparent; box-shadow: var(--shadow-brand); }

.tab-panels { margin-top: 22px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.panel-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center;
  padding: 26px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.panel-inner h3 { font-size: 21px; }
.panel-inner p { margin-top: 11px; color: var(--text-dim); font-size: 15px; }
.panel-visual { aspect-ratio: 4 / 3; border-radius: var(--r); position: relative; overflow: hidden; border: 1px solid var(--line); }

/* ---------- 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: var(--surface); 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-sm); border: 1px solid var(--line);
  background: #CDBBA6;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.tpl:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.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(18,14,8,.78));
}
.tpl .new {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 2px 8px; border-radius: var(--pill);
  background: #F2603C; 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: var(--surface); 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: var(--surface-2); color: var(--text-dim); border: 1px solid transparent;
}
.q-opt.on { background: var(--brand-soft); color: var(--brand); border-color: rgba(91,69,232,.28); }

/* ---------- 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: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.cred.hi { border-color: transparent; background: linear-gradient(180deg, var(--orchid) 0%, #A96BE0 42%, #7E52C9 100%); color: #fff; box-shadow: var(--shadow); }
.cred .k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.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: #FFD866; }
.cred .s { margin-top: 6px; font-size: 13px; opacity: .78; }

/* ---------- TRUST ---------- */
.trust {
  border-radius: var(--r-xl); padding: clamp(26px, 4vw, 46px);
  background: var(--surface); 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: var(--surface); 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: .85; 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(91,69,232,.3); }
.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: var(--surface); 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%; }
}

@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(235,236,228,.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, .panel-inner, .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; }
}

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