/* =========================================================
   Luma premium — shared page components
   Full footer · nav login · sub-page hero · tools · blog hub · login chooser
   Reuses tokens + .wrap/.btn/.kicker/.h2/.reveal from app.css
   ========================================================= */

/* hidden must beat class-level display (qr-frame/qr-empty set display explicitly) */
[hidden] { display: none !important; }

/* ============================================================
   HERO — Level 3 elevation (cinematic backdrop, entrance, mockup)
   ============================================================ */
.hero { background: radial-gradient(42% 32% at 12% 16%, rgba(244,182,63,.07), transparent 60%); }
.hero::after { animation: heroGlow 11s ease-in-out infinite; }
@keyframes heroGlow { 0%,100% { transform: translate(0,0) scale(1); opacity: 1; } 50% { transform: translate(-3%,2.5%) scale(1.1); opacity: .82; } }

/* entrance choreography — pure CSS, plays on load, zero JS dependency */
.hero-copy > * { animation: heroIn .7s var(--ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .12s; }
.hero-copy > *:nth-child(3) { animation-delay: .20s; }
.hero-copy > *:nth-child(4) { animation-delay: .28s; }
.hero-copy > *:nth-child(5) { animation-delay: .36s; }
.hero .gen-canvas { animation: heroIn .9s var(--ease) .28s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* idle canvas → clean stage for the product mockup */
.canvas-idle { border: none; background: transparent; min-height: 460px; }

/* floating product mockup */
.hero-mock { position: relative; width: min(420px, 100%); }
.hm-window { animation: hmFloat 6.5s ease-in-out infinite; will-change: transform; }
.hm-card { position: absolute; inset-block-end: -28px; inset-inline-start: -26px; width: 234px; animation: hmFloat 6.5s ease-in-out infinite reverse; will-change: transform; }
.hm-toast { position: absolute; inset-block-start: -14px; inset-inline-end: -12px; z-index: 4; display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 14px; padding: 10px 14px; font-size: .88rem; font-weight: 600; color: var(--navy); animation: hmFloat 5.5s ease-in-out infinite; }
.hm-toast .td { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(15,159,110,.18); flex: none; }
@keyframes hmFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* scroll cue */
.hero-cue { position: absolute; z-index: 2; inset-block-end: clamp(20px, 4vh, 40px); inset-inline-start: 50%; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.hero-cue svg { width: 20px; height: 20px; animation: cueBob 1.7s ease-in-out infinite; }
@keyframes cueBob { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(5px); opacity: 1; } }

@media (max-width: 920px) { .hm-card { inset-inline-start: auto; inset-inline-end: -8px; width: 200px; } .hero-cue { display: none; } }
@media (max-width: 540px) { .hm-card, .hm-toast { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero .gen-canvas { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero::after, .hm-window, .hm-card, .hm-toast, .hero-cue svg { animation: none !important; }
}

/* ---------- motion engine: scroll progress + reveal stagger ---------- */
.scroll-prog { position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-prog i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: right; background: linear-gradient(90deg, var(--amber), var(--blue2), var(--blue)); }
.btn-solid, .btn-login { will-change: transform; }
/* staggered reveals inside key grids */
.bento .cell.reveal:nth-child(2) { transition-delay: .07s; }
.bento .cell.reveal:nth-child(3) { transition-delay: .14s; }
.bento .cell.reveal:nth-child(4) { transition-delay: .21s; }
.bento .cell.reveal:nth-child(5) { transition-delay: .28s; }
.bento .cell.reveal:nth-child(6) { transition-delay: .35s; }
.steps .step.reveal:nth-child(2) { transition-delay: .08s; }
.steps .step.reveal:nth-child(3) { transition-delay: .16s; }
.steps .step.reveal:nth-child(4) { transition-delay: .24s; }
.steps .step.reveal:nth-child(5) { transition-delay: .32s; }
.blog-grid .post.reveal:nth-child(2) { transition-delay: .08s; }
.blog-grid .post.reveal:nth-child(3) { transition-delay: .16s; }
.blog-grid .post.reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .scroll-prog { display: none; } }

/* ---------- nav: login + tools ---------- */
.nav-right .btn-login {
  height: 44px; padding-inline: 18px; font-size: .95rem; font-weight: 600;
  background: transparent; color: var(--navy); border: 1px solid var(--border);
}
.nav-right .btn-login:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 620px) { .nav-right .btn-login { display: none; } }

/* ---------- mobile nav (burger + slide-down menu) ---------- */
.nav-burger { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger span { width: 22px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; }
.nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav.menu-open { background: rgba(255,253,248,.96); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 1px 0 var(--border); }
.nav-menu { display: none; flex-direction: column; padding: 6px var(--pad) 18px; }
.nav.menu-open .nav-menu { display: flex; animation: navMenuIn .28s var(--ease) both; }
@keyframes navMenuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nav-menu a { padding: 14px 6px; font-size: 1.05rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--border); }
.nav-menu a:last-child { border-bottom: none; }
.nav-menu .nav-menu-cta { margin-top: 12px; background: var(--navy); color: #fff; border-radius: 14px; text-align: center; }
@media (max-width: 920px) {
  .nav-burger { display: flex; }
  .nav-right { display: none; }
}

/* ---------- sub-page hero ---------- */
.page-hero { position: relative; padding-block: clamp(118px, 16vh, 168px) clamp(40px, 6vh, 64px); overflow: hidden; text-align: center; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 62%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 62%);
}
.page-hero > .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; }
.page-hero h1 .grad { background: linear-gradient(100deg, var(--blue), var(--blue2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { margin: 18px auto 0; text-align: center; }
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 20px;
}
.page-hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
/* sub-page hero entrance (pure CSS, reuses heroIn keyframe) */
.page-hero .eyebrow, .page-hero h1, .page-hero .lead { animation: heroIn .7s var(--ease) both; }
.page-hero h1 { animation-delay: .08s; }
.page-hero .lead { animation-delay: .17s; }

/* ---------- TOOLS ---------- */
.tools-sec { padding-block: clamp(8px, 2vh, 18px) var(--sect); }
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 22px; align-items: start;
}
.tool { grid-column: span 1; }
.tool.feature { grid-column: 1 / -1; }

.tool-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  height: 100%;
}
.tool-card:hover { box-shadow: var(--shadow); border-color: #cfdcfb; }
.tool-card .tc-head { display: flex; align-items: center; gap: 13px; padding: 22px 24px 18px; border-bottom: 1px solid var(--border); }
.tool-card .tc-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--tint); color: var(--blue); }
.tool-card .tc-ico svg { width: 23px; height: 23px; }
.tool-card .tc-ico.green { background: #dcfce7; color: #15803d; }
.tool-card .tc-ico.amber { background: #fef9c3; color: #a16207; }
.tool-card .tc-ico.violet { background: #e0e7ff; color: #4f46e5; }
.tool-card .tc-ico.pink { background: #fce7f3; color: #be185d; }
.tool-card .tc-head h3 { font-size: 1.18rem; font-weight: 600; }
.tool-card .tc-head p { color: var(--muted); font-size: .9rem; font-weight: 400; margin-top: 2px; line-height: 1.4; }
.tool-card .tc-body { padding: 20px 24px 24px; }

.feature .tool-card .tc-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .feature .tool-card .tc-body { grid-template-columns: 1fr; } }

/* fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; color: var(--navy); background: var(--surface);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 64px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30,99,255,.12); }
.field .hint { font-size: .78rem; color: var(--muted); }
.field .hint a { color: var(--blue); font-weight: 600; }
.field.ltr input { direction: ltr; text-align: left; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }

.tool-btn {
  width: 100%; height: 48px; border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  box-shadow: 0 10px 26px -12px rgba(30,99,255,.6); transition: transform .2s var(--ease), box-shadow .2s;
}
.tool-btn:hover { transform: translateY(-2px); }
.tool-btn.green { background: linear-gradient(135deg, #16a34a, #15803d); box-shadow: 0 10px 26px -12px rgba(22,163,74,.6); }
.tool-btn.amber { background: linear-gradient(135deg, #ca8a04, #a16207); box-shadow: 0 10px 26px -12px rgba(202,138,4,.6); }
.tool-btn.violet { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 10px 26px -12px rgba(99,102,241,.6); }
.tool-btn.pink { background: linear-gradient(135deg, #db2777, #be185d); box-shadow: 0 10px 26px -12px rgba(219,39,119,.6); }

/* result blocks */
.res { margin-top: 18px; animation: rIn .4s var(--ease) both; }
.res[hidden] { display: none; }
.code-line {
  display: block; background: var(--tint2); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .82rem;
  color: var(--navy); direction: ltr; word-break: break-all; text-align: left;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding-inline: 15px;
  border-radius: 999px; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: .86rem;
  border: 1px solid var(--border); background: var(--surface); color: var(--navy); transition: all .18s;
}
.chip-btn:hover { border-color: var(--blue); color: var(--blue); }
.chip-btn.is-ok { background: #dcfce7; border-color: #86efac; color: #15803d; }
.chip-btn svg { width: 15px; height: 15px; }

/* QR card */
.qr-card { text-align: center; }
.qr-frame {
  display: inline-block; padding: 14px; background: #fff; border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-sm);
}
.qr-frame img { width: 190px; height: 190px; border-radius: 8px; }
.qr-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.qr-empty {
  display: grid; place-items: center; gap: 10px; min-height: 230px; text-align: center;
  border: 1.5px dashed var(--border); border-radius: 18px; color: var(--muted);
  background: linear-gradient(180deg, var(--surface), var(--tint2)); padding: 24px;
}
.qr-empty svg { width: 40px; height: 40px; color: #c4d2f3; }

/* greeting bubble */
.bubble {
  background: var(--tint2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-top: 4px;
}
.bubble .bb-top { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; padding: 10px 16px; font-size: .85rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.bubble .bb-body { padding: 16px; font-size: .95rem; line-height: 1.8; white-space: pre-wrap; color: var(--navy); }

/* ROI result */
.roi-out { margin-top: 18px; animation: rIn .4s var(--ease) both; }
.roi-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.roi-stat { background: var(--tint2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 8px; text-align: center; }
.roi-stat b { font-family: var(--font-head); font-size: 1.5rem; color: var(--blue); display: block; line-height: 1.1; }
.roi-stat span { font-size: .72rem; color: var(--muted); margin-top: 4px; display: block; line-height: 1.35; }
.roi-cta { margin-top: 12px; background: var(--navy); border-radius: 14px; padding: 16px; text-align: center; color: #fff; }
.roi-cta b { font-family: var(--font-head); font-size: 1.02rem; display: block; }
.roi-cta span { color: rgba(255,255,255,.72); font-size: .88rem; display: block; margin: 4px 0 12px; }
.roi-cta a { display: inline-flex; background: #fff; color: var(--navy); padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.roi-cta a:hover { background: var(--amber); }

/* ---------- TOOLS lead gate + lock ---------- */
.tools-gate {
  max-width: 680px; margin: 0 auto clamp(28px, 4vw, 44px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow);
}
.tools-gate.done { display: none; }
.tools-gate .tg-head { background: linear-gradient(135deg, var(--navy), var(--navy2)); padding: 22px 28px; }
.tools-gate .tg-head .tg-badges { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.tools-gate .tg-head .tg-pill { background: var(--amber); color: #5a3d00; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 11px; }
.tools-gate .tg-head .tg-step { color: #9db8ff; font-size: 12.5px; font-weight: 700; }
.tools-gate .tg-head h2 { color: #fff; font-size: 1.4rem; font-weight: 600; }
.tools-gate .tg-head p { color: rgba(255,255,255,.72); font-size: .92rem; margin-top: 4px; }
.tools-gate .tg-body { padding: 24px 28px 26px; }
.tools-gate .field-row { margin-bottom: 0; }
.tools-gate .tg-consent { display: flex; gap: 9px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin: 14px 0; cursor: pointer; }
.tools-gate .tg-consent input { width: 16px; height: 16px; margin-top: 3px; flex: none; cursor: pointer; }
.tools-gate .tg-consent a { color: var(--blue); font-weight: 600; }
.tools-gate .tg-trust { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 14px; }
.tools-gate .tg-err { background: #fff0f0; border: 1px solid #fca5a5; color: var(--danger); border-radius: 10px; padding: 9px 13px; font-size: .88rem; font-weight: 600; margin-bottom: 12px; }
.tools-gate .tg-err:empty { display: none; }
.tools-gate .tg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tools-locker { position: relative; }
.tools-locker.is-locked .tools-grid { filter: blur(6px) saturate(.65); pointer-events: none; user-select: none; opacity: .85; transition: filter .3s; }
.tools-locker .lock-veil { display: none; }
.tools-locker.is-locked .lock-veil {
  display: flex; position: absolute; inset: 0; z-index: 6; justify-content: center; align-items: flex-start;
  padding-top: clamp(40px, 9vw, 90px); cursor: pointer;
}
.tools-locker.is-locked .lock-veil .lv-card {
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  border-radius: 18px; padding: 20px 26px; text-align: center; max-width: 320px;
}
.tools-locker .lv-card .lv-ico { font-size: 30px; margin-bottom: 6px; }
.tools-locker .lv-card b { font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; display: block; }
.tools-locker .lv-card span { font-size: .86rem; color: var(--muted); display: block; margin-top: 4px; }

/* tools bottom CTA */
.tools-cta { margin-top: clamp(36px, 5vw, 54px); }

/* ---------- index inline lead form (CTA) ---------- */
.cta-form { margin-top: 26px; display: grid; gap: 12px; max-width: 440px; margin-inline: auto; text-align: start; }
.cta-form .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 460px) { .cta-form .cf-row { grid-template-columns: 1fr; } }
.cta-form input {
  width: 100%; height: 50px; border-radius: 14px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1); padding-inline: 16px; color: #fff; font-family: var(--font-body); font-size: 1rem;
  outline: none; transition: border-color .18s, background .18s;
}
.cta-form input::placeholder { color: rgba(255,255,255,.6); }
.cta-form input:focus { border-color: #fff; background: rgba(255,255,255,.16); }
.cta-form .cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.cta-form .btn-solid { width: 100%; height: 52px; }
.cta-form .cf-msg { font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.cta-form .cf-msg.ok { color: #7ef0bf; }
.cta-form .cf-msg.err { color: #ffb4b4; }
.cta-form .cf-wa { display: none; }
.cta-form .cf-wa.show { display: inline-flex; }
.cta-note { color: rgba(255,255,255,.6); font-size: .8rem; margin-top: 4px; text-align: center; }

/* ---------- BLOG HUB ---------- */
.hub-sec { padding-block: clamp(8px, 2vh, 18px) var(--sect); }
.hub-filters { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: clamp(28px, 4vw, 40px); }
.filter {
  height: 38px; padding-inline: 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  font-family: var(--font-body); font-size: .9rem; font-weight: 600; transition: all .18s var(--ease);
}
.filter:hover { border-color: #c4d2f3; color: var(--navy); }
.filter.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.hub-card {
  display: flex; flex-direction: column; gap: 11px; padding: 24px; border: 1px solid var(--border);
  border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.hub-card:hover { transform: translateY(-4px); border-color: #cfdcfb; box-shadow: var(--shadow); }
.hub-card .hc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hub-card .hc-emoji { font-size: 1.7rem; line-height: 1; }
.hub-card .hc-cat { font-size: .72rem; font-weight: 700; color: var(--blue); background: var(--tint); padding: 4px 11px; border-radius: 999px; }
.hub-card h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
.hub-card p { color: var(--muted); font-weight: 300; font-size: .92rem; line-height: 1.55; flex: 1; }
.hub-card .hc-meta { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hub-card .hc-go { color: var(--blue); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 5px; }

/* ---------- LOGIN CHOOSER ---------- */
.login-sec { padding-block: clamp(8px, 2vh, 18px) var(--sect); }
.login-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; max-width: 760px; margin-inline: auto; }
.login-card {
  display: flex; flex-direction: column; gap: 14px; padding: 34px 30px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.login-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdcfb; }
.login-card.admin { background: linear-gradient(150deg, var(--navy), var(--navy2)); border-color: transparent; color: #fff; }
.login-card .lc-ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--tint); color: var(--blue); }
.login-card.admin .lc-ico { background: rgba(255,255,255,.12); color: #fff; }
.login-card .lc-ico svg { width: 28px; height: 28px; }
.login-card h2 { font-size: 1.45rem; font-weight: 600; }
.login-card.admin h2 { color: #fff; }
.login-card p { color: var(--muted); font-weight: 300; line-height: 1.6; flex: 1; }
.login-card.admin p { color: rgba(255,255,255,.72); }
.login-card .btn { width: 100%; }
.login-card.admin .btn-solid { background: #fff; color: var(--navy); }
.login-card.admin .btn-solid:hover { background: var(--amber); }
.login-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 26px; }
.login-note a { color: var(--blue); font-weight: 600; }

/* ---------- JOURNEY — Luma customer path (scroll-driven narrative) ---------- */
.journey-sec { background: var(--surface); border-block: 1px solid var(--border); padding-top: var(--sect); }
.journey-intro { text-align: center; max-width: 720px; }
.journey-intro .kicker { justify-content: center; }
.journey-intro .lead { margin-inline: auto; text-align: center; }

.journey { position: relative; height: 440vh; }
.jn-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 46px); overflow: hidden; }
.jn-aura { position: absolute; inset: 0; z-index: 0; transition: background .8s var(--ease); background: radial-gradient(58% 50% at 72% 28%, rgba(30,99,255,.10), transparent 70%); }
.jn-sticky.s1 .jn-aura { background: radial-gradient(58% 50% at 72% 28%, rgba(201,51,67,.13), transparent 70%); }
.jn-sticky.s2 .jn-aura { background: radial-gradient(62% 56% at 50% 42%, rgba(30,99,255,.20), transparent 70%); }
.jn-sticky.s3 .jn-aura { background: radial-gradient(58% 50% at 28% 30%, rgba(15,159,110,.13), transparent 70%); }

/* progress rail */
.jn-rail { position: relative; z-index: 2; width: 100%; max-width: 600px; margin-inline: auto; padding-inline: var(--pad); display: flex; justify-content: space-between; padding-top: 12px; }
.jn-line { position: absolute; top: 18px; inset-inline: calc(var(--pad) + 10%); height: 2px; background: var(--border); border-radius: 2px; }
.jn-line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--blue2)); border-radius: 2px; transition: width .15s linear; }
.jn-step { position: relative; z-index: 2; background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 9px; font-family: var(--font-body); }
.jn-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); transition: all .3s var(--ease); }
.jn-step.done .jn-dot { background: var(--blue); border-color: var(--blue); }
.jn-step.is-on .jn-dot { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px rgba(30,99,255,.16); }
.jn-lbl { font-size: .84rem; font-weight: 700; color: var(--muted); transition: color .3s; white-space: nowrap; }
.jn-step.is-on .jn-lbl, .jn-step.done .jn-lbl { color: var(--navy); }

/* stages (stacked, cross-fade) */
.jn-stages { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); display: grid; }
.jn-stage { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; opacity: 0; pointer-events: none; transition: opacity .55s var(--ease); }
.jn-stage.is-on { opacity: 1; pointer-events: auto; }
.jn-copy .jn-tag { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--blue); margin-bottom: 14px; }
.jn-copy h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -.02em; }
.jn-copy h3 .grad { background: linear-gradient(100deg, var(--blue), var(--blue2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jn-copy p { color: var(--muted); font-weight: 300; font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.7; margin-top: 16px; max-width: 42ch; }
.jn-stage .jn-copy, .jn-stage .jn-visual { transform: translateY(22px); opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.jn-stage.is-on .jn-copy { transform: none; opacity: 1; transition-delay: .06s; }
.jn-stage.is-on .jn-visual { transform: none; opacity: 1; transition-delay: .13s; }
.jn-visual { display: grid; place-items: center; }
.jn-card { width: min(440px, 100%); }

/* stage 1 — profile form */
.jn-form { padding: 18px; display: grid; gap: 10px; }
.jn-field { display: flex; align-items: center; gap: 10px; background: var(--tint2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.jn-field span { font-size: .8rem; color: var(--muted); min-width: 62px; }
.jn-field b { font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--navy); flex: 1; }
.jn-field em { font-style: normal; color: var(--ok); font-weight: 800; }
.jn-field.typing { border-color: #c4d2f3; background: #fff; }
.jn-field.typing b { color: var(--blue); }
.jn-field .caret { width: 2px; height: 16px; background: var(--blue); display: inline-block; animation: jnblink 1s steps(1) infinite; }
@keyframes jnblink { 50% { opacity: 0; } }

/* stage 2 — pains */
.jn-pains { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(460px, 100%); }
@media (max-width: 520px) { .jn-pains { grid-template-columns: 1fr; } }
.jn-pain { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.jn-pi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; flex: none; }
.jn-pi.danger { background: #fdecec; color: var(--danger); }
.jn-pi.warn { background: #fff5e6; color: #b9791d; }
.jn-pain b { display: block; font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--navy); }
.jn-pain span { font-size: .8rem; color: var(--muted); }

/* stage 3 — AI build */
.jn-build { position: relative; width: min(360px, 78vw); aspect-ratio: 1; margin-inline: auto; }
.jn-build::before { content: ""; position: absolute; inset: 17%; border-radius: 50%; border: 1.5px dashed var(--border); animation: jnspin 22s linear infinite; }
@keyframes jnspin { to { transform: rotate(360deg); } }
.jn-core { position: absolute; inset: 37%; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--blue)); display: grid; place-items: center; animation: jnpulse 2.6s ease-in-out infinite; }
.jn-core-in { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; }
@keyframes jnpulse { 0%,100% { box-shadow: 0 0 0 6px rgba(30,99,255,.12), 0 16px 40px -14px rgba(30,99,255,.55); } 50% { box-shadow: 0 0 0 15px rgba(30,99,255,.05), 0 18px 46px -14px rgba(30,99,255,.75); } }
.jn-node { position: absolute; width: 76px; height: 76px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: grid; place-items: center; gap: 2px; color: var(--blue); }
.jn-node svg { width: 23px; height: 23px; }
.jn-node em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--navy); }
.jn-node.a { top: 0; inset-inline-start: 50%; transform: translateX(-50%); }
.jn-node.b { inset-inline-end: 0; top: 50%; transform: translateY(-50%); }
.jn-node.c { bottom: 0; inset-inline-start: 50%; transform: translateX(-50%); }
.jn-node.d { inset-inline-start: 0; top: 50%; transform: translateY(-50%); }

/* stage 4 — live dashboard */
.jn-live .jn-livebadge { margin-inline-start: auto; color: var(--ok); font-size: 11px; font-weight: 800; }
.jn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.jn-stat { background: var(--tint2); border: 1px solid var(--border); border-radius: 12px; padding: 13px 8px; text-align: center; }
.jn-stat b { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--navy); display: block; line-height: 1.1; }
.jn-stat.up b { color: var(--ok); }
.jn-stat span { font-size: .72rem; color: var(--muted); }
.jn-feed { padding: 0 16px 16px; display: grid; gap: 8px; }
.jn-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: .86rem; color: var(--navy); }
.jn-row .ok { width: 20px; height: 20px; border-radius: 50%; background: #dcfce7; color: var(--ok); display: grid; place-items: center; font-weight: 800; font-size: 11px; flex: none; }

/* journey — mobile: unpin, stack all stages as a clean process list */
@media (max-width: 820px) {
  .journey { height: auto; }
  .jn-sticky { position: static; height: auto; display: block; padding-block: 8px 20px; }
  .jn-rail { display: none; }
  .jn-stages { display: block; }
  .jn-stage { grid-template-columns: 1fr; gap: 22px; opacity: 1; pointer-events: auto; padding-block: 30px; border-top: 1px solid var(--border); }
  .jn-stage:first-child { border-top: none; }
  .jn-stage .jn-copy, .jn-stage .jn-visual { opacity: 1; transform: none; }
}

/* journey stage 4 — real Luma dashboard screenshot */
.jn-dash { position: relative; width: min(580px, 100%); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.jn-dash-img { display: block; width: 100%; height: auto; }
.jn-dash-toast { position: absolute; inset-block-end: 14px; inset-inline-start: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 12px; padding: 9px 13px; font-size: .82rem; font-weight: 700; color: var(--navy); }
.jn-dash-toast .td { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(15,159,110,.18); flex: none; }
.jn-livebadge { margin-inline-start: auto; color: var(--ok); font-size: 11px; font-weight: 800; }

/* ---------- CASE STUDY — Luma Build (kiosk / Pais inventory system) ---------- */
.case-sec { padding-block: var(--sect); background: var(--surface); border-block: 1px solid var(--border); }
.case { margin-top: clamp(34px, 5vw, 52px); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.case.rev { grid-template-columns: 1.05fr 1fr; }
.case + .case { margin-top: clamp(40px, 6vw, 70px); padding-top: clamp(40px, 6vw, 70px); border-top: 1px solid var(--border); }
@media (max-width: 920px) { .case, .case.rev { grid-template-columns: 1fr; } .case.rev .case-copy { order: -1; } }
.case-badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--blue); background: var(--tint); border: 1px solid var(--border); padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.case-copy h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; }
.case-copy h3 .grad { background: linear-gradient(100deg, var(--blue), var(--blue2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-problem { color: var(--muted); font-weight: 300; line-height: 1.7; margin-top: 16px; font-size: 1.05rem; }
.case-problem b { color: var(--navy); font-weight: 700; }
.case-feats { list-style: none; margin-top: 20px; display: grid; gap: 11px; }
.case-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; color: var(--navy); font-weight: 500; }
.case-feats svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }
.case-result { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.cr { background: var(--tint2); border: 1px solid var(--border); border-radius: 14px; padding: 13px 18px; }
.cr b { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--blue); display: block; line-height: 1; }
.cr span { font-size: .78rem; color: var(--muted); }

.case-visual { position: relative; }
.kiosk-dash { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.kd-body { padding: 18px; display: grid; gap: 14px; }
.kd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kd-stat { background: var(--tint2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 6px; text-align: center; }
.kd-stat b { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--navy); display: block; line-height: 1.1; }
.kd-stat span { font-size: .72rem; color: var(--muted); }
.kd-stat.warn b { color: var(--danger); }
.kd-ai { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #eef4ff, #fff); border: 1px solid #cfdcfb; border-radius: 14px; padding: 13px 15px; }
.kd-ai-ico { font-size: 22px; flex: none; }
.kd-ai b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .98rem; }
.kd-ai span { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.kd-rows { display: grid; gap: 8px; }
.kd-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 11px 14px; }
.kd-br { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .92rem; min-width: 84px; }
.kd-nums { font-size: .82rem; color: var(--muted); flex: 1; }
.kd-tag { font-size: .76rem; font-weight: 800; border-radius: 999px; padding: 4px 11px; }
.kd-tag.ok { background: #dcfce7; color: var(--ok); }
.kd-tag.bad { background: #fdecec; color: var(--danger); }
.kd-row.bad { border-color: #f6c9c9; }
.case-tag { position: absolute; inset-block-start: -12px; inset-inline-start: 18px; z-index: 3; font-size: 11px; font-weight: 800; color: #fff; background: var(--navy); padding: 5px 13px; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* real scratch-card cluster (cropped to the silver panel → reads as a scratch card) */
.scratch-fan { position: absolute; inset-block-end: -30px; inset-inline-start: -20px; z-index: 4; display: flex; align-items: flex-end; }
.scratch-card { width: 138px; aspect-ratio: 1.6 / 1; border-radius: 11px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 16px 34px -10px rgba(7,24,63,.5); background: #d9dde6; }
.scratch-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.scratch-card.c1 { transform: rotate(-9deg); }
.scratch-card.c2 { transform: rotate(7deg); margin-inline-start: -46px; margin-block-end: 16px; }
.scratch-label { align-self: center; margin-inline-start: 12px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 6px 13px; box-shadow: var(--shadow-sm); white-space: nowrap; }
@media (max-width: 920px) { .scratch-fan { inset-block-end: -22px; inset-inline-start: 8px; } .scratch-card { width: 108px; } .scratch-label { display: none; } }
@media (max-width: 460px) { .scratch-card.c2 { display: none; } }

/* mid-page CTA band */
.midcta { margin-top: clamp(40px, 6vw, 68px); background: linear-gradient(135deg, var(--tint), var(--tint2)); border: 1px solid var(--border); border-radius: var(--r); padding: clamp(24px, 3.2vw, 38px); display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.midcta h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.95rem); color: var(--navy); letter-spacing: -.02em; }
.midcta p { color: var(--muted); margin-top: 6px; font-weight: 300; font-size: 1.02rem; }
.midcta .btn { flex: none; }

/* ---------- CONTENT — real marketing creatives (phone gallery) ---------- */
.content-sec { padding-block: var(--sect); }
.phone-row { margin-top: clamp(34px, 5vw, 52px); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 760px) { .phone-row { grid-template-columns: repeat(2, 1fr); } }
.phone { position: relative; border-radius: 28px; border: 7px solid #0c1426; background: #0c1426; box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 9 / 18; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.phone::before { content: ""; position: absolute; top: 8px; inset-inline: 50%; transform: translateX(-50%); width: 64px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.25); z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(7,24,63,.4); }
.content-note { margin-top: 18px; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- NICHE landing pages (barbers, plumbers, …) ---------- */
.niche-hero { position: relative; padding-block: clamp(118px, 16vh, 168px) clamp(40px, 6vh, 64px); overflow: hidden; }
.niche-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 62%); mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 62%); }
.niche-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .niche-grid { grid-template-columns: 1fr; } }
.niche-copy h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; }
.niche-copy h1 .grad { background: linear-gradient(100deg, var(--blue), var(--blue2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.niche-copy .lead { margin-top: 18px; }
.niche-copy .hero-actions { margin-top: 26px; }
.niche-phone { justify-self: center; width: min(300px, 80vw); border-radius: 32px; border: 8px solid #0c1426; background: #0c1426; box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 9 / 18; position: relative; }
.niche-phone::before { content: ""; position: absolute; top: 10px; inset-inline: 50%; transform: translateX(-50%); width: 70px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.25); z-index: 2; }
.niche-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.niche-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: clamp(30px, 4vw, 44px); }
@media (max-width: 700px) { .niche-feats { grid-template-columns: 1fr; } }
.nf-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.nf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdcfb; }
.nf-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--tint); color: var(--blue); margin-bottom: 14px; }
.nf-ico svg { width: 23px; height: 23px; }
.nf-card h3 { font-size: 1.18rem; font-weight: 600; }
.nf-card p { color: var(--muted); font-weight: 300; margin-top: 7px; line-height: 1.6; }

/* ---------- FULL FOOTER ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: clamp(44px, 6vw, 64px) 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand img { height: 36px; margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-weight: 300; font-size: .95rem; max-width: 30ch; line-height: 1.6; }
.foot-col h4 { font-family: var(--font-head); font-size: .95rem; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); font-size: .92rem; padding-block: 5px; transition: color .18s; }
.foot-col a:hover { color: var(--blue); }
.foot-bottom { margin-top: clamp(34px, 5vw, 48px); padding-top: 22px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot-bottom small { color: var(--muted); opacity: .8; font-size: .85rem; }
.foot-bottom .foot-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-bottom .foot-legal a { color: var(--muted); font-size: .85rem; transition: color .18s; }
.foot-bottom .foot-legal a:hover { color: var(--blue); }
