/* =====================================================================
   LinkPress v6 — 2027 refresh, loaded after style.css.
   Goal picker, bento outcomes, area meters, glossary, stepped brief form,
   mobile footer accordions, sticky mobile CTA.
   ===================================================================== */
:root {
  --glass: rgba(26, 26, 38, 0.62);
  --glass-line: rgba(255, 255, 255, 0.08);
  --ai: #8f7bff;
  --ai-soft: #c9b8ff;
  --ok: #4fd69c;
  --radius-lg: 22px;
}

/* ---- Hero v2 ---- */
.hero-v2 { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-v2 h1 { max-width: 15ch; margin-bottom: 1.5rem; }
.hero-v2 h1 em, .grad { font-style: italic; background: linear-gradient(110deg, var(--accent) 10%, var(--accent-warm) 55%, var(--ai) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-v2 .hero-lead { margin-bottom: 2rem; }
.pill-note { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .45rem; border: 1px solid var(--glass-line); border-radius: 100px; background: var(--glass); font-size: .82rem; color: var(--paper-dim); margin-bottom: 1.6rem; backdrop-filter: blur(8px); }
.pill-note b { background: var(--ai); color: #fff; font-weight: 600; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 100px; font-family: var(--font-mono); }
.pill-note:hover { color: var(--paper); }

/* Goal picker chips */
.goal-picker { margin: 0 0 2rem; }
.goal-picker-label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-mute); margin-bottom: .8rem; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .62rem 1rem; border-radius: 100px; border: 1px solid var(--ink-line); background: var(--ink-card); color: var(--paper); font-size: .92rem; font-weight: 500; transition: all .18s; cursor: pointer; font-family: var(--font-body); min-height: 44px; }
.chip .ic { color: var(--accent); font-size: .95rem; }
.chip:hover { border-color: var(--accent); color: var(--paper); transform: translateY(-1px); }
.chip.is-ai { border-color: rgba(143, 123, 255, .45); }
.chip.is-ai .ic { color: var(--ai); }

/* Signal panel (hero right) */
.signal-card { position: relative; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-lg); padding: 1.6rem; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 80px -30px rgba(255, 61, 104, .35); }
.signal-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255,61,104,.6), rgba(255,184,77,.15) 40%, rgba(143,123,255,.55)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.signal-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-mute); margin-bottom: 1.2rem; }
.signal-head .live { color: var(--ok); display: inline-flex; align-items: center; gap: .4rem; }
.signal-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: lp-pulse 2s infinite; }
@keyframes lp-pulse { 50% { opacity: .35; } }
.signal-row { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: .95rem 0; border-top: 1px solid var(--glass-line); }
.signal-row strong { color: var(--paper); font-weight: 600; font-size: .98rem; }
.signal-row small { grid-column: 1 / -1; color: var(--paper-mute); font-size: .82rem; line-height: 1.4; }
.signal-row .val { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-warm); }
.signal-row .bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--ink-line); overflow: hidden; }
.signal-row .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-warm)); width: var(--w, 50%); animation: lp-grow 1.4s cubic-bezier(.2,.8,.2,1) both; }
.signal-row.ai .bar i { background: linear-gradient(90deg, var(--ai), var(--ai-soft)); }
.signal-row.ai .val { color: var(--ai-soft); }
@keyframes lp-grow { from { width: 0; } }
.signal-foot { font-size: .8rem; color: var(--paper-mute); margin-top: .6rem; max-width: none; }

/* Stats v2 */
.stats-5 { grid-template-columns: repeat(5, 1fr); margin-top: 3rem; }
@media (max-width: 900px) { .stats-5 { grid-template-columns: repeat(2, 1fr); } .stats-5 .stat:last-child { grid-column: 1 / -1; } }

/* ---- Bento outcomes ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.bento > * { background: var(--ink-card); border: 1px solid var(--ink-line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); position: relative; overflow: hidden; }
.bento .b-wide { grid-column: span 4; }
.bento .b-tall { grid-column: span 2; grid-row: span 2; }
.bento .b-third { grid-column: span 2; }
.bento .b-half { grid-column: span 3; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento > * { grid-column: auto !important; grid-row: auto !important; } }
.bento h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: .8rem 0 .7rem; }
.bento p { font-size: .97rem; }
.bento .kicker { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.bento .b-ai { background: radial-gradient(120% 90% at 100% 0%, rgba(143,123,255,.22), transparent 60%), var(--ink-card); border-color: rgba(143,123,255,.35); }
.bento .b-ai .kicker { color: var(--ai-soft); }
.bento ul.mini { list-style: none; margin-top: 1.2rem; display: grid; gap: .55rem; }
.bento ul.mini li { display: flex; gap: .6rem; font-size: .93rem; color: var(--paper-dim); }
.bento ul.mini li::before { content: "→"; color: var(--accent); flex: none; }
.bento .b-ai ul.mini li::before { color: var(--ai); }
.bento .more { display: inline-block; margin-top: 1.2rem; font-weight: 600; font-size: .93rem; }
.bento .b-ai .more { color: var(--ai-soft); }
.engine-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.engine-row span { font-family: var(--font-mono); font-size: .75rem; padding: .3rem .65rem; border-radius: 100px; border: 1px solid rgba(143,123,255,.35); color: #d9ceff; background: rgba(143,123,255,.08); }
.big-num { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5rem); font-weight: 700; line-height: 1; }

/* ---- Area cards ---- */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.area-card { display: flex; flex-direction: column; background: var(--ink-card); border: 1px solid var(--ink-line); border-radius: 18px; padding: 1.4rem; transition: border-color .2s, transform .2s; color: inherit; scroll-margin-top: 90px; }
.area-card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.area-card:target { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,61,104,.12); }
.area-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.area-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,61,104,.1); color: var(--accent); font-size: 1.2rem; }
.meter { display: inline-flex; gap: 3px; align-items: flex-end; }
.meter i { width: 6px; border-radius: 2px; background: var(--ink-line); }
.meter i:nth-child(1) { height: 8px; }
.meter i:nth-child(2) { height: 12px; }
.meter i:nth-child(3) { height: 16px; }
.meter[data-l="1"] i:nth-child(1),
.meter[data-l="2"] i:nth-child(-n+2),
.meter[data-l="3"] i { background: var(--accent-warm); }
.area-card h3 { font-size: 1.22rem; margin: 1rem 0 .45rem; }
.area-card p { font-size: .92rem; }
.area-fits { margin-top: .9rem; font-size: .82rem; color: var(--paper-mute); line-height: 1.5; flex: 1; }
.area-fits b { color: var(--paper-dim); font-weight: 600; }
.area-cta { margin-top: 1rem; font-size: .88rem; font-weight: 600; color: var(--accent); }
.area-depth { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-mute); display: inline-flex; align-items: center; gap: .5rem; }
.marquee-item.area { font-style: normal; font-family: var(--font-mono); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---- Glossary ---- */
.gl-tools { position: sticky; top: 64px; z-index: 20; background: rgba(10,10,18,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--ink-line); padding: 1rem 0 .7rem; }
.gl-search { position: relative; max-width: 560px; }
.gl-search input { width: 100%; background: var(--ink-card); border: 1px solid var(--ink-line); border-radius: 100px; padding: .9rem 1.2rem .9rem 2.9rem; color: var(--paper); font-size: 1rem; font-family: var(--font-body); }
.gl-search input:focus { outline: none; border-color: var(--accent); }
.gl-search::before { content: "⌕"; position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--paper-mute); font-size: 1.15rem; }
.gl-cats { display: flex; gap: .45rem; overflow-x: auto; padding: .8rem 0 .1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gl-cats::-webkit-scrollbar { display: none; }
.gl-cats a { flex: none; font-size: .84rem; padding: .45rem .85rem; border-radius: 100px; border: 1px solid var(--ink-line); color: var(--paper-dim); background: var(--ink-card); white-space: nowrap; }
.gl-cats a:hover { border-color: var(--accent); color: var(--paper); }
.gl-cats a.is-ai { border-color: rgba(143,123,255,.45); color: var(--ai-soft); }
.gl-count { font-family: var(--font-mono); font-size: .75rem; color: var(--paper-mute); margin-top: .4rem; }
.gl-section { padding: clamp(2.5rem, 5vw, 4rem) 0 0; scroll-margin-top: 170px; }
.gl-section > header { margin-bottom: 1.4rem; }
.gl-section > header h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.gl-section > header p { font-size: .98rem; margin-top: .5rem; }
.gl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
@media (max-width: 420px) { .gl-list { grid-template-columns: 1fr; } }
.term { background: var(--ink-card); border: 1px solid var(--ink-line); border-radius: 16px; padding: 1.3rem 1.4rem; scroll-margin-top: 170px; transition: border-color .2s; }
.term:target { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,61,104,.12); }
.term h3 { font-size: 1.2rem; display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; }
.term h3 a.anchor { color: var(--paper-mute); font-size: .9rem; font-family: var(--font-mono); opacity: .35; transition: opacity .15s; }
.term:hover h3 a.anchor, .term h3 a.anchor:focus { opacity: 1; }
.term .aka { font-family: var(--font-mono); font-size: .74rem; color: var(--paper-mute); margin-top: .3rem; }
.term p { font-size: .95rem; margin-top: .65rem; max-width: none; }
.term .term-link { display: inline-block; margin-top: .8rem; font-size: .86rem; font-weight: 600; }
.term.is-ai { border-color: rgba(143,123,255,.3); }
.term.is-ai .term-link { color: var(--ai-soft); }
.gl-empty { display: none; padding: 3rem 0; text-align: center; color: var(--paper-mute); }
.gl-empty p { margin: 0 auto 1rem; }

/* ---- Brief form (stepped) ---- */
.brief-shell { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .brief-shell { grid-template-columns: 1fr; } }
.brief { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-lg); padding: clamp(1.2rem, 3.5vw, 2.4rem); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); max-width: none; }
.brief-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: 1.8rem; list-style: none; }
.brief-progress li { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-mute); padding-top: .7rem; border-top: 3px solid var(--ink-line); transition: all .25s; }
.brief-progress li.is-done, .brief-progress li.is-on { border-color: var(--accent); color: var(--paper); }
@media (max-width: 520px) { .brief-progress li span { display: none; } }
.step-pane { border: 0; display: none; flex-direction: column; gap: 1.1rem; min-width: 0; padding: 0; margin: 0; }
.step-pane.is-on { display: flex; animation: lp-fadeUp .35s ease both; }
.no-js .step-pane { display: flex; margin-bottom: 2.5rem; }
@keyframes lp-fadeUp { from { opacity: 0; transform: translateY(8px); } }
.step-pane legend { font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 600; color: var(--paper); line-height: 1.15; margin-bottom: .2rem; padding: 0; }
.step-pane .hint { font-size: .93rem; color: var(--paper-mute); margin-top: -.3rem; }
.group-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--paper-mute); font-family: var(--font-mono); margin-bottom: .5rem; display: block; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.opt-grid.compact { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.form label.opt { position: relative; display: block; cursor: pointer; text-transform: none; letter-spacing: 0; font-family: var(--font-body); margin: 0; font-size: inherit; color: inherit; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .opt-body { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--ink-line); border-radius: 14px; background: var(--ink-card); transition: all .15s; height: 100%; min-height: 44px; }
.opt-grid.compact .opt-body { padding: .7rem .85rem; align-items: center; }
.opt .opt-ic { color: var(--accent); font-size: 1.05rem; line-height: 1.4; flex: none; width: 1.2rem; text-align: center; }
.opt strong { display: block; color: var(--paper); font-size: .95rem; font-weight: 600; }
.opt small { display: block; color: var(--paper-mute); font-size: .8rem; line-height: 1.4; margin-top: .15rem; }
.opt:hover .opt-body { border-color: var(--paper-mute); }
.opt input:checked + .opt-body { border-color: var(--accent); background: rgba(255,61,104,.09); box-shadow: inset 0 0 0 1px var(--accent); }
.opt input:focus-visible + .opt-body { outline: 2px solid var(--accent-warm); outline-offset: 2px; }
.opt.is-ai .opt-ic { color: var(--ai); }
.opt.is-ai input:checked + .opt-body { border-color: var(--ai); background: rgba(143,123,255,.1); box-shadow: inset 0 0 0 1px var(--ai); }
.seg { display: flex; flex-wrap: wrap; gap: .45rem; }
.seg .opt .opt-body { padding: .55rem 1rem; border-radius: 100px; align-items: center; }
.seg .opt strong { font-size: .9rem; font-weight: 500; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.form label .opt-tag { text-transform: none; letter-spacing: 0; color: var(--paper-mute); font-family: var(--font-body); font-size: .8rem; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .6rem; flex-wrap: wrap; }
.no-js .step-nav .btn-next, .no-js .step-nav .btn-back { display: none; }
.btn-back { background: none; border: none; color: var(--paper-dim); font: inherit; cursor: pointer; padding: .8rem 0; min-height: 44px; }
.btn-back:hover { color: var(--accent); }
.btn-back[hidden] { display: none; }
.step-err { display: none; color: #ff7793; font-size: .9rem; }
.step-err.on { display: block; }
.brief-summary { background: var(--ink-deep); border: 1px dashed var(--ink-line); border-radius: 14px; padding: 1rem 1.1rem; font-size: .88rem; }
.brief-summary dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; }
.brief-summary dt { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--paper-mute); padding-top: .15rem; }
.brief-summary dd { margin: 0; color: var(--paper); }
.brief-done { text-align: center; padding: 2rem 0; }
.brief-done .tick { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.2rem; background: rgba(79,214,156,.12); color: var(--ok); font-size: 1.8rem; border: 1px solid rgba(79,214,156,.4); }
.brief-done p { margin: .8rem auto 0; }
.side-card { background: var(--ink-card); border: 1px solid var(--ink-line); border-radius: 18px; padding: 1.6rem; }
.side-card + .side-card { margin-top: 1rem; }
.side-card h3 { font-size: 1.3rem; margin-top: .4rem; }
.side-card p { font-size: .94rem; margin-top: .5rem; }
.side-steps { list-style: none; display: grid; gap: 1.1rem; margin-top: 1.1rem; }
.side-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; }
.side-steps b { font-family: var(--font-display); color: var(--accent); font-size: 1.4rem; line-height: 1; }
.side-steps strong { color: var(--paper); display: block; font-size: .97rem; }
.side-steps span { color: var(--paper-dim); font-size: .9rem; }

/* ---- Footer v2 (mobile accordions, always open on desktop) ---- */
.foot-grid { grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; }
.foot-toggle { all: unset; display: flex; justify-content: space-between; align-items: center; width: 100%; cursor: default; box-sizing: border-box; }
.foot-toggle .pm { display: none; }
.foot-contact { display: grid; gap: .6rem; margin-top: 1.2rem; }
.foot-contact a { display: inline-flex; align-items: center; gap: .6rem; color: var(--paper); font-weight: 500; }
.foot-contact a span { color: var(--accent); }
@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr; gap: 0; }
  .foot-brand { padding-bottom: 1.6rem; border-bottom: 1px solid var(--ink-line); }
  .foot-contact a { min-height: 52px; padding: 0 1.1rem; border: 1px solid var(--ink-line); border-radius: 14px; background: var(--ink-card); font-size: 1.02rem; }
  .foot-col.acc { border-bottom: 1px solid var(--ink-line); }
  .foot-col.acc h5 { margin: 0; }
  .foot-toggle { cursor: pointer; min-height: 56px; color: var(--paper); }
  .foot-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .foot-toggle .pm { display: inline-block; font-size: 1.3rem; color: var(--accent); transition: transform .2s; font-family: var(--font-body); }
  .foot-toggle[aria-expanded="true"] .pm { transform: rotate(45deg); }
  .foot-col.acc ul { display: none; padding-bottom: 1rem; }
  .foot-col.acc ul.open { display: block; }
  .foot-col.acc li { margin: 0; }
  .foot-col.acc li a { display: block; padding: .6rem 0; font-size: 1rem; }
  .foot-bottom { flex-direction: column; }
}

/* ---- Sticky mobile CTA ---- */
.mobile-cta { display: none; }
@media (max-width: 800px) {
  .mobile-cta { display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(10,10,18,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--ink-line); transform: translateY(110%); transition: transform .25s; }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { flex: 1; justify-content: center; padding: .85rem 1rem; }
  footer { padding-bottom: 6rem; }
}

/* ---- Small helpers ---- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center p { margin-left: auto; margin-right: auto; }
.gl-teaser { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.gl-teaser a { display: block; padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--ink-card); border: 1px solid var(--ink-line); color: inherit; transition: all .2s; }
.gl-teaser a:hover { border-color: var(--accent); transform: translateY(-2px); }
.gl-teaser strong { display: block; font-family: var(--font-display); font-size: 1.08rem; color: var(--paper); }
.gl-teaser span { display: block; font-size: .85rem; color: var(--paper-mute); margin-top: .3rem; line-height: 1.45; }
.inline-search { display: flex; gap: .6rem; max-width: 560px; margin: 0 auto 2rem; }
.inline-search input { flex: 1; min-width: 0; background: var(--ink-card); border: 1px solid var(--ink-line); border-radius: 100px; padding: .9rem 1.2rem; color: var(--paper); font: inherit; }
.inline-search input:focus { outline: none; border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav-inner.wrap { padding-left: var(--gut); padding-right: var(--gut); }

/* Nav dropdowns: invisible bridge over the gap under the trigger, and a short
   grace period before closing, so a slow move down to the menu keeps it open. */
@media (min-width: 801px) {
  .drop::before { content: ""; position: absolute; left: 0; right: 0; top: -1.4rem; height: 1.4rem; }
  .drop { transition: opacity .18s ease .25s, transform .18s ease .25s, visibility 0s linear .43s; }
  .has-drop:hover > .drop,
  .has-drop.open > .drop,
  .has-drop:focus-within > .drop { transition-delay: 0s; }
}
