/* VisualNest design system — "Ink & Ember" dark theme */
@font-face { font-family: 'Geist'; src: url(/assets/fonts/geist.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/assets/fonts/geist-mono.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg:        #0B0B0D;
  --bg-2:      #0F0F12;
  --surface:   #141418;
  --surface-2: #1B1B21;
  --line:      #26262E;
  --line-2:    #34343F;
  --text:      #F3EFE8;
  --text-2:    #CBC5BA;
  --muted:     #938C80;
  --dim:       #625C54;
  --violet:    #FF6B35;
  --violet-2:  #FF9466;
  --cyan:      #C8F560;
  --amber:     #F5B53D;
  --pass:      #34D399;
  --fail:      #F87171;
  --plasma:    linear-gradient(120deg, #FF6B35 0%, #FF9F1C 50%, #FFD23F 100%);

  --f-display: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --f-body:    'Geist', 'Helvetica Neue', Arial, sans-serif;
  --f-mono:    'Geist Mono', ui-monospace, Menlo, monospace;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; font-weight: 650; letter-spacing: -0.03em; color: #fff; }
h1, h2 { text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); position: relative; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 550 .98rem/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: .95rem 1.35rem; border-radius: 12px; border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .2s;
}
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 0 0 1px rgba(255,148,102,.35) inset, 0 10px 30px -10px rgba(255,107,53,.7); }
.btn-primary:hover { background: #FF8A55; }
.btn-quiet { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-quiet:hover { border-color: var(--muted); background: rgba(255,255,255,.05); }
.btn-light { background: #fff; color: #2A1608; }
.btn-light:hover { background: var(--cyan); color: #0B0B0D; }

/* ── Header ───────────────────────────────────────── */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; }
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(11,11,13,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 2rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 650 1.2rem/1 var(--f-display); letter-spacing: -0.03em; color: #fff; }
.brand-mark { width: 28px; height: 28px; }
.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 450; color: var(--text-2); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.head-cta { padding: .68rem 1rem; font-size: .92rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: .5rem .8rem; font: 550 .9rem var(--f-body); color: #fff; }

/* ── Hero ─────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 104px); isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(255,107,53,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,107,53,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.core-canvas { position: absolute; z-index: -1; top: 0; right: 0; width: 58%; height: 100%; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 640px) 1fr; }
.sys-line { display: inline-flex; align-items: center; gap: .6rem; font: 450 .82rem var(--f-mono); color: var(--text-2); border: 1px solid var(--line-2); background: rgba(20,20,24,.7); border-radius: 999px; padding: .4rem .85rem .4rem .7rem; }
.sys-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(200,245,96,.15), 0 0 12px var(--cyan); }
.hero h1 { margin-top: 1.6rem; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: .98; letter-spacing: -0.045em; font-weight: 650; }
.hero h1 .glow { background: var(--plasma); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { margin-top: 1.5rem; font-size: clamp(1.06rem, 1.45vw, 1.2rem); color: var(--text-2); max-width: 33em; }

.cmd { margin-top: 2.2rem; display: flex; align-items: center; gap: 0; max-width: 580px; background: rgba(20,20,24,.85); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; box-shadow: 0 20px 60px -30px rgba(255,107,53,.6); }
.cmd:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(255,107,53,.18), 0 20px 60px -30px rgba(255,107,53,.6); }
.cmd-prompt { font: 500 .9rem var(--f-mono); color: var(--cyan); padding: 0 .4rem 0 .8rem; white-space: nowrap; }
.cmd-prompt::after { content: ' ›'; color: var(--dim); }
.cmd input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 450 1rem var(--f-mono); padding: .8rem .4rem; }
.cmd input::placeholder { color: var(--dim); }
.cmd input:focus { outline: none; }
.cmd button { background: var(--plasma); color: #fff; border: 0; border-radius: 10px; font: 600 .95rem var(--f-body); padding: .85rem 1.15rem; cursor: pointer; white-space: nowrap; }
.cmd button:hover { filter: brightness(1.1); }
.scan-err { min-height: 1.3em; color: var(--fail); font-size: .85rem; margin: 8px 4px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.hero-note { margin-top: 1rem; font-size: .9rem; color: var(--muted); }

/* Signal ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ticker-track { display: flex; gap: 48px; width: max-content; padding: 16px 0; animation: tick 48s linear infinite; }
.ticker-track span { font: 450 .86rem var(--f-mono); color: var(--muted); white-space: nowrap; display: inline-flex; gap: .55rem; align-items: center; }
.ticker-track b { font-weight: 500; color: var(--pass); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── Sections ─────────────────────────────────────── */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-flush-top { padding-top: 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 32em; }
.kicker { display: block; font: 450 .82rem var(--f-mono); color: var(--cyan); margin-bottom: 1rem; }

/* ── Capability modules (bento) ───────────────────── */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(0, auto); gap: 16px; }
.mod {
  position: relative; background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 32px);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
}
.mod::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, -20%), rgba(255,107,53,.10), transparent 40%); }
.mod-ai  { grid-column: span 7; grid-row: span 2; }
.mod-sec { grid-column: span 5; }
.mod-web { grid-column: span 5; }
.mod-seo { grid-column: span 6; }
.mod-vid { grid-column: span 6; }
.mod-tag { display: inline-flex; align-items: center; gap: .55rem; font: 500 .82rem var(--f-mono); color: var(--text-2); }
.mod-tag svg { width: 18px; height: 18px; color: var(--violet-2); }
.mod h3 { font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.12; letter-spacing: -0.03em; max-width: 20em; }
.mod-ai h3 { font-size: clamp(1.6rem, 2.7vw, 2.45rem); }
.mod > p { color: var(--muted); max-width: 36em; }
.mod ul { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mod li { font: 450 .8rem var(--f-mono); color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .32rem .7rem; }
.mod a.more { color: var(--violet-2); font-weight: 550; text-decoration: none; font-size: .95rem; }
.mod a.more:hover { color: #fff; }

/* AI module: chat + flow */
.chat { display: grid; gap: 10px; margin: 6px 0 4px; max-width: 520px; }
.msg { font-size: .95rem; line-height: 1.45; padding: .75rem 1rem; border-radius: 14px; max-width: 86%; }
.msg.u { justify-self: end; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); border-bottom-right-radius: 4px; }
.msg.a { background: rgba(255,107,53,.14); border: 1px solid rgba(255,107,53,.35); color: #FFE6D8; border-bottom-left-radius: 4px; }
.msg.a::before { content: 'Assistant'; display: block; font: 500 .72rem var(--f-mono); color: var(--violet-2); margin-bottom: .25rem; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 450 .8rem var(--f-mono); color: var(--text-2); margin-top: 4px; }
.flow span { border: 1px solid var(--line-2); background: var(--bg); border-radius: 8px; padding: .4rem .6rem; }
.flow i { font-style: normal; color: var(--cyan); }

/* Security module: terminal */
.term { background: #09090B; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font: 400 .82rem/1.75 var(--f-mono); color: var(--text-2); }
.term .cmdl { color: var(--muted); display: block; }
.term .cmdl::before { content: '$ '; color: var(--cyan); }
.term .ok { color: var(--pass); } .term .bad { color: var(--fail); } .term .warn { color: var(--amber); }
.term div { display: flex; justify-content: space-between; gap: 12px; }

/* Web module: gauge */
.gauge { display: flex; align-items: center; gap: 20px; }
.gauge svg { width: 96px; height: 96px; flex: none; }
.gauge-num { font: 600 2rem/1 var(--f-display); color: #fff; }
.gauge-cap { font: 450 .8rem var(--f-mono); color: var(--muted); margin-top: .35rem; }
.gauge-list { font: 450 .82rem/1.8 var(--f-mono); color: var(--text-2); }
.gauge-list s { color: var(--dim); margin-right: .35rem; }
.gauge-list i { font-style: normal; color: var(--pass); }

/* SEO module: chart */
.spark { width: 100%; height: 110px; }
.spark-cap { display: flex; justify-content: space-between; font: 450 .78rem var(--f-mono); color: var(--dim); }

/* Video module */
.mod-vid-row { display: flex; gap: 12px; align-items: flex-end; }
.mini-frame { border-radius: 10px; border: 1px solid var(--line-2); background: radial-gradient(120% 80% at 80% 0%, rgba(255,107,53,.45), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgba(200,245,96,.22), transparent 60%), #101013; position: relative; }
.mini-frame span { position: absolute; left: 8px; top: 6px; font: 450 .7rem var(--f-mono); color: var(--text-2); }
.mf-wide { width: 52%; aspect-ratio: 16/9; } .mf-tall { width: 17%; aspect-ratio: 9/16; } .mf-sq { width: 24%; aspect-ratio: 4/5; }

/* ── Work ─────────────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; text-decoration: none; transition: border-color .2s; }
.case:hover { border-color: var(--line-2); }
.case.lead { grid-row: span 2; position: relative; background: linear-gradient(160deg, rgba(255,107,53,.16), rgba(20,20,24,.9) 45%), var(--surface); border-color: rgba(255,107,53,.35); }
.case-meta { font: 450 .82rem var(--f-mono); color: var(--muted); }
.case h3 { font-size: clamp(1.3rem, 2.1vw, 1.85rem); line-height: 1.15; }
.case.lead h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.06; }
.deltas { display: grid; margin-top: auto; }
.delta { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.delta span { font-size: .93rem; color: var(--muted); }
.delta b { font: 500 1.02rem var(--f-mono); white-space: nowrap; }
.delta b s { color: var(--dim); text-decoration-thickness: 1px; margin-right: .4rem; }
.delta b i { font-style: normal; color: var(--pass); }
.case blockquote { margin: 0; font-size: 1.05rem; line-height: 1.5; color: var(--text-2); max-width: 34em; }
.case blockquote footer { margin-top: .6rem; font: 450 .82rem var(--f-mono); color: var(--muted); }
.link-more { margin-top: 28px; }
.link-more a { color: var(--violet-2); font-weight: 550; text-decoration: none; }
.link-more a:hover { color: #fff; }

/* ── Lab (home + hub) ─────────────────────────────── */
.lab-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.tool-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tool-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.tool-list strong { font: 600 1.2rem var(--f-display); color: #fff; letter-spacing: -0.02em; }
.tool-list span { grid-column: 1; color: var(--muted); font-size: .95rem; }
.tool-list em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 500 .8rem var(--f-mono); font-style: normal; color: var(--cyan); }
.tool-list a:hover strong { color: var(--violet-2); }

.console { background: #0E0E11; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; font-family: var(--f-mono); font-size: .88rem; box-shadow: 0 40px 80px -40px rgba(255,107,53,.45); }
.console-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--muted); font-size: .8rem; }
.console-top .live { display: inline-flex; align-items: center; gap: .45rem; color: var(--text-2); }
.console-top .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 10px var(--pass); }
.readout ol { list-style: none; margin: 0; padding: 0; }
.readout li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid #1A1A1F; }
.readout li:last-child { border-bottom: 0; }
.readout .k { color: var(--text-2); }
.v.ok { color: var(--pass); } .v.warn { color: var(--amber); } .v.bad { color: var(--fail); }
.readout-foot { margin-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.grade { font: 650 2.4rem/1 var(--f-display); color: #fff; }
.grade small { font: 400 .8rem var(--f-mono); color: var(--muted); margin-left: .4rem; }
.readout-foot p { color: var(--muted); font-size: .76rem; text-align: right; max-width: 18em; }
.js .readout.anim li { opacity: 0; transform: translateX(-6px); }
.js .readout.anim.run li { animation: line-in .35s ease forwards; }
@keyframes line-in { to { opacity: 1; transform: none; } }

.lab { background: var(--bg-2); }
.section-head .lab-title { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tools-4 { grid-template-columns: repeat(2, 1fr); }
.tool { background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 190px; text-decoration: none; color: inherit; transition: background-color .2s; }
.tool h3 { font-size: 1.35rem; }
.tool p { color: var(--muted); font-size: .97rem; }
.tool .state { margin-top: auto; font: 500 .82rem var(--f-mono); color: var(--cyan); }
.tool.live:hover { background: var(--surface-2); }
.tool.live:hover h3 { color: var(--violet-2); }

/* ── Video ────────────────────────────────────────── */
.formats { display: grid; grid-template-columns: 2.2fr .9fr 1.25fr; gap: 16px; align-items: end; }
.frame { position: relative; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
  background: radial-gradient(120% 80% at 80% 0%, rgba(255,107,53,.5), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgba(200,245,96,.2), transparent 60%), var(--surface); }
.f-wide { aspect-ratio: 16 / 9; } .f-tall { aspect-ratio: 9 / 16; } .f-sq { aspect-ratio: 4 / 5; }
.frame .ratio { position: absolute; top: 14px; left: 18px; font: 450 .78rem var(--f-mono); color: var(--text-2); }
.frame h3 { font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.frame p { font-size: .9rem; color: var(--text-2); margin-top: .3rem; }
.play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; backdrop-filter: blur(6px); }
.play::after { content: ''; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 5px; }
.video-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: start; }
.vid { margin: 0; grid-column: span 2; }
.vid-wide { grid-column: span 4; }
.vid video { width: 100%; border-radius: var(--r-md); border: 1px solid var(--line); background: #000; object-fit: cover; }
.vid-wide video { aspect-ratio: 16 / 9; } .vid-tall video { aspect-ratio: 9 / 16; } .vid-square video { aspect-ratio: 4 / 5; }
.vid figcaption { margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: #fff; }
.vid figcaption span { font: 450 .8rem var(--f-mono); color: var(--muted); }

/* ── Process ──────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 19px; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, var(--violet), var(--cyan)); opacity: .5; }
.steps li { counter-increment: step; position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--violet); font: 500 .82rem var(--f-mono); color: #fff; margin-bottom: 20px; box-shadow: 0 0 20px rgba(255,107,53,.35); }
.steps h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.steps p { color: var(--muted); font-size: .97rem; }

/* ── CTA ──────────────────────────────────────────── */
.cta-panel { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid rgba(255,107,53,.4); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end;
  background: radial-gradient(80% 120% at 100% 0%, rgba(255,107,53,.45), transparent 55%), radial-gradient(60% 90% at 0% 100%, rgba(200,245,96,.18), transparent 60%), var(--surface); }
.cta-panel h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: .98; letter-spacing: -0.045em; }
.cta-panel p { color: var(--text-2); font-size: 1.08rem; margin-bottom: 1.4rem; }
.contact-lines { margin-top: 1.4rem; display: grid; gap: .35rem; font: 450 .95rem var(--f-mono); }
.contact-lines a { color: #fff; text-decoration: none; width: fit-content; border-bottom: 1px solid rgba(255,255,255,.3); }
.contact-lines a:hover { border-bottom-color: var(--cyan); }

/* ── Footer ───────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); color: var(--muted); padding: 56px 0 32px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h3 { font: 500 .82rem var(--f-mono); color: var(--text-2); margin-bottom: .9rem; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: #fff; }
.foot-blurb { margin-top: 1rem; max-width: 22em; }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }
.foot-legal { display: flex; gap: 1rem; }

/* ── Lab tool pages ───────────────────────────────── */
.tool-hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); overflow: hidden; }
.tool-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,107,53,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,107,53,.06) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 80% at 80% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 0%, #000 20%, transparent 70%); }
.crumbs { font: 450 .84rem var(--f-mono); color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.tool-hero h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 16em; }
.tool-hero .lede { margin-top: 1.1rem; font-size: 1.12rem; color: var(--text-2); max-width: 38em; }
.tool-form { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 10px; max-width: 780px; }
.tool-form .field { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; }
.tool-form .field.small { flex: 0 1 210px; }
.tool-form label { font: 450 .82rem var(--f-mono); color: var(--text-2); }
.tool-form input { font: 450 1.02rem var(--f-mono); color: #fff; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: .9rem 1rem; min-width: 0; }
.tool-form input::placeholder { color: var(--dim); }
.tool-form input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(255,107,53,.18); }
.tool-form .btn { align-self: flex-end; height: 54px; }
.tool-form .btn[disabled] { opacity: .6; cursor: progress; }
.tool-form .hint { flex-basis: 100%; font-size: .86rem; color: var(--muted); }
.tool-msg { margin-top: 14px; min-height: 1.4em; font-size: .95rem; color: var(--fail); }
.loading { display: none; align-items: center; gap: 12px; margin-top: 18px; color: var(--muted); font-size: .95rem; }
.loading.show { display: flex; }
.loading::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { display: none; padding-bottom: clamp(48px, 7vw, 96px); }
.result.show { display: block; }
.result-head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: linear-gradient(160deg, rgba(255,107,53,.16), transparent 50%), var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px 28px; }
.result-grade { font: 650 3.6rem/1 var(--f-display); color: #fff; min-width: 1.6em; letter-spacing: -0.04em; }
.result-grade.g-a { color: var(--pass); } .result-grade.g-b { color: #A3E635; } .result-grade.g-c { color: var(--amber); } .result-grade.g-d, .result-grade.g-f { color: var(--fail); }
.result-target { font: 500 1.08rem var(--f-mono); color: #fff; word-break: break-all; }
.result-sub { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.result-score { font: 450 .9rem var(--f-mono); color: var(--muted); text-align: right; }
.result-score b { display: block; font: 600 1.6rem var(--f-display); color: #fff; }
.checks { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.check { display: grid; grid-template-columns: 28px minmax(160px, 240px) 1fr; gap: 6px 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.check-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 .78rem var(--f-body); color: #0B0B0D; margin-top: 2px; }
.check.pass .check-icon { background: var(--pass); } .check.warn .check-icon { background: var(--amber); } .check.fail .check-icon { background: var(--fail); } .check.info .check-icon { background: var(--muted); }
.check-name { font-weight: 550; color: #fff; }
.check-status { display: block; font: 450 .8rem var(--f-mono); color: var(--muted); }
.check-body p { color: var(--text-2); }
.check-value { display: block; font: 400 .85rem/1.5 var(--f-mono); color: var(--text-2); background: #0E0E11; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; word-break: break-word; max-height: 7.5em; overflow: auto; }
.fix { margin-top: 10px; }
.fix summary { cursor: pointer; color: var(--violet-2); font-weight: 550; font-size: .95rem; }
.fix-label { font: 450 .78rem var(--f-mono); color: var(--muted); margin: 10px 0 4px; }
.fix pre { margin: 0; background: #09090B; border: 1px solid var(--line); color: #EDE7DD; border-radius: 8px; padding: 12px 14px; font: 400 .84rem/1.55 var(--f-mono); overflow-x: auto; white-space: pre; }
.fix-note { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.copy-btn { margin-top: 6px; background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 10px; font: 450 .78rem var(--f-mono); color: var(--text-2); cursor: pointer; }
.copy-btn:hover { border-color: var(--muted); color: #fff; }
.result-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid rgba(255,107,53,.35); border-radius: var(--r-md); padding: 22px 24px; }
.result-cta p { max-width: 36em; color: var(--text-2); }
.result-cta strong { color: #fff; }

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; margin: 2.8rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 1rem; }
.prose ul { padding-left: 1.2rem; margin: .8rem 0; }
.prose code { font: .88em var(--f-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: #fff; }
.prose a { color: var(--violet-2); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 550; font-size: 1.05rem; color: #fff; }
.faq details p { margin-top: .6rem; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 1rem; }
.related a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; text-decoration: none; }
.related a:hover { border-color: var(--line-2); }
.related strong { display: block; font: 600 1.12rem var(--f-display); color: #fff; letter-spacing: -0.02em; }
.related span { font-size: .92rem; color: var(--muted); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { padding-top: 8px; }
  .core-canvas { position: relative; width: 100%; height: clamp(260px, 60vw, 420px); margin-bottom: 8px; }
  .hero-inner { grid-template-columns: 1fr; }
  .mod-ai { grid-column: span 12; grid-row: auto; }
  .mod-sec, .mod-web, .mod-seo, .mod-vid { grid-column: span 6; }
  .lab-split { grid-template-columns: 1fr; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: repeat(4, 1fr); } .vid-wide { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav, .head-cta { display: none; }
  .menu-btn { display: inline-block; }
  .site-head.open .nav { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg); padding: 16px var(--gut) 24px; gap: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-head.open .nav a { font-size: 1.15rem; }
  .section-head { grid-template-columns: 1fr; }
  .mod-sec, .mod-web, .mod-seo, .mod-vid { grid-column: span 12; }
  .work-grid { grid-template-columns: 1fr; }
  .case.lead { grid-row: auto; }
  .tools, .tools-4 { grid-template-columns: 1fr; }
  .tool { min-height: 0; }
  .formats { grid-template-columns: 1fr 1fr; } .f-wide { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; border-radius: 20px; }
  .readout-foot p { display: none; }
  .result-head { grid-template-columns: auto 1fr; padding: 20px; }
  .result-score { grid-column: 1 / -1; text-align: left; }
  .check { grid-template-columns: 28px 1fr; }
  .check-body { grid-column: 2; }
  .related { grid-template-columns: 1fr; }
  .tool-form .btn { width: 100%; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .vid { grid-column: span 1; }
}
@media (max-width: 460px) {
  .cmd { flex-wrap: wrap; }
  .cmd-prompt { display: none; }
  .cmd input { flex-basis: 100%; padding: .8rem .7rem; }
  .cmd button { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .gauge { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .js .readout.anim li { opacity: 1; transform: none; animation: none !important; }
  .loading::before { animation-duration: 2.4s; }
  html { scroll-behavior: auto; }
}

/* ── Inner pages ──────────────────────────────────── */
.page-hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,107,53,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,107,53,.06) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 15%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 15%, transparent 70%); }
.page-hero::after { content: ''; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,53,.28), transparent 65%); }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.045em; max-width: 14em; }
.page-hero .lede { margin-top: 1.2rem; font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--text-2); max-width: 36em; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.anchor-nav a { font: 450 .84rem var(--f-mono); color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .45rem .85rem; text-decoration: none; background: rgba(20,20,24,.6); }
.anchor-nav a:hover { color: #fff; border-color: var(--violet); }

/* Services */
.svc { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.05; letter-spacing: -0.04em; margin-top: .8rem; }
.svc .lede2 { margin-top: 1rem; color: var(--text-2); font-size: 1.08rem; }
.svc .for { margin-top: 1.4rem; font-size: .95rem; color: var(--muted); }
.svc .for b { color: var(--text); font-weight: 550; }
.svc-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 10px; }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; align-self: start; }
.svc-item { background: var(--surface); padding: 20px 22px; }
.svc-item h3 { font-size: 1.05rem; letter-spacing: -0.02em; }
.svc-item p { margin-top: .35rem; font-size: .93rem; color: var(--muted); }

/* Pricing */
.price-group { margin-top: clamp(48px, 6vw, 80px); }
.price-group:first-child { margin-top: 0; }
.price-group > h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.price-group > p { color: var(--muted); margin-top: .5rem; max-width: 40em; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border-color: rgba(255,107,53,.55); background: linear-gradient(170deg, rgba(255,107,53,.18), transparent 45%), var(--surface); box-shadow: 0 30px 70px -40px rgba(255,107,53,.6); }
.price-card .badge { align-self: flex-start; font: 500 .74rem var(--f-mono); color: #fff; background: var(--violet); border-radius: 999px; padding: .25rem .6rem; }
.price-card h3 { font-size: 1.3rem; }
.price-card .amount { font: 650 2.6rem/1 var(--f-display); color: #fff; letter-spacing: -0.04em; }
.price-card .amount small { font: 450 .85rem var(--f-mono); color: var(--muted); letter-spacing: 0; margin-left: .3rem; }
.price-card > p { color: var(--muted); font-size: .95rem; }
.price-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: .5rem; font-size: .94rem; }
.price-card li { padding-left: 1.5rem; position: relative; color: var(--text-2); }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--pass); font-weight: 600; }
.price-card li.no { color: var(--dim); }
.price-card li.no::before { content: '–'; color: var(--dim); }
.price-card .btn { margin-top: auto; }
.quote-strip { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote-strip > div { border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: 20px; }
.quote-strip h3 { font-size: 1.1rem; }
.quote-strip p { color: var(--muted); font-size: .93rem; margin-top: .35rem; }

/* Forms */
.form-wrap { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.vf { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); display: grid; gap: 20px; }
.vf fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.vf legend { font: 600 1.15rem var(--f-display); color: #fff; letter-spacing: -0.02em; padding: 0; margin-bottom: 4px; }
.vf .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vf label.f { display: grid; gap: 6px; font: 450 .82rem var(--f-mono); color: var(--text-2); }
.vf label.f .req { color: var(--violet-2); }
.vf input[type=text], .vf input[type=email], .vf input[type=tel], .vf input[type=url], .vf select, .vf textarea {
  font: 400 1rem var(--f-body); color: #fff; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: .85rem .95rem; width: 100%; min-width: 0;
}
.vf select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.vf textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.vf input::placeholder, .vf textarea::placeholder { color: var(--dim); }
.vf input:focus, .vf select:focus, .vf textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(255,107,53,.18); }
.vf [aria-invalid="true"] { border-color: var(--fail) !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line-2); background: var(--bg); color: var(--text-2); border-radius: 999px; padding: .55rem .95rem; font-size: .93rem; transition: all .15s; }
.chip input:checked + span { border-color: var(--violet); background: rgba(255,107,53,.18); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: .25rem; accent-color: var(--violet); }
.consent a { color: var(--violet-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; color: var(--fail); font-size: .95rem; }
.form-done { display: none; text-align: left; }
.form-done.show { display: block; }
.form-done h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.form-done p { color: var(--text-2); margin-top: .8rem; }
.form-done .ref { font: 500 1rem var(--f-mono); color: var(--cyan); }
.side-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 18px; }
.side-card h3 { font-size: 1.15rem; }
.side-card p, .side-card li { color: var(--muted); font-size: .95rem; }
.side-card ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.side-card .contact-lines { margin-top: 0; }

/* Legal / 404 */
.legal .prose h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.legal .updated { font: 450 .85rem var(--f-mono); color: var(--muted); margin-bottom: 2rem; }
.notfound { min-height: 60vh; display: grid; align-content: center; }
.notfound .code { font: 500 1rem var(--f-mono); color: var(--cyan); }

@media (max-width: 1024px) {
  .svc { grid-template-columns: 1fr; }
  .price-grid, .quote-strip { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .svc-list { grid-template-columns: 1fr; }
  .vf .row2 { grid-template-columns: 1fr; }
}
.section-head a, .link-inline { color: var(--violet-2); }
.vf label.f { display: block; }
.vf label.f > input, .vf label.f > select, .vf label.f > textarea { display: block; margin-top: 6px; }
.vf label.f .req { margin-left: .2rem; }

/* ── Signals → decisions network ──────────────────── */
.net-panel { position: relative; height: clamp(300px, 34vw, 420px); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(70% 90% at 50% 50%, rgba(255,107,53,.10), transparent 70%), #0E0E11; }
.net-panel::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,107,53,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,107,53,.05) 1px, transparent 1px); background-size: 40px 40px; }
.net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.net-labels { position: absolute; inset: 0; pointer-events: none; }
.net-labels ul { position: absolute; top: 0; bottom: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; justify-content: space-around; }
.net-in { left: 18px; }
.net-out { right: 18px; text-align: right; }
.net-labels li { font: 450 .8rem var(--f-mono); color: var(--text-2); background: rgba(20,20,24,.85); border: 1px solid var(--line-2); border-radius: 6px; padding: .25rem .55rem; }
.net-out li { color: #fff; border-color: rgba(200,245,96,.45); }
.standards { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.standards > div { background: var(--surface); padding: 24px 26px; }
.std-k { font: 450 .78rem var(--f-mono); color: var(--cyan); }
.standards h3 { font-size: 1.15rem; margin-top: .5rem; }
.standards p { color: var(--muted); font-size: .94rem; margin-top: .35rem; }

/* Assistant typing */
.msg.a.thinking { min-width: 92px; }
.msg.a.thinking::after { content: ''; display: inline-block; width: 36px; height: 8px; background:
  radial-gradient(circle 3px, var(--violet-2) 98%, transparent) 0 50% / 12px 8px repeat-x; animation: dots 1s steps(3) infinite; }
@keyframes dots { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.msg.a.typing::after { content: '▍'; color: var(--violet-2); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 1024px) { .standards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .standards { grid-template-columns: 1fr; }
  .net-labels li { font-size: .7rem; padding: .2rem .4rem; }
  .net-in { left: 10px; } .net-out { right: 10px; }
}

/* ── Intelligence layer: transitions, decode, materialize, aurora ── */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.site-head { view-transition-name: site-head; }

.decode { white-space: pre-wrap; }
.decode .g { color: var(--cyan); opacity: .75; font-family: var(--f-mono); font-weight: 400; }

.js .mat { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.js .mat.in { opacity: 1; filter: none; transform: none; }

.page-hero::after { animation: aurora 18s ease-in-out infinite alternate; }
.page-hero .aurora-2 { position: absolute; z-index: -1; width: 520px; height: 520px; left: -180px; bottom: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(200,245,96,.16), transparent 65%); animation: aurora 22s ease-in-out infinite alternate-reverse; pointer-events: none; }
@keyframes aurora { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.12); } 100% { transform: translate(30px, 80px) scale(.95); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js .mat { opacity: 1; filter: none; transform: none; transition: none; }
  .page-hero::after, .page-hero .aurora-2 { animation: none; }
}
.dw { white-space: nowrap; }
.dc { display: inline-block; text-align: center; overflow: hidden; vertical-align: bottom; }
.dc.g { color: var(--cyan); opacity: .8; font-family: var(--f-mono); font-weight: 400; font-size: .82em; }
.glow .dc.g { -webkit-text-fill-color: var(--cyan); }

/* ── Website audit ────────────────────────────────── */
.audit-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.acard { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.acard[data-part="perf"], .acard[data-part="seo"] { grid-column: span 3; }
.acard header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.agrade { font: 600 1.5rem var(--f-display); color: var(--muted); letter-spacing: -0.02em; }
.agrade.g-a { color: var(--pass); } .agrade.g-b { color: #A3E635; } .agrade.g-c { color: var(--amber); } .agrade.g-d, .agrade.g-f { color: var(--fail); }
.ameta { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ameta li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--text-2); }
.ameta b { font: 500 .88rem var(--f-mono); color: #fff; text-align: right; }
.anote { font-size: .88rem; color: var(--muted); }
.acard.failed .anote { color: var(--amber); }
.amore { margin-top: auto; color: var(--violet-2); font-weight: 550; font-size: .92rem; text-decoration: none; }
.amore:hover { color: #fff; }
.acard:not(.done)::after { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 40%; background: var(--plasma); animation: scanbar 1.4s ease-in-out infinite; }
@keyframes scanbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.fix-title { margin-top: clamp(36px, 5vw, 56px); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lead-box { margin-top: 28px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; border: 1px solid rgba(255,107,53,.45); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px);
  background: radial-gradient(80% 120% at 100% 0%, rgba(255,107,53,.3), transparent 60%), var(--surface); }
.lead-box h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.lead-box p { color: var(--text-2); margin-top: .4rem; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.lead-form input[type=text], .lead-form input[type=email] { font: 400 1rem var(--f-body); color: #fff; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: .85rem .95rem; min-width: 0; }
.lead-form input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(255,107,53,.18); }
.lead-form .form-msg { grid-column: 1 / -1; }
.lead-done { color: var(--pass); font-weight: 550; }
[hidden] { display: none !important; }
@media (max-width: 1024px) { .audit-grid { grid-template-columns: 1fr 1fr; } .acard, .acard[data-part="perf"], .acard[data-part="seo"] { grid-column: span 1; } .lead-box { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .audit-grid { grid-template-columns: 1fr; } .lead-form { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .acard:not(.done)::after { animation: none; width: 100%; opacity: .4; } }
.hero-note a, .section-head p a { color: var(--violet-2); }
.hero-note a:hover, .section-head p a:hover { color: #fff; }
.mod a.more { margin-top: 4px; }

/* ── Blog ─────────────────────────────────────────── */
.anchor-nav a[aria-current="page"] { color: #fff; border-color: var(--violet); background: rgba(255,107,53,.18); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: border-color .2s, transform .2s; overflow: hidden; }
.post-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.post-card.first { grid-column: span 2; background: linear-gradient(160deg, rgba(255,107,53,.16), transparent 50%), var(--surface); border-color: rgba(255,107,53,.35); }
.post-card img { margin: -24px -24px 4px; width: calc(100% + 48px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.post-art { display: block; margin: -24px -24px 4px; height: 120px; border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 120% at 85% 0%, rgba(255,107,53,.4), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgba(200,245,96,.18), transparent 60%),
  repeating-linear-gradient(90deg, rgba(255,107,53,.07) 0 1px, transparent 1px 28px), #101013; }
.post-card.first .post-art { height: 160px; }
.post-meta { font: 450 .8rem var(--f-mono); color: var(--cyan); }
.post-card h2 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.025em; }
.post-card.first h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.post-card p { color: var(--muted); font-size: .95rem; }
.pager { display: flex; gap: 8px; margin-top: 32px; }
.pager a { font: 500 .9rem var(--f-mono); color: var(--text-2); border: 1px solid var(--line-2); border-radius: 8px; padding: .45rem .8rem; text-decoration: none; }
.pager a[aria-current="page"] { color: #fff; border-color: var(--violet); background: rgba(255,107,53,.18); }
.empty-note { color: var(--muted); }

.post-hero h1 { max-width: 20em; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.04; }
.post-info { margin-top: 1.2rem; font: 450 .85rem var(--f-mono); color: var(--muted); }
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: clamp(48px, 6vw, 80px); }
.post-layout:not(:has(.toc)) { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 96px; font-size: .9rem; border-left: 1px solid var(--line-2); padding-left: 16px; }
.toc p { font: 500 .78rem var(--f-mono); color: var(--cyan); margin-bottom: .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: #fff; }
.post-body { max-width: 44rem; font-size: 1.06rem; }
.post-body p, .post-body li { line-height: 1.75; }
.post-body h2 { scroll-margin-top: 90px; }
.post-body h3 { scroll-margin-top: 90px; }
.post-body pre { background: #09090B; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 1.2rem 0; }
.post-body pre code { background: none; border: 0; padding: 0; font: 400 .88rem/1.6 var(--f-mono); color: #EDE7DD; white-space: pre; }
.post-body blockquote { margin: 1.4rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--violet); color: var(--text); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.post-body figure { margin: 1.6rem 0; }
.post-body figure img { border-radius: 12px; border: 1px solid var(--line); }
.post-body figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.post-body ol { padding-left: 1.4rem; }
.post-body li + li { margin-top: .35rem; }
.post-body strong { color: #fff; }
.post-cover { border-radius: 14px; border: 1px solid var(--line); margin-bottom: 1.6rem; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: 12px; }
.post-body table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.post-body th, .post-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { font: 500 .82rem var(--f-mono); color: var(--cyan); background: var(--surface); }
.post-body tr:last-child td { border-bottom: 0; }
.post-cta { margin-top: 2.6rem; display: grid; gap: 14px; border: 1px solid rgba(255,107,53,.45); border-radius: var(--r-lg); padding: 24px 26px; background: radial-gradient(80% 120% at 100% 0%, rgba(255,107,53,.28), transparent 60%), var(--surface); }
.post-cta h2 { margin: 0 !important; font-size: 1.4rem !important; }
.post-cta p { color: var(--text-2); margin-top: .3rem !important; }
.post-cta .btn { justify-self: start; }
.ad-slot { margin: 1.8rem 0; min-height: 120px; }
.related-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 20px; }
@media (max-width: 1024px) { .post-grid { grid-template-columns: 1fr 1fr; } .post-layout { grid-template-columns: 1fr; } .toc { position: static; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } .post-card.first { grid-column: auto; } }
@media (max-width: 1120px) and (min-width: 761px) { .nav { gap: 1.2rem; } .nav a { font-size: .9rem; } .head-row { gap: 1.2rem; } }

/* ── Intelligence Lab: scanner hero, console, tool grid ── */
.lab-hero { position: relative; isolation: isolate; overflow: hidden; }
.lab-hero .wrap { position: relative; }
.tool-hero.lab-hero .aurora-1 { position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,53,.26), transparent 65%); animation: aurora 18s ease-in-out infinite alternate; pointer-events: none; }
.tool-hero.lab-hero .aurora-2 { position: absolute; z-index: -1; width: 520px; height: 520px; left: -200px; bottom: -340px; border-radius: 50%; background: radial-gradient(circle, rgba(200,245,96,.14), transparent 65%); animation: aurora 22s ease-in-out infinite alternate-reverse; pointer-events: none; }
.scan-canvas { position: absolute; z-index: -1; top: 50%; right: max(0px, calc((100vw - 1240px) / 2 - 40px)); transform: translateY(-50%); width: min(520px, 42vw); height: min(520px, 42vw); pointer-events: none; }
.lab-hero .wrap > * { max-width: min(640px, 100%); }
.lab-hero .tool-form { max-width: 640px; }
.lab-live { display: inline-flex; align-items: center; gap: .55rem; font: 500 .8rem var(--f-mono); color: var(--cyan); border: 1px solid rgba(200,245,96,.3); background: rgba(200,245,96,.06); border-radius: 999px; padding: .35rem .8rem; margin-bottom: 1.1rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(200,245,96,.6); animation: livepulse 1.8s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(200,245,96,.55); } 100% { box-shadow: 0 0 0 9px rgba(200,245,96,0); } }
.lab-facts { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 10px 34px; }
.lab-facts li { display: flex; flex-direction: column; }
.lab-facts b { font: 600 1.7rem var(--f-display); color: #fff; letter-spacing: -0.03em; }
.lab-facts span { font: 450 .8rem var(--f-mono); color: var(--muted); }

.scan-console { display: none; margin-top: 18px; max-width: 520px; background: #0A0A0C; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px -30px rgba(255,107,53,.6); position: relative; }
.scan-console.show { display: block; }
.scan-console::after { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 40%; background: var(--plasma); animation: scanbar 1.4s ease-in-out infinite; }
.scan-console-head { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.scan-console-head span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.scan-console-head b { margin-left: 8px; font: 450 .76rem var(--f-mono); color: var(--muted); }
.scan-steps { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 6px; font: 450 .86rem var(--f-mono); counter-reset: st; }
.scan-steps li { color: var(--dim); display: flex; gap: 10px; align-items: center; transition: color .3s; }
.scan-steps li::before { content: '○'; width: 1em; color: var(--dim); }
.scan-steps li.run { color: #fff; }
.scan-steps li.run::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
.scan-steps li.run::after { content: '_'; color: var(--cyan); animation: blink 1s steps(1) infinite; }
.scan-steps li.ok { color: var(--text-2); }
.scan-steps li.ok::before { content: '✓'; color: var(--pass); }
@keyframes blink { 50% { opacity: 0; } }

.result.show .result-head { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.result.show .check { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.lab-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.lab-tool { text-decoration: none; color: inherit; min-height: 260px; transition: border-color .25s, transform .25s; }
.lab-tool:hover { border-color: rgba(255,107,53,.55); transform: translateY(-3px); }
.lab-tool-hero { grid-row: span 2; background: radial-gradient(90% 70% at 100% 0%, rgba(255,107,53,.22), transparent 60%), var(--surface); }
.lab-tool-hero h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: -0.035em; }
.lab-tool h3 { font-size: 1.4rem; }
.lab-run { margin-top: 6px; font: 500 .86rem var(--f-mono); color: var(--cyan); }
.lab-run b { display: inline-block; transition: transform .25s; }
.lab-tool:hover .lab-run b { transform: translateX(5px); }
.lab-bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin: 14px 0 18px; }
.lab-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--violet), rgba(255,107,53,.15)); transform-origin: bottom; animation: barpulse 3.2s ease-in-out infinite; }
.lab-bars i:nth-child(1) { height: 82%; } .lab-bars i:nth-child(2) { height: 64%; animation-delay: .3s; background: linear-gradient(180deg, var(--cyan), rgba(200,245,96,.12)); }
.lab-bars i:nth-child(3) { height: 92%; animation-delay: .6s; } .lab-bars i:nth-child(4) { height: 48%; animation-delay: .9s; background: linear-gradient(180deg, var(--amber), rgba(245,181,61,.12)); }
.lab-bars i:nth-child(5) { height: 74%; animation-delay: 1.2s; background: linear-gradient(180deg, var(--cyan), rgba(200,245,96,.12)); }
@keyframes barpulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.72); } }

.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.pipeline::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line-2); }
.pipeline::after { content: ''; position: absolute; left: 0; top: 21px; height: 3px; width: 18%; border-radius: 3px; background: var(--plasma); filter: drop-shadow(0 0 6px rgba(200,245,96,.8)); animation: beam 4s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes beam { from { transform: translateX(-100%); } to { transform: translateX(560%); } }
.pipeline li { position: relative; padding-top: 44px; }
.pipeline span { position: absolute; top: 8px; left: 0; font: 500 .78rem var(--f-mono); color: var(--cyan); background: var(--bg); border: 1px solid rgba(200,245,96,.35); border-radius: 999px; padding: .2rem .55rem; }
.pipeline b { display: block; font: 600 1.25rem var(--f-display); color: #fff; letter-spacing: -0.02em; }
.pipeline p { color: var(--muted); font-size: .95rem; margin-top: .3rem; }

@media (max-width: 1024px) {
  .scan-canvas { position: relative; display: block; transform: none; top: auto; right: auto; width: min(340px, 80vw); height: min(340px, 80vw); margin: -10px auto 8px; }
  .lab-grid { grid-template-columns: 1fr 1fr; }
  .lab-tool-hero { grid-row: auto; grid-column: span 2; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline::before, .pipeline::after { display: none; }
}
@media (max-width: 640px) {
  .lab-grid { grid-template-columns: 1fr; }
  .lab-tool-hero { grid-column: auto; }
  .pipeline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot, .lab-bars i, .pipeline::after, .tool-hero.lab-hero .aurora-1, .tool-hero.lab-hero .aurora-2, .scan-console::after { animation: none; }
  .result.show .result-head, .result.show .check { animation: none; }
}
.lab-tool-cta { border-style: dashed; border-color: rgba(200,245,96,.35); background: linear-gradient(160deg, rgba(200,245,96,.08), transparent 55%), var(--surface); }
.lab-tool-hero ul { margin-top: auto; }
@media (max-width: 1024px) { .lab-tool { min-height: 0; } }

/* ── Get your plan ───────────────────────────────── */
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.plan-form { display: grid; gap: 16px; }
.pstep { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 22px 24px 24px; margin: 0; min-width: 0; transition: border-color .3s; }
.pstep.done { border-color: rgba(255,107,53,.4); }
.pstep legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font: 600 1.25rem var(--f-display); color: #fff; letter-spacing: -0.02em; margin-bottom: 14px; padding: 0; }
.pstep legend span { font: 500 .78rem var(--f-mono); color: var(--cyan); border: 1px solid rgba(200,245,96,.35); border-radius: 999px; padding: .15rem .5rem; transition: background-color .3s, color .3s; }
.pstep.done legend span { background: var(--cyan); color: #0B0B0D; }
.pstep-note, .pstep-wait { clear: both; color: var(--muted); font-size: .92rem; margin: -6px 0 12px; }
.pcards { clear: both; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pcard, .pchip, .pfeat { position: relative; cursor: pointer; }
.pcard input, .pchip input, .pfeat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pcard-in { display: flex; flex-direction: column; gap: 4px; height: 100%; border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; background: var(--bg); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.pcard-in b { font: 600 1.06rem var(--f-display); color: #fff; }
.pcard-in small { color: var(--muted); font-size: .88rem; }
.pcard:hover .pcard-in { border-color: var(--muted); }
.pcard input:checked + .pcard-in { border-color: var(--violet); background: radial-gradient(120% 120% at 100% 0%, rgba(255,107,53,.22), transparent 60%), var(--bg); box-shadow: 0 0 0 3px rgba(255,107,53,.18); }
.pcard input:focus-visible + .pcard-in, .pchip input:focus-visible + span, .pfeat input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.pchips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.pchips-gap { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pchip span { display: inline-block; border: 1px solid var(--line-2); border-radius: 999px; padding: .55rem 1rem; font-size: .94rem; color: var(--text-2); background: var(--bg); transition: all .2s; }
.pchip:hover span { border-color: var(--muted); color: #fff; }
.pchip input:checked + span { border-color: var(--cyan); color: #fff; background: rgba(200,245,96,.1); }
.pfeats { clear: both; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pfeat span { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 12px; padding: .7rem .9rem; font-size: .94rem; color: var(--text-2); background: var(--bg); transition: all .2s; height: 100%; }
.pfeat span::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); transition: all .2s; }
.pfeat:hover span { border-color: var(--muted); }
.pfeat input:checked + span { border-color: rgba(255,107,53,.6); color: #fff; }
.pfeat input:checked + span::before { background: var(--violet) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 5 9l5-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); border-color: var(--violet); }
.plan-go { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.plan-go .btn { height: 56px; padding-inline: 2rem; font-size: 1.05rem; }
.plan-side { position: sticky; top: 96px; }
.plan-side-in { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; background: linear-gradient(170deg, rgba(255,107,53,.14), transparent 45%), var(--surface); }
.plan-meter { height: 4px; border-radius: 4px; background: var(--line); margin: 12px 0 8px; overflow: hidden; }
.plan-meter i { display: block; height: 100%; width: 0; background: var(--plasma); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.plan-count { font: 450 .8rem var(--f-mono); color: var(--muted); }
.plan-picks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.plan-picks li { font-size: .92rem; color: var(--text-2); padding-left: 16px; position: relative; animation: rise .35s ease both; }
.plan-picks li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.plan-picks .pk-main { font: 600 1.05rem var(--f-display); color: #fff; }
.plan-picks .pk-add::before { background: var(--cyan); }
.plan-picks .pk-meta { font: 450 .82rem var(--f-mono); color: var(--muted); }
.plan-picks .pk-meta::before { background: var(--amber); }
.plan-picks .muted, .pphase .muted { color: var(--muted); }
.plan-picks .muted::before { display: none; }
.plan-result.in .presult { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.presult { border: 1px solid rgba(255,107,53,.45); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); background: radial-gradient(70% 90% at 0% 0%, rgba(255,107,53,.22), transparent 60%), var(--surface); }
.pfit { display: inline-block; font: 500 .8rem var(--f-mono); border-radius: 999px; padding: .3rem .75rem; border: 1px solid; }
.fit-great { color: var(--pass); border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); }
.fit-phased, .fit-open { color: var(--cyan); border-color: rgba(200,245,96,.4); background: rgba(200,245,96,.08); }
.fit-lean { color: var(--amber); border-color: rgba(245,181,61,.4); background: rgba(245,181,61,.08); }
.presult-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: .6rem; }
.presult-head p { color: var(--text-2); max-width: 40em; margin-top: .4rem; }
.presult-head .pweeks { font: 450 .9rem var(--f-mono); color: var(--muted); margin-top: 1rem; }
.pweeks b { color: #fff; font-weight: 600; }
.pphases { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.pphase { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 18px 20px; background: var(--bg); }
.pphase.later { border-style: dashed; }
.pphase h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pphase ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pphase li { color: var(--text-2); font-size: .95rem; padding-left: 22px; position: relative; }
.pphase li::before { content: '✓'; position: absolute; left: 0; color: var(--pass); font-weight: 700; }
.pphase.later li::before { content: '+'; color: var(--cyan); }
.pphase li.muted::before { display: none; }
.plan-lead { margin-top: 22px; }
.plan-lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-lead-form input, .plan-lead-form textarea { font: 400 1rem var(--f-body); color: #fff; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: .85rem .95rem; min-width: 0; }
.plan-lead-form textarea { grid-column: 1 / -1; resize: vertical; }
.plan-lead-form input:focus, .plan-lead-form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(255,107,53,.18); }
.plan-lead-form .btn, .plan-lead-form .form-msg { grid-column: 1 / -1; }
@media (max-width: 1024px) {
  .plan-layout { grid-template-columns: 1fr; }
  .plan-side { position: static; order: -1; }
  .plan-side-in { padding: 16px 18px; }
  .plan-picks { display: none; }
}
@media (max-width: 640px) {
  .pcards, .pfeats, .pphases, .plan-lead-form { grid-template-columns: 1fr; }
  .pstep { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .plan-result.in .presult, .plan-picks li { animation: none; } }
.hero-cta-row { margin-top: 1.6rem; }
.pphases.single { grid-template-columns: 1fr; }

/* ── WhatsApp chat button ────────────────────────── */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 999px; background: #1FAF5A; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; box-shadow: 0 12px 32px -10px rgba(31,175,90,.65), 0 0 0 1px rgba(255,255,255,.08) inset; transition: transform .2s, box-shadow .2s; }
.wa-fab svg { width: 26px; height: 26px; flex: none; }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(31,175,90,.8); color: #fff; }
.wa-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.wa-fab::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(31,175,90,.5); animation: wapulse 2.6s ease-out 1.5s 3; pointer-events: none; }
@keyframes wapulse { 0% { box-shadow: 0 0 0 0 rgba(31,175,90,.5); } 100% { box-shadow: 0 0 0 16px rgba(31,175,90,0); } }
@media (max-width: 760px) { .wa-fab { width: 54px; height: 54px; padding: 0; justify-content: center; right: 14px; bottom: 14px; } .wa-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .wa-fab::before { animation: none; } }
@media print { .wa-fab { display: none; } }
.foot-ind { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.foot-ind span { font: 500 .78rem var(--f-mono); color: var(--muted); }
.foot-ind a { color: var(--text-2); text-decoration: none; }
.foot-ind a:hover { color: #fff; }

/* ── Industry pages ──────────────────────────────── */
.ind-hero h1 { max-width: 15em; }
.ind-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.plan-for { font: 500 .9rem var(--f-mono); color: var(--text-2); margin: -4px 0 6px; }
.plan-for b { color: var(--cyan); font-weight: 500; }
.ind-pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ind-pain { border-top: 2px solid var(--line-2); padding-top: 18px; }
.ind-pain span { font: 500 .8rem var(--f-mono); color: var(--amber); }
.ind-pain h3 { font-size: 1.3rem; margin: .5rem 0 .4rem; }
.ind-pain p { color: var(--muted); }
.ind-builds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ind-build { min-height: 0; }
.ind-build h3 { font-size: 1.2rem; }
.ind-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.ind-split h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 1rem; }
.ind-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ind-ticks li { position: relative; padding-left: 30px; color: var(--text-2); }
.ind-ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #0B0B0D; background: var(--cyan); }
.ind-autos { display: grid; gap: 14px; }
.ind-autos div { border-left: 2px solid var(--violet); padding-left: 16px; }
.ind-autos h3 { font-size: 1.1rem; }
.ind-autos p { color: var(--muted); font-size: .96rem; }
.ind-more { margin-top: 1.2rem; }
.ind-more a { color: var(--violet-2); font-weight: 550; }
.ind-sec { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); background: radial-gradient(60% 120% at 0% 0%, rgba(200,245,96,.1), transparent 60%), var(--surface); }
.ind-sec-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: var(--cyan); background: rgba(200,245,96,.08); border: 1px solid rgba(200,245,96,.3); }
.ind-sec-icon svg { width: 34px; height: 34px; }
.ind-sec h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.ind-sec p { color: var(--text-2); margin-top: .6rem; max-width: 52em; }
.ind-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ind-other-title { margin-top: clamp(40px, 6vw, 72px); font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ind-card h2 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.02em; }
.ind-note { margin-top: 24px; color: var(--muted); }
.ind-note a { color: var(--violet-2); }
@media (max-width: 1024px) { .ind-builds, .ind-grid { grid-template-columns: 1fr 1fr; } .ind-pains { grid-template-columns: 1fr; } .ind-split { grid-template-columns: 1fr; } .ind-cta-btns { justify-content: flex-start; } }
@media (max-width: 640px) { .ind-builds, .ind-grid { grid-template-columns: 1fr; } .ind-sec { grid-template-columns: 1fr; } }
.lab-tool-cta { grid-column: 1 / -1; min-height: 0; }
.lab-tool-new { border-color: rgba(200,245,96,.45); }
.lab-tool-new .mod-tag { color: var(--cyan); }
@media (max-width: 1024px) { .lab-tool-cta { grid-column: span 2; } }
@media (max-width: 640px) { .lab-tool-cta { grid-column: auto; } }

/* ── Homepage: AI band, industries, latest posts ─── */
.ai-band { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; border: 1px solid rgba(200,245,96,.35); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden;
  background: radial-gradient(70% 120% at 100% 0%, rgba(200,245,96,.14), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(255,107,53,.18), transparent 60%), var(--surface); }
.ai-band::after { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 30%; background: var(--plasma); animation: scanbar 4s ease-in-out infinite; }
.ai-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.05; letter-spacing: -0.035em; }
.ai-band-copy > p { color: var(--text-2); margin-top: .8rem; max-width: 34em; }
.ai-band .ai-cmd { margin-top: 1.4rem; }
.ai-band-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ai-band-list li { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; background: rgba(11,11,13,.6); display: grid; gap: 2px; }
.ai-band-list b { font: 500 .82rem var(--f-mono); color: var(--cyan); }
.ai-band-list span { color: var(--text-2); font-size: .95rem; }
.home-ind .ind-card { min-height: 0; }
.home-ind .ind-card h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.02em; }
.home-posts .post-card h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.02em; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-guides { margin-top: 18px; display: grid; gap: 6px; }
.svc-guides span { font: 500 .78rem var(--f-mono); color: var(--muted); }
.svc-guides a { color: var(--violet-2); font-size: .94rem; text-decoration: none; }
.svc-guides a:hover { color: #fff; }
@media (max-width: 1024px) { .ai-band { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ai-band::after { animation: none; } }
.tool-guides { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: 12px; }
.tool-guides li { border-left: 2px solid var(--violet); padding-left: 14px; }
.tool-guides a { font-weight: 600; color: #fff; text-decoration: none; }
.tool-guides a:hover { color: var(--violet-2); }
.tool-guides span { display: block; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.prose .tool-guides { padding-left: 0; }

/* ── Reviews ─────────────────────────────────────── */
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.rv-pub { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.rv-pub-stars { color: var(--amber); letter-spacing: 3px; font-size: 1.05rem; }
.rv-pub-stars span { color: var(--line-2); }
.rv-pub blockquote { margin: 0; color: var(--text-2); font-size: 1.02rem; line-height: 1.65; }
.rv-pub figcaption b { display: block; color: #fff; }
.rv-pub figcaption span { font-size: .88rem; color: var(--muted); }
.rv-cta { margin-top: 32px; }
.review-form { display: grid; gap: 16px; max-width: 820px; }
.review-form textarea, .review-form input[type=text], .review-form input[type=url] { width: 100%; font: 400 1rem var(--f-body); color: #fff; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: .85rem .95rem; clear: both; }
.review-form textarea:focus, .review-form input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(255,107,53,.18); }
.review-grid { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-show { margin-top: 14px; }
.stars { clear: both; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2.4rem; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .15s, transform .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--amber); }
.stars label:hover { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.vid-pick { clear: both; display: inline-flex; cursor: pointer; }
.vid-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vid-pick span { border: 1px dashed var(--line-2); border-radius: 12px; padding: .8rem 1.1rem; color: var(--text-2); }
.vid-pick:hover span { border-color: var(--violet); color: #fff; }
.up-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 10px 0 4px; }
.up-bar i { display: block; height: 100%; width: 0; background: var(--plasma); transition: width .3s; }
.up-msg { font-size: .9rem; color: var(--muted); min-height: 1.2em; margin-bottom: 8px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--text-2); font-size: .94rem; }
.consent input { margin-top: 4px; }
.review-done { max-width: 640px; border: 1px solid rgba(52,211,153,.4); border-radius: var(--r-lg); padding: 28px; background: var(--surface); }
.review-done p { color: var(--text-2); margin: .6rem 0 1rem; }
@media (max-width: 1024px) { .rv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .rv-grid, .review-grid { grid-template-columns: 1fr; } }

/* ── Cookie consent ──────────────────────────────── */
.consent-bar { position: fixed; left: 20px; bottom: 20px; z-index: 70; max-width: 460px; background: rgba(20,20,24,.97); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 20px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); animation: rise .4s ease both; }
.consent-bar p { color: var(--text-2); font-size: .92rem; }
.consent-bar a { color: var(--violet-2); }
.consent-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.consent-btns .btn { padding: .55rem 1.1rem; font-size: .92rem; }
@media (max-width: 760px) { .consent-bar { left: 12px; right: 84px; bottom: 12px; max-width: none; padding: 14px 16px; } }

/* ── Reels safe-zone checker ─────────────────────── */
.sz-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.sz-hero h1 { max-width: 12em; }
.sz-drop { position: relative; margin-top: 1.8rem; border: 1.5px dashed rgba(255,107,53,.55); border-radius: 18px; background: radial-gradient(120% 100% at 0% 0%, rgba(255,107,53,.16), transparent 60%), rgba(20,20,24,.7); transition: border-color .2s, transform .2s, background-color .2s; }
.sz-drop.over { border-color: var(--cyan); transform: scale(1.01); }
.sz-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.sz-drop-in { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px; text-align: center; pointer-events: none; }
.sz-drop-in b { font: 600 1.1rem var(--f-display); color: #fff; }
.sz-drop-in span { color: var(--muted); font-size: .9rem; }
.sz-drop-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--cyan); background: rgba(200,245,96,.1); border: 1px solid rgba(200,245,96,.35); margin-bottom: 6px; animation: szbob 3s ease-in-out infinite; }
.sz-drop-icon svg { width: 28px; height: 28px; }
@keyframes szbob { 50% { transform: translateY(-5px); } }
.sz-demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; color: var(--muted); font-size: .9rem; }
.sz-err { color: var(--fail); flex-basis: 100%; }
.sz-hero-art { position: relative; height: 440px; }
.sz-art-phone { position: absolute; width: 170px; aspect-ratio: 9 / 16; border-radius: 26px; border: 2px solid var(--line-2); overflow: hidden; background: linear-gradient(160deg, #3B1606, #FF6B35 60%, #C8F560); box-shadow: 0 30px 60px -30px rgba(255,107,53,.8); }
.sz-art-phone.p1 { left: 4%; top: 40px; transform: rotate(-9deg); animation: szfloat 7s ease-in-out infinite; }
.sz-art-phone.p2 { left: 32%; top: 0; z-index: 2; width: 196px; animation: szfloat 6s ease-in-out -2s infinite; }
.sz-art-phone.p3 { right: 2%; top: 60px; transform: rotate(9deg); animation: szfloat 8s ease-in-out -4s infinite; }
@keyframes szfloat { 50% { translate: 0 -12px; } }
.sz-art-phone i { position: absolute; background: rgba(255,59,92,.45); }
.sz-art-phone .z-top { left: 0; right: 0; top: 0; height: 11%; }
.sz-art-phone .z-bottom { left: 0; right: 0; bottom: 0; height: 24%; }
.sz-art-phone .z-right { right: 0; width: 14%; top: 44%; bottom: 24%; }
.sz-art-phone span { position: absolute; left: 6%; right: 16%; top: 11%; bottom: 24%; border: 2px dashed rgba(200,245,96,.95); border-radius: 6px; display: grid; place-items: center; font: 600 .8rem var(--f-mono); color: #fff; letter-spacing: .2em; animation: szpulse 2.4s ease-in-out infinite; }
@keyframes szpulse { 50% { box-shadow: 0 0 0 6px rgba(200,245,96,.15) inset; } }

.sz-work { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 80px); }
.sz-toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; position: sticky; top: 70px; z-index: 5; padding: 12px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(11,11,13,.9); backdrop-filter: blur(10px); }
.sz-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; background: var(--bg); }
.sz-seg button { border: 0; background: none; color: var(--text-2); font: 500 .86rem var(--f-body); padding: .45rem .9rem; border-radius: 999px; cursor: pointer; }
.sz-seg button.on { background: var(--violet); color: #fff; }
.sz-sel { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--text-2); }
.sz-sel select { background: var(--bg); color: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: .4rem .6rem; }
.sz-tog { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--text-2); cursor: pointer; }
.sz-inputs { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-top: 12px; }
.sz-inputs label { display: flex; flex-direction: column; gap: 6px; font: 450 .78rem var(--f-mono); color: var(--muted); }
.sz-inputs textarea, .sz-inputs input { font: 400 .95rem var(--f-body); color: #fff; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: .6rem .75rem; resize: vertical; }

.sz-stage { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.sz-stage.one { grid-template-columns: minmax(0, 360px); justify-content: center; }
.sz-phone-wrap { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sz-phone-wrap figcaption { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.sz-phone-wrap figcaption b { font-size: .9rem; color: #fff; }
.sz-status { font: 450 .74rem var(--f-mono); color: var(--muted); }
.sz-status.ok { color: var(--pass); } .sz-status.warn { color: var(--amber); }
.sz-phone { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; border: 2px solid #2C2C34; container-type: inline-size; box-shadow: 0 20px 50px -30px rgba(0,0,0,.9); transition: border-color .25s, box-shadow .25s; }
.sz-phone.dev-compact { border-radius: 12px; }
.sz-phone.warn { border-color: var(--fail); box-shadow: 0 0 0 3px rgba(255,59,92,.25), 0 20px 50px -30px rgba(0,0,0,.9); }
.sz-cv, .sz-heat { position: absolute; inset: 0; width: 100%; height: 100%; }
.sz-heat { image-rendering: pixelated; opacity: 0; transition: opacity .2s; mix-blend-mode: screen; }
.sz-stage.heat .sz-heat { opacity: 1; }
.sz-zones { position: absolute; inset: 0; pointer-events: none; transition: opacity .2s; }
.sz-zones .z { position: absolute; background: repeating-linear-gradient(135deg, rgba(255,59,92,.30) 0 6px, rgba(255,59,92,.16) 6px 12px); }
.sz-zones .z-left { background: rgba(255,59,92,.12); }
.sz-zones .z-safe { position: absolute; border: 1.5px dashed rgba(200,245,96,.95); border-radius: 4px; }
.sz-stage.no-zones .sz-zones { opacity: 0; }
.sz-alert { position: absolute; top: 8px; left: 8px; z-index: 4; width: 22px; height: 22px; border-radius: 50%; background: var(--fail); color: #fff; font: 800 .8rem/22px var(--f-body); text-align: center; animation: livepulse 1.4s ease-out infinite; }

/* App interface mock-ups: sized in container units so they scale with each phone */
.ui { position: absolute; inset: 0; color: #fff; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif; font-size: 3.6cqw; text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; transition: opacity .2s; }
.dev-compact .ui { font-size: 4cqw; }
.sz-stage.no-ui .ui { opacity: 0; }
.ui-top { position: absolute; left: 4cqw; right: 4cqw; top: 4.5cqw; display: flex; justify-content: space-between; align-items: center; }
.ui-title { font-weight: 700; font-size: 5.2cqw; }
.ui-tabs { flex: 1; text-align: center; font-weight: 600; font-size: 4.2cqw; }
.ui-i { display: flex; flex-direction: column; align-items: center; gap: .6cqw; }
.ui-i svg { width: 7.4cqw; height: 7.4cqw; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.ui-top .ui-i svg { width: 6.4cqw; height: 6.4cqw; }
.ui-i b { font-size: 2.9cqw; font-weight: 600; }
.ui-rail { position: absolute; right: 2.6cqw; bottom: 24%; display: flex; flex-direction: column; gap: 4.6cqw; align-items: center; }
.ui-tiktok .ui-rail, .ui-shorts .ui-rail { bottom: 21%; }
.ui-av { display: inline-block; width: 7cqw; height: 7cqw; border-radius: 50%; background: linear-gradient(135deg, #F5B53D, #FF3B5C); border: .5cqw solid #fff; flex: none; position: relative; }
.ui-av.big { width: 10cqw; height: 10cqw; }
.ui-av.big i { position: absolute; left: 50%; bottom: -2.4cqw; transform: translateX(-50%); width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: #FF3B5C; font: 700 3.4cqw/4.4cqw sans-serif; text-align: center; font-style: normal; }
.ui-bottom { position: absolute; left: 4cqw; right: 17cqw; bottom: 4cqw; display: flex; flex-direction: column; gap: 1.8cqw; }
.ui-story .ui-bottom { right: 4cqw; }
.ui-who { display: flex; align-items: center; gap: 2cqw; }
.ui-user { font-weight: 700; }
.ui-follow, .ui-sub { border: .3cqw solid rgba(255,255,255,.85); border-radius: 1.6cqw; padding: .4cqw 2cqw; font-size: 3.1cqw; font-weight: 600; }
.ui-sub { background: #fff; color: #000; text-shadow: none; border-radius: 4cqw; }
.ui-cap { margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ui-audio { margin: 0; font-size: 3.1cqw; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-ad { display: none; font-style: normal; font-size: 3cqw; opacity: .85; }
.ui-cta { display: none; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); border-radius: 1.6cqw; padding: 2.4cqw 3cqw; font-weight: 600; font-size: 3.4cqw; }
.mode-ads .ui-ad { display: block; }
.mode-ads .ui-cta { display: block; }
.mode-ads .ui-tiktok .ui-cta, .mode-ads .ui-shorts .ui-cta { background: #2f7bff; }
.ui-storywho { display: flex; align-items: center; gap: 2cqw; margin-top: 3cqw; }
.ui-storywho .ui-ad { margin-left: 1cqw; }
.ui-story .ui-top { flex-direction: column; align-items: stretch; }
.ui-bars { display: flex; gap: 1cqw; }
.ui-bars i { flex: 1; height: .7cqw; border-radius: 1cqw; background: rgba(255,255,255,.4); }
.ui-bars i.on { background: #fff; }
.ui-reply { display: flex; align-items: center; gap: 3cqw; }
.ui-reply span { flex: 1; border: .3cqw solid rgba(255,255,255,.7); border-radius: 6cqw; padding: 2.4cqw 4cqw; font-size: 3.4cqw; }
.ui-reply .ui-i svg { width: 6.6cqw; height: 6.6cqw; }
.ui-cta.story { text-align: center; border-radius: 6cqw; background: #fff; color: #000; text-shadow: none; }

.sz-transport { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.sz-play { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--plasma); color: #fff; font-size: .95rem; cursor: pointer; flex: none; }
.sz-transport input[type=range] { flex: 1; accent-color: var(--violet); }
.sz-time { font: 500 .85rem var(--f-mono); color: var(--text-2); min-width: 92px; text-align: right; }
.sz-marks { position: absolute; left: 72px; right: 122px; bottom: 6px; height: 4px; pointer-events: none; }
.sz-marks i { position: absolute; top: 0; height: 4px; border-radius: 2px; background: var(--fail); }

.sz-panels { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 16px; }
.sz-panel { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px 22px; background: var(--surface); }
.sz-panel h2 { font-size: 1.3rem; }
.sz-panel h3 { font-size: 1.05rem; margin-top: 18px; }
.sz-panel-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.sz-note { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.sz-findings { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.sz-sum { padding: 10px 12px; border-radius: 10px; font-size: .92rem; }
.sz-sum.ok { background: rgba(52,211,153,.1); color: var(--pass); }
.sz-sum.warn { background: rgba(245,181,61,.1); color: var(--amber); }
.sz-find { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--text-2); }
.sz-find button { flex: none; font: 600 .78rem var(--f-mono); color: #fff; background: rgba(255,59,92,.2); border: 1px solid rgba(255,59,92,.5); border-radius: 8px; padding: .25rem .5rem; cursor: pointer; }
.sz-facts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; }
.sz-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--text-2); }
.sz-facts li b { font: 500 .86rem var(--f-mono); color: #fff; }
.sz-facts li.ok b { color: var(--pass); } .sz-facts li.warn b { color: var(--amber); }
.sz-facts li.tip { color: var(--amber); font-size: .86rem; }
.sz-crops { display: flex; gap: 14px; margin-top: 10px; }
.sz-crops figure { margin: 0; flex: 1; }
.sz-crops canvas { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-2); background: #000; display: block; }
.sz-crops figcaption { font: 450 .76rem var(--f-mono); color: var(--muted); margin-top: 4px; }
.sz-templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sz-tpl { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; background: var(--surface); }
.sz-tpl-prev { width: 54px; height: 96px; border-radius: 8px; border: 1px solid var(--line-2); flex: none; }
.sz-tpl b { display: block; color: #fff; }
.sz-tpl span { font: 450 .76rem var(--f-mono); color: var(--muted); }
.sz-tpl-btns { display: flex; gap: 6px; margin-top: 8px; }
.sz-tpl-btns .btn { padding: .35rem .8rem; font-size: .82rem; }
@media (max-width: 1200px) { .sz-stage { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .sz-hero-grid { grid-template-columns: 1fr; } .sz-hero-art { display: none; } .sz-panels { grid-template-columns: 1fr; } .sz-templates { grid-template-columns: 1fr 1fr; } .sz-inputs { grid-template-columns: 1fr 1fr; } .sz-inputs label:first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .sz-stage:not(.one) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .sz-stage:not(.one) .sz-phone-wrap { flex: 0 0 64%; scroll-snap-align: center; }
  .sz-toolbar { position: static; }
  .sz-templates { grid-template-columns: 1fr; }
  .sz-marks { left: 66px; right: 116px; }
}
@media (prefers-reduced-motion: reduce) { .sz-art-phone, .sz-drop-icon, .sz-art-phone span, .sz-alert { animation: none; } }
.sz-inputs label, .sz-inputs textarea, .sz-inputs input { min-width: 0; width: 100%; }
.sz-work .wrap { min-width: 0; }
@media (max-width: 640px) { .sz-inputs { grid-template-columns: 1fr; } .sz-stage:not(.one) { max-width: 100%; } }

/* ── Reels editing page ──────────────────────────── */
.rl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.rl-art { position: relative; height: 500px; }
.rl-phone { position: absolute; left: 50%; top: 0; transform: translateX(-50%) rotate(-4deg); width: 230px; aspect-ratio: 9 / 16; border-radius: 30px; padding: 8px; background: #111114; border: 2px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(255,107,53,.8); animation: szfloat 7s ease-in-out infinite; }
.rl-screen { position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: linear-gradient(170deg, #FFD23F 0%, #FF6B35 55%, #1E0C04 100%); container-type: inline-size; }
.rl-screen::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 40% at 30% 30%, rgba(255,255,255,.35), transparent 70%); animation: rlpan 6s ease-in-out infinite alternate; }
@keyframes rlpan { to { transform: translate(18%, 22%) scale(1.2); } }
.rl-hook { position: absolute; left: 8%; right: 8%; top: 16%; text-align: center; font: 800 9cqw/1.1 var(--f-display); color: #fff; background: #000; padding: 3cqw 2cqw; border-radius: 3cqw; transform: rotate(-3deg); animation: rlhook 4s ease-in-out infinite; }
@keyframes rlhook { 0%, 100% { transform: rotate(-3deg) scale(1); } 8% { transform: rotate(-3deg) scale(1.12); } 16% { transform: rotate(-3deg) scale(1); } }
.rl-caps { position: absolute; left: 6%; right: 18%; top: 50%; margin: 0; text-align: center; font: 800 8.5cqw/1.25 var(--f-display); color: #fff; text-shadow: 0 2px 0 #000, 0 0 12px rgba(0,0,0,.4); }
.rl-caps b { display: inline-block; opacity: .35; animation: rlword 3.6s steps(1) infinite; }
.rl-caps b:nth-child(1) { animation-delay: 0s; } .rl-caps b:nth-child(2) { animation-delay: .45s; } .rl-caps b:nth-child(3) { animation-delay: .9s; }
.rl-caps b:nth-child(4) { animation-delay: 1.35s; } .rl-caps b:nth-child(5) { animation-delay: 1.8s; } .rl-caps b:nth-child(6) { animation-delay: 2.25s; }
@keyframes rlword { 0% { opacity: 1; color: #F5B53D; transform: scale(1.12); } 12% { color: #fff; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: .35; } }
.rl-rail { position: absolute; right: 4cqw; bottom: 22%; display: flex; flex-direction: column; gap: 5cqw; }
.rl-rail i { width: 8cqw; height: 8cqw; border-radius: 50%; background: rgba(255,255,255,.85); }
.rl-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1.4cqw; background: rgba(255,255,255,.25); }
.rl-progress i { display: block; height: 100%; width: 0; background: #fff; animation: rlprog 4s linear infinite; }
@keyframes rlprog { to { width: 100%; } }
.rl-timeline { position: absolute; left: 0; right: 0; bottom: 34px; height: 92px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(11,11,13,.92); padding: 10px 12px; display: grid; gap: 6px; overflow: hidden; }
.rl-track { display: flex; gap: 4px; height: 20px; }
.rl-track i { flex: 1; border-radius: 4px; }
.rl-track.v i { background: linear-gradient(90deg, #FF6B35, #FF9F1C); } .rl-track.v i:nth-child(2) { flex: .6; } .rl-track.v i:nth-child(4) { flex: 1.4; }
.rl-track.t i { background: #F5B53D; flex: .5; margin-right: 12%; }
.rl-track.a i { background: repeating-linear-gradient(90deg, rgba(200,245,96,.85) 0 2px, transparent 2px 5px); }
.rl-head { position: absolute; top: 6px; bottom: 6px; left: 12px; width: 2px; background: #fff; box-shadow: 0 0 8px #fff; animation: rlhead 4s linear infinite; }
@keyframes rlhead { to { left: calc(100% - 14px); } }
.rl-graph { position: absolute; right: 0; top: 40px; width: 190px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(20,20,24,.92); padding: 10px 12px; }
.rl-graph svg { width: 100%; height: 50px; }
.rl-graph path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: rldraw 3s ease forwards infinite; }
.rl-g1 { stroke: var(--cyan); } .rl-g2 { stroke: rgba(255,59,92,.7); animation-delay: .3s !important; }
@keyframes rldraw { 70%, 100% { stroke-dashoffset: 0; } }
.rl-graph span { font: 450 .72rem var(--f-mono); color: var(--muted); } .rl-graph b { color: #fff; font-weight: 500; }
.rl-samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.rl-sample { margin: 0; } .rl-sample video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; background: #000; }
.rl-sample figcaption { font-size: .88rem; color: var(--text-2); margin-top: 6px; }
.rl-packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rl-pack { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; transition: transform .25s, border-color .25s; }
.rl-pack:hover { transform: translateY(-4px); border-color: rgba(255,107,53,.55); }
.rl-pack.hot { border-color: var(--violet); background: radial-gradient(100% 70% at 100% 0%, rgba(255,107,53,.25), transparent 60%), var(--surface); }
.rl-pack .badge { position: absolute; top: 14px; right: 14px; }
.rl-n { font: 700 3.4rem/1 var(--f-display); letter-spacing: -0.04em; background: var(--plasma); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rl-pack b { color: #fff; font-size: 1.05rem; }
.rl-pack p { color: var(--muted); font-size: .94rem; }
.rl-pack ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.rl-pack li { font-size: .92rem; color: var(--text-2); padding-left: 20px; position: relative; }
.rl-pack li::before { content: '✓'; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.rl-packs-cta { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; color: var(--muted); }
.rl-ideas { grid-template-columns: repeat(3, 1fr); }
.rl-tool-band { grid-template-columns: 1.4fr 1fr; }
.rl-mini { height: 300px; display: block; }
.rl-mini .sz-art-phone.p2 { left: 50%; top: 10px; transform: translateX(-50%) rotate(6deg); width: 150px; }
@media (max-width: 1024px) { .rl-hero-grid { grid-template-columns: 1fr; } .rl-art { height: 440px; max-width: 420px; margin: 0 auto; width: 100%; } .rl-packs { grid-template-columns: 1fr 1fr; } .rl-ideas { grid-template-columns: 1fr 1fr; } .rl-mini { display: none; } }
@media (max-width: 640px) { .rl-packs, .rl-ideas { grid-template-columns: 1fr; } .rl-graph { width: 150px; top: 10px; } }
@media (prefers-reduced-motion: reduce) { .rl-phone, .rl-screen::before, .rl-hook, .rl-caps b, .rl-progress i, .rl-head, .rl-graph path { animation: none; } .rl-caps b { opacity: 1; } .rl-graph path { stroke-dashoffset: 0; } .rl-progress i { width: 40%; } }
.lab-tool-wide { grid-column: span 2; min-height: 0; }
@media (max-width: 1024px) { .lab-tool-wide { grid-column: span 2; } }
@media (max-width: 640px) { .lab-tool-wide { grid-column: auto; } }
/* Review video tiles and lightbox */
.rv-vtile { position: relative; display: block; aspect-ratio: 4 / 5; max-height: 340px; width: 100%; border-radius: 14px; overflow: hidden; background: #000; isolation: isolate; }
.rv-vtile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rv-vtile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.65)); pointer-events: none; }
.rv-vtile:hover video { transform: scale(1.04); }
.rv-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,107,53,.85); box-shadow: 0 0 0 8px rgba(255,107,53,.25); transition: transform .2s; }
.rv-play svg { width: 26px; height: 26px; margin-left: 3px; }
.rv-vtile:hover .rv-play, .rv-vtile:focus-visible .rv-play { transform: scale(1.1); }
.rv-vtile:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.rv-vlabel { position: absolute; left: 14px; bottom: 12px; z-index: 1; font: 500 .78rem var(--f-mono); color: #fff; }
.rv-text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rv-text.open, .rv-text.full { display: block; -webkit-line-clamp: unset; overflow: visible; }
.rv-more { align-self: flex-start; margin-top: -6px; background: none; border: 0; padding: 0; color: var(--violet-2); font: 550 .9rem var(--f-body); cursor: pointer; }
.rv-lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.rv-lightbox::backdrop { background: rgba(6,6,8,.86); backdrop-filter: blur(6px); }
.rv-lightbox video { display: block; max-width: min(94vw, 960px); max-height: 86vh; width: auto; height: auto; border-radius: 16px; background: #000; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); }
.rv-close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
@media (max-width: 640px) { .rv-vtile { max-height: 420px; } .rv-close { top: 8px; right: 8px; } }

/* ── Free sample edit ────────────────────────────── */
.fs-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.fs-steps { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fs-steps li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 999px; padding: .45rem 1rem .45rem .45rem; background: rgba(20,20,24,.8); }
.fs-steps b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--plasma); color: #fff; font-size: .85rem; }
.fs-steps span { color: var(--text-2); font-size: .94rem; }
.fs-art { display: flex; align-items: center; justify-content: center; gap: 18px; }
.fs-card { position: relative; width: 150px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; border: 2px solid var(--line-2); container-type: inline-size; }
.fs-card.raw { background: linear-gradient(170deg, #4b4f5c, #2a2d36); filter: saturate(.3); transform: rotate(-5deg); }
.fs-card.raw span { position: absolute; top: 8%; left: 8%; font: 600 9cqw var(--f-mono); color: #ddd; letter-spacing: .1em; }
.fs-card.raw i { position: absolute; left: 10%; right: 10%; height: 6cqw; border-radius: 3cqw; background: rgba(255,255,255,.12); }
.fs-card.raw i:nth-of-type(1) { top: 40%; } .fs-card.raw i:nth-of-type(2) { top: 52%; right: 30%; } .fs-card.raw i:nth-of-type(3) { top: 64%; right: 45%; }
.fs-card.edit { width: 190px; background: linear-gradient(170deg, #FFD23F, #FF6B35 55%, #1E0C04); transform: rotate(4deg); box-shadow: 0 30px 70px -30px rgba(255,107,53,.9); animation: szfloat 6s ease-in-out infinite; }
.fs-hook { position: absolute; left: 8%; right: 8%; top: 14%; text-align: center; font: 800 10cqw/1.1 var(--f-display); color: #fff; background: #000; padding: 3cqw; border-radius: 3cqw; animation: rlhook 4s ease-in-out infinite; }
.fs-cap { position: absolute; left: 6%; right: 6%; top: 52%; text-align: center; font: 800 9cqw/1.25 var(--f-display); color: #fff; text-shadow: 0 2px 0 #000; }
.fs-cap b { color: #F5B53D; }
.fs-card.edit em { position: absolute; bottom: 6%; left: 0; right: 0; text-align: center; font: 600 7cqw var(--f-mono); font-style: normal; color: #fff; letter-spacing: .14em; }
.fs-arrow { font-size: 2rem; color: var(--cyan); animation: fsnudge 1.6s ease-in-out infinite; }
@keyframes fsnudge { 50% { transform: translateX(6px); } }
.fs-form { margin: 0 auto; }
.fs-drop { position: relative; clear: both; border: 1.5px dashed rgba(255,107,53,.55); border-radius: 16px; background: rgba(11,11,13,.6); min-height: 140px; display: grid; place-items: center; overflow: hidden; transition: border-color .2s; }
.fs-drop.over, .fs-drop.done { border-color: var(--cyan); }
.fs-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; }
.fs-drop.has input { z-index: 0; }
.fs-drop-in { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px; text-align: center; pointer-events: none; }
.fs-drop-in b { color: #fff; font: 600 1.05rem var(--f-display); }
.fs-drop-in span { color: var(--muted); font-size: .9rem; }
.fs-preview { display: block; width: 100%; max-height: 380px; background: #000; position: relative; z-index: 2; }
.fs-wide { grid-column: 1 / -1; }
.fs-form input[type=email], .fs-form input[type=tel] { width: 100%; font: 400 1rem var(--f-body); color: #fff; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: .85rem .95rem; }
@media (max-width: 1024px) { .fs-hero-grid { grid-template-columns: 1fr; } .fs-art { display: none; } }
@media (prefers-reduced-motion: reduce) { .fs-card.edit, .fs-hook, .fs-arrow { animation: none; } }

/* Homepage videos: at most three, one compact row of equal height */
.home-vids { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.home-vids .vid { flex: 0 0 auto; margin: 0; }
.home-vids .vid video { height: 300px; width: auto; max-width: 100%; aspect-ratio: auto; }
.home-vids .vid-tall video { aspect-ratio: 9 / 16; }
.home-vids .vid-square video { aspect-ratio: 4 / 5; }
.home-vids .vid-wide video { aspect-ratio: 16 / 9; }
.home-vids figcaption { max-width: 100%; }
@media (max-width: 760px) {
  .home-vids { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .home-vids .vid { scroll-snap-align: start; }
  .home-vids .vid video { height: 240px; max-width: 80vw; object-fit: cover; }
}
/* Reel hook generator */
.hk-form { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: end; max-width: 980px; }
.hk-form label { display: flex; flex-direction: column; gap: 6px; font: 450 .78rem var(--f-mono); color: var(--text-2); min-width: 0; }
.hk-form input { font: 400 1rem var(--f-body); color: #fff; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: .85rem 1rem; min-width: 0; }
.hk-form input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(255,107,53,.18); }
.hk-form .btn { height: 52px; }
.hk-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hk-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hk-list li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; animation: rise .4s ease both; }
.hk-list p { flex: 1; margin: 0; color: #fff; font-weight: 550; }
.hk-tag { flex: none; font: 500 .7rem var(--f-mono); color: var(--violet-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .15rem .5rem; }
.hk-list .copy-btn { margin: 0; flex: none; }
@media (max-width: 900px) { .hk-form { grid-template-columns: 1fr; } .hk-list { grid-template-columns: 1fr; } }

/* ── Advanced audit: 7 cards, tech chips, badge ───────────────────────────── */
.acard[data-part="email"], .acard[data-part="ssl"] { grid-column: span 3; }
.tech-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.tech-k { font: 500 .78rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.tech-chip { font: 500 .82rem var(--f-mono); color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .25rem .7rem; background: var(--surface); }
.badge-box { margin-top: 32px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,107,53,.16), transparent 55%), var(--surface); border: 1px solid var(--line-2); }
.badge-box:not(.has-out) { grid-template-columns: 1fr; }
.badge-box:not(.has-out) .badge-copy { max-width: 760px; }
.badge-box h2 { margin: 6px 0 10px; }
.badge-box p { color: var(--text-2); }
.bx-todo { margin: 4px 0 18px; padding-left: 1.2rem; color: var(--text-2); display: grid; gap: 6px; }
.bx-todo li::marker { color: var(--violet); }
.badge-out { display: grid; gap: 14px; min-width: 0; }
.bx-previews { display: flex; flex-wrap: wrap; gap: 12px; }
.bx-previews img { display: block; max-width: 100%; height: auto; }
.bx-previews img.light { background: #fff; border-radius: 12px; }
.bx-code { display: grid; gap: 6px; font-size: .86rem; color: var(--muted); }
.bx-code textarea { width: 100%; min-width: 0; font: .8rem/1.5 var(--f-mono); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px; resize: vertical; }
.vf-badge { margin-top: 22px; }
.vf-badge img { display: block; max-width: 100%; height: auto; }
.vf-grid { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 14px; }
.vf-score, .vf-part { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: grid; gap: 6px; align-content: start; }
.vf-score b { font: 700 3rem/1 var(--f-display); background: var(--plasma); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vf-score span:last-child, .vf-part span { color: var(--muted); font-size: .9rem; }
.vf-part b { font: 600 1.5rem var(--f-display); color: var(--text); }
.vf-bar { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.vf-bar em { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--fail); transition: width .8s ease; }
.vf-bar.ok em { background: var(--pass); } .vf-bar.warn em { background: var(--amber); }
@media (max-width: 1024px) {
  .acard[data-part="email"], .acard[data-part="ssl"] { grid-column: span 1; }
  .acard[data-part="ssl"] { grid-column: 1 / -1; }
  .badge-box { grid-template-columns: 1fr; }
  .vf-grid { grid-template-columns: 1fr 1fr; } .vf-score { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .acard[data-part="ssl"] { grid-column: auto; } }

/* ── Google search preview tool ───────────────────────────────────────────── */
.sp-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 28px; align-items: start; }
.sp-edit, .sp-view { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); min-width: 0; }
.sp-view { position: sticky; top: 90px; }
.sp-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sp-panel-head h2 { margin: 0; font-size: 1.25rem; }
.btn.sp-small { padding: .4rem .85rem; font-size: .85rem; }
.sp-field { display: grid; gap: 7px; margin-top: 16px; font-size: .88rem; color: var(--text-2); min-width: 0; }
.sp-field input, .sp-field textarea { width: 100%; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .7rem .8rem; font: 400 .95rem/1.5 var(--f-body); }
.sp-field textarea { resize: vertical; }
.sp-field input:focus, .sp-field textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: transparent; }
.sp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sp-meter { display: grid; gap: 5px; }
.sp-meter i { display: block; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.sp-meter em { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--pass); transition: width .2s ease, background .2s; }
.sp-meter small { font: .78rem var(--f-mono); color: var(--muted); }
.sp-meter.warn em { background: var(--amber); } .sp-meter.over em { background: var(--fail); }
.sp-meter.over small { color: var(--fail); } .sp-meter.warn small { color: var(--amber); }
.sp-tog { margin-top: 16px; }
.sp-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.sp-copied { color: var(--pass); font-size: .88rem; }
.sp-code { margin: 14px 0 0; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px; overflow-x: auto; font: .78rem/1.6 var(--f-mono); color: var(--text-2); white-space: pre; }
.sp-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 18px; }
.sp-tabs .sz-seg button { padding: .42rem .8rem; font-size: .84rem; }
.sp-stage { min-width: 0; }
.sp-scroll { overflow: hidden; border-radius: 12px; }
.sp-scroll .g-card { transform-origin: top left; }
.sp-phone { max-width: 400px; margin: 0 auto; border: 10px solid #222228; border-radius: 34px; overflow: hidden; }

/* Google result, light by default */
.g-card { background: #fff; color: #4d5156; font-family: Arial, "Liberation Sans", Helvetica, sans-serif; padding: 20px 22px 22px; border-radius: 12px; text-align: left; }
.g-desk { width: 652px; }
.g-mob { border-radius: 0; padding: 18px 16px 20px; }
.g-site { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.g-fav { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; border: 1px solid #dadce0; display: grid; place-items: center; overflow: hidden; }
.g-fav img { width: 18px; height: 18px; display: block; }
.g-fav.none img { display: none; }
.g-fav.none::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid #70757a; box-sizing: border-box; }
.g-who { display: grid; min-width: 0; line-height: 1.3; }
.g-name { font-size: 14px; color: #202124; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-url { font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-dots { margin-left: auto; color: #70757a; font-size: 16px; padding: 0 4px; }
.g-title { margin: 0 0 4px; font: 400 20px/1.3 Arial, "Liberation Sans", Helvetica, sans-serif; color: #1a0dab; letter-spacing: 0; }
.g-desk .g-title { white-space: nowrap; }
.g-desc { margin: 0; font-size: 14px; line-height: 1.58; color: #4d5156; overflow-wrap: anywhere; }
.g-desc b { color: #5f6368; font-weight: 700; }
.g-date { color: #70757a; }
.g-auto { font-style: italic; color: #70757a; }
.g-card.g-dark { background: #1f1f1f; color: #bdc1c6; }
.g-dark .g-name { color: #dadce0; } .g-dark .g-url, .g-dark .g-desc, .g-dark .g-dots { color: #bdc1c6; }
.g-dark .g-title { color: #99c3ff; } .g-dark .g-desc b { color: #e8eaed; } .g-dark .g-date, .g-dark .g-auto { color: #9aa0a6; }
.g-dark .g-fav { background: #303134; border-color: #3c4043; } .g-dark .g-fav.none::before { border-color: #9aa0a6; }

/* Social share cards */
.sp-social { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.so { margin: 0; min-width: 0; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.so figcaption { font: 500 .74rem var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.so-img { position: relative; aspect-ratio: 1.91 / 1; background: #d8dadf; overflow: hidden; display: grid; place-items: center; }
.so-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.so-img.empty { background: repeating-linear-gradient(135deg, #2a2a33 0 10px, #23232b 10px 20px); }
.so-none { font: 500 .78rem var(--f-mono); color: var(--muted); padding: 0 12px; text-align: center; }
.so-body { display: grid; gap: 3px; padding: 10px 12px; min-width: 0; }
.so-body b, .so-body span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-fb .so-body { background: #f0f2f5; color: #050505; border: 1px solid #dadde1; border-top: 0; }
.so-fb .so-dom { font-size: 12px; color: #65676b; } .so-fb .so-t { font-size: 16px; font-weight: 600; } .so-fb .so-d { font-size: 14px; color: #65676b; }
.so-fb .so-img, .so-li .so-img { border: 1px solid #dadde1; border-bottom: 0; }
.so-li .so-body { background: #fff; border: 1px solid #e0dfdc; border-top: 0; }
.so-li .so-t { font-size: 14px; font-weight: 600; color: rgba(0,0,0,.9); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.so-li .so-dom { font-size: 12px; color: rgba(0,0,0,.6); }
.so-x .so-img { border-radius: 16px; border: 1px solid #2f3336; }
.so-xt { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: rgba(0,0,0,.77); color: #fff; font-size: 13px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-x > .so-dom { display: block; margin-top: 6px; font-size: 13px; color: #71767b; }
.so-wa .so-bubble { background: #0b141a; padding: 14px; border-radius: 14px; }
.so-wa .so-bubble { background-image: linear-gradient(#0b141a, #0b141a); }
.so-card { background: #005c4b; border-radius: 10px; padding: 4px; }
.so-card > .so-img { border-radius: 7px; }
.so-card .so-body { background: rgba(0,0,0,.2); border-radius: 0 0 7px 7px; }
.so-wa .so-t { color: #e9edef; font-size: 14px; } .so-wa .so-d, .so-wa .so-dom { color: #aebac1; font-size: 12.5px; }
.so-link { display: block; background: #005c4b; color: #53bdeb; font-size: 14px; padding: 4px 10px 8px; margin-top: -6px; border-radius: 0 0 10px 10px; overflow-wrap: anywhere; }

.sp-raw { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; background: var(--surface); }
.sp-raw summary { cursor: pointer; font-weight: 600; color: var(--text); }
.sp-raw dl { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 8px 18px; margin: 16px 0 4px; }
.sp-raw dt { font: 500 .82rem var(--f-mono); color: var(--muted); }
.sp-raw dd { margin: 0; font-size: .9rem; color: var(--text-2); overflow-wrap: anywhere; }
.sp-raw dd.none { color: var(--dim); font-style: italic; }
@media (max-width: 1024px) { .sp-grid { grid-template-columns: 1fr; } .sp-view { position: static; } }
@media (max-width: 640px) { .sp-tabs .sz-seg button { padding: .4rem .62rem; font-size: .8rem; } .sp-row, .sp-social { grid-template-columns: 1fr; } .sp-raw dl { grid-template-columns: 1fr; gap: 2px; } .sp-raw dd { margin-bottom: 8px; } .sp-tabs { justify-content: flex-start; } }

/* ── Website speed test and speed race ───────────────────────────────────── */
.st-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.st-form { display: grid; gap: 14px; margin-top: 26px; max-width: 620px; }
.st-in { display: grid; gap: 6px; font-size: .88rem; color: var(--text-2); }
.st-in em { font-style: normal; color: var(--dim); margin-left: 6px; }
.st-in input { width: 100%; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .85rem 1rem; font: 400 1rem var(--f-body); }
.st-in input:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: transparent; }
.st-vs input { border-style: dashed; }
.st-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.st-art { position: relative; display: grid; gap: 22px; padding: 30px 24px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: linear-gradient(160deg, var(--surface), var(--bg)); overflow: hidden; }
.st-art-lane { position: relative; height: 46px; border-bottom: 1px dashed var(--line-2); }
.st-art-lane span { position: absolute; left: 0; top: 0; font: 500 .72rem var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.st-art-car { position: absolute; bottom: 8px; left: 0; width: 46px; height: 14px; border-radius: 7px; background: var(--plasma); box-shadow: 0 0 24px rgba(255,107,53,.55); animation: stcar 3.6s cubic-bezier(.55,0,.25,1) infinite; }
.st-art-car.b { background: var(--line-2); box-shadow: none; animation-duration: 3.6s; animation-name: stcar2; }
.st-art-flag { position: absolute; right: 22px; top: 18px; bottom: 18px; width: 12px; background: repeating-conic-gradient(var(--text) 0 25%, transparent 0 50%) 0 0 / 12px 12px; opacity: .55; border-radius: 2px; }
@keyframes stcar { 0% { transform: translateX(0); } 70%, 100% { transform: translateX(calc(min(30vw, 330px) - 60px)); } }
@keyframes stcar2 { 0% { transform: translateX(0); } 100% { transform: translateX(calc(min(30vw, 330px) - 120px)); } }

.st-wait { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); }
.st-wait-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.st-wait-head b { font: 600 1.2rem var(--f-display); }
.st-clock { font: 600 1.4rem var(--f-mono); color: var(--violet-2); }
.st-lanes { display: grid; gap: 18px; margin: 22px 0 12px; }
.st-lane { display: grid; gap: 8px; }
.st-lane > b { font-family: var(--f-mono); font-size: .9rem; }
.st-lane-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; position: relative; }
.st-lane-bar i { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: 99px; background: var(--plasma); animation: stlane 1.6s ease-in-out infinite; }
.st-lane.b .st-lane-bar i { background: linear-gradient(90deg, #8a8a96, #c9c4bb); animation-duration: 1.9s; }
.st-lane.done .st-lane-bar i { animation: none; width: 100%; }
.st-lane.err .st-lane-bar i { background: var(--fail); }
.st-lane-st { font-size: .88rem; color: var(--muted); }
.st-lane.done .st-lane-st { color: var(--pass); } .st-lane.err .st-lane-st { color: var(--fail); }
@keyframes stlane { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

.st-verdict { border-radius: var(--r-lg); padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line-2); background: radial-gradient(120% 160% at 0% 0%, rgba(255,107,53,.18), transparent 55%), var(--surface); }
.st-verdict.good { background: radial-gradient(120% 160% at 0% 0%, rgba(200,245,96,.16), transparent 55%), var(--surface); }
.st-verdict.poor { background: radial-gradient(120% 160% at 0% 0%, rgba(255,90,90,.16), transparent 55%), var(--surface); }
.st-verdict h2 { margin: 10px 0 8px; font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.st-verdict p { color: var(--text-2); margin: 0; max-width: 70ch; }
.st-flag { display: inline-block; font: 600 .78rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; padding: .35rem .7rem; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); }
.st-verdict.good .st-flag { color: var(--pass); } .st-verdict.ok .st-flag { color: var(--amber); } .st-verdict.poor .st-flag { color: var(--fail); }
.st-vs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.st-vs-cell { display: grid; grid-template-columns: auto auto auto; justify-content: start; align-items: baseline; gap: 4px 10px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.st-vs-cell .std-k { grid-column: 1 / -1; }
.st-vs-cell b { font: 600 1.05rem var(--f-mono); color: var(--muted); }
.st-vs-cell b.win { color: var(--pass); }
.st-vs-cell i { font-style: normal; color: var(--dim); font-size: .8rem; }

.st-theatre { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); }
.st-theatre-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.st-theatre-head h2 { margin: 0; font-size: 1.3rem; }
.st-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.st-controls .sz-seg button { padding: .38rem .7rem; font-size: .82rem; }
.st-time { font: 600 1.5rem var(--f-mono); min-width: 5.5ch; text-align: right; color: var(--violet-2); }
.st-screens { display: grid; gap: 24px; justify-content: center; }
.st-screens.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-screen { display: grid; gap: 10px; justify-items: center; min-width: 0; }
.st-screen-head { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; align-items: center; font-family: var(--f-mono); font-size: .9rem; max-width: 100%; min-width: 0; min-height: 2.2em; }
.st-screen-head b { min-width: 0; max-width: 100%; }
.st-screen-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-win { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #141418; background: var(--cyan); border-radius: 99px; padding: .2rem .55rem; }
.st-phone { position: relative; width: min(100%, 250px); aspect-ratio: 9 / 18.5; border: 8px solid #26262e; border-radius: 30px; background: #fff; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.desktop .st-phone { width: min(100%, 520px); aspect-ratio: 16 / 10; border-radius: 12px; border-width: 6px; }
.st-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.st-phone .st-blank { display: none; position: absolute; inset: 0; place-items: center; color: #9a9a9a; font: 500 .8rem var(--f-mono); }
.st-phone.blank img { visibility: hidden; }
.st-phone.blank .st-blank { display: grid; }
.st-marks { position: absolute; left: 8px; right: 8px; bottom: 8px; display: grid; gap: 6px; }
.st-mark { font: 600 .72rem var(--f-mono); padding: .3rem .55rem; border-radius: 8px; background: rgba(20,20,24,.82); color: #8b8b95; transition: background .2s, color .2s; }
.st-mark.on { background: rgba(200,245,96,.95); color: #141418; }
.st-mark.on::before { content: '✓ '; }
.st-scrub { width: 100%; margin: 22px 0 8px; accent-color: var(--violet); }
.st-strips { overflow-x: auto; padding-bottom: 6px; }
.st-film { display: grid; gap: 6px; align-items: center; min-width: max-content; }
.st-film-k { font: 500 .78rem var(--f-mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-film-t { font: 500 .72rem var(--f-mono); color: var(--dim); text-align: center; }
.st-film-cell { padding: 0; border: 2px solid transparent; border-radius: 6px; background: #fff; aspect-ratio: 9 / 16; overflow: hidden; cursor: pointer; opacity: .55; }
.desktop .st-film-cell { aspect-ratio: 16 / 10; }
.st-film-cell img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.st-film-cell.blank { background: #eceae6; }
.st-film-cell.change { opacity: 1; border-color: var(--line-2); }
.st-film-cell.lcp { border-color: var(--cyan); opacity: 1; }

.st-cards { display: grid; gap: 20px; margin-top: 26px; }
.st-cards.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 26px); min-width: 0; }
.st-card h4 { margin: 22px 0 10px; font: 600 .78rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.st-card-top { display: flex; gap: 20px; align-items: center; }
.st-card-top h3 { margin: 0 0 4px; font-family: var(--f-mono); font-size: 1.05rem; overflow-wrap: anywhere; }
.st-card-top p { margin: 0; color: var(--muted); font-size: .88rem; }
.st-ring { position: relative; width: 108px; flex: none; display: grid; place-items: center; }
.st-ring svg { width: 100%; transform: rotate(-90deg); }
.st-ring circle { fill: none; stroke-width: 9; }
.st-ring .bg { stroke: var(--line); }
.st-ring .fg { stroke: var(--pass); stroke-linecap: round; transition: stroke-dashoffset 1.2s ease; }
.st-ring.ok .fg { stroke: var(--amber); } .st-ring.poor .fg { stroke: var(--fail); }
.st-ring-n { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font: 700 2.1rem var(--f-display); }
.st-ring small { position: absolute; top: 64%; left: 0; right: 0; text-align: center; font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.st-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.st-metric { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font-size: .88rem; }
.st-metric b { font-family: var(--f-mono); white-space: nowrap; }
.st-metric.good b { color: var(--pass); } .st-metric.ok b { color: var(--amber); } .st-metric.poor b { color: var(--fail); }
.st-cwv-pass { font-weight: 600; margin: 0 0 12px; } .st-cwv-pass.good { color: var(--pass); } .st-cwv-pass.poor { color: var(--fail); }
.st-cwv-row { display: grid; gap: 6px; margin-top: 12px; }
.st-cwv-top { display: flex; justify-content: space-between; font-size: .9rem; }
.st-cwv-top b { font-family: var(--f-mono); } .st-cwv-top b.good { color: var(--pass); } .st-cwv-top b.ok { color: var(--amber); } .st-cwv-top b.poor { color: var(--fail); } .st-cwv-top b.na { color: var(--dim); }
.st-dist { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--line); }
.st-dist i.good { background: var(--pass); } .st-dist i.ok { background: var(--amber); } .st-dist i.poor { background: var(--fail); }
.st-cwv-row small { color: var(--dim); font-size: .76rem; }

.st-fixes { display: grid; gap: 26px; margin-top: 26px; }
.st-fix-site { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px 26px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); }
.st-fix-site > h2, .st-fix-site > .st-lcp, .st-fix-site > .st-clean { grid-column: 1 / -1; margin: 0; }
.st-fix-site > h2 { font-size: 1.3rem; }
.st-lcp { padding: 16px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 8px; }
.st-lcp code { font: .8rem var(--f-mono); color: var(--violet-2); overflow-wrap: anywhere; }
.st-lcp p { margin: 0; color: var(--text-2); font-size: .92rem; }
.st-phases { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--line); }
.st-phases i, .st-phase-legend span::before { background: var(--violet); }
.st-phases i.p1, .st-phase-legend span.p1::before { background: var(--amber); }
.st-phases i.p2, .st-phase-legend span.p2::before { background: var(--cyan); }
.st-phases i.p3, .st-phase-legend span.p3::before { background: #8a8af0; }
.st-phase-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--muted); }
.st-phase-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.st-fix-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: fx; }
.st-fix-list > li { counter-increment: fx; position: relative; padding: 14px 16px 14px 52px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); }
.st-fix-list > li::before { content: counter(fx); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 .8rem var(--f-mono); background: rgba(245,181,61,.14); color: var(--amber); }
.st-fix-list > li.poor::before { background: rgba(255,90,90,.14); color: var(--fail); }
.st-fix-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.st-gain { font: 600 .8rem var(--f-mono); color: var(--cyan); white-space: nowrap; }
.st-fix-list p { margin: 6px 0 0; color: var(--text-2); font-size: .9rem; }
.st-fix-list details { margin-top: 8px; font-size: .84rem; }
.st-fix-list summary { cursor: pointer; color: var(--muted); }
.st-fix-list details ul { margin: 8px 0 0; padding-left: 1rem; display: grid; gap: 4px; }
.st-fix-list details li { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); }
.st-fix-list code { font: .76rem var(--f-mono); color: var(--text-2); overflow-wrap: anywhere; }
.st-side { display: grid; gap: 16px; }
.st-weight { padding: 16px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); }
.st-weight h4 { margin: 0 0 12px; font: 600 .78rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.st-wrow { display: grid; grid-template-columns: 5.5rem 1fr 4.5rem; gap: 10px; align-items: center; font-size: .84rem; margin-top: 8px; }
.st-wrow i { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.st-wrow em { display: block; height: 100%; background: var(--plasma); border-radius: 99px; }
.st-wrow b, .st-trow b { font: 500 .8rem var(--f-mono); text-align: right; color: var(--text-2); }
.st-trow { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; padding: 6px 0; border-top: 1px solid var(--line); }
.st-trow:first-of-type { border-top: 0; }
.st-clean { color: var(--pass); font-weight: 600; }
.st-cta { margin-top: 30px; }
@media (max-width: 1024px) {
  .st-hero-grid { grid-template-columns: 1fr; } .st-art { display: none; }
  .st-cards.n2 { grid-template-columns: 1fr; } .st-fix-site { grid-template-columns: 1fr; }
  .st-vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .st-screens.n2 { gap: 12px; align-items: start; } .st-screen { width: 100%; } .st-phone { width: 100%; border-width: 5px; border-radius: 20px; }
  .st-screens.n2 .st-screen-head { font-size: .74rem; height: 4.4em; align-content: flex-start; } .st-win { font-size: .6rem; }
  .st-marks { left: 5px; right: 5px; bottom: 5px; gap: 4px; } .st-mark { font-size: .6rem; padding: .25rem .4rem; }
  .st-time { font-size: 1.2rem; } .st-card-top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .st-art-car, .st-lane-bar i { animation: none; } }

/* ── Get your plan: three ways in, scan, platform, timeline, sitemap, options ── */
.pstart { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; margin-top: 30px; }
.pstart-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); min-width: 0; }
.pstart-card.is-scan { border-color: rgba(255,107,53,.5); background: radial-gradient(120% 120% at 0% 0%, rgba(255,107,53,.2), transparent 60%), var(--surface); }
.pstart-card h2 { margin: 0; font-size: 1.25rem; }
.pstart-card p { margin: 0; color: var(--text-2); font-size: .93rem; flex: 1; }
.pstart-tag { align-self: flex-start; font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); }
.pstart-card .btn { align-self: flex-start; }
.pscan-form { display: flex; gap: 8px; }
.pscan-form input, .pquick-grid input, .pquick-grid select { flex: 1; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .75rem .9rem; font: 400 .98rem var(--f-body); }
.pscan-form input:focus, .pquick-grid input:focus, .pquick-grid select:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: transparent; }
.pstart-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pstart-btns .btn { padding: .6rem 1rem; font-size: .9rem; }
.pquick { margin-top: 16px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); }
.pquick h2 { margin: 0 0 4px; font-size: 1.2rem; } .pquick p { margin: 0 0 14px; color: var(--text-2); }
.pquick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.pquick-grid .wide { grid-column: 1 / -1; }

.pscan-in { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); background: var(--surface); }
.pscan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pscan-head h2 { margin: 4px 0 0; font-family: var(--f-mono); font-size: 1.3rem; overflow-wrap: anywhere; }
.pscan-clock { font: 600 1.2rem var(--f-mono); color: var(--violet-2); }
.pscan-rows { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.ps-row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; grid-template-areas: "k v" "n n"; gap: 2px 14px; padding: 12px 14px 12px 40px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); position: relative; }
.ps-row::before { content: ''; position: absolute; left: 15px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.ps-row.wait::before { animation: livepulse 1.2s ease-out infinite; background: var(--violet); }
.ps-row.good::before { background: var(--pass); } .ps-row.ok::before { background: var(--amber); } .ps-row.poor::before { background: var(--fail); } .ps-row.info::before { background: var(--cyan); }
.ps-row > span { grid-area: k; color: var(--text-2); }
.ps-row > b { grid-area: v; font: 600 .95rem var(--f-mono); text-align: right; }
.ps-row.good > b { color: var(--pass); } .ps-row.ok > b { color: var(--amber); } .ps-row.poor > b { color: var(--fail); } .ps-row.wait > b, .ps-row.na > b { color: var(--muted); font-weight: 400; }
.ps-row > small { grid-area: n; color: var(--muted); font-size: .82rem; }
.ps-row > small:empty { display: none; }
.pscan-out { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); animation: rise .5s ease both; }
.pscan-out h3 { margin: 0 0 6px; font-size: 1.4rem; } .pscan-out p { margin: 0; color: var(--text-2); }
.pscan-todo { margin: 12px 0 0; padding-left: 1.2rem; display: grid; gap: 6px; color: var(--text-2); }
.pscan-todo li::marker { color: var(--cyan); }
.pscan-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.peditor { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.peditor .pstep-note { margin: 0 0 10px; }
.plan-side-go { width: 100%; margin-top: 16px; }
.plan-side-note { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }

.pplat { margin-top: 26px; padding: 20px 22px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg); }
.pplat h3 { margin: 4px 0 6px; font-size: 1.35rem; }
.pplat > p:not(.std-k) { margin: 0; color: var(--text-2); }
.pplat-alts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.pplat-alts b { color: var(--text-2); font-weight: 600; }
.pplat-more { display: inline-block; margin-top: 12px; font-size: .9rem; }
.pviz { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.ptime, .pmap { padding: 20px 22px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg); min-width: 0; }
.ptime h3, .pmap h3 { margin: 4px 0 14px; font-size: 1.15rem; }
.pg-row { display: grid; grid-template-columns: 10.5rem 1fr; gap: 12px; align-items: center; margin-bottom: 9px; font-size: .86rem; color: var(--text-2); }
.pg-track { position: relative; height: 12px; border-radius: 99px; background: var(--surface); }
.pg-bar { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--violet); transform-origin: left; animation: pgrow .7s cubic-bezier(.2,.7,.2,1) both; }
.pg-bar.p1 { background: var(--violet-2); } .pg-bar.p2 { background: var(--amber); } .pg-bar.p3 { background: var(--cyan); } .pg-bar.p4 { background: #8a8af0; } .pg-bar.p5 { background: var(--pass); }
@keyframes pgrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pg-axis { display: grid; grid-template-columns: 10.5rem 1fr; gap: 12px; margin-top: 4px; }
.pg-ticks { position: relative; height: 16px; }
.pg-ticks span { position: absolute; transform: translateX(-100%); font: 500 .68rem var(--f-mono); color: var(--dim); }
.pg-care { margin: 12px 0 0; font: 500 .82rem var(--f-mono); color: var(--cyan); }
.ptree, .ptree ul { list-style: none; margin: 0; padding: 0; }
.ptree > li { position: relative; padding: 6px 0 6px 18px; font-weight: 600; color: var(--text); font-size: .95rem; border-left: 1px solid var(--line-2); }
.ptree > li::before { content: ''; position: absolute; left: 0; top: 16px; width: 12px; border-top: 1px solid var(--line-2); }
.ptree > li:last-child { border-left-color: transparent; }
.ptree > li:last-child::after { content: ''; position: absolute; left: 0; top: 0; height: 16px; border-left: 1px solid var(--line-2); }
.ptree ul { margin-top: 4px; }
.ptree ul li { font-weight: 400; font-size: .85rem; color: var(--muted); padding-left: 14px; position: relative; }
.ptree ul li::before { content: '–'; position: absolute; left: 0; color: var(--dim); }
.ptiers-wrap { margin-top: 26px; }
.ptiers-wrap h3 { margin: 4px 0 14px; font-size: 1.3rem; }
.ptiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ptier { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg); }
.ptier.rec { border-color: rgba(255,107,53,.5); }
.ptier.on { box-shadow: 0 0 0 2px var(--violet); }
.ptier-badge { position: absolute; top: -10px; right: 14px; font: 600 .68rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: .25rem .55rem; border-radius: 99px; background: var(--violet); color: #fff; }
.ptier h4 { margin: 0; font-size: 1.15rem; }
.ptier > p { margin: 0; color: var(--muted); font-size: .88rem; }
.ptier ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 4px; align-content: start; font-size: .88rem; color: var(--text-2); flex: 1; }
.ptier-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font: 500 .78rem var(--f-mono); color: var(--muted); }
.ptier-meta .fit-fits { color: var(--pass); } .ptier-meta .fit-stretch { color: var(--amber); } .ptier-meta .fit-later { color: var(--fail); }
.ptier .btn { align-self: flex-start; padding: .55rem 1rem; font-size: .88rem; }
.pactions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 1024px) {
  .pstart { grid-template-columns: 1fr; } .pviz { grid-template-columns: 1fr; }
  .pquick-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pscan-form { flex-direction: column; } .pquick-grid { grid-template-columns: 1fr; }
  .pg-row, .pg-axis { grid-template-columns: 7.5rem 1fr; } .pg-row { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { .pg-bar { animation: none; } }

/* Save as PDF: just the plan, on white paper */
.print-only { display: none; }
@media print {
  .print-only { display: block !important; }
  .print-brand { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid #FF6B35; font-size: .9rem; color: #333 !important; }
  :root { color-scheme: light; }
  body { background: #fff !important; color: #111 !important; }
  .site-head, .foot, footer, .wa-fab, .consent-bar, .page-hero, .pscan, .plan-layout, .section:not(.plan-result), .plan-lead, .pactions, .ptier .btn, .pplat-more, .skip { display: none !important; }
  .plan-result { display: block !important; padding: 0 !important; }
  .presult, .pplat, .ptime, .pmap, .ptier, .pphase { background: #fff !important; border-color: #ccc !important; box-shadow: none !important; animation: none !important; }
  .presult *, .ptier * { color: #111 !important; }
  .pg-track { background: #eee !important; } .pg-bar { animation: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ptier-badge { color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pviz, .ptiers { break-inside: avoid; }
}
