/* Linktrika landing v2 */

:root {
  --bg: #fafaf9;
  --bg-2: #f4f4f2;
  --surface: #ffffff;
  --ink: #0c0a09;
  --ink-2: #44403c;
  --muted: #78716c;
  --line: #e7e5e4;
  --line-2: #d6d3d1;
  --brand: #ed5b2d;
  --brand-2: #ff8a3d;
  --brand-hover: #d94a1c;
  --brand-ink: #c2410c;
  --brand-soft: #fff1ea;
  --green: #059669;
  --night: #0c0a09;
  --night-line: rgba(255, 255, 255, .08);

  --font: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;

  --r: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(12, 10, 9, .05);
  --shadow: 0 1px 2px rgba(12, 10, 9, .04), 0 8px 24px -6px rgba(12, 10, 9, .08);
  --shadow-lg: 0 1px 2px rgba(12, 10, 9, .04), 0 24px 64px -16px rgba(12, 10, 9, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }

/* intro: hidden until the animation script runs (removed after 4s as a safety net) */
.js-anim [data-intro] { opacity: 0; }
.js-anim .hero-title, .js-anim .page-title { visibility: hidden; }
[id] { scroll-margin-top: 90px; }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform: scaleX(0); transform-origin: 0 50%; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1; letter-spacing: -.01em;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, scale .2s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.btn:active { scale: .97; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #f26a3c 0%, var(--brand) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(194, 65, 12, .4), 0 8px 24px -8px rgba(237, 91, 45, .7);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-hover) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(194, 65, 12, .5), 0 14px 34px -8px rgba(237, 91, 45, .85); }
.btn-primary svg { transition: translate .25s var(--ease); }
.btn-primary:hover svg { translate: 3px 0; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn-dark:hover { background: #292524; }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; border-color: var(--ink-2); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--brand-soft); }

.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.section-head { max-width: 780px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.8vw, 60px); letter-spacing: -.045em; }
.section-head p { margin: 20px auto 0; max-width: 580px; font-size: 18px; color: var(--muted); }
.section-head-left { text-align: left; margin: 0; }
.section-head-left p { margin-left: 0; }
.section-head-left a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.section-head-left a:hover { text-decoration-color: var(--brand); }

/* NAV */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 14px 16px 0; transition: transform .5s var(--ease); }
.nav-wrap.is-hidden { transform: translateY(-120%); }
.nav {
  position: relative; max-width: 1160px; margin: 0 auto; height: 60px; padding: 0 10px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav-wrap.is-scrolled .nav {
  background: rgba(255, 255, 255, .72); border-color: rgba(231, 229, 228, .9);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 8px 30px -12px rgba(12, 10, 9, .15);
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); background: rgba(12, 10, 9, .05); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-login { font-size: 14.5px; font-weight: 600; padding: 8px 14px; color: var(--ink-2); border-radius: 999px; }
.nav-login:hover { color: var(--ink); background: rgba(12, 10, 9, .05); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 50%; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 22px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* HERO */
.hero { margin-top: -74px; padding: 150px 0 120px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); }
.blob-1 { width: 620px; height: 520px; right: -120px; top: 40px; background: radial-gradient(circle, rgba(255, 150, 90, .32), transparent 65%); }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero-grid > *, .gap-grid > *, .agents-grid > *, .faq-grid > *, .bento > * { min-width: 0; }
.hero-title { font-size: clamp(38px, 4.9vw, 66px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; margin: 0 0 24px; text-wrap: balance; }
.hero-title .w, .page-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin: 0 -.02em -.12em; }
.hero-title .w > span, .page-title .w > span { display: inline-block; }
.hero-sub { font-size: 18.5px; color: var(--ink-2); max-width: 520px; line-height: 1.65; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* answer card */
.hero-visual { position: relative; padding: 36px 0 24px; perspective: 1400px; }
.answer-frame {
  position: relative; padding: 6px; border-radius: 32px; transform-origin: 50% 80%;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4));
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 0 0 1px rgba(12, 10, 9, .06), 0 40px 80px -24px rgba(12, 10, 9, .22), 0 0 80px -20px rgba(237, 91, 45, .25);
  backdrop-filter: blur(12px);
}
.answer-card { position: relative; background: var(--surface); border-radius: 26px; overflow: hidden; border: 1px solid var(--line); }
.engine-tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.engine-tabs::-webkit-scrollbar { display: none; }
.engine-tab {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; background: transparent; color: var(--muted);
  font-size: 12.5px; font-weight: 600; padding: 8px 9px; border-radius: 10px; transition: background .25s, color .25s, box-shadow .25s;
}
.engine-tab img { width: 16px; height: 16px; opacity: .55; filter: grayscale(1); transition: opacity .25s, filter .25s; }
.engine-tab:hover { color: var(--ink); }
.engine-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(12, 10, 9, .08), 0 0 0 1px var(--line); }
.engine-tab.is-active img, .engine-tab:hover img { opacity: 1; filter: none; }
.answer-body { padding: 22px 22px 18px; min-height: 280px; }
.query { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.query p { background: var(--bg-2); color: var(--ink); font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: 20px 20px 6px 20px; max-width: 88%; }
.response-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.engine-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.engine-avatar img { width: 16px; height: 16px; }
.engine-name { font-size: 14px; font-weight: 600; }
.typing { display: inline-flex; gap: 3px; margin-left: 2px; opacity: 0; transition: opacity .2s; }
.typing.is-on { opacity: 1; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.response-text { font-size: 14.5px; color: var(--ink-2); min-height: 92px; line-height: 1.65; }
.response-text mark { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; padding: 1px 5px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(237, 91, 45, .25); }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.sources.is-on { opacity: 1; transform: none; }
.source { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); padding: 4px 10px 4px 4px; border-radius: 999px; }
.source b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: var(--line); color: var(--ink-2); }
.source.is-you { border-color: rgba(237, 91, 45, .4); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.source.is-you b { background: var(--brand); color: #fff; }
.answer-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg)); }
.metric { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.metric-value { font-size: 26px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.metric-delta { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 600; color: var(--green); background: #ecfdf5; padding: 2px 7px; border-radius: 999px; }

/* STATEMENT */
.statement { padding: 150px 0 120px; overflow-x: clip; }
.statement-text {
  font-size: clamp(30px, 4.3vw, 58px); font-weight: 600; letter-spacing: -.04em; line-height: 1.14;
  max-width: 1100px; margin-top: 6px;
}
.gap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 80px; }
.gap-card { position: relative; margin: 0; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.gap-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.gap-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.serp-query { font-size: 14.5px; padding: 11px 16px; border: 1px solid var(--line-2); border-radius: 999px; margin-bottom: 14px; }
.serp { display: flex; flex-direction: column; }
.serp li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 2px; border-top: 1px solid var(--line); }
.serp-url { font-size: 12.5px; color: var(--muted); }
.serp-title { font-size: 15px; font-weight: 600; color: #1a4fd0; letter-spacing: -.01em; }
.serp li.is-you { padding-right: 96px; }
.chat-q { margin-left: auto; max-width: 86%; width: fit-content; font-size: 14.5px; background: var(--bg-2); padding: 11px 16px; border-radius: 18px 18px 6px 18px; margin-bottom: 16px; }
.chat-a { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin-bottom: 18px; }
.gap-flag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.serp .gap-flag { position: absolute; right: 0; top: 50%; translate: 0 -50%; }
.gap-good { background: #ecfdf5; color: #047857; }
.gap-bad { background: #fef2f2; color: #b91c1c; }
.gap-note { max-width: 640px; margin: 44px auto 0; text-align: center; }
.gap-note p { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -.01em;
  padding-bottom: 3px; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 1.5px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1.5px no-repeat;
  transition: background-size .5s var(--ease);
}
.text-link:hover { background-size: 100% 1.5px, 100% 1.5px; }
.text-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s var(--ease); }
.text-link:hover svg { translate: 3px 0; }
/* FEATURES */
.features { padding: 140px 0; background: var(--surface); border-top: 1px solid var(--line); }
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  grid-template-areas:
    "geo geo geo geo audit audit"
    "rank rank auth auth report report"
    "rank rank wp wp wp wp";
}
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: translate .5s var(--ease), box-shadow .5s, border-color .3s;
}
.tile::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(237, 91, 45, .09), transparent 45%);
}
.tile:hover::before { opacity: 1; }
.tile:hover { translate: 0 -4px; box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.tile h3 { font-size: 22px; letter-spacing: -.03em; margin: 0 0 10px; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tile-geo { grid-area: geo; display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: center; }
.tile-audit { grid-area: audit; }
.tile-rank { grid-area: rank; display: flex; flex-direction: column; }
.tile-auth { grid-area: auth; }
.tile-report { grid-area: report; }
.tile-wp { grid-area: wp; display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.geo-bars { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.geo-bars .gb-title { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
.gb { display: grid; grid-template-columns: 104px 1fr 38px; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; }
.gb + .gb { margin-top: 13px; }
.gb span { display: flex; align-items: center; gap: 7px; }
.gb img { width: 16px; height: 16px; }
.gb b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.gb-track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.gb-track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--c); transition: width 1.6s var(--ease) .3s; }
.anim .gb-track i { width: 0; }
.anim .is-in .gb-track i { width: var(--w); }

.issue-list { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.issue-list li { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 500; }
.sev { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; flex-shrink: 0; }
.sev-h { background: #fee2e2; color: #b91c1c; }
.sev-m { background: #fef3c7; color: #92400e; }
.sev-l { background: #e0f2fe; color: #075985; }

.chart { margin-top: auto; padding-top: 28px; }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 3px; border-radius: 2px; }
.spark { display: block; width: 100%; height: 150px; overflow: visible; }
.chart-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.chart-top .chart-legend { margin-bottom: 0; }
.chart-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--green); background: #ecfdf5; padding: 3px 9px 3px 8px; border-radius: 999px; }
.chart-plot { position: relative; margin-top: 30px; }
.spark-dash { animation: dash-march 1.2s linear infinite; }
@keyframes dash-march { to { stroke-dashoffset: -8; } }
/* travelling marker: --x / --y are percentages of the plot box */
.chart-guide { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; background: linear-gradient(rgba(237, 91, 45, 0), rgba(237, 91, 45, .45) 30%, rgba(237, 91, 45, 0)); }
.chart-dot { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 8px rgba(237, 91, 45, .45); }
.chart-end { position: absolute; left: 100%; top: 11.1%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--brand); }
.chart-end::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.chart-tip {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, calc(-100% - 14px));
  display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap;
  font-size: 11.5px; color: #d6d3d1; background: var(--ink); padding: 6px 10px; border-radius: 10px;
  box-shadow: 0 8px 20px -6px rgba(12, 10, 9, .4);
}
.chart-tip b { font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; }
.chart-tip em { font-style: normal; font-weight: 600; color: #86efac; margin-left: 2px; }
.chart-tip.is-right { transform: translate(-88%, calc(-100% - 14px)); }
.chart-tip.is-left { transform: translate(-12%, calc(-100% - 14px)); }

.integrations { display: flex; gap: 12px; flex-shrink: 0; }
.integrations span { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* HOW IT WORKS: stacking cards */
.how { padding: 140px 0 120px; }
.stack { display: flex; flex-direction: column; gap: 14vh; }
.stack-card { position: sticky; top: calc(108px + var(--i) * 24px); }
.stack-inner {
  position: relative; overflow: hidden; transform-origin: 50% 0;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
  min-height: 440px; padding: 52px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 36px;
  box-shadow: 0 -10px 40px -20px rgba(12, 10, 9, .12), var(--shadow-lg);
}
.stack-inner > * { min-width: 0; }
.stack-inner::after { content: ''; position: absolute; inset: 0; background: #0c0a09; opacity: var(--dim, 0); pointer-events: none; border-radius: inherit; }
.stack-warm .stack-inner { background: linear-gradient(135deg, #fff6f0 0%, #ffe8db 100%); border-color: rgba(237, 91, 45, .18); }
.stack-dark .stack-inner { background: radial-gradient(500px 300px at 90% 100%, rgba(237, 91, 45, .25), transparent 70%), var(--night); border-color: var(--night); color: #fafaf9; }
.step-num { display: block; font-size: 14px; font-weight: 600; color: var(--brand-ink); margin-bottom: 18px; }
.stack-dark .step-num { color: #ffab8a; }
.stack-text h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; margin-bottom: 14px; }
.stack-text p { color: var(--muted); font-size: 17px; max-width: 420px; }
.stack-dark .stack-text p { color: #a8a29e; }
.step-meta { display: inline-block; margin-top: 24px; font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.stack-dark .step-meta { background: rgba(255, 255, 255, .06); border-color: var(--night-line); color: #d6d3d1; }

.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); }
.scan-input { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border: 1px solid var(--line-2); border-radius: 999px; }
.scan-url { flex: 1; font-size: 14px; font-weight: 500; }
.scan-btn { font-size: 13px; font-weight: 600; color: #fff; background: var(--ink); padding: 8px 16px; border-radius: 999px; }
.scan-list { margin: 20px 0 18px; display: flex; flex-direction: column; gap: 12px; }
.scan-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.scan-list .ok { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; background: #ecfdf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.scan-list .spin { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; border: 2.5px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-logos { display: inline-flex; gap: 4px; margin-left: auto; }
.mini-logos img { width: 16px; height: 16px; }
.scan-bar { height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.scan-bar i { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

.mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.mock-head strong { font-size: 15px; letter-spacing: -.02em; }
.mock-head span { font-size: 13px; color: var(--muted); }
.plan-tasks { display: flex; flex-direction: column; gap: 8px; }
.plan-tasks li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font-size: 13.5px; font-weight: 500; }
.plan-tasks .task { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chk { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); flex-shrink: 0; background: var(--surface); }
.chk.is-done { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan-tasks li:has(.is-done) .task { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.tag { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; flex-shrink: 0; }
.tag-auto { background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }
.tag-svc { background: var(--brand-soft); color: var(--brand-ink); }

.mock-results { background: rgba(255, 255, 255, .04); border-color: var(--night-line); box-shadow: none; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.res { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); }
.res span { display: block; font-size: 12.5px; color: #a8a29e; }
.res strong { display: block; font-size: 32px; letter-spacing: -.05em; line-height: 1.15; }
.res em { font-style: normal; font-size: 12px; font-weight: 600; color: #86efac; }
.res-bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin: 18px 0; }
.res-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--brand-2), rgba(237, 91, 45, .35)); transform-origin: 50% 100%; }
.res-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); font-size: 13.5px; font-weight: 500; }
.res-file svg { width: 18px; height: 18px; fill: none; stroke: #ffb08f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.res-file span { flex: 1; }
.res-file b { font-size: 11.5px; font-weight: 600; color: #86efac; background: rgba(34, 197, 94, .14); padding: 3px 9px; border-radius: 999px; }

/* AGENTS */
.agents {
  background: var(--night); color: #fafaf9; padding: 130px 0; overflow: hidden;
  clip-path: inset(0 var(--inset, 0%) round var(--rad, 0px));
}
.agents::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 420px at 85% 55%, rgba(237, 91, 45, .2), transparent 70%);
}
.agents-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.agents h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.045em; margin-bottom: 22px; }
.agents-copy p { font-size: 18px; color: #a8a29e; margin-bottom: 36px; }
.agent-board {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -30px rgba(0, 0, 0, .7);
  backdrop-filter: blur(10px);
}
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 14px; font-size: 13px; font-weight: 500; color: #a8a29e; }
.agent-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1px solid transparent; transition: background .4s, border-color .4s; }
.agent-row + .agent-row { margin-top: 4px; }
.agent-row.is-running { background: rgba(237, 91, 45, .08); border-color: rgba(237, 91, 45, .3); }
.agent-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .5s var(--ease), background .4s, border-color .4s;
}
.agent-row.is-running .agent-ico { transform: scale(1.06); background: rgba(237, 91, 45, .16); border-color: rgba(237, 91, 45, .4); }
.agent-row.is-running .agent-ico svg { stroke: #ffb08f; }
.agent-ico svg { width: 20px; height: 20px; fill: none; stroke: #d6d3d1; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.agent-info { flex: 1; min-width: 0; }
.agent-info strong { display: block; font-size: 15px; font-weight: 600; }
.agent-info span { display: block; font-size: 13px; color: #a8a29e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-status { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #a8a29e; flex-shrink: 0; transition: background .3s, color .3s; }
.agent-row.is-running .agent-status { background: rgba(237, 91, 45, .18); color: #ffb08f; }
.agent-row.is-done .agent-status { background: rgba(34, 197, 94, .14); color: #86efac; }
.board-progress { height: 4px; margin: 12px 14px 8px; background: rgba(255, 255, 255, .06); border-radius: 4px; overflow: hidden; }
.board-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: inherit; }
.board-foot { padding: 0 14px 8px; font-size: 12.5px; color: #78716c; font-variant-numeric: tabular-nums; }

/* PRICING */
.pricing { padding: 140px 0; }
.trial-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1040px; margin: 0 auto 20px; padding: 20px 20px 20px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
}
.trial-text strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.trial-text span { color: var(--muted); font-size: 14.5px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1040px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); transition: translate .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
@media (hover: hover) {
  .plan:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); border-color: var(--line-2); }
  .plan-featured:hover { box-shadow: 0 40px 70px -20px rgba(237, 91, 45, .45); }
}
.plan-peeks { display: none; }
.plan h3 { font-size: 20px; letter-spacing: -.02em; }
.plan-desc { color: var(--muted); font-size: 14.5px; margin-top: 8px; min-height: 46px; }
.price { font-size: 56px; font-weight: 700; letter-spacing: -.05em; margin: 24px 0; line-height: 1; font-variant-numeric: tabular-nums; }
.price .cur { font-size: 26px; vertical-align: top; position: relative; top: 5px; margin-right: 2px; font-weight: 600; letter-spacing: 0; }
.price .per { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan-feats { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.plan-feats li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--ink-2); }
.plan-feats li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #ecfdf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan-featured {
  color: #fff;
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(237, 91, 45, .28), transparent 70%) padding-box,
    linear-gradient(var(--night), var(--night)) padding-box,
    linear-gradient(180deg, rgba(255, 138, 61, .7), rgba(255, 255, 255, .06) 60%) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 60px -20px rgba(237, 91, 45, .35);
}
.plan-featured .plan-desc, .plan-featured .per { color: #a8a29e; }
.plan-featured .plan-feats { border-top-color: rgba(255, 255, 255, .1); }
.plan-featured .plan-feats li { color: #e7e5e4; }
.plan-featured .plan-feats li::before { background-color: rgba(237, 91, 45, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a6a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.plan-flag { position: absolute; top: 28px; right: 28px; background: rgba(237, 91, 45, .18); color: #ffb08f; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(237, 91, 45, .35); }

/* FAQ */
.faq { padding: 140px 0; background: var(--surface); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 0 22px; transition: background .3s, border-color .3s, box-shadow .3s; }
.faq-list details[open] { background: var(--surface); border-color: var(--line-2); box-shadow: var(--shadow); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0a09' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .4s var(--ease), background-color .3s;
}
.faq-list details[open] summary::after { transform: rotate(135deg); background-color: var(--brand-soft); }
.faq-body p { color: var(--muted); padding: 0 40px 22px 0; }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content { height: 0; overflow: clip; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
  .faq-list details[open]::details-content { height: auto; }
}

/* FINAL CTA */
.final { padding: 60px 0 140px; }
.final-card {
  position: relative; overflow: hidden; text-align: center; transform-origin: 50% 100%;
  background: var(--night); color: #fff; border-radius: 36px; padding: 96px 32px 80px;
}
.final-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 280px at 50% 110%, rgba(237, 91, 45, .45), transparent 70%);
}
.final-card > *:not(.final-glow) { position: relative; }
.final-card h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.05em; max-width: 800px; margin: 0 auto; }
.final-card > p { color: #a8a29e; font-size: 18px; margin: 22px 0 38px; }
.final-card > .final-note { font-size: 14px; color: #78716c; margin: 18px 0 0; }

/* FOOTER */
.footer { padding: 72px 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 300px; }
.footer-col h4 { font-size: 13px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--muted); padding: 4px 0; transition: color .2s, translate .3s var(--ease); }
.footer-col a:hover { color: var(--ink); translate: 3px 0; }
.footer-col a[aria-current] { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.to-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s; }
.to-top:hover { border-color: var(--ink-2); }
/* Giant wordmark: fades into the page, cut off by the bottom edge, lit by a warm light */
.footer-end { position: relative; margin-top: 64px; padding-bottom: clamp(20px, 3.2vw, 44px); }
.footer-mark {
  --mx: 50%; --my: 45%; --glow: 0;
  font-size: clamp(72px, 20vw, 320px); font-weight: 800; letter-spacing: -.055em; line-height: .9;
  text-align: center; white-space: nowrap; user-select: none;
  padding-top: .02em;
  color: transparent;
  background-image:
    radial-gradient(circle max(140px, 17vw) at var(--mx) var(--my), rgba(255, 150, 80, var(--glow)), rgba(237, 91, 45, calc(var(--glow) * .55)) 38%, transparent 72%),
    linear-gradient(180deg, #1c1917 0%, #1c1917 38%, rgba(28, 25, 23, .3) 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* "Made in the European Union" label */
.eu-made {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  padding: 6px 14px 6px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, box-shadow .3s;
}
.eu-made:hover { border-color: rgba(0, 51, 153, .35); box-shadow: 0 6px 18px -8px rgba(0, 51, 153, .35); }
.eu-flag { width: 27px; height: 18px; flex-shrink: 0; border-radius: 3.5px; box-shadow: 0 0 0 1px rgba(0, 51, 153, .12); }
.eu-star { fill: #ffcc00; transform-box: fill-box; transform-origin: center; animation: eu-twinkle 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
@keyframes eu-twinkle {
  0%, 16%, 100% { transform: scale(1); opacity: .9; }
  8% { transform: scale(1.6); opacity: 1; }
}


/* RESPONSIVE */
@media (max-width: 1080px) {
  .hero-grid, .agents-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { max-width: 580px; margin: 0 auto; width: 100%; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "geo geo" "audit rank" "auth rank" "report wp"; }
  .tile-geo { grid-template-columns: 1fr; }
  .tile-wp { flex-direction: column; align-items: flex-start; }
  .stack-inner { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding: 40px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head-left { text-align: center; margin: 0 auto; }
  .section-head-left p { margin-left: auto; }
}

@media (min-width: 1081px) and (min-height: 700px) {
  .agents { min-height: 100vh; display: flex; align-items: center; padding: 100px 0; }
}

@media (max-width: 860px) {
  .nav { background: rgba(255, 255, 255, .8); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .nav-links { display: none; }
  .nav-login { display: none; }
  .nav-toggle { display: block; }
  .plans { grid-template-columns: 1fr; max-width: 480px; }
  .trial-bar { flex-direction: column; align-items: flex-start; max-width: 480px; padding: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .nav-wrap { padding: 10px 10px 0; }
  .nav { height: 56px; padding: 0 8px 0 16px; }
  .nav-logo img { height: 26px; }
  .nav-actions .btn-sm { padding: 9px 13px; font-size: 13px; }
  .nav-actions .nav-cta { display: none; }
  .hero { margin-top: -66px; padding: 112px 0 36px; }
  .hero-title { letter-spacing: -.045em; }
  .hero-sub { font-size: 17px; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual { padding: 8px 0 0; }
  .answer-frame { padding: 4px; border-radius: 26px; }
  .answer-card { border-radius: 22px; }
  .answer-body { padding: 18px 16px 14px; min-height: 300px; }
  .metric { padding: 12px 12px 14px; }
  .metric-label { font-size: 11px; }
  .metric-value { font-size: 21px; }
  .metric-delta { position: static; align-self: flex-start; margin-top: 2px; }
  .statement { padding: 48px 0 56px; }
  .features, .pricing, .faq { padding: 56px 0; }
  .how { padding: 56px 0; }
  .agents { padding: 64px 0; }
  .final { padding: 8px 0 64px; }
  .section-head { margin-bottom: 32px; }
  .section-head p, .agents-copy p { font-size: 16.5px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "geo" "audit" "rank" "auth" "report" "wp"; }
  .tile { padding: 24px; }
  .gb { grid-template-columns: 96px 1fr 34px; gap: 10px; }
  .spark { height: 120px; }
  .integrations span { width: 56px; height: 56px; }
  .stack { gap: 8vh; }
  .stack-card { top: calc(80px + var(--i) * 14px); }
  .stack-inner { padding: 26px 22px; border-radius: 28px; gap: 24px; }
  .stack-text p { font-size: 15.5px; }
  .step-meta { margin-top: 16px; }
  .mock { padding: 16px; border-radius: 18px; }
  .scan-list { gap: 10px; margin: 16px 0 14px; }
  .scan-list li { font-size: 13px; }
  .res strong { font-size: 26px; }
  .res-bars { height: 70px; }
  .agents-copy .btn { width: 100%; }
  .agent-row { padding: 12px 10px; gap: 12px; }
  .agent-ico { width: 36px; height: 36px; }
  .agent-info span { white-space: normal; }
  .plan { padding: 26px; }
  .plan-flag { top: 26px; right: 26px; }
  .faq-list details { padding: 0 18px; }
  .faq-list summary { font-size: 16px; }
  .faq-body p { padding-right: 0; }
  .final-card { padding: 64px 20px 52px; border-radius: 28px; }
  .final-card .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Subtle film grain on desktop for a bit more depth */
@media (pointer: fine) {
  body::after {
    content: ''; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}

/* Full-screen mobile menu */
.mobile-menu { display: none; }
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-menu {
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    position: fixed; inset: 0; z-index: 45; overflow-y: auto;
    padding: 104px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: rgba(250, 250, 249, .97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .mm-links a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; border-bottom: 1px solid var(--line);
    font-size: clamp(30px, 9vw, 40px); font-weight: 700; letter-spacing: -.045em; line-height: 1.1;
    opacity: 0; transform: translateY(28px);
    transition: opacity .6s var(--ease), transform .7s var(--ease);
  }
  .mm-links a svg { width: 26px; height: 26px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mm-links a:active, .mm-links a[aria-current] { color: var(--brand); }
  .mobile-menu.is-open .mm-links a { opacity: 1; transform: none; }
  .mobile-menu.is-open .mm-links a:nth-child(1) { transition-delay: .06s; }
  .mobile-menu.is-open .mm-links a:nth-child(2) { transition-delay: .11s; }
  .mobile-menu.is-open .mm-links a:nth-child(3) { transition-delay: .16s; }
  .mobile-menu.is-open .mm-links a:nth-child(4) { transition-delay: .21s; }
  .mobile-menu.is-open .mm-links a:nth-child(5) { transition-delay: .26s; }
  .mobile-menu.is-open .mm-links a:nth-child(6) { transition-delay: .31s; }
  .mm-foot { display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease) .25s, transform .7s var(--ease) .25s; }
  .mobile-menu.is-open .mm-foot { opacity: 1; transform: none; }
  .mm-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 4px; }

  /* Floating sign-up button */
  .mobile-cta {
    position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 15px 24px; border-radius: 999px;
    font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: #fff;
    background: linear-gradient(180deg, #f26a3c 0%, var(--brand) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(194, 65, 12, .4), 0 14px 30px -8px rgba(237, 91, 45, .6), 0 4px 14px rgba(12, 10, 9, .14);
    translate: -50% 170%; opacity: 0; pointer-events: none;
    transition: translate .6s var(--ease), opacity .35s var(--ease);
  }
  .mobile-cta.is-visible { translate: -50% 0; opacity: 1; pointer-events: auto; }
  .mobile-cta:active { scale: .97; }
}

/* Phones */
@media (max-width: 600px) {
  /* hero card: icon tabs, the active one shows its name */
  .engine-tabs { gap: 4px; padding: 6px; overflow: visible; }
  .engine-tab { flex: 1 1 0; min-width: 0; padding: 11px 6px; }
  .engine-tab img { width: 18px; height: 18px; }
  .engine-tab .tab-label { display: none; }
  .engine-tab.is-active { flex: 0 0 auto; padding: 11px 14px; }
  .engine-tab.is-active .tab-label { display: inline; }
  .metric-value small { font-size: 11px; }

  .text-link { margin-top: 14px; }
  .gap-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 48px; }
  .gap-card { padding: 20px; }
  .serp-title { font-size: 14px; }
  .serp li.is-you { padding-right: 0; }
  .serp .gap-flag { position: static; translate: none; align-self: flex-start; margin-top: 6px; }
  .gap-note { margin-top: 32px; }
  .gap-note p { font-size: 17px; }

  .tile h3 { font-size: 20px; }
  .tile p { font-size: 15px; }

  /* stacking cards sized to fit a phone screen */
  .stack-inner { padding: 24px 20px 20px; gap: 20px; border-radius: 28px; }
  .step-num { margin-bottom: 12px; font-size: 13px; }
  .stack-text h3 { font-size: 26px; margin-bottom: 8px; }
  .stack-text p { font-size: 15px; }
  .stack-text { position: relative; }
  .step-meta { position: absolute; top: -5px; right: 0; margin-top: 0; font-size: 12px; }
  .mock { padding: 14px; border-radius: 18px; }
  .scan-input { padding: 4px 4px 4px 14px; }
  .scan-btn { padding: 7px 14px; }
  .scan-list { gap: 9px; margin: 14px 0 12px; }
  .mock-head { margin-bottom: 12px; }
  .plan-tasks { gap: 6px; }
  .plan-tasks li { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; row-gap: 5px; padding: 10px 12px; font-size: 13.5px; }
  .plan-tasks .task { white-space: normal; line-height: 1.3; }
  .plan-tasks .tag { grid-column: 2; justify-self: start; font-size: 10.5px; padding: 2px 8px; }
  .plan-tasks .chk { align-self: start; margin-top: 1px; }
  .plan-tasks li:nth-child(2) { display: none; }
  .res-bars { height: 60px; margin: 14px 0; }
  .res { padding: 12px 13px; }
  .res em { font-size: 11px; white-space: nowrap; }

  .footer { padding-top: 56px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
  .footer-col a { font-size: 14px; }
  .footer-bottom { margin-top: 40px; gap: 12px; }
  .footer-end { margin-top: 28px; }
}

/* Two small feature tiles side by side on most phones */
@media (min-width: 370px) and (max-width: 600px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "geo geo" "audit audit" "rank rank" "auth report" "wp wp"; gap: 12px; }
  .tile-auth, .tile-report { padding: 20px 18px; }
  .tile-auth h3, .tile-report h3 { font-size: 17px; }
  .tile-auth p, .tile-report p { font-size: 13.5px; }
}

/* Narrow phones: slightly smaller deck cards so names stay on one line */
@media (max-width: 360px) {
  .plan-peek { padding: 12px 13px; }
  .pp-name { font-size: 12px; }
  .pp-price { font-size: 22px; }
}

/* Short screens: cards scroll normally instead of stacking */
@media (max-width: 600px) and (max-height: 650px), (max-height: 560px) {
  .stack-card { position: relative; top: auto; }
  .stack { gap: 16px; }
}

/* Pricing on phones: all three plans stacked, compact */
@media (max-width: 700px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; gap: 12px; }
  .plan { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: start; padding: 22px 20px; }
  .plan h3 { grid-column: 1; font-size: 19px; }
  .plan-desc { grid-column: 1 / -1; min-height: 0; margin-top: 6px; font-size: 14px; }
  .price { grid-column: 2; grid-row: 1; margin: 0; font-size: 34px; text-align: right; }
  .plan-featured .price { grid-row: 2; }
  .price .cur { font-size: 17px; top: 3px; }
  .price .per { display: block; font-size: 12px; margin: 2px 0 0; }
  .plan .btn-block { grid-column: 1 / -1; margin-top: 16px; }
  .plan-feats { grid-column: 1 / -1; margin-top: 16px; padding-top: 16px; gap: 9px; }
  .plan-feats li { font-size: 14px; }
  .plan-flag { position: static; grid-column: 1; justify-self: start; margin-bottom: 10px; }

  /* Fanned deck (set up by app.js): the chosen plan in front, the other two tilted behind it */
  .pricing { overflow-x: clip; }
  .plans.is-deck { position: relative; display: block; padding-top: 126px; }
  .plans.is-deck .plan { display: none; }
  .plans.is-deck .plan.is-active { display: grid; position: relative; z-index: 2; box-shadow: 0 -12px 30px -18px rgba(12, 10, 9, .25), var(--shadow-lg); }
  .plans.is-deck .plan-featured.is-active { box-shadow: 0 -12px 30px -18px rgba(12, 10, 9, .35), 0 30px 60px -20px rgba(237, 91, 45, .35); }
  .plans.is-deck .plan-peeks { display: block; position: absolute; left: 0; right: 0; top: 16px; height: 134px; z-index: 1; }
  .plan-peek {
    position: absolute; top: 0; width: 54%; height: 134px; padding: 14px 16px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left;
    font: inherit; color: var(--ink); cursor: pointer;
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 10px 24px -12px rgba(12, 10, 9, .22);
    transition: translate .35s var(--ease), box-shadow .35s var(--ease);
  }
  .plan-peek.is-left { left: 2px; rotate: -6deg; transform-origin: 100% 100%; }
  .plan-peek.is-right { right: 2px; rotate: 6deg; transform-origin: 0 100%; }
  .plan-peek:active { translate: 0 -6px; }
  .pp-name { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: -.01em; white-space: nowrap; }
  .pp-price { font-size: 25px; font-weight: 700; letter-spacing: -.045em; line-height: 1.2; }
  .pp-price small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
  .pp-hint { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--brand-ink); }
  .pp-hint svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .plan-peek.is-featured { background: var(--night); border-color: var(--night); color: #fff; }
  .plan-peek.is-featured .pp-name, .plan-peek.is-featured .pp-price small { color: #a8a29e; }
  .plan-peek.is-featured .pp-hint { color: #ffab8a; }
}

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

/* Signed-in visitors: the dashboard button replaces log in */
.is-signed-in .nav-login, .is-signed-in .mm-foot .btn-outline, .is-signed-in .mm-note { display: none; }
