/* CQ Marketing Platform. Same palette and type as the Team Portal,
   dressed up for clients. */

:root {
  --navy: #1B2A4E;
  --navy2: #14203C;
  --navy3: #0E1730;
  --blue: #1E6FD9;
  --sky: #4FB3FF;
  --lime: #C3D82F;
  --lime2: #D7EA4F;
  --teal: #08917A;
  --red: #D0453B;
  --amber: #C27519;
  --ink: #1B2A4E;
  --muted: #5C6884;
  --faint: #8A93A8;
  --line: #E3E7ED;
  --line2: #EEF1F5;
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 32, 60, .06), 0 12px 32px -12px rgba(20, 32, 60, .18);
  --shadow-lg: 0 30px 80px -30px rgba(14, 23, 48, .55);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
img { max-width: 100%; display: block; }
svg { flex: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: var(--line2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ------------------------------------------------------------ the stage */

.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  will-change: transform;
}
.b1 { width: 46vmax; height: 46vmax; left: -14vmax; top: -16vmax; background: radial-gradient(circle at 30% 30%, #2E7FE8, transparent 65%); animation: drift1 22s var(--ease) infinite alternate; }
.b2 { width: 38vmax; height: 38vmax; right: -12vmax; top: 18%; background: radial-gradient(circle at 50% 50%, rgba(195, 216, 47, .75), transparent 62%); animation: drift2 26s var(--ease) infinite alternate; opacity: .38; }
.b3 { width: 34vmax; height: 34vmax; left: 10%; bottom: -18vmax; background: radial-gradient(circle at 50% 50%, #08917A, transparent 64%); animation: drift3 30s var(--ease) infinite alternate; opacity: .45; }
.b4 { width: 22vmax; height: 22vmax; right: 18%; bottom: 8%; background: radial-gradient(circle at 50% 50%, #4FB3FF, transparent 60%); animation: drift1 18s var(--ease) infinite alternate-reverse; opacity: .35; }
@keyframes drift1 { to { transform: translate(8vmax, 6vmax) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-10vmax, 8vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(6vmax, -8vmax) scale(1.15); } }

.meridians {
  position: absolute; width: min(78vmin, 640px); right: -12%; top: 50%; translate: 0 -50%;
  color: rgba(255, 255, 255, .09); pointer-events: none;
  animation: spin 120s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.spark {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; top: 22%; right: 26%;
  box-shadow: 0 0 12px 4px rgba(255, 255, 255, .9), 0 0 40px 12px rgba(79, 179, 255, .6);
  animation: twinkle 4.5s ease-in-out infinite;
}
.spark::before, .spark::after { content: ""; position: absolute; left: 50%; top: 50%; background: linear-gradient(90deg, transparent, #fff, transparent); translate: -50% -50%; }
.spark::before { width: 70px; height: 1.5px; }
.spark::after { width: 1.5px; height: 70px; background: linear-gradient(transparent, #fff, transparent); }
@keyframes twinkle { 0%, 100% { opacity: .35; scale: .7; } 50% { opacity: 1; scale: 1.15; } }

/* ------------------------------------------------------------ sign-in */

body.auth { background: var(--navy3); min-height: 100vh; }
.auth-wrap { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }

.stage {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy2) 55%, var(--navy3) 100%);
  color: #fff; padding: 44px 56px 36px; display: flex; flex-direction: column;
}
.stage > *:not(.aurora):not(.meridians):not(.spark) { position: relative; z-index: 1; }
.stage-top .logo { height: 54px; width: auto; }
.stage-copy { margin: auto 0; max-width: 560px; padding: 48px 0 32px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lime);
}
.eyebrow-ink { color: var(--teal); margin-bottom: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, currentColor 0%, transparent); } }

.stage h1 {
  margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.04;
  font-size: clamp(40px, 5.2vw, 72px);
}
.swap { display: block; height: 1.08em; overflow: hidden; }
.swap-track { display: flex; flex-direction: column; animation: swap 10s var(--ease) infinite; }
.swap-track span {
  display: block; height: 1.08em;
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime2) 35%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes swap {
  0%, 20%   { transform: translateY(0); }
  25%, 45%  { transform: translateY(-1.08em); }
  50%, 70%  { transform: translateY(-2.16em); }
  75%, 95%  { transform: translateY(-3.24em); }
  100%      { transform: translateY(-4.32em); }
}
.lede { margin: 22px 0 0; font-size: 17px; font-weight: 300; color: #C8D2E6; max-width: 470px; }

/* ------------------------------------------------------------ the journey
   Four tiles, one per headline word. They slide out of the seam between the
   dark stage and the white panel, then stay; a light then travels to the
   active one. app.js adds .is-armed and drives everything from one clock. */

.journey {
  position: relative; list-style: none; margin: 0 0 30px; padding: 0;
  display: flex; gap: 18px; align-items: flex-start;
}
.jstep { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 96px; }
.jcard {
  position: relative; width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center;
  background: linear-gradient(160deg, #283E70, #14203C);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .6s var(--ease), border-color .5s, box-shadow .5s, background .5s;
}
.jcard::after { /* sheen that sweeps across when a tile becomes active */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 48%, transparent 66%);
  background-size: 250% 100%; background-position: 120% 0; opacity: 0;
}
.jlabel { display: flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 500; color: #AEB9D0; letter-spacing: .02em; transition: color .5s; white-space: nowrap; }
.jlabel b { font-size: 10.5px; font-weight: 700; color: rgba(195,216,47,.55); letter-spacing: .08em; transition: color .5s; }

.jart { width: 52px; height: 52px; overflow: visible; }
.jart * { fill: none; stroke: rgba(255,255,255,.82); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; }
.jart .grid path { stroke: rgba(255,255,255,.14); stroke-width: 1; }
.jart .frame, .jart .axis, .jart .bubble, .jart .body { stroke: rgba(255,255,255,.7); }
.art-plan .route { stroke: var(--lime); stroke-dasharray: 4 5; }
.art-plan .pin { fill: var(--sky); stroke: none; }
.art-plan .flag { stroke: var(--lime); fill: rgba(195,216,47,.25); }
.art-exec .window { stroke: var(--sky); fill: rgba(79,179,255,.25); }
.art-exec .flame { stroke: none; fill: var(--lime); transform-origin: 50% 0; }
.art-exec .speed { stroke: rgba(255,255,255,.35); }
.art-measure .bar { stroke: none; fill: rgba(255,255,255,.22); transform-origin: 50% 100%; }
.art-measure .bar3 { fill: rgba(195,216,47,.55); }
.art-measure .trend { stroke: var(--sky); stroke-dasharray: 60; stroke-dashoffset: 0; }
.art-measure .peak { fill: var(--lime); stroke: none; transform-origin: center; }
.art-explain .line { stroke: rgba(255,255,255,.55); stroke-dasharray: 32; stroke-dashoffset: 0; }
.art-explain .l1 { stroke: var(--lime); }
.art-explain .spark2 { stroke: var(--lime); transform-origin: center; opacity: .6; }

/* The rail behind the tiles, and the light that rides it. */
.jtrack {
  position: absolute; z-index: 0; top: 48px; height: 2px; left: 48px; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, rgba(195,216,47,.15), rgba(79,179,255,.5), rgba(195,216,47,.15));
  transition: width 1s var(--ease), opacity .6s; opacity: 0;
}
.jlight {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(195,216,47,.35), 0 0 18px 6px rgba(195,216,47,.55);
  transition: left .9s var(--ease); opacity: 0;
}
.journey.all-in .jtrack { opacity: 1; }
.journey.all-in .jlight { opacity: 1; }

/* Armed (JS running): tiles wait behind the seam until their word appears. */
.journey.is-armed .jstep { transform: translateX(var(--from, 120vw)); opacity: 0; }
.journey.is-armed .jstep.is-in {
  transform: none; opacity: 1;
  transition: transform 1.15s cubic-bezier(.16, 1, .3, 1), opacity .5s ease;
}
.journey.is-armed .jstep.is-in:not(.is-active) .jcard { transform: scale(.94); }
.journey.is-armed .jstep.is-in:not(.is-active) .jart { opacity: .55; transition: opacity .5s; }

/* Active step. */
.jstep.is-active .jcard {
  transform: translateY(-6px) scale(1.06);
  border-color: rgba(195,216,47,.85);
  background: linear-gradient(160deg, #3A4F4A, #172440);
  box-shadow: 0 0 0 4px rgba(195,216,47,.14), 0 22px 46px -16px rgba(195,216,47,.45), inset 0 1px 0 rgba(255,255,255,.2);
}
.jstep.is-active .jcard::after { animation: sheen 1.1s .15s var(--ease) both; }
.jstep.is-active .jlabel { color: #fff; }
.jstep.is-active .jlabel b { color: var(--lime); }
@keyframes sheen { 0% { opacity: 1; background-position: 120% 0; } 100% { opacity: 0; background-position: -40% 0; } }

.jstep.is-active .art-plan .route { animation: march 1.2s linear infinite; }
.jstep.is-active .art-plan .flag { animation: wave-flag 1.4s ease-in-out infinite; transform-origin: 0% 100%; }
@keyframes march { to { stroke-dashoffset: -18; } }
@keyframes wave-flag { 50% { transform: skewY(-8deg) scaleX(.9); } }

.jstep.is-active .art-exec .rocket { animation: lift 1.8s ease-in-out infinite; }
.jstep.is-active .art-exec .flame { animation: flicker .18s ease-in-out infinite alternate; }
.jstep.is-active .art-exec .speed { animation: whoosh .9s linear infinite; }
@keyframes lift { 50% { transform: translateY(-4px); } }
@keyframes flicker { from { transform: scaleY(.75); opacity: .8; } to { transform: scaleY(1.15); opacity: 1; } }
@keyframes whoosh { from { transform: translateY(-6px); opacity: 0; } 50% { opacity: 1; } to { transform: translateY(8px); opacity: 0; } }

.jstep.is-active .art-measure .bar { animation: grow .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.jstep.is-active .art-measure .bar2 { animation-delay: .12s; }
.jstep.is-active .art-measure .bar3 { animation-delay: .24s; }
.jstep.is-active .art-measure .trend { animation: draw 1.1s .3s ease-out both; }
.jstep.is-active .art-measure .peak { animation: ping 1.6s 1.2s ease-out infinite; }
@keyframes grow { from { transform: scaleY(.15); } }
@keyframes draw { from { stroke-dashoffset: 60; } }
@keyframes ping { 0% { transform: scale(1); } 40% { transform: scale(1.7); } 100% { transform: scale(1); } }

.jstep.is-active .art-explain .line { animation: type .6s ease-out both; }
.jstep.is-active .art-explain .l2 { animation-delay: .35s; }
.jstep.is-active .art-explain .l3 { animation-delay: .7s; }
.jstep.is-active .art-explain .spark2 { animation: twinkle2 1.4s ease-in-out infinite; }
@keyframes type { from { stroke-dashoffset: 32; } }
@keyframes twinkle2 { 50% { transform: scale(1.4) rotate(45deg); opacity: 1; } }

/* The seam flashes when a tile comes through it. */
.stage::after {
  content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; right: 0; width: 2px; pointer-events: none;
  background: linear-gradient(transparent 0%, rgba(195,216,47,.9) 70%, rgba(79,179,255,.9) 85%, transparent 100%);
  opacity: 0; transition: opacity .9s ease;
}
.stage.seam-flash::after { opacity: 1; transition-duration: .15s; }

/* Headline driven by the same clock (JS); CSS keyframes are the no-JS fallback. */
.swap.is-driven .swap-track { animation: none; transition: transform .75s cubic-bezier(.65, 0, .25, 1); }
.swap.is-driven .swap-track.no-anim { transition: none; }

.stage-foot { font-size: 12px; color: #7F8BA8; }

.panel { display: grid; place-items: center; padding: 40px 28px; background: var(--bg); position: relative; }
.panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% 0%, rgba(195, 216, 47, .14), transparent 70%),
              radial-gradient(500px 300px at 0% 100%, rgba(30, 111, 217, .08), transparent 70%);
  pointer-events: none;
}

.card {
  position: relative; width: 100%; max-width: 420px; background: var(--card); border-radius: 24px;
  padding: 36px 34px 28px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.card-mark { width: 52px; height: 52px; margin-bottom: 18px; filter: drop-shadow(0 6px 14px rgba(30, 111, 217, .35)); }
.card h2 { margin: 0 0 4px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.sub { margin: 0 0 22px; color: var(--muted); }
.sub strong { color: var(--ink); font-weight: 600; }

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field { position: relative; }
.field svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.field input {
  width: 100%; height: 50px; padding: 0 14px 0 44px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #FBFCFD; font: inherit; font-size: 15px; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #A9B1C3; }
.field input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(30, 111, 217, .14); }
.field:focus-within svg { stroke: var(--blue); }
.hint { min-height: 20px; margin: 8px 2px 4px; font-size: 12.5px; color: var(--teal); font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px;
  border: 0; border-radius: 14px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.995); }
.btn:focus-visible { outline: 3px solid rgba(30, 111, 217, .45); outline-offset: 2px; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -8px rgba(27, 42, 78, .7); }
.btn-primary:hover { background: #22356A; box-shadow: 0 12px 26px -10px rgba(27, 42, 78, .8); }
.btn-primary.is-ms { background: linear-gradient(135deg, var(--navy), #1F4FA8); }
.btn-ms { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ms:hover { border-color: #C9D1DE; box-shadow: var(--shadow); }
.btn-ms svg { stroke: none; width: 19px; height: 19px; }
.btn-ms:hover svg { transform: none; }
.btn-ms.is-disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); margin-top: 6px; }
.btn-ghost:hover { background: var(--line2); }
.btn-ghost:hover svg { transform: translateX(-3px); }

.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--faint); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.fine { margin: 16px 0 0; font-size: 12.5px; color: var(--faint); text-align: center; }
.fine a { color: var(--muted); }

.alert { padding: 11px 14px; border-radius: 12px; font-size: 13.5px; margin: -6px 0 18px; }
.alert-error { background: #FDECEB; color: #9C2B23; border: 1px solid #F6C9C5; }
.alert-ok { background: #E6F5F1; color: #066B5A; border: 1px solid #BFE6DC; }

/* ------------------------------------------------------------ single-card pages */

body.solo { min-height: 100vh; }
.solo-wrap {
  position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; display: grid; place-items: center;
  padding: 40px 18px; background: linear-gradient(150deg, var(--navy) 0%, var(--navy2) 55%, var(--navy3) 100%);
}
.solo-wrap .meridians { right: auto; left: 50%; translate: -50% -50%; width: min(110vmin, 900px); }
.card-solo { z-index: 1; box-shadow: var(--shadow-lg); max-width: 460px; }
.card-wide { max-width: 560px; }
.card-solo .btn { margin-top: 4px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 20px; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.card-solo form .btn { margin-top: 18px; }

/* ------------------------------------------------------------ app shell */

body.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 60px; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--navy); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 10px 30px -18px rgba(0, 0, 0, .5);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand-tag { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .18); white-space: nowrap; }
.nav { display: flex; align-items: stretch; height: 60px; }
.nav a, .nav .soon { display: flex; align-items: center; padding: 0 14px; font-size: 14px; color: #CBD4E4; text-decoration: none; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; }
.nav a.on { color: #fff; font-weight: 600; border-bottom-color: var(--lime); }
.nav .soon { color: #6F7C9A; cursor: default; }
.pill-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: #DCE3F0; font-size: 12.5px; text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.pill-link:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.pill-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.me { position: relative; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--lime); color: var(--navy); font: inherit; font-weight: 700; font-size: 13px;
  box-shadow: 0 0 0 3px rgba(195, 216, 47, .25); transition: box-shadow .2s;
}
.avatar:hover, .avatar[aria-expanded="true"] { box-shadow: 0 0 0 5px rgba(195, 216, 47, .35); }
.menu {
  position: absolute; right: 0; top: calc(100% + 12px); width: 260px; background: #fff; color: var(--ink);
  border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 8px;
  animation: pop .18s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.menu-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line2); margin-bottom: 6px; display: grid; gap: 1px; }
.menu-who strong { font-size: 14px; }
.menu-who span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.menu-who em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; }
.menu-item:hover { background: var(--line2); }
.menu-item svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 22px 48px; flex: 1; }

.hero {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; color: #fff;
  padding: 52px 48px; background: linear-gradient(140deg, var(--navy) 0%, var(--navy2) 60%, var(--navy3) 100%);
  box-shadow: var(--shadow-lg);
}
.hero .meridians { width: 520px; right: -120px; }
.hero .blob { filter: blur(50px); }
.hero-copy { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.hero .lede { font-size: 16px; }

.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s;
}
.step:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 32, 60, .06), 0 22px 40px -18px rgba(20, 32, 60, .28); }
.step.is-active { border-color: rgba(195, 216, 47, .9); box-shadow: 0 0 0 3px rgba(195, 216, 47, .25), var(--shadow); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.step-n { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; background: var(--line2); color: var(--navy); }
.is-active .step-n { background: var(--navy); color: var(--lime); }
.chip { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--line2); color: var(--muted); }
.chip-lime { background: var(--lime); color: var(--navy); }
.step h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.checks { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 7px; font-size: 13.5px; color: var(--muted); }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #C3CAD7; flex: none; }
.checks li.done { color: var(--ink); }
.checks li.done::before { border-color: var(--teal); background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }

.status { margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.status h2 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.status ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--muted); }
.status li { display: flex; align-items: center; gap: 9px; }
.status strong { color: var(--ink); font-weight: 600; }
.led { width: 9px; height: 9px; border-radius: 50%; }
.led.ok { background: var(--teal); box-shadow: 0 0 0 4px rgba(8, 145, 122, .15); }
.led.warn { background: var(--amber); box-shadow: 0 0 0 4px rgba(194, 117, 25, .15); }

.appfoot { text-align: center; font-size: 12px; color: var(--faint); padding: 18px; }


/* ------------------------------------------------------------ admin */

.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 6px 0 22px; }
.admin-head h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.crumb { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.page .alert { margin: 0 0 18px; }
.tabs { display: inline-flex; background: var(--line2); border-radius: 12px; padding: 4px; gap: 2px; }
.tabs a { padding: 8px 16px; border-radius: 9px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(20,32,60,.12); }

.btn-sm { width: auto; height: 40px; padding: 0 18px; font-size: 14px; border-radius: 11px; }
.btn-sm.btn-ghost { margin-top: 0; }
.btn-text { width: auto; background: none; color: var(--red); height: 40px; padding: 0 10px; font-size: 14px; }
.btn-text:hover { text-decoration: underline; }
.chip-teal { background: #E2F4F0; color: #066B5A; }

.conn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.conn { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.conn-connected { border-color: rgba(8,145,122,.35); }
.conn-problem { border-color: rgba(208,69,59,.4); }
.conn-top { display: flex; align-items: center; gap: 14px; }
.mono { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; flex: none; box-shadow: 0 8px 18px -8px rgba(20,32,60,.5); }
.mono-google { background: linear-gradient(135deg, #4285F4, #34A853); }
.mono-meta { background: linear-gradient(135deg, #0866FF, #A33AE0); }
.mono-linkedin { background: #0A66C2; }
.mono-serpstat { background: linear-gradient(135deg, #E3492B, #F29A35); }
.conn-title { flex: 1; min-width: 0; }
.conn-title h2 { margin: 0; font-size: 19px; }
.covers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.covers span { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: var(--line2); color: var(--muted); }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.state .led { width: 9px; height: 9px; border-radius: 50%; background: #C3CAD7; }
.state-connected { color: var(--teal); } .state-connected .led { background: var(--teal); box-shadow: 0 0 0 4px rgba(8,145,122,.15); }
.state-ready { color: var(--blue); } .state-ready .led { background: var(--blue); box-shadow: 0 0 0 4px rgba(30,111,217,.15); }
.state-problem { color: var(--red); } .state-problem .led { background: var(--red); box-shadow: 0 0 0 4px rgba(208,69,59,.15); }
.state-not_set { color: var(--amber); } .state-not_set .led { background: var(--amber); }
.conn-meta { margin: -4px 0 0; font-size: 12.5px; color: var(--faint); }
.conn-meta strong { color: var(--muted); font-weight: 600; }
.checks-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks-list li { display: grid; grid-template-columns: 18px auto 1fr; gap: 8px; align-items: baseline; font-size: 13.5px; }
.checks-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; translate: 0 1px; }
.checks-list li.ok::before { background: var(--teal); }
.checks-list li.bad::before { background: var(--red); }
.checks-list strong { font-weight: 600; white-space: nowrap; }
.checks-list span { color: var(--muted); }
.checks-list li.bad span { color: #9C2B23; }
.conn-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.conn-actions form { margin: 0; }
.setup { border-top: 1px dashed var(--line); padding-top: 12px; }
.setup summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--navy); list-style: none; display: flex; align-items: center; gap: 8px; }
.setup summary::before { content: "›"; display: inline-block; transition: rotate .2s; font-size: 18px; line-height: 1; color: var(--faint); }
.setup[open] summary::before { rotate: 90deg; }
.setup summary::-webkit-details-marker { display: none; }
.steps { margin: 12px 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.copyline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 12.5px; }
.copyline span { color: var(--faint); font-weight: 600; }
.copyline code { cursor: copy; }
.copyline code.copied { background: #E2F4F0; color: #066B5A; }
.cred-form { display: grid; gap: 12px; }
.fld { display: grid; gap: 6px; }
.fld label { margin: 0; }
.fld label em { font-style: normal; font-weight: 500; color: var(--faint); font-size: 12px; margin-left: 4px; }
.fld input[type=text], .fld input[type=password], .fld select, textarea, .field-plain input, .filter {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 11px; border: 1.5px solid var(--line); background: #FBFCFD;
  font: inherit; font-size: 14.5px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea { height: auto; padding: 10px 13px; resize: vertical; }
.fld input:focus, .fld select:focus, textarea:focus, .field-plain input:focus, .filter:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30,111,217,.12); background: #fff; }
.fld small { font-size: 12px; color: var(--faint); }
.fld .inline { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.cred-form .btn { justify-self: start; }

.add-row { display: flex; gap: 10px; margin-bottom: 18px; max-width: 560px; }
.add-row .field-plain { flex: 1; }
.empty { background: var(--card); border: 1px dashed #CFD6E2; border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }
.empty h2 { margin: 0 0 6px; color: var(--ink); font-size: 18px; }
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 12px 18px; background: #FAFBFC; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 18px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #FAFBFD; }
.strong-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.strong-link:hover { color: var(--blue); }

.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.map-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.map-head h3 { margin: 0; font-size: 16px; }
.opts { display: grid; gap: 6px; max-height: 260px; overflow: auto; padding-right: 4px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; font-weight: 500; cursor: pointer; margin: 0; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #C9D1DE; }
.opt.on { border-color: rgba(8,145,122,.5); background: #F1FAF7; }
.opt input { accent-color: var(--teal); width: 16px; height: 16px; flex: none; }
.opt[hidden] { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sticky-save { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0; margin-top: 8px; background: linear-gradient(transparent, var(--bg) 30%); }

@media (max-width: 900px) {
  .conn-grid, .map-grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ reveal on load */

[data-reveal] { animation: rise .7s var(--ease) both; }
.roadmap [data-reveal]:nth-child(2) { animation-delay: .08s; }
.roadmap [data-reveal]:nth-child(3) { animation-delay: .16s; }
.status[data-reveal] { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ------------------------------------------------------------ responsive */

@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .stage { padding: 28px 24px 26px; min-height: auto; }
  .stage-copy { padding: 34px 0 22px; }
  .stage-top .logo { height: 44px; }
  .journey { gap: 12px; margin-bottom: 22px; }
  .jstep { width: 72px; }
  .jcard { width: 72px; height: 72px; border-radius: 18px; }
  .jart { width: 40px; height: 40px; }
  .jtrack { top: 36px; left: 36px; }
  .jlabel { font-size: 11.5px; gap: 4px; }
  .jlabel b { display: none; }
  .meridians { width: 420px; right: -160px; }
  .panel { padding: 28px 16px 40px; }
  .roadmap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav, .brand-tag, .pill-link { display: none; }
  .hero { padding: 34px 24px; border-radius: 20px; }
  .page { padding: 18px 16px 40px; }
  .topbar { padding: 0 16px; }
}
@media (max-width: 480px) {
  .card { padding: 28px 22px 22px; border-radius: 20px; }
  .stage h1 { font-size: 38px; }
  .lede { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
