/* ==========================================================================
   LinkHunter — public site, sign-in and onboarding
   The marketing site is deliberately dark (deep ink + the logo's light).
   Sign-in and onboarding forms follow the app's light/dark tokens.
   ========================================================================== */

/* ---------- public site shell (single dark theme by design) ---------- */
.site {
  --s-bg: #07051A; --s-bg-2: #0C0926; --s-card: rgba(255, 255, 255, .035); --s-card-2: rgba(255, 255, 255, .06);
  --s-line: rgba(196, 178, 255, .13); --s-line-2: rgba(196, 178, 255, .22);
  --s-text: #ECEAF7; --s-text-2: #A7A2C2; --s-text-3: #736D93; --s-accent: #C4B2FF;
  position: relative; min-height: 100vh; background: var(--s-bg); color: var(--s-text); overflow-x: clip; isolation: isolate;
  color-scheme: dark;
}
.site::before { content: ""; position: absolute; inset: 0 0 auto; height: 1100px; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 560px at 78% 6%, rgba(91, 20, 248, .32), transparent 62%), radial-gradient(700px 460px at 8% 18%, rgba(42, 27, 250, .22), transparent 64%), radial-gradient(600px 400px at 60% 60%, rgba(254, 37, 204, .1), transparent 70%); }
.site::after { content: ""; position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(196, 178, 255, .13) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(900px 520px at 65% 20%, #000, transparent 72%); mask-image: radial-gradient(900px 520px at 65% 20%, #000, transparent 72%); }
.site a { color: inherit; }
.site h1, .site h2, .site h3, .site h4 { color: #fff; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* nav */
.site-nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, box-shadow .3s; border-bottom: 1px solid transparent; }
.site-nav.scrolled { background: rgba(9, 6, 28, .72); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); border-bottom-color: var(--s-line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.site-nav .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.site-nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0; }
.site-nav .brand img { filter: drop-shadow(0 0 10px rgba(138, 24, 248, .55)); }
.site-nav .wordmark { color: #fff; }
.site-links { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.site-links a { padding: 8px 12px; border-radius: 9px; color: var(--s-text-2); font-weight: 500; font-size: 14px; text-decoration: none; transition: color .2s, background .2s; }
.site-links a:hover, .site-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .06); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-actions .btn.ghost { color: var(--s-text); }
.site-actions .btn.ghost:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.site .btn.outline-dark { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .16); color: #EEECF8; }
.site .btn.outline-dark:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .28); }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--s-line); background: rgba(255, 255, 255, .04); color: #fff; place-items: center; cursor: pointer; }
.nav-sheet { display: none; }

/* sections */
.sec { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.sec + .sec { border-top: 1px solid rgba(196, 178, 255, .06); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 99px; border: 1px solid var(--s-line-2); background: rgba(138, 24, 248, .1); color: var(--s-accent); font: 600 12.5px var(--font); letter-spacing: .01em; }
.eyebrow .pip { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #8A18F8, #FE25CC); box-shadow: 0 0 10px rgba(254, 37, 204, .9); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin-top: 16px; text-wrap: balance; }
.sec-head p { color: var(--s-text-2); font-size: 17px; line-height: 1.6; margin-top: 16px; text-wrap: pretty; }
.grad { background: linear-gradient(100deg, #9C8CFF 0%, #C27BFF 45%, #FE5BD9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* hero */
.hero { padding: clamp(40px, 7vw, 92px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; margin-top: 22px; text-wrap: balance; }
.hero .lead { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.6; color: var(--s-text-2); margin-top: 22px; max-width: 52ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; align-items: center; }
.hero .cta form { display: contents; }
.hero .fine { margin-top: 16px; font-size: 13px; color: var(--s-text-3); }
.btn.xl { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 12px; }
.site .btn.primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(138, 24, 248, .4), 0 14px 34px -12px rgba(138, 24, 248, .9), 0 0 36px -10px rgba(254, 37, 204, .55); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px; background: var(--s-card); border: 1px solid var(--s-line); color: var(--s-text-2); font-size: 12.5px; }
.trust-row svg { width: 14px; height: 14px; color: #B9A6FF; }

/* constellation (hero illustration) */
.site .constellation { max-width: 540px; }
.site .constellation .node circle.bg { fill: #120D2A; stroke: rgba(196, 178, 255, .2); }
.site .constellation .node text { fill: #DCD8EE; }
.constellation .halo { fill: none; stroke: url(#huntGrad); stroke-width: 1; opacity: .35; transform-origin: 260px 260px; animation: halo 9s ease-in-out infinite; }
.constellation .node { animation: node-lit 7s infinite; }
@keyframes node-lit { 0%, 12% { filter: none; } 4%, 9% { filter: drop-shadow(0 0 10px rgba(254, 37, 204, .8)); } }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: .3; } 50% { transform: scale(1.06); opacity: .12; } }

/* seven agents strip */
.agents7 { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.agents7::before { content: ""; position: absolute; left: 7%; right: 7%; top: 34px; height: 2px; background: linear-gradient(90deg, #2A1BFA, #8A18F8, #FE25CC, #8A18F8, #2A1BFA); background-size: 200% 100%; animation: flow 6s linear infinite; box-shadow: 0 0 14px rgba(138, 24, 248, .7); opacity: .85; }
.a7 { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 2px; }
.a7 .ic { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 6px;
  background: linear-gradient(#120D2A, #120D2A) padding-box, linear-gradient(135deg, rgba(42, 27, 250, .8), rgba(138, 24, 248, .7), rgba(254, 37, 204, .8)) border-box; border: 1.5px solid transparent;
  box-shadow: 0 12px 30px -12px rgba(138, 24, 248, .7); transition: transform .35s var(--ease), box-shadow .35s; }
.a7 .ic svg { width: 26px; height: 26px; color: #E3DBFF; }
.a7 .ic b { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 800 11.5px var(--display); color: #fff; background: linear-gradient(135deg, #5B14F8, #C21CF4); box-shadow: 0 4px 12px -2px rgba(194, 28, 244, .7); }
.a7:hover .ic { transform: translateY(-4px) scale(1.04); box-shadow: 0 18px 40px -12px rgba(254, 37, 204, .7); }
.a7 h3 { font-size: 15px; text-align: center; letter-spacing: -.01em; }
.a7 p { font-size: 13px; color: var(--s-text-2); line-height: 1.5; text-align: center; }
.a7 .never { font-size: 12px; color: var(--s-text-3); text-align: center; border-top: 1px dashed var(--s-line); padding-top: 8px; margin-top: auto; }
.a7 .never b { color: #F0ABFC; font-weight: 600; }

/* product showcase (illustration) */
.showcase { position: relative; perspective: 1600px; }
.showcase::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -30px; height: 70%; background: linear-gradient(100deg, #2A1BFA, #8A18F8, #FE25CC); filter: blur(80px); opacity: .32; border-radius: 50%; z-index: -1; }
.app-window { border-radius: 18px; border: 1px solid var(--s-line-2); background: linear-gradient(180deg, rgba(20, 15, 46, .96), rgba(10, 7, 30, .98)); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset; overflow: hidden; transform: rotateX(8deg); transform-origin: 50% 100%; transition: transform .8s var(--ease); }
.showcase:hover .app-window { transform: rotateX(2deg); }
.aw-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--s-line); background: rgba(255, 255, 255, .02); }
.aw-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.aw-bar span { margin-left: 12px; font-size: 12px; color: var(--s-text-3); }
.aw-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 440px; }
.aw-side { border-right: 1px solid var(--s-line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; background: radial-gradient(120% 50% at 0 0, rgba(42, 27, 250, .2), transparent 60%); }
.aw-side .it { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; color: var(--s-text-2); }
.aw-side .it svg { width: 14px; height: 14px; }
.aw-side .it.on { color: #fff; background: linear-gradient(90deg, rgba(91, 20, 248, .5), rgba(138, 24, 248, .15)); box-shadow: inset 0 0 0 1px rgba(196, 178, 255, .16); }
.aw-main { padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.aw-main h4 { font-size: 20px; letter-spacing: -.02em; }
.aw-main .sub { font-size: 12.5px; color: var(--s-text-2); margin-top: 3px; }
.aw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.aw-card { border-radius: 12px; border: 1px solid var(--s-line); background: var(--s-card); padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aw-card.live { border-color: rgba(254, 37, 204, .35); box-shadow: 0 14px 34px -18px rgba(254, 37, 204, .8); background: linear-gradient(160deg, rgba(91, 20, 248, .18), rgba(255, 255, 255, .02)); }
.aw-card .t { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #fff; }
.aw-card .st { font-size: 10.5px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--s-text-2); white-space: nowrap; }
.aw-card.live .st { background: rgba(254, 37, 204, .16); color: #F9A8EE; }
.aw-card .st::before { content: "● "; }
.aw-card .n { font: 800 22px var(--display); letter-spacing: -.03em; color: #fff; }
.aw-card .l { font-size: 11px; color: var(--s-text-3); }
.aw-card .bar { height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.aw-card .bar span { display: block; height: 100%; width: 62%; border-radius: inherit; background: linear-gradient(90deg, #2A1BFA, #8A18F8, #FE25CC); background-size: 200% 100%; animation: flow 3s linear infinite; }
.aw-wide { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; gap: 16px; }
.aw-line { position: relative; height: 54px; border-radius: 12px; border: 1px solid var(--s-line); background: var(--s-card); display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; padding: 0 12px; }
.aw-line::before { content: ""; position: absolute; left: 7%; right: 7%; top: 50%; height: 2px; background: linear-gradient(90deg, #2A1BFA, #8A18F8, #FE25CC); box-shadow: 0 0 10px rgba(138, 24, 248, .8); }
.aw-line i { position: relative; justify-self: center; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 700 11px var(--display); font-style: normal; color: #fff; background: #120D2A; border: 1px solid rgba(196, 178, 255, .4); }
.aw-line i.on { background: linear-gradient(135deg, #2A1BFA, #8A18F8, #FE25CC); border-color: transparent; box-shadow: 0 0 14px rgba(254, 37, 204, .7); }
.illus-cap { text-align: center; margin-top: 18px; font-size: 12.5px; color: var(--s-text-3); }

/* how it works */
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step4 { position: relative; border-radius: 18px; padding: 22px; background: var(--s-card); border: 1px solid var(--s-line); transition: border-color .3s, transform .35s var(--ease), background .3s; }
.step4:hover { transform: translateY(-4px); border-color: var(--s-line-2); background: var(--s-card-2); }
.step4 .num { font: 800 13px var(--display); color: transparent; background: linear-gradient(100deg, #9C8CFF, #FE5BD9); -webkit-background-clip: text; background-clip: text; letter-spacing: .04em; }
.step4 h3 { font-size: 17px; margin: 10px 0 8px; }
.step4 p { color: var(--s-text-2); font-size: 14px; line-height: 1.55; }
.step4 .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(138, 24, 248, .14); border: 1px solid rgba(196, 178, 255, .2); margin-bottom: 16px; }
.step4 .ic svg { width: 20px; height: 20px; color: #D2C4FF; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pr { position: relative; padding: 24px; border-radius: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid var(--s-line); overflow: hidden; transition: border-color .3s, transform .35s var(--ease); }
.pr::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(138, 24, 248, .25), transparent); opacity: 0; transition: opacity .4s; }
.pr:hover { border-color: var(--s-line-2); transform: translateY(-3px); }
.pr:hover::after { opacity: 1; }
.pr svg { width: 22px; height: 22px; color: #D2C4FF; }
.pr h3 { font-size: 16.5px; margin: 14px 0 8px; }
.pr p { color: var(--s-text-2); font-size: 14px; line-height: 1.55; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 20px; background: var(--s-card); border: 1px solid var(--s-line); transition: transform .35s var(--ease), border-color .3s; }
.plan:hover { transform: translateY(-4px); border-color: var(--s-line-2); }
.plan.featured { background: linear-gradient(170deg, rgba(91, 20, 248, .26), rgba(20, 14, 48, .6) 55%, rgba(254, 37, 204, .1)); border-color: transparent; box-shadow: 0 30px 70px -30px rgba(138, 24, 248, .8); }
.plan.featured::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.3px; pointer-events: none; background: conic-gradient(from var(--angle), rgba(42, 27, 250, .2), #2A1BFA 70deg, #8A18F8 130deg, #FE25CC 190deg, rgba(254, 37, 204, .2) 250deg, rgba(42, 27, 250, .2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-angle 7s linear infinite; }
.plan .tag-pop { position: absolute; top: -12px; left: 28px; padding: 4px 10px; border-radius: 99px; font: 700 11.5px var(--font); color: #fff; background: linear-gradient(135deg, #5B14F8, #C21CF4, #FE25CC); box-shadow: 0 8px 20px -6px rgba(254, 37, 204, .8); }
.plan h3 { font-size: 18px; }
.plan .pitch { color: var(--s-text-2); font-size: 14px; margin-top: 6px; min-height: 42px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font: 800 44px var(--display); letter-spacing: -.04em; color: #fff; }
.plan .price span { color: var(--s-text-2); font-size: 14px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--s-text); }
.plan li svg { width: 16px; height: 16px; color: #B9A6FF; flex-shrink: 0; }
.plan li b { font-variant-numeric: tabular-nums; }
.plan .btn { margin-top: auto; }
.plan-note { margin-top: 22px; text-align: center; color: var(--s-text-3); font-size: 13px; }

/* comparison table */
.cmp-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--s-line); background: var(--s-card); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--s-line); }
.cmp thead th { font: 700 13px var(--display); color: #fff; background: rgba(255, 255, 255, .03); }
.cmp tbody td:first-child { color: var(--s-text-2); }
.cmp td.c, .cmp th.c { text-align: center; font-variant-numeric: tabular-nums; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .yes { color: #86EFAC; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 14px; border: 1px solid var(--s-line); background: var(--s-card); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--s-line-2); background: var(--s-card-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 20px; font: 600 15.5px var(--display); color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 500 18px var(--font); color: var(--s-accent); background: rgba(138, 24, 248, .14); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--s-text-2); font-size: 14.5px; line-height: 1.65; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(36px, 6vw, 64px); text-align: center; border: 1px solid var(--s-line-2);
  background: radial-gradient(700px 300px at 50% 0, rgba(138, 24, 248, .45), transparent 70%), radial-gradient(500px 260px at 90% 100%, rgba(254, 37, 204, .25), transparent 70%), linear-gradient(180deg, #120B33, #0B0820); }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.cta-band p { color: var(--s-text-2); margin: 14px auto 0; max-width: 56ch; font-size: 16px; }
.cta-band .cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta-band .cta form { display: contents; }

/* footer */
.site-foot { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--s-line); padding: clamp(48px, 7vw, 80px) 0 0;
  background: radial-gradient(900px 420px at 15% 0, rgba(91, 20, 248, .16), transparent 70%), radial-gradient(700px 380px at 95% 100%, rgba(254, 37, 204, .1), transparent 70%); }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, #2A1BFA 20%, #8A18F8 50%, #FE25CC 80%, transparent); background-size: 200% 100%; animation: flow 8s linear infinite; opacity: .8; }
.foot-grid { display: grid; grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.site-foot .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 0; }
.site-foot .brand img { filter: drop-shadow(0 0 12px rgba(138, 24, 248, .6)); }
.site-foot .wordmark { font-size: 20px; }
.foot-brand p { color: var(--s-text-2); font-size: 14.5px; margin-top: 16px; max-width: 36ch; line-height: 1.6; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.foot-mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #fff; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.foot-mail:hover { color: #B9A6FF; }
.foot-mail svg { width: 16px; height: 16px; color: #B9A6FF; flex: none; }
.foot-trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-trust li { display: flex; align-items: center; gap: 9px; color: var(--s-text-3); font-size: 13px; }
.foot-trust svg { width: 15px; height: 15px; color: #B9A6FF; flex: none; }
.site-foot h4 { font: 700 12px var(--font); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 6px 0 16px; }
.site-foot nav { display: flex; flex-direction: column; gap: 11px; }
.site-foot nav a, .site-foot nav button { position: relative; width: fit-content; color: var(--s-text-2); font-size: 14px; text-decoration: none; background: none; border: 0; padding: 0; text-align: left; font-family: inherit; cursor: pointer; transition: color .2s, transform .2s var(--ease); }
.site-foot nav a::after, .site-foot nav button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: linear-gradient(90deg, #8A18F8, #FE25CC); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-foot nav a:hover, .site-foot nav button:hover { color: #fff; transform: translateX(2px); }
.site-foot nav a:hover::after, .site-foot nav button:hover::after { transform: scaleX(1); }
.site-foot .legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: clamp(40px, 6vw, 64px); padding: 22px 0; border-top: 1px solid rgba(196, 178, 255, .1); color: var(--s-text-3); font-size: 13px; }
.site-foot .legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot .legal a { color: var(--s-text-3); text-decoration: none; transition: color .2s; }
.site-foot .legal a:hover { color: #fff; }
.site-foot .to-top { margin-left: auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--s-line-2); background: rgba(255, 255, 255, .04); color: #fff !important; transition: transform .25s var(--ease), background .25s, box-shadow .25s; }
.site-foot .to-top svg { width: 17px; height: 17px; }
.site-foot .to-top:hover { transform: translateY(-3px); background: rgba(138, 24, 248, .25); box-shadow: 0 10px 26px -10px rgba(138, 24, 248, .9); }
/* Oversized wordmark; line-height leaves room for the glyphs (background-clip:text only paints inside the box) and the footer crops the bottom. */
.foot-mark { margin: -0.2em 0 -0.2em; padding-top: .08em; text-align: center; font: 800 clamp(60px, 15.5vw, 230px)/1.25 var(--display, var(--font)); letter-spacing: -.035em; white-space: nowrap; user-select: none; pointer-events: none;
  background: linear-gradient(180deg, rgba(196, 178, 255, .28) 20%, rgba(138, 24, 248, .1) 60%, transparent 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 32px; align-items: start; }
  .foot-brand .foot-trust { grid-column: 2; grid-row: 1 / span 3; margin-top: 6px; }
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .foot-brand { display: block; }
  .site-foot .to-top { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .site-foot::before { animation: none; } }

/* feature pages */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.045em; line-height: 1.04; font-weight: 800; margin: 20px auto 0; max-width: 18ch; text-wrap: balance; }
.page-hero p { color: var(--s-text-2); font-size: 18px; line-height: 1.6; margin: 20px auto 0; max-width: 60ch; }
.page-hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.page-hero .cta form { display: contents; }
.feat-nav { position: sticky; top: 68px; z-index: 20; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 12px 0; margin-bottom: 8px; }
.feat-nav a { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--s-line); background: rgba(12, 9, 38, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--s-text-2); font-size: 13px; font-weight: 600; text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.feat-nav a:hover { color: #fff; border-color: var(--s-line-2); background: rgba(138, 24, 248, .16); }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; scroll-margin-top: 130px; }
.feat:nth-of-type(even) .feat-copy { order: 2; }
.feat-copy .k { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px var(--font); color: var(--s-accent); letter-spacing: .04em; text-transform: uppercase; }
.feat-copy .k svg { width: 16px; height: 16px; }
.feat-copy h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; line-height: 1.1; margin-top: 12px; text-wrap: balance; }
.feat-copy p { color: var(--s-text-2); font-size: 16px; line-height: 1.65; margin-top: 14px; }
.feat-copy ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.feat-copy li { display: flex; gap: 10px; font-size: 14.5px; color: var(--s-text); line-height: 1.5; }
.feat-copy li svg { width: 17px; height: 17px; color: #B9A6FF; margin-top: 2px; flex-shrink: 0; }
.vis { position: relative; border-radius: 20px; border: 1px solid var(--s-line-2); background: linear-gradient(180deg, rgba(22, 16, 50, .92), rgba(11, 8, 31, .96)); padding: 22px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 30px 70px -40px rgba(138, 24, 248, .7); overflow: hidden; }
.vis::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, #2A1BFA, #8A18F8, #FE25CC); opacity: .9; }
.vis .cap { margin-top: 14px; font-size: 11.5px; color: var(--s-text-3); text-align: right; }
.vis-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(196, 178, 255, .08); font-size: 13px; color: var(--s-text); }
.vis-row + .vis-row { margin-top: 8px; }
.vis-row .dom { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis-row .pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.pill.ok { background: rgba(16, 185, 129, .16); color: #6EE7B7; }
.pill.warn { background: rgba(245, 158, 11, .16); color: #FCD34D; }
.pill.bad { background: rgba(239, 68, 68, .16); color: #FCA5A5; }
.pill.vio { background: rgba(138, 24, 248, .2); color: #D8B4FE; }
.meter-s { width: 70px; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter-s span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5B14F8, #C21CF4); }
.vis-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vis-kv div { border-radius: 12px; padding: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(196, 178, 255, .08); }
.vis-kv b { display: block; font: 800 20px var(--display); color: #fff; letter-spacing: -.02em; }
.vis-kv span { font-size: 11.5px; color: var(--s-text-3); }
.timeline { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, #2A1BFA, #8A18F8, #FE25CC); box-shadow: 0 0 10px rgba(138, 24, 248, .6); }
.timeline div { position: relative; font-size: 13.5px; color: var(--s-text); }
.timeline div::before { content: ""; position: absolute; left: -22px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #0B0820; border: 2px solid #C21CF4; box-shadow: 0 0 10px rgba(254, 37, 204, .6); }
.timeline small { display: block; color: var(--s-text-3); font-size: 12px; }
.kanban-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kanban-mini > div { border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(196, 178, 255, .08); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kanban-mini h5 { font: 700 10.5px var(--font); color: var(--s-text-3); letter-spacing: .05em; text-transform: uppercase; margin: 2px 2px 4px; }
.kanban-mini p { font-size: 11.5px; padding: 8px; border-radius: 9px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(196, 178, 255, .1); color: var(--s-text); overflow-wrap: anywhere; line-height: 1.35; }
.kanban-mini p em { display: block; font-style: normal; color: #D8B4FE; font-weight: 700; }
.funnel-mini { display: flex; flex-direction: column; gap: 6px; }
.funnel-mini div { position: relative; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 12.5px; color: #fff; background: linear-gradient(90deg, rgba(91, 20, 248, .55), rgba(194, 28, 244, .35)); margin: 0 auto; }
.insight { border-radius: 14px; padding: 14px; background: linear-gradient(160deg, rgba(91, 20, 248, .2), rgba(255, 255, 255, .02)); border: 1px solid rgba(196, 178, 255, .2); font-size: 13px; color: var(--s-text); line-height: 1.6; }
.insight b { color: #fff; }
.never-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 920px; margin: 0 auto; }
.never-grid div { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--s-card); border: 1px solid var(--s-line); font-size: 14.5px; color: var(--s-text); line-height: 1.5; }
.never-grid svg { width: 18px; height: 18px; color: #FCA5A5; flex-shrink: 0; margin-top: 2px; }

/* reveal on scroll (content is visible without JS; JS opts in) */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-ready .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Sign-in / register / onboarding (app tokens: light + dark)
   ========================================================================== */
.auth { background: var(--bg); }
.auth-main { position: relative; isolation: isolate; overflow: hidden; padding-top: 84px; padding-bottom: 48px; }
.auth-main::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 380px at 85% 0%, var(--aurora-a), transparent 65%), radial-gradient(520px 360px at 0% 100%, var(--aurora-b), transparent 65%); }
.auth-top { display: flex; align-items: center; gap: 10px; position: absolute; top: 22px; left: clamp(20px, 5vw, 48px); right: clamp(20px, 5vw, 48px); font-size: 13.5px; color: var(--text-2); }
.auth-top .brand { display: none; padding: 0; gap: 9px; align-items: center; text-decoration: none; color: var(--text); }
.auth-top .brand .wordmark { color: var(--text); }
.auth-top .sp { flex: 1; }
.auth-top a.link { color: var(--text-2); text-decoration: none; font-weight: 500; }
.auth-top a.link:hover { color: var(--primary-ink); }
.auth-card { position: relative; border-radius: 20px; padding: clamp(24px, 4vw, 34px); background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow-glow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.auth-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(91, 20, 248, .7), rgba(254, 37, 204, .6), transparent); }
.auth-form { max-width: 440px; animation: rise .6s var(--ease) both; }
.auth-form.wide { max-width: 720px; }
.auth-form h1 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.03em; text-wrap: balance; }
.auth-form .lede { font-size: 14.5px; line-height: 1.55; }
.auth-form .kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 4px 11px 4px 8px; border-radius: 99px; font: 600 12px var(--font); color: var(--primary-ink); background: var(--hunt-soft); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); }
.auth-form .kicker .pip { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #8A18F8, #FE25CC); box-shadow: 0 0 8px rgba(254, 37, 204, .8); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 30px; border: 0; background: none; border-radius: 7px; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--primary-ink); background: var(--primary-soft); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter span { height: 4px; border-radius: 9px; background: var(--surface-3); transition: background .3s; }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: var(--warning); }
.pw-meter[data-score="3"] span:nth-child(-n+3) { background: #8A18F8; }
.pw-meter[data-score="4"] span { background: linear-gradient(90deg, #5B14F8, #C21CF4); box-shadow: 0 0 8px rgba(138, 24, 248, .5); }
.auth .input { height: 42px; border-radius: 10px; }
.auth select.input { height: 42px; }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 4px 0; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.next-up { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--border); }
.next-up div { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.next-up svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.plan-chip { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--hunt-soft); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); font-size: 13px; color: var(--text); margin-bottom: 18px; }
.plan-chip svg { color: var(--primary); }

/* auth side panel */
.auth-side { padding: 36px clamp(32px, 4vw, 52px); }
.auth-side::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(196, 178, 255, .12) 1px, transparent 1.2px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(500px 400px at 30% 40%, #000, transparent 75%); mask-image: radial-gradient(500px 400px at 30% 40%, #000, transparent 75%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side .brand img { filter: drop-shadow(0 0 10px rgba(138, 24, 248, .6)); }
.side-chain { margin: 44px 0 32px; }
.side-chain li .k { transition: background .4s, box-shadow .4s, border-color .4s; }
.side-chain li:first-child .k { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.side-chain.cycle li .k { animation: chain-lit 10.5s infinite; }
.side-chain.cycle li:nth-child(2) .k { animation-delay: 1.5s; } .side-chain.cycle li:nth-child(3) .k { animation-delay: 3s; }
.side-chain.cycle li:nth-child(4) .k { animation-delay: 4.5s; } .side-chain.cycle li:nth-child(5) .k { animation-delay: 6s; }
.side-chain.cycle li:nth-child(6) .k { animation-delay: 7.5s; } .side-chain.cycle li:nth-child(7) .k { animation-delay: 9s; }
@keyframes chain-lit { 0%, 14%, 100% { background: rgba(255, 255, 255, .06); box-shadow: none; } 3%, 11% { background: linear-gradient(135deg, #2A1BFA, #8A18F8, #FE25CC); box-shadow: 0 0 18px rgba(254, 37, 204, .65); border-color: transparent; } }
.side-chain li.focus .k { background: linear-gradient(135deg, #2A1BFA, #8A18F8, #FE25CC); border-color: transparent; box-shadow: 0 0 18px rgba(254, 37, 204, .6); }
.side-chain li.dim { opacity: .45; }
.side-chain li.focus b { color: #fff; }
.auth-side p.side-cap { font-size: 11.5px; color: #6E688C; margin-top: 14px; }
.side-focus { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--font); color: #D8CCFF; padding: 5px 11px 5px 8px; border-radius: 99px; background: rgba(138, 24, 248, .16); border: 1px solid rgba(196, 178, 255, .2); margin-top: 40px; }

/* ---------- onboarding ---------- */
.auth.onb { grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); }
.auth.onb .auth-main { justify-content: flex-start; padding-top: 72px; padding-bottom: 56px; }
.auth.onb .auth-side { position: sticky; top: 0; height: 100vh; align-self: start; }
.onb-stepper { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 6px auto 34px; max-width: 720px; width: 100%; }
.onb-stepper::before, .onb-stepper::after { content: ""; position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 15px; height: 2px; border-radius: 2px; background: var(--border); }
.onb-stepper::after { background: linear-gradient(90deg, #2A1BFA, #8A18F8, #FE25CC); box-shadow: 0 0 10px rgba(138, 24, 248, .6); transform-origin: left; transform: scaleX(var(--to, 0)); transition: transform 1s var(--ease); }
.onb-stepper.animating::after { transform: scaleX(var(--from, 0)); transition: none; }
.onb-stepper { padding: 0; }
.site-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--hunt-soft); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); font-size: 13px; color: var(--text); animation: rise .4s var(--ease) both; }
.site-chip .fav { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 800 13px var(--display); color: #fff; background: linear-gradient(135deg, #3A1BFB, #6614F8, #A21AF6); flex-shrink: 0; }
.site-chip b { display: block; }
.site-chip small { color: var(--text-2); }
.onb-stepper li { list-style: none; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; }
.onb-stepper .dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 12.5px var(--display); background: var(--surface); border: 1px solid var(--border); color: var(--text-3); transition: all .4s var(--ease); }
.onb-stepper .dot svg { width: 15px; height: 15px; }
.onb-stepper li.done .dot { color: #fff; border-color: transparent; background: linear-gradient(135deg, #3A1BFB, #6614F8, #A21AF6); box-shadow: 0 6px 16px -6px var(--glow); }
.onb-stepper li.current .dot { color: var(--primary-ink); border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #2A1BFA, #8A18F8, #FE25CC) border-box; box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 12%, transparent), 0 8px 24px -8px var(--glow); }
.onb-stepper span.lb { font-size: 11.5px; font-weight: 600; color: var(--text-3); text-align: center; }
.onb-stepper li.current span.lb, .onb-stepper li.done span.lb { color: var(--text); }
.onb-step { animation: step-in .6s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.onb-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.onb-actions .spacer { flex: 1; }
.welcome-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 24px; }
.welcome-list div { display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.welcome-list div:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.welcome-list .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--hunt-soft); color: var(--primary-ink); }
.welcome-list b { display: block; font-size: 14px; }
.welcome-list small { display: block; color: var(--text-2); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.reassure { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--success-soft) 70%, transparent); color: var(--success-ink); font-size: 13px; line-height: 1.5; margin-bottom: 20px; }
.reassure svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }

/* goal cards and chips */
.opt-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease), background .2s; }
.opt-card:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); transform: translateY(-1px); }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); color: var(--text-2); transition: background .25s, color .25s; }
.opt-card b { display: block; font-size: 13.5px; }
.opt-card small { display: block; font-size: 12px; color: var(--text-2); line-height: 1.4; margin-top: 2px; }
.opt-card:has(input:checked) { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #2A1BFA, #8A18F8, #FE25CC) border-box; border: 1.5px solid transparent; box-shadow: 0 10px 28px -14px var(--glow); }
.opt-card:has(input:checked) .ic { background: linear-gradient(135deg, #3A1BFB, #6614F8, #A21AF6); color: #fff; }
.opt-card:has(input:focus-visible) { box-shadow: var(--ring); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 13px var(--font); cursor: pointer; transition: all .2s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); color: var(--text); }
.chip:has(input:checked) { color: var(--primary-ink); border-color: color-mix(in srgb, var(--primary) 45%, transparent); background: var(--hunt-soft); box-shadow: 0 6px 16px -10px var(--glow); }
.chip:has(input:checked)::before { content: "✓"; font-weight: 800; }
.chip:has(input:focus-visible) { box-shadow: var(--ring); }
.range-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.range-row .input { width: 120px; }
.goal-sec { display: flex; flex-direction: column; gap: 14px; padding: 20px 0; border-top: 1px solid var(--border); }
.goal-sec:first-of-type { border-top: 0; padding-top: 0; }
.goal-sec h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.goal-sec h3 svg { width: 17px; height: 17px; color: var(--primary); }
.goal-sec > p { color: var(--text-2); font-size: 13px; margin-top: -8px; }
.money-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); }
.money-note svg { width: 15px; height: 15px; color: var(--warning-ink); flex-shrink: 0; margin-top: 1px; }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease), opacity .3s; opacity: 0; }
.collapse > div { overflow: hidden; }
.collapse.open { grid-template-rows: 1fr; opacity: 1; }

/* integration cards */
.int-group { margin-bottom: 22px; }
.int-group > h3 { font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.int-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.int-card { position: relative; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, box-shadow .3s, transform .3s var(--ease); }
.int-card:hover { border-color: color-mix(in srgb, var(--primary) 28%, var(--border)); box-shadow: var(--shadow-2); }
.int-card.connected { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); }
.int-card.connected::after { content: ""; position: absolute; inset: auto 16px -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--success), transparent); }
.int-card.open { grid-column: 1 / -1; border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, rgba(42, 27, 250, .6), rgba(138, 24, 248, .5), rgba(254, 37, 204, .6)) border-box; border: 1.5px solid transparent; box-shadow: 0 16px 40px -20px var(--glow); }
.int-card .hd { display: flex; gap: 14px; align-items: center; }
.int-card .tx { flex: 1; min-width: 0; }
.int-card .ttl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.int-card .used { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.int-card .acts { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.int-card .logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; font: 800 14px var(--display); color: #fff; background: linear-gradient(135deg, #3A1BFB, #6614F8, #A21AF6); box-shadow: 0 6px 16px -8px var(--glow); }
.int-card .logo.alt { background: linear-gradient(135deg, #0EA5E9, #6366F1); }
.int-card .logo.grn { background: linear-gradient(135deg, #10B981, #0EA5E9); }
.int-card .logo.org { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.int-card .logo.pnk { background: linear-gradient(135deg, #C21CF4, #FE25CC); }
.int-card h4 { font-size: 14.5px; }
.int-card .desc { font-size: 12.5px; color: var(--text-2); line-height: 1.45; margin-top: 2px; }
.int-card .row-end { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.int-card .row-end .spacer { flex: 1; }
.int-card form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 6px; }
.int-card form .full { grid-column: 1 / -1; }
.int-card .hint-sec { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-2); }
.int-card .hint-sec svg { width: 14px; height: 14px; color: var(--success); }
.int-status { font-size: 12px; }

/* setup checklist */
.checklist { display: flex; flex-direction: column; gap: 8px; }
.ck-head { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.ring { --p: 0; position: relative; width: 74px; height: 74px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: conic-gradient(from -90deg, #2A1BFA, #8A18F8 calc(var(--p) * .5%), #FE25CC calc(var(--p) * 1%), var(--surface-3) calc(var(--p) * 1%)); box-shadow: 0 10px 26px -12px var(--glow); transition: --p 1s var(--ease); }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font: 800 17px var(--display); letter-spacing: -.02em; }
.ck-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; animation: rise .5s var(--ease) both; }
.ck-item:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); transform: translateX(2px); box-shadow: var(--shadow-2); text-decoration: none; }
.ck-item .st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 1.5px dashed var(--border-strong); color: var(--text-3); }
.ck-item .st svg { width: 14px; height: 14px; }
.ck-item.done .st { border: 0; color: #fff; background: linear-gradient(135deg, #10B981, #059669); box-shadow: 0 4px 12px -4px rgba(16, 185, 129, .7); }
.ck-item.done b { color: var(--text-2); }
.ck-item.next { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, rgba(42, 27, 250, .6), rgba(254, 37, 204, .6)) border-box; border: 1.5px solid transparent; }
.ck-item .tx { flex: 1; min-width: 0; }
.ck-item b { display: block; font-size: 13.5px; }
.ck-item small { display: block; font-size: 12px; color: var(--text-2); line-height: 1.4; margin-top: 1px; }
.ck-item .go { color: var(--text-3); }
.ck-item.next .go { color: var(--primary); }

/* keyframes reused from app.css: flow, rise, spin-angle */

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .agents7 { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
  .agents7::before { display: none; }
  .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aw-body { grid-template-columns: 1fr; }
  .aw-side { display: none; }
}
@media (min-width: 981px) and (max-width: 1140px) {
  .site-links { margin-left: 6px; gap: 0; }
  .site-links a { padding: 8px 9px; }
}
@media (max-width: 980px) {
  .site-links, .site-actions { display: none; }
  .nav-toggle { display: grid; }
  .nav-sheet { position: fixed; inset: 68px 0 auto; z-index: 49; padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); background: rgba(9, 6, 28, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--s-line); flex-direction: column; gap: 6px; }
  .site-nav.open .nav-sheet { display: flex; animation: rise .3s var(--ease) both; }
  .nav-sheet a { padding: 12px 14px; border-radius: 12px; font-weight: 600; text-decoration: none; color: var(--s-text); }
  .nav-sheet a:hover { background: rgba(255, 255, 255, .06); }
  .nav-sheet .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  .nav-sheet form { display: contents; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .constellation { max-width: 420px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .feat { grid-template-columns: 1fr; }
  .feat:nth-of-type(even) .feat-copy { order: 0; }
  .auth.onb { grid-template-columns: 1fr; }
  .auth-top .brand { display: inline-flex; }
}
@media (max-width: 640px) {
  .agents7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps4, .principles, .never-grid { grid-template-columns: 1fr; }
  .aw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aw-card:nth-child(n+5):not(.aw-wide) { display: none; }
  .kanban-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vis-kv { grid-template-columns: 1fr 1fr; }
  .feat-nav { display: none; }
  .hero .constellation { max-width: 250px; margin-top: 8px; }
  .auth-top .pre { display: none; }
  .welcome-list, .opt-cards, .int-grid, .int-card form { grid-template-columns: 1fr; }
  .int-card .hd { flex-wrap: wrap; align-items: flex-start; }
  .int-card .acts { width: 100%; justify-content: flex-end; }
  .onb-stepper span.lb { display: none; }
  .onb-stepper .dot { width: 28px; height: 28px; }
  .auth-main { padding: 76px 16px 40px; }
  .auth.onb .auth-main { padding-top: 72px; }
  .auth-card { padding: 20px; border-radius: 16px; }
  .onb-actions { position: sticky; bottom: 0; z-index: 5; margin: 8px -20px -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--border); border-radius: 0 0 16px 16px; }
  .onb-actions { flex-direction: column-reverse; align-items: stretch; gap: 6px; }
  .onb-actions .btn { width: 100%; }
  .onb-actions .btn.ghost { height: 36px; }
  .onb-actions .spacer { display: none; }
  .ck-item span.go { display: none; }
  .ck-item .badge { display: none; }
  .cta-band { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .app-window { transform: none; }
}
