/* ===================== LINK BUILDING ===================== */

.wb-status.lb-illus { color: var(--dim); border: 1px dashed var(--line-2); border-radius: 6px; padding: 2px 7px; font-size: 10.5px; text-transform: uppercase; }

/* ---------- hero ---------- */
.lb-hero { overflow: hidden; }
.lb-hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.lb-title { font-size: clamp(42px, 5.6vw, 84px); max-width: 12ch; }
.lb-rules { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.lb-rules li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 8px; border-radius: 999px; font-size: 14px; color: var(--muted); border: 1px solid var(--line-2); background: var(--surface); }
.lb-rules li i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 10px; font-weight: 700; background: rgba(255, 111, 134, 0.16); color: var(--rose); }
.lb-rules li:not(.is-yes) { text-decoration: line-through; text-decoration-color: rgba(255, 111, 134, 0.6); }
.lb-rules li.is-yes { color: var(--text); border-color: rgba(87, 242, 176, 0.45); }
.lb-rules li.is-yes i { background: var(--mint); color: var(--bg); }

.lb-net-win { overflow: hidden; }
.lb-net { position: relative; height: clamp(360px, 42vw, 500px); }
.lb-net canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lb-net-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 18px 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.lb-net-foot span { display: inline-flex; align-items: center; gap: 7px; }
.lb-net-foot .dim { margin-left: auto; }
.lb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.lb-dot.is-you { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.lb-net-note { margin-top: 12px; font-size: 11.5px; text-align: right; }
@media (max-width: 1020px) { .lb-hero-grid { grid-template-columns: 1fr; } .lb-net-note { text-align: left; } }
@media (max-width: 560px) { .lb-net { height: 340px; } .lb-net-foot .dim { display: none; } }

/* ---------- tactics ---------- */
.tactic { min-height: 250px; transform-style: preserve-3d; }
.tactic .code { display: block; margin-bottom: 54px; }
.tactic-viz { position: absolute; right: 22px; top: 22px; width: 70px; height: 46px; }
.tv-out i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); left: 0; top: 18px; animation: tvout 2.4s var(--ease) infinite; }
.tv-out i:nth-child(2) { animation-delay: 0.8s; } .tv-out i:nth-child(3) { animation-delay: 1.6s; }
@keyframes tvout { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(58px, -14px); opacity: 0; } }
.tv-nch i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); margin-bottom: 7px; }
.tv-nch i:nth-child(2) { width: 80%; } .tv-nch i:nth-child(3) { width: 60%; }
.tv-nch b { position: absolute; left: 14px; top: 11px; width: 26px; height: 5px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: tvblink 2s infinite; }
@keyframes tvblink { 50% { opacity: 0.35; } }
.tv-brk { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 12px; }
.tv-brk s { color: var(--rose); text-decoration-thickness: 2px; animation: tvfade 3s infinite; }
.tv-brk b { color: var(--mint); font-weight: 600; padding: 2px 6px; border-radius: 5px; background: rgba(87, 242, 176, 0.12); animation: tvpop 3s infinite; }
@keyframes tvfade { 0%, 40% { opacity: 1; } 60%, 100% { opacity: 0.3; } }
@keyframes tvpop { 0%, 45% { opacity: 0.3; transform: scale(0.9); } 60%, 100% { opacity: 1; transform: none; } }
.tv-syn i { position: absolute; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent); }
.tv-syn i:nth-child(1) { left: 30px; top: 18px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tv-syn i:nth-child(2) { left: 4px; top: 4px; animation: tvblink 2s 0.2s infinite; } .tv-syn i:nth-child(3) { left: 58px; top: 4px; animation: tvblink 2s 0.7s infinite; } .tv-syn i:nth-child(4) { left: 32px; top: 36px; animation: tvblink 2s 1.2s infinite; }
.tv-cit i { position: absolute; right: 18px; top: 6px; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--rose); box-shadow: 0 0 14px rgba(255, 111, 134, 0.8); }
.tv-cit::after { content: ""; position: absolute; right: 12px; top: 22px; width: 28px; height: 10px; border-radius: 50%; border: 1px solid rgba(255, 111, 134, 0.5); animation: tvring 2s var(--ease) infinite; }
@keyframes tvring { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.tv-pr i { position: absolute; right: 0; width: 46px; height: 7px; border-radius: 4px; background: rgba(154, 131, 255, 0.35); animation: tvpr 2.4s var(--ease) infinite; }
.tv-pr i:nth-child(1) { top: 4px; } .tv-pr i:nth-child(2) { top: 18px; width: 36px; animation-delay: 0.3s; } .tv-pr i:nth-child(3) { top: 32px; width: 54px; animation-delay: 0.6s; }
@keyframes tvpr { 0%, 100% { transform: scaleX(0.4); transform-origin: right; } 50% { transform: scaleX(1); } }

/* ---------- horizontal process ---------- */
.lb-process { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.hs-pin { position: relative; }
.hs-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: var(--container); }
.hs-head .lead { margin-top: 18px; }
.hs-viewport { overflow: hidden; }
.hs-track { display: flex; align-items: stretch; gap: 18px; padding: 0 var(--gutter); padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); width: max-content; will-change: transform; }
.hs-step { position: relative; width: 340px; flex: none; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(20, 32, 78, 0.6), rgba(10, 18, 48, 0.6)); }
.hs-n { font-size: 34px; color: transparent; -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.7); line-height: 1; }
.hs-step h3 { font-size: 23px; margin: 26px 0 10px; }
.hs-step p { color: var(--muted); font-size: 15.5px; }
.hs-gate { width: 200px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 22px 16px; border-radius: var(--r); border: 1px dashed rgba(255, 190, 92, 0.55); background: rgba(255, 190, 92, 0.05); transition: border-color 0.5s, background 0.5s; }
.hs-gate .mono { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); transition: color 0.5s; }
.hs-gate b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.gate-state { font-style: normal; font-size: 10.5px !important; color: var(--dim) !important; text-transform: none !important; letter-spacing: 0.02em !important; }
.gate-icon { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 190, 92, 0.12); border: 1px solid rgba(255, 190, 92, 0.5); margin-bottom: 6px; transition: all 0.5s var(--ease); }
.gate-icon svg { position: absolute; width: 24px; height: 24px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.4s, transform 0.5s var(--ease); }
.gate-lock { stroke: var(--amber); }
.gate-ok { stroke: var(--bg); opacity: 0; transform: scale(0.4); }
.hs-gate.is-ok { border-color: rgba(87, 242, 176, 0.6); background: rgba(87, 242, 176, 0.06); border-style: solid; }
.hs-gate.is-ok .mono { color: var(--mint); }
.hs-gate.is-ok .gate-icon { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 30px rgba(87, 242, 176, 0.6); }
.hs-gate.is-ok .gate-lock { opacity: 0; transform: scale(0.4); }
.hs-gate.is-ok .gate-ok { opacity: 1; transform: none; }
.hs-gate.is-ok .gate-state { color: var(--mint) !important; }
.hs-progress { margin-top: 34px; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.hs-progress i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8); }
@media (max-width: 900px) {
  .hs-viewport { overflow: visible; }
  .hs-track { flex-direction: column; width: auto; padding: 0 var(--gutter); gap: 12px; }
  .hs-step, .hs-gate { width: auto; }
  .hs-gate { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; gap: 4px 12px; padding: 16px 18px; }
  .hs-gate .gate-icon { width: 42px; height: 42px; margin: 0; }
  .hs-gate b { flex: 1; min-width: 160px; }
  .gate-state { width: 100%; }
  .hs-step h3 { margin-top: 16px; }
  .hs-progress { display: none; }
}

/* ---------- quality sort ---------- */
.sort { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.sort-stage { position: relative; width: 100%; }
.sort-pile { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 20px; pointer-events: none; }
.sort-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sort-col { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(5, 10, 28, 0.5); transition: border-color 0.6s, background 0.6s; }
.sort-col h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 2vw, 26px); margin-bottom: 20px; }
.sort-col h3 span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; }
.sort-col.is-do h3 span { background: rgba(87, 242, 176, 0.15); color: var(--mint); }
.sort-col.is-never h3 span { background: rgba(255, 111, 134, 0.15); color: var(--rose); }
.sort-col ul { display: flex; flex-direction: column; gap: 10px; min-height: 40px; }
.sort.is-sorted .sort-col.is-do { border-color: rgba(87, 242, 176, 0.35); background: rgba(87, 242, 176, 0.03); }
.sort.is-sorted .sort-col.is-never { border-color: rgba(255, 111, 134, 0.3); background: rgba(255, 111, 134, 0.03); }
.q-chip { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(14, 24, 64, 0.95); font-size: 15px; color: var(--text); line-height: 1.35; will-change: transform; }
.sort-pile .q-chip { display: inline-flex; font-size: 14px; padding: 10px 14px; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8); }
.q-chip::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--dim); transition: background 0.4s; }
.sort-col .q-chip[data-kind="do"]::before { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.sort-col .q-chip[data-kind="never"] { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 111, 134, 0.7); }
.sort-col .q-chip[data-kind="never"]::before { background: var(--rose); }
.sort-replay { opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.sort.is-sorted .sort-replay { opacity: 1; pointer-events: auto; }
html:not(.js) .sort-replay { display: none; }
@media (max-width: 760px) { .sort-cols { grid-template-columns: 1fr; } }

/* ---------- E-E-A-T ---------- */
.eeat-card { min-height: 290px; display: flex; flex-direction: column; }
.eeat-l { font-size: clamp(90px, 10vw, 140px); font-weight: 600; line-height: 0.85; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.5); margin-bottom: auto; transition: -webkit-text-stroke-color 0.4s, color 0.4s; }
.eeat-card:hover .eeat-l { color: rgba(var(--accent-rgb), 0.18); -webkit-text-stroke-color: var(--cyan); }
.eeat-card h3 { margin-top: 26px; }
@media (max-width: 640px) { .eeat-card { min-height: 0; } .eeat-l { font-size: 80px; } }

/* ---------- signals ---------- */
.signals { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.signals .illus-tag { top: 10px; right: 12px; }
.signal { background: var(--bg); padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 22px; }
.signal .mono { font-size: 12px; color: var(--accent); }
.signal h3 { font-size: 19px; margin: 8px 0 8px; }
.signal p { color: var(--muted); font-size: 14.5px; }
.sig-viz { width: 100%; height: 70px; }
.sig-line { fill: none; stroke: var(--mint); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 2s var(--ease) 0.3s; filter: drop-shadow(0 0 6px rgba(87, 242, 176, 0.6)); }
.signal.is-in .sig-line { stroke-dashoffset: 0; }
.sig-stack { display: flex; align-items: center; gap: 3px; }
.sig-stack i { height: 14px; width: var(--w); border-radius: 4px; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.sig-stack i:nth-child(1) { background: var(--accent); } .sig-stack i:nth-child(2) { background: var(--violet); transition-delay: 0.15s; } .sig-stack i:nth-child(3) { background: var(--cyan); transition-delay: 0.3s; } .sig-stack i:nth-child(4) { background: var(--mint); transition-delay: 0.45s; }
.signal.is-in .sig-stack i { transform: scaleX(1); }
.sig-bars { display: flex; align-items: flex-end; gap: 6px; }
.sig-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--violet), rgba(154, 131, 255, 0.2)); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); }
.sig-bars i:nth-child(2) { transition-delay: 0.08s; } .sig-bars i:nth-child(3) { transition-delay: 0.16s; } .sig-bars i:nth-child(4) { transition-delay: 0.24s; } .sig-bars i:nth-child(5) { transition-delay: 0.32s; } .sig-bars i:nth-child(6) { transition-delay: 0.4s; }
.signal.is-in .sig-bars i { transform: scaleY(1); }
.sig-web { fill: none; stroke: var(--line-2); stroke-width: 1; }
.sig-radar { fill: rgba(70, 225, 255, 0.16); stroke: var(--cyan); stroke-width: 1.5; transform-origin: 80px 36px; transform: scale(0.2); opacity: 0; transition: transform 1.2s var(--ease) 0.2s, opacity 0.6s 0.2s; }
.signal.is-in .sig-radar { transform: none; opacity: 1; }
.sig-nodes line { stroke: rgba(var(--accent-rgb), 0.5); stroke-width: 1.2; }
.sig-nodes circle { fill: var(--accent); }
.sig-nodes circle:first-of-type { fill: #fff; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.9)); }
.signal.is-in .sig-nodes circle:not(:first-of-type) { animation: tvblink 2.4s infinite; }
.verify { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.verify p { color: var(--muted); font-size: 15.5px; }
.verify ul { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1100px) { .signals { grid-template-columns: repeat(2, minmax(0, 1fr)); } .signal:last-child { grid-column: span 2; } }
@media (max-width: 600px) { .signals { grid-template-columns: 1fr; } .signal:last-child { grid-column: auto; } }

/* ---------- budget ---------- */
.budget-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); align-items: center; }
.budget-grid .lead { margin-top: 20px; }
.budget { padding: clamp(24px, 3.4vw, 40px); }
.budget-top { display: flex; justify-content: space-between; align-items: center; }
.budget-val { display: block; margin: 18px 0 14px; font-size: clamp(52px, 6vw, 80px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.budget-val.is-scope { font-size: clamp(40px, 4.6vw, 64px); }
.budget-val small { font-size: 0.35em; color: var(--muted); -webkit-text-fill-color: var(--muted); letter-spacing: -0.01em; }
.budget-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) 0%, var(--violet) var(--p, 18%), rgba(150, 172, 255, 0.16) var(--p, 18%)); outline: none; cursor: pointer; }
.budget-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.2), 0 6px 20px rgba(0, 0, 0, 0.6); cursor: grab; }
.budget-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.2); cursor: grab; }
.budget-range:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; }
.budget-scale { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 11px; color: var(--dim); }
.budget-meter { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 14px 16px; margin-top: 28px; font-size: 11px; }
.bm-track { height: 10px; border-radius: 6px; background: rgba(150, 172, 255, 0.12); overflow: hidden; }
.bm-track i { display: block; height: 100%; width: 20%; border-radius: 6px; background: linear-gradient(90deg, var(--mint), var(--cyan)); box-shadow: 0 0 14px rgba(87, 242, 176, 0.6); transition: width 0.35s var(--ease); }
.bm-dots { display: flex; gap: 6px; }
.bm-dots i { flex: 1; height: 10px; border-radius: 3px; background: rgba(150, 172, 255, 0.12); transition: background 0.3s; }
.bm-dots i.is-on { background: var(--violet); box-shadow: 0 0 10px rgba(154, 131, 255, 0.6); }
.budget-note { margin-top: 22px; color: var(--muted); font-size: 15px; min-height: 2.6em; }
.budget-cta { margin-top: 22px; width: 100%; }
@media (max-width: 900px) { .budget-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .budget-meter { grid-template-columns: 1fr; gap: 8px; } .budget-scale { font-size: 10px; } }

/* ---------- faq ---------- */
.lb-faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.lb-faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 30px); }
@media (max-width: 900px) { .lb-faq-grid { grid-template-columns: 1fr; } .lb-faq-grid .section-head { position: static; } }
.sort-pile .q-chip { max-width: 100%; white-space: normal; }
@media (max-width: 760px) { .sort-pile { align-content: flex-start; padding: 80px 8px 20px; } .sort-pile .q-chip { font-size: 13px; padding: 9px 12px; } }
.sort.is-narrow .sort-replay { display: none; }

/* ---------- day theme ---------- */
html[data-theme="light"] .tv-nch i { background: rgba(30, 50, 120, 0.13); }
html[data-theme="light"] .hs-step { background: linear-gradient(180deg, #ffffff, #f6f8ff); box-shadow: 0 14px 34px -22px rgba(20, 40, 110, 0.3); }
html[data-theme="light"] .hs-gate { background: rgba(180, 111, 12, 0.05); border-color: rgba(180, 111, 12, 0.45); }
html[data-theme="light"] .gate-icon { background: rgba(180, 111, 12, 0.08); border-color: rgba(180, 111, 12, 0.4); }
html[data-theme="light"] .hs-gate.is-ok { background: rgba(11, 149, 102, 0.06); border-color: rgba(11, 149, 102, 0.5); }
html[data-theme="light"] .hs-gate.is-ok .gate-icon { box-shadow: 0 0 20px rgba(11, 149, 102, 0.35); }
html[data-theme="light"] .sort-col { background: rgba(255, 255, 255, 0.7); }
html[data-theme="light"] .sort.is-sorted .sort-col.is-do { background: rgba(11, 149, 102, 0.04); border-color: rgba(11, 149, 102, 0.3); }
html[data-theme="light"] .sort.is-sorted .sort-col.is-never { background: rgba(216, 58, 88, 0.035); border-color: rgba(216, 58, 88, 0.25); }
html[data-theme="light"] .q-chip { background: #fff; box-shadow: 0 6px 18px -12px rgba(20, 40, 110, 0.35); }
html[data-theme="light"] .sort-pile .q-chip { box-shadow: 0 10px 26px -14px rgba(20, 40, 110, 0.45); }
html[data-theme="light"] .sig-nodes circle:first-of-type { fill: var(--accent); }
html[data-theme="light"] .budget-range::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.15), 0 6px 16px rgba(20, 40, 110, 0.25); }
