/* ============================================================
   Stack Publishing — One-page landing stylesheet
   Palette: White #FFFFFF | Ink #0D0D0D | Orange #F04E23
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:      #FFFFFF;
  --ink:        #0D0D0D;
  --ink-soft:   #1A1A1A;
  --body:       #4A4A4A;
  --muted:      #757575;
  --accent:     #F04E23;
  --accent-dim: #D33E16;
  --accent-tint:#FEF1EC;
  --surface:    #FBFAF9;
  --surface2:   #F5F3F1;
  --border:     #E8E5E2;
  --border-2:   #D9D5D1;
  --green:      #17864C;

  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --nav-h:  70px;
  --max-w:  1140px;
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --shadow-sm: 0 1px 2px rgba(13,13,13,.05), 0 4px 14px rgba(13,13,13,.05);
  --shadow-md: 0 2px 4px rgba(13,13,13,.05), 0 14px 40px rgba(13,13,13,.09);
  --t: .2s ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4.1vw, 3rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: 0; }

.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); font-weight: 400; }

/* --- Layout ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 22px;
}
.container-narrow { max-width: 820px; }

section { padding-block: clamp(64px, 8vw, 108px); }
.bg-surface { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.08rem; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 17px 30px;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  transition: transform var(--t), background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-ink { background: var(--ink); color: var(--white); box-shadow: var(--shadow-md); }
.btn-ink:hover { background: #000; transform: translateY(-2px); }

.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dim); transform: translateY(-2px); }

.btn-outline { background: var(--white); color: var(--ink); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-lg { font-size: 1.1rem; padding: 21px 42px; border-radius: 12px; }
.btn-sm { font-size: .9rem; padding: 12px 20px; border-radius: 999px; }
.btn-block { width: 100%; }

/* --- Nav -------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(13,13,13,.04); }
.nav .container { display: flex; align-items: center; gap: 30px; height: 100%; }

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.nav-logo-mark {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--t);
}
.nav-links a:hover { color: var(--accent); }

.nav-cta-group { display: flex; align-items: center; gap: 16px; }
.nav-secondary { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.nav-secondary:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  margin: 3px auto;
  transition: transform var(--t), opacity var(--t);
}

/* --- Hero ------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(50px, 7vw, 86px);
  padding-bottom: clamp(44px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -1px 0 0;
  background-image:
    linear-gradient(rgba(13,13,13,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,13,13,.055) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(115% 78% at 50% 8%, #000 20%, transparent 78%);
  mask-image: radial-gradient(115% 78% at 50% 8%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -180px; left: 50%;
  width: 760px; height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(240,78,35,.11), transparent 72%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(23,134,76,.16);
}

.hero h1 { max-width: 20ch; margin-inline: auto; text-wrap: balance; }
.hero h1 .line-2 { display: block; color: var(--accent); }

.rotator {
  display: inline-grid;
  vertical-align: baseline;
  text-align: left;
}
.rotator-word {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: .18em;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0;
  transform: translateY(.22em);
  transition: opacity .32s ease, transform .32s ease;
}
.rotator-word.is-active { opacity: 1; transform: none; }
.rotator-word .brand { width: .8em; height: .8em; }

/* --- Brand marks (tinted SVG masks, sharp at any size) ---- */
.brand {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  background-color: var(--tint, var(--ink));
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}
.brand-google     { --mark: url(../img/logos/ai/google.svg);     --tint: #4285F4; }
.brand-chatgpt    { --mark: url(../img/logos/ai/chatgpt.svg);    --tint: #0D0D0D; }
.brand-gemini     { --mark: url(../img/logos/ai/gemini.svg);     --tint: #8E75B2; }
.brand-perplexity { --mark: url(../img/logos/ai/perplexity.svg); --tint: #20808D; }
.brand-claude     { --mark: url(../img/logos/ai/claude.svg);     --tint: #D97757; }
.brand-reddit     { --mark: url(../img/logos/ai/reddit.svg);     --tint: #FF4500; }

.hero-sub {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-assurance {
  max-width: 480px;
  margin: 18px auto 0;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
}
.hero-assurance strong { color: var(--ink); font-weight: 600; }
.hero-assurance svg {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
  color: var(--green);
}

.hero-proof {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: 40px;
}
.proof-label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.proof-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.proof-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.proof-list .brand { width: 17px; height: 17px; }

/* --- Feature marquee -------------------------------------- */
section.feature-marquee {
  position: relative;
  padding: 30px 0 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(240,78,35,.07), transparent 38%),
    var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-heading {
  max-width: 760px;
  margin: 0 auto 22px;
  padding-inline: 22px;
  text-align: center;
}
.marquee-kicker {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
}
.marquee-heading h2 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.35;
  letter-spacing: -.015em;
}

.marquee-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.marquee-viewport::before,
.marquee-viewport::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: clamp(28px, 7vw, 110px);
  pointer-events: none;
}
.marquee-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--white), rgba(255,255,255,0));
}
.marquee-viewport::after {
  right: 0;
  background: linear-gradient(-90deg, var(--white), rgba(255,255,255,0));
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 12px;
  padding-block: 5px 9px;
  will-change: transform;
}
.marquee-track.is-ready {
  animation: featureMarquee 170s linear infinite;
}
.feature-marquee:hover .marquee-track,
.feature-marquee:focus-within .marquee-track,
.feature-marquee.is-paused .marquee-track {
  animation-play-state: paused;
}
.marquee-list {
  display: flex;
  flex: none;
  gap: 12px;
  padding-left: 12px;
}
.marquee-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 3px 12px rgba(13,13,13,.055);
  font-family: var(--font-head);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-list li i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240,78,35,.10);
}
.marquee-list li:nth-child(4n + 2) i {
  background: #673AB7;
  box-shadow: 0 0 0 4px rgba(103,58,183,.10);
}
.marquee-list li:nth-child(4n + 3) i {
  background: #4285F4;
  box-shadow: 0 0 0 4px rgba(66,133,244,.10);
}
.marquee-list li:nth-child(4n + 4) i {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23,134,76,.10);
}
.marquee-list li span {
  padding-left: 9px;
  border-left: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
}
.marquee-hint {
  margin-top: 8px;
  font-size: .72rem;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  color: #9A948E;
}
.marquee-hover-hint b {
  padding-inline: 4px;
  color: var(--border-2);
}

@keyframes featureMarquee {
  to { transform: translate3d(calc(-50% - 6px), 0, 0); }
}

/* --- Free trial ------------------------------------------- */
.trial-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.trial-copy h2 { margin-bottom: 16px; }
.trial-copy p { margin-bottom: 14px; }

.trial-list { display: grid; gap: 11px; margin-top: 22px; }
.trial-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .98rem;
  color: var(--ink-soft);
}
.trial-list svg { flex: none; margin-top: 5px; color: var(--accent); }

.trial-form { display: grid; gap: 13px; }
.trial-form-head { margin-bottom: 3px; }
.trial-form-head h3 { margin-bottom: 5px; }
.trial-form-head p { font-size: .92rem; color: var(--muted); }

.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 14px 15px;
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: #A8A29E; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(240,78,35,.14);
}
.field-hp { position: absolute; left: -9999px; }

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}

.form-status {
  display: none;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  font-size: .92rem;
}
.form-status.is-error { display: block; background: var(--accent-tint); color: var(--accent-dim); }

.form-success {
  display: none;
  text-align: center;
  padding: 8px 0;
}
.form-success.is-visible { display: block; }
.form-success-mark {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(23,134,76,.1);
  color: var(--green);
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: .95rem; }

/* --- How it works / AI engine ----------------------------- */
.engine-section {
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.engine-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 720px;
  height: 360px;
  transform: translate(-50%, -52%);
  background: radial-gradient(closest-side, rgba(240,78,35,.09), transparent 74%);
  pointer-events: none;
}
.engine-section .container { position: relative; }

.engine-shell {
  overflow: hidden;
  border: 1px solid #292929;
  border-radius: var(--r-lg);
  background: #101010;
  box-shadow: 0 28px 70px rgba(13,13,13,.16);
}
.engine-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 15px 22px;
  border-bottom: 1px solid #292929;
  background: #151515;
}
.engine-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.engine-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(240,78,35,.11);
}
.engine-brand > span:last-child { display: grid; line-height: 1.2; }
.engine-brand b {
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 600;
}
.engine-brand small {
  margin-top: 3px;
  color: #848484;
  font-size: .72rem;
}
.engine-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid #303030;
  border-radius: 999px;
  color: #A8A8A8;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.engine-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35C779;
  box-shadow: 0 0 0 4px rgba(53,199,121,.12);
}

.engine-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: clamp(20px, 3vw, 34px);
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
}
.engine-step {
  min-width: 0;
  padding: 20px;
  border: 1px solid #2D2D2D;
  border-radius: 15px;
  background: linear-gradient(145deg, #1B1B1B, #151515);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.engine-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
}
.engine-number {
  color: #626262;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
}
.engine-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(53,199,121,.22);
  border-radius: 999px;
  color: #72DBA3;
  background: rgba(53,199,121,.07);
  font-size: .6rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.engine-status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.engine-status-running {
  border-color: rgba(240,78,35,.25);
  color: #FF8A68;
  background: rgba(240,78,35,.08);
}
.engine-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 17px;
  border: 1px solid rgba(240,78,35,.2);
  border-radius: 12px;
  color: #FF7954;
  background: rgba(240,78,35,.08);
}
.engine-step h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1rem;
}
.engine-step > p {
  min-height: 66px;
  color: #8F8F8F;
  font-size: .78rem;
  line-height: 1.55;
}
.engine-connector {
  display: flex;
  align-items: center;
  align-self: center;
  color: #565656;
}
.engine-connector i {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #353535, #656565);
}
.engine-connector svg { flex: none; margin-left: -3px; }

.engine-data {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}
.engine-data span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #B3B3B3;
  font-size: .65rem;
}
.data-dot { width: 6px; height: 6px; border-radius: 2px; }
.data-dot-blue { background: #4285F4; }
.data-dot-green { background: #35C779; }

.engine-meter {
  height: 5px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: #2B2B2B;
}
.engine-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #FF9A6F);
}
.engine-meta {
  display: block;
  margin-top: 7px;
  color: #777;
  font-size: .62rem;
}
.engine-doc-lines { display: grid; gap: 6px; margin-top: 15px; }
.engine-doc-lines i {
  height: 4px;
  border-radius: 999px;
  background: #303030;
}
.engine-doc-lines i:nth-child(1) { width: 92%; }
.engine-doc-lines i:nth-child(2) { width: 72%; }
.engine-doc-lines i:nth-child(3) { width: 84%; }
.engine-sparkline { height: 30px; margin-top: 10px; }
.engine-sparkline svg { width: 100%; height: 100%; overflow: visible; }
.engine-sparkline path:not(.engine-area) {
  fill: none;
  stroke: #FF7954;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.engine-sparkline .engine-area {
  fill: rgba(240,78,35,.08);
  stroke: none;
}

.control-panel {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: 26px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.control-copy .eyebrow { margin-bottom: 9px; }
.control-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
}
.control-copy p {
  color: var(--muted);
  font-size: .95rem;
}
.control-options { display: grid; gap: 10px; }
.control-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
  font: inherit;
  text-align: left;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.control-option:hover {
  border-color: var(--border-2);
  transform: translateY(-1px);
}
.control-option:focus-visible {
  outline: 3px solid rgba(240,78,35,.2);
  outline-offset: 2px;
}
.control-option.is-selected {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.control-radio {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-2);
  border-radius: 50%;
}
.is-selected .control-radio { border-color: var(--accent); }
.is-selected .control-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.control-option > span:nth-child(2) { display: grid; }
.control-option b {
  font-family: var(--font-head);
  color: var(--ink);
  font-size: .87rem;
  font-weight: 600;
}
.control-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .73rem;
}
.control-badge {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--accent-dim);
  background: var(--accent-tint);
  font-family: var(--font-head);
  font-size: .62rem;
  font-weight: 600;
  white-space: nowrap;
}
.control-badge-muted {
  color: var(--muted);
  background: var(--surface2);
}

/* --- Uptime monitoring ------------------------------------ */
.uptime-panel {
  margin-top: 26px;
  padding: clamp(24px, 3.6vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.uptime-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.uptime-head .eyebrow { margin-bottom: 8px; }
.uptime-head h3 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}
.uptime-head p {
  color: var(--muted);
  font-size: .95rem;
}
.uptime-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 8px 12px;
  border: 1px solid rgba(23,134,76,.18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(23,134,76,.08);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.uptime-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23,134,76,.14);
}
.uptime-list {
  display: grid;
  gap: 14px;
}
.uptime-row {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.uptime-row:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}
.uptime-meta { display: grid; gap: 3px; }
.uptime-name {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.uptime-status {
  color: var(--green);
  font-size: .72rem;
  font-weight: 500;
}
.uptime-bars {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 28px;
  min-width: 0;
}
.uptime-bars i {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px;
  background: #2FBF71;
  transition: transform .18s ease, opacity .18s ease;
}
.uptime-bars i.is-warn { background: #F5B942; }
.uptime-bars i.is-down { background: #E35D4A; }
.uptime-bars i:hover {
  transform: scaleY(1.18);
  opacity: .85;
}
.uptime-score {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.uptime-footnote {
  margin-top: 14px;
  color: #A8A29E;
  font-size: .74rem;
  text-align: right;
}

/* Light product treatment */
.engine-shell {
  border-color: var(--border-2);
  background: #F8F7F5;
  box-shadow: 0 24px 65px rgba(13,13,13,.11);
}
.engine-toolbar {
  border-bottom-color: var(--border);
  background: var(--white);
}
.engine-brand { color: var(--ink); }
.engine-brand small { color: var(--muted); }
.engine-live {
  border-color: #DDE8E1;
  color: #347553;
  background: #F5FBF7;
}
.engine-flow {
  background-image:
    linear-gradient(rgba(13,13,13,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,13,13,.035) 1px, transparent 1px);
}
.engine-step {
  position: relative;
  border-color: var(--border);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(13,13,13,.045);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.engine-step:hover,
.engine-step:focus {
  z-index: 2;
  transform: translateY(-9px) scale(1.025);
  border-color: rgba(240,78,35,.38);
  box-shadow: 0 22px 38px rgba(13,13,13,.13);
}
.engine-step:focus-visible { outline: 3px solid rgba(240,78,35,.2); outline-offset: 3px; }
.engine-number { color: #A29D98; }
.engine-step h3 { color: var(--ink); }
.engine-step > p { color: var(--muted); }
.engine-connector { color: #BEB8B2; }
.engine-connector i { background: linear-gradient(90deg, var(--border-2), #BEB8B2); }
.engine-data span { color: var(--body); }
.engine-meter { background: var(--surface2); }
.engine-meta { color: var(--muted); }
.engine-doc-lines i { background: var(--border); }
.control-option:hover {
  border-color: rgba(240,78,35,.36);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Stack Dashboard ------------------------------------------ */
.dashboard-intro {
  max-width: 720px;
  margin: clamp(70px, 9vw, 118px) auto 34px;
  text-align: center;
}
.dashboard-intro .eyebrow { margin-bottom: 9px; }
.dashboard-intro h3 {
  margin-bottom: 11px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}
.dashboard-intro p { color: var(--muted); }

.stack-dashboard {
  overflow: visible;
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  background: #F7F6F4;
  box-shadow: 0 28px 70px rgba(13,13,13,.13);
}
.dashboard-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--white);
}
.dashboard-chrome-brand,
.dashboard-chrome-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}
.dashboard-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
}
.dashboard-chrome-brand > span:last-child { display: grid; line-height: 1.18; }
.dashboard-chrome-brand b {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: .86rem;
}
.dashboard-chrome-brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .65rem;
}
.dashboard-sync {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .68rem;
}
.dashboard-sync i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23,134,76,.1);
}
.dashboard-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--accent-tint);
  font-family: var(--font-head);
  font-size: .66rem;
  font-weight: 600;
}

.dash-attention {
  position: relative;
  z-index: 5;
}
.dash-attention-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px 7px 10px;
  border: 1px solid rgba(240,78,35,.28);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-tint);
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 650;
  transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}
.dash-attention-btn svg { flex: none; }
.dash-attention-count {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  font-size: .62rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}
.dash-attention-btn:hover {
  background: #FFE8E0;
  border-color: rgba(240,78,35,.4);
  transform: translateY(-1px);
}
.dash-attention-btn:focus-visible {
  outline: 3px solid rgba(240,78,35,.2);
  outline-offset: 2px;
}
.dash-attention.is-open .dash-attention-btn {
  background: var(--white);
  border-color: rgba(240,78,35,.45);
  box-shadow: 0 0 0 3px rgba(240,78,35,.1);
}
.dash-attention-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 48px));
  overflow: hidden;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(13,13,13,.14);
  transform-origin: top right;
  animation: dashAttnIn .18s ease both;
}
.dash-attention-panel[hidden] { display: none; }
@keyframes dashAttnIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.dash-attention-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px 10px;
  border-bottom: 1px solid var(--border);
}
.dash-attention-head span {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
}
.dash-attention-head small { color: var(--muted); font-size: .58rem; }
.dash-attention-list { margin: 0; padding: 6px; list-style: none; }
.dash-attention-list button {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  color: inherit;
  background: transparent;
  text-align: left;
  transition: background var(--t);
}
.dash-attention-list button:hover,
.dash-attention-list button:focus-visible {
  background: var(--surface);
}
.dash-attention-list button:focus-visible {
  outline: 2px solid rgba(240,78,35,.25);
  outline-offset: 0;
}
.attn-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.attn-dot.hot { background: var(--accent); box-shadow: 0 0 0 3px rgba(240,78,35,.14); }
.attn-dot.warn { background: #D4A017; box-shadow: 0 0 0 3px rgba(212,160,23,.16); }
.attn-dot.info { background: #4285F4; box-shadow: 0 0 0 3px rgba(66,133,244,.14); }
.dash-attention-list span { display: grid; min-width: 0; gap: 3px; }
.dash-attention-list b {
  color: var(--ink);
  font-size: .68rem;
  font-weight: 650;
  line-height: 1.3;
}
.dash-attention-list small {
  color: var(--muted);
  font-size: .58rem;
  line-height: 1.35;
}
.dash-attention-list em {
  margin-top: 2px;
  color: var(--accent);
  font-size: .54rem;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}
.dash-attention-foot {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .58rem;
  text-align: center;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 650px;
  overflow: hidden;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 12px;
  border-right: 1px solid var(--border);
  background: #FBFAF8;
}
.dashboard-tab {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  text-align: left;
  transition: color var(--t), background var(--t), transform var(--t);
}
.dashboard-tab > span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  color: #938D87;
  font-size: .9rem;
}
.dashboard-tab i {
  min-width: 19px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #918B86;
  background: var(--surface2);
  font-size: .57rem;
  font-style: normal;
  text-align: center;
}
.dashboard-tab:hover { color: var(--ink); background: var(--white); transform: translateX(2px); }
.dashboard-tab.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.dashboard-tab.is-active > span { color: var(--accent); }
.dashboard-tab:focus-visible {
  outline: 3px solid rgba(240,78,35,.18);
  outline-offset: 1px;
}
.dashboard-main {
  min-width: 0;
  padding: clamp(18px, 3vw, 32px);
  background: #F7F6F4;
}
.dashboard-panel[hidden] { display: none; }
.dashboard-panel {
  padding: 0;
  animation: dashboardIn .28s ease both;
}
@keyframes dashboardIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.dashboard-panel-head > div { min-width: 0; }
.dashboard-panel-head h3 {
  margin-top: 2px;
  font-size: 1.25rem;
}
.dashboard-panel-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: .78rem;
}
.dashboard-kicker {
  color: var(--accent);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.dashboard-range,
.dashboard-count {
  flex: none;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  font-size: .65rem;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.dashboard-stats article {
  display: grid;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.dashboard-stats article:hover {
  transform: translateY(-5px);
  border-color: rgba(240,78,35,.28);
  box-shadow: var(--shadow-md);
}
.dashboard-stats article > span {
  color: var(--muted);
  font-size: .64rem;
}
.dashboard-stats b {
  margin: 7px 0 5px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1;
}
.dashboard-stats b span { color: var(--muted); font-size: .62rem; font-weight: 500; }
.dashboard-stats small { font-size: .59rem; }
.up { color: var(--green); }
.dashboard-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
  gap: 12px;
}
.dashboard-chart-card,
.dashboard-queue {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
}
.dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.dashboard-card-head > span { display: grid; }
.dashboard-card-head b {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: .77rem;
}
.dashboard-card-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .59rem;
}
.dashboard-card-head em {
  color: var(--green);
  font-size: .67rem;
  font-style: normal;
  font-weight: 600;
}
.dashboard-card-head button {
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: .62rem;
}
.dashboard-chart {
  position: relative;
  height: 170px;
  margin: 16px 0 0 30px;
}
.dashboard-chart svg { width: 100%; height: 100%; overflow: visible; }
.dash-grid { fill: none; stroke: #EEEAE6; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dash-area { fill: url(#dashArea); }
.dash-line { fill: none; stroke: var(--accent); stroke-width: 2.3; vector-effect: non-scaling-stroke; }
.dash-count { font-style: normal; font-variant-numeric: tabular-nums; }

/* Growth reveal. JS adds .dash-armed to set the pre-animation state, so
   without JS or with reduced motion the chart renders fully grown. */
.stack-dashboard.dash-armed .dash-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.stack-dashboard.dash-armed .dash-area {
  transform-box: fill-box;
  transform-origin: bottom;
  opacity: 0;
  transform: scaleY(.2);
}
.stack-dashboard.dash-armed .dashboard-stats article {
  opacity: 0;
  transform: translateY(12px);
}
.stack-dashboard.is-growing .dash-line {
  animation: dashDraw 2.1s cubic-bezier(.22, .85, .3, 1) forwards;
}
.stack-dashboard.is-growing .dash-area {
  animation: dashRise 2.1s cubic-bezier(.22, .85, .3, 1) forwards;
}
.stack-dashboard.is-growing .dashboard-stats article {
  animation: dashStat .55s cubic-bezier(.3, 1.2, .4, 1) forwards;
}
.stack-dashboard.is-growing .dashboard-stats article:nth-child(2) { animation-delay: .09s; }
.stack-dashboard.is-growing .dashboard-stats article:nth-child(3) { animation-delay: .18s; }
.stack-dashboard.is-growing .dashboard-stats article:nth-child(4) { animation-delay: .27s; }

@keyframes dashDraw { to { stroke-dashoffset: 0; } }
@keyframes dashRise { to { opacity: 1; transform: scaleY(1); } }
@keyframes dashStat { to { opacity: 1; transform: none; } }
.chart-axis {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chart-axis i { color: #AAA49E; font-size: .52rem; font-style: normal; }
.queue-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.queue-row:last-child { border-bottom: 0; }
.queue-doc {
  display: grid;
  place-items: center;
  width: 27px;
  height: 31px;
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-tint);
  font-size: .55rem;
  font-weight: 600;
}
.queue-row > span:nth-child(2) { display: grid; min-width: 0; }
.queue-row b {
  overflow: hidden;
  color: var(--ink);
  font-size: .65rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-row small { margin-top: 3px; color: var(--muted); font-size: .53rem; }
.queue-status {
  padding: 4px 6px;
  border-radius: 999px;
  font-size: .52rem;
  font-style: normal;
  font-weight: 600;
}
.queue-status.ready { color: #26704A; background: #E9F7EF; }
.queue-status.review { color: #A86600; background: #FFF4D9; }
.queue-status.drafting { color: #5965A8; background: #EFF0FF; }
.dashboard-module-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.dashboard-module-strip button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--white);
  text-align: left;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.dashboard-module-strip button:hover {
  transform: translateY(-4px);
  border-color: rgba(240,78,35,.3);
  box-shadow: var(--shadow-md);
}
.dashboard-module-strip button > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240,78,35,.1);
}
.dashboard-module-strip button > span { display: grid; min-width: 0; }
.dashboard-module-strip b { color: var(--ink); font-size: .63rem; }
.dashboard-module-strip small { margin-top: 2px; color: var(--muted); font-size: .53rem; }
.dashboard-module-strip em { color: var(--accent); font-style: normal; }
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.capability-grid li {
  position: relative;
  min-height: 62px;
  padding: 14px 14px 14px 35px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--ink-soft);
  background: var(--white);
  font-size: .69rem;
  font-weight: 500;
  line-height: 1.4;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.capability-grid li::before {
  content: "✓";
  position: absolute;
  top: 14px;
  left: 13px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  color: var(--accent);
  background: var(--accent-tint);
  font-size: .55rem;
  font-weight: 700;
}
.capability-grid li:hover {
  transform: translateY(-4px);
  border-color: rgba(240,78,35,.3);
  box-shadow: var(--shadow-md);
}
.capability-grid small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .58rem;
}

/* --- Dashboard module mockups ----------------------------- */
.module-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.module-stats article {
  display: grid;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--white);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.module-stats article:hover {
  transform: translateY(-3px);
  border-color: rgba(240,78,35,.24);
  box-shadow: var(--shadow-sm);
}
.module-stats article > span { color: var(--muted); font-size: .59rem; }
.module-stats article > b {
  margin: 6px 0 4px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.18rem;
  line-height: 1;
}
.module-stats article > b span { color: var(--muted); font-size: .57rem; }
.module-stats article > small { color: var(--muted); font-size: .54rem; }
.module-stats article > small.up { color: var(--green); }
.module-stats article > small.accent { color: var(--accent); }

.module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 12px;
}
.mock-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}
.mock-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.mock-card-head > span { display: grid; }
.mock-card-head b { color: var(--ink); font-size: .71rem; }
.mock-card-head small { margin-top: 2px; color: var(--muted); font-size: .54rem; }
.mock-card-head em {
  color: var(--green);
  font-size: .58rem;
  font-style: normal;
  font-weight: 600;
}
.mock-card-head button {
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: .57rem;
}

.mock-table { display: grid; }
.mock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .57rem;
}
.mock-row:last-child { border-bottom: 0; }
.mock-row > span:first-child { display: grid; min-width: 0; }
.mock-row b {
  overflow: hidden;
  color: var(--ink);
  font-size: .62rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-row small { margin-top: 2px; color: var(--muted); font-size: .5rem; }
.mock-row em {
  min-width: 25px;
  color: var(--ink);
  font-size: .59rem;
  font-style: normal;
  font-weight: 600;
  text-align: right;
}
.mock-row-head { min-height: 25px; padding-top: 0; color: #AAA49E; text-transform: uppercase; letter-spacing: .05em; }
.score-hot { color: var(--accent) !important; }

/* Keywords */
.kw-merge {
  display: grid;
  gap: 14px;
}
.kw-sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.kw-console {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s ease, filter .7s ease;
}
.kw-console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.kw-console-dots { display: flex; gap: 4px; flex: none; }
.kw-console-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D7D1CB;
}
.kw-console-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: .58rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kw-console-brand svg { flex: none; }
.kw-console-badge {
  margin-left: auto;
  flex: none;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: .48rem;
  font-weight: 600;
}
.kw-console-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.kw-console-metrics > div {
  display: grid;
  gap: 2px;
  padding: 8px 7px;
  background: var(--white);
}
.kw-console-metrics span {
  color: var(--muted);
  font-size: .45rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.kw-console-metrics b {
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.kw-console-google .kw-console-metrics > div:nth-child(1) b { color: #4285F4; }
.kw-console-google .kw-console-metrics > div:nth-child(2) b { color: #673AB7; }
.kw-console-bing .kw-console-metrics > div:nth-child(1) b { color: #00809D; }
.kw-console-bing .kw-console-metrics > div:nth-child(2) b { color: #00BCF2; }

.kw-mini-chart {
  display: block;
  width: 100%;
  height: 62px;
  background:
    linear-gradient(rgba(13,13,13,.05) 1px, transparent 1px) 0 0 / 100% 15px;
}
.kw-mini-chart path {
  fill: none;
  stroke-width: 1.3;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.kw-area-impressions { stroke: none; }
.kw-line-impressions { stroke: #673AB7; opacity: .7; }
.kw-line-clicks { stroke: #4285F4; stroke-width: 1.5; }
.kw-line-impressions.bing { stroke: #00BCF2; opacity: .8; }
.kw-line-clicks.bing { stroke: #00809D; stroke-width: 1.5; }

/* Combined Google + Bing chart in the unified dashboard */
.kw-combined-card { margin-bottom: 12px; }
.kw-combined-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.kw-combined-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: .55rem;
  font-weight: 500;
}
.kw-combined-legend b { color: var(--ink); font-weight: 700; }
.kw-combined-legend i,
.kw-tip-row i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.kw-swatch-g { background: #4285F4; }
.kw-swatch-b { background: #00BCF2; }
.kw-legend-total {
  padding-left: 11px;
  border-left: 1px solid var(--border);
}
.kw-legend-total b { color: #0E7490; }

.kw-combined-chart {
  position: relative;
  padding-left: 30px;
}
.kw-combined-plot {
  position: relative;
  height: 168px;
  border-radius: 4px;
}
.kw-combined-plot:focus-visible {
  outline: 3px solid rgba(240,78,35,.22);
  outline-offset: 3px;
}
.kw-combined-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Hover readout for the stacked combined chart */
.kw-uni-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -.5px;
  background: rgba(13,13,13,.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}
.kw-uni-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border: 2px solid var(--white);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}
.kw-uni-dot-google { background: #4285F4; }
.kw-uni-dot-total { background: #0E7490; }
.kw-uni-tooltip {
  position: absolute;
  top: 4px;
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: 132px;
  padding: 9px 11px;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(13,13,13,.14);
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity .12s ease;
}
.kw-uni-tooltip.is-flipped { transform: translateX(calc(-100% - 12px)); }
.kw-tip-date {
  color: var(--ink);
  font-size: .58rem;
  font-weight: 700;
}
.kw-tip-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  font-size: .55rem;
}
.kw-tip-row em { color: var(--muted); font-style: normal; }
.kw-tip-row strong {
  color: var(--ink);
  font-size: .58rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.kw-tip-total {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 2px;
  padding-top: 5px;
  border-top: 1px solid var(--border);
}
.kw-tip-total em { color: var(--ink); font-weight: 600; }
.kw-tip-total strong { color: #0E7490; }
.kw-tip-bar {
  display: flex;
  height: 4px;
  margin-top: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface2);
}
.kw-tip-bar i { height: 100%; transition: width .12s ease; }
.kw-tip-bar-google { background: #4285F4; }
.kw-tip-bar-bing { background: #00BCF2; }
.kw-uni-hint {
  position: absolute;
  top: 7px;
  right: 9px;
  color: #AAA49E;
  font-size: .5rem;
  pointer-events: none;
  transition: opacity .15s ease;
}
.kw-combined-plot:hover .kw-uni-guide,
.kw-combined-plot:hover .kw-uni-dot,
.kw-combined-plot:hover .kw-uni-tooltip,
.kw-combined-plot:focus .kw-uni-guide,
.kw-combined-plot:focus .kw-uni-dot,
.kw-combined-plot:focus .kw-uni-tooltip,
.kw-combined-plot.is-active .kw-uni-guide,
.kw-combined-plot.is-active .kw-uni-dot,
.kw-combined-plot.is-active .kw-uni-tooltip { opacity: 1; }
.kw-combined-plot:hover .kw-uni-hint,
.kw-combined-plot:focus .kw-uni-hint,
.kw-combined-plot.is-active .kw-uni-hint { opacity: 0; }
.kw-uni-grid {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.kw-uni-line-google,
.kw-uni-line-total {
  fill: none;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.kw-uni-line-google { stroke: #4285F4; stroke-width: 1.3; opacity: .85; }
.kw-uni-line-total { stroke: #0E7490; stroke-width: 1.7; }
.kw-combined-axis,
.kw-combined-dates {
  color: #AAA49E;
  font-size: .5rem;
  font-variant-numeric: tabular-nums;
}
.kw-combined-axis i,
.kw-combined-dates i { font-style: normal; }
/* Absolute offsets keep each label locked to its gridline in the 1160x340 viewBox. */
.kw-combined-axis {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 168px;
}
.kw-combined-axis i {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
}
.kw-combined-axis i:nth-child(1) { top: 9.7%; }
.kw-combined-axis i:nth-child(2) { top: 32.3%; }
.kw-combined-axis i:nth-child(3) { top: 55%; }
.kw-combined-axis i:nth-child(4) { top: 77.3%; }
.kw-combined-axis i:nth-child(5) { top: 100%; }
.kw-combined-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.kw-console-queries {
  padding: 8px 10px 10px;
}
.kw-q-head,
.kw-q-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.kw-q-head {
  margin-bottom: 4px;
  color: #AAA49E;
  font-size: .45rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.kw-q-row {
  padding: 5px 0;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: .55rem;
  font-weight: 500;
}
.kw-q-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kw-q-row b { color: var(--muted); font-size: .54rem; font-weight: 600; }
.kw-console-google .kw-q-row b { color: #4285F4; }
.kw-console-bing .kw-q-row b { color: #00809D; }

.kw-merge-bridge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}
.kw-merge-rail {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #D7D1CB, transparent);
  position: relative;
  overflow: hidden;
}
.kw-merge-rail::after {
  content: "";
  position: absolute;
  inset: -1px auto -1px 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: translateX(-120%);
}
.kw-merge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 7px 12px;
  border: 1px solid rgba(240,78,35,.22);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-tint);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 0 0 0 rgba(240,78,35,0);
  transition: transform .5s ease, box-shadow .5s ease;
}
.kw-merge-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,78,35,.18);
}

.kw-unified {
  position: relative;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(240,78,35,.05), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  transform: translateY(10px);
  opacity: .55;
  transition: transform .75s cubic-bezier(.2,.8,.2,1), opacity .75s ease, box-shadow .75s ease, border-color .75s ease;
}
.kw-unified-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.kw-unified-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
}
.kw-unified-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  color: var(--white);
  background: var(--ink);
  font-size: .62rem;
  font-weight: 700;
}
.kw-unified-sources {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .54rem;
  font-weight: 600;
}
.kw-unified-sources > i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  color: var(--white);
  font-size: .55rem;
  font-style: normal;
  font-weight: 700;
}
.kw-src-g { background: #4285F4; }
.kw-src-b { background: #00809D; }
.kw-unified-live {
  margin-left: auto;
  color: var(--green);
  font-size: .58rem;
  font-weight: 700;
}
.kw-unified .module-stats { margin-bottom: 12px; }

/* Merge animation states */
.kw-merge.is-merging .kw-console-google {
  transform: translate(8px, 6px) scale(.985);
}
.kw-merge.is-merging .kw-console-bing {
  transform: translate(-8px, 6px) scale(.985);
}
.kw-merge.is-merging .kw-merge-rail::after {
  opacity: 1;
  animation: kwPulse 1.1s ease-in-out infinite;
}
.kw-merge.is-merging .kw-merge-pill {
  transform: scale(1.04);
  box-shadow: 0 0 0 6px rgba(240,78,35,.08);
}
.kw-merge.is-merged .kw-console {
  opacity: .72;
  filter: saturate(.9);
}
.kw-merge.is-merged .kw-unified {
  transform: none;
  opacity: 1;
  border-color: rgba(240,78,35,.28);
  box-shadow: 0 10px 28px rgba(13,13,13,.06), 0 0 0 1px rgba(240,78,35,.08);
}

/* The combined total draws in once both sources land in the unified view. */
.kw-uni-line-total {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.kw-uni-band-bing,
.kw-uni-area-google { opacity: 0; }
.kw-merge.is-merged .kw-uni-line-total {
  animation: kwDraw 1.15s cubic-bezier(.25,.85,.3,1) .1s forwards;
}
.kw-merge.is-merged .kw-uni-area-google {
  animation: kwFadeBand .7s ease .35s forwards;
}
.kw-merge.is-merged .kw-uni-band-bing {
  animation: kwFadeBand .7s ease .6s forwards;
}
@keyframes kwDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes kwFadeBand {
  to { opacity: 1; }
}
@keyframes kwPulse {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
@media (prefers-reduced-motion: reduce) {
  .kw-console,
  .kw-unified,
  .kw-merge-pill { transition: none; }
  .kw-merge.is-merging .kw-merge-rail::after { animation: none; opacity: .6; transform: none; width: 100%; }
  .kw-merge .kw-unified { transform: none; opacity: 1; }
  .kw-uni-line-total { stroke-dashoffset: 0; }
  .kw-uni-band-bing,
  .kw-uni-area-google { opacity: 1; }
}

.cluster-canvas {
  position: relative;
  height: 194px;
  overflow: hidden;
  border-radius: 9px;
  background:
    radial-gradient(circle at center, rgba(240,78,35,.07), transparent 42%),
    linear-gradient(rgba(13,13,13,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,13,13,.035) 1px, transparent 1px),
    var(--surface);
  background-size: auto, 24px 24px, 24px 24px, auto;
}
.cluster-canvas > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cluster-canvas > svg path { fill: none; stroke: #D7D1CB; stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.cluster-node {
  position: absolute;
  z-index: 1;
  display: grid;
  min-width: 62px;
  padding: 7px 9px;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: .59rem;
  font-weight: 600;
  text-align: center;
  transition: transform var(--t), box-shadow var(--t);
}
.cluster-node:hover { transform: scale(1.07); box-shadow: var(--shadow-md); }
.cluster-node small { color: var(--muted); font-size: .47rem; font-weight: 500; }
.cluster-core { top: 38%; left: 40%; color: var(--white); background: var(--accent); border-color: var(--accent); }
.cluster-a { top: 9%; left: 10%; }
.cluster-b { top: 7%; right: 9%; }
.cluster-c { bottom: 9%; left: 7%; }
.cluster-d { right: 8%; bottom: 8%; }

/* Content pipeline */
.content-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.board-column {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #F1EFEC;
}
.board-column > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: .62rem;
  font-weight: 600;
}
.board-column > header i {
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: .5rem;
  font-style: normal;
  text-align: center;
}
.content-ticket {
  display: grid;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  box-shadow: 0 2px 5px rgba(13,13,13,.035);
  transition: transform var(--t), box-shadow var(--t);
}
.content-ticket:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--shadow-md); }
.content-ticket > em { color: var(--accent); font-size: .46rem; font-style: normal; font-weight: 600; text-transform: uppercase; }
.content-ticket > b { margin: 5px 0; color: var(--ink); font-size: .59rem; line-height: 1.35; }
.content-ticket > small { color: var(--muted); font-size: .48rem; line-height: 1.35; }
.ticket-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .46rem;
}
.ticket-avatar, .wp-dot {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: .43rem;
  font-style: normal;
}
.wp-dot { background: #21759B; }
.ticket-progress { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: var(--surface2); }
.ticket-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.content-ticket.is-ready { border-color: rgba(23,134,76,.22); }
.content-ticket.is-ready > em { color: var(--green); }

/* Content calendar */
.calendar-card { margin-top: 12px; }
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.calendar-legend {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: .5rem;
  font-weight: 500;
}
.cal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.cal-dot-scheduled { background: var(--green); }
.cal-dot-draft { background: var(--accent); }
.cal-dot-review { background: #D4A017; }
.calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.calendar-nav b {
  min-width: 78px;
  color: var(--ink);
  font-size: .56rem;
  font-weight: 650;
  text-align: center;
}
.calendar-nav button {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  background: var(--white);
  font-size: .68rem;
  line-height: 1;
  transition: color var(--t), border-color var(--t);
}
.calendar-nav button:hover { color: var(--accent); border-color: rgba(240,78,35,.35); }

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.calendar-weekdays {
  margin-bottom: 6px;
  color: #AAA49E;
  font-size: .48rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.calendar-weekdays span { padding-left: 2px; }
.cal-day {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 72px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
}
.cal-date {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: .52rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cal-date em {
  padding: 1px 5px;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  font-size: .42rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cal-day.is-today {
  border-color: rgba(240,78,35,.4);
  background: var(--accent-tint);
}
.cal-day.is-today .cal-date { color: var(--ink); }

.cal-item {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 7px 6px 8px;
  border-radius: 6px;
  border-left: 2px solid var(--border-2);
  background: var(--surface);
  transition: transform var(--t), box-shadow var(--t);
}
.cal-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cal-item > em {
  color: var(--accent);
  font-size: .42rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cal-item b {
  color: var(--ink);
  font-size: .53rem;
  font-weight: 600;
  line-height: 1.3;
}
.cal-item small {
  color: var(--muted);
  font-size: .45rem;
  line-height: 1.3;
}
.cal-item.is-scheduled { border-left-color: var(--green); background: #EEF8F2; }
.cal-item.is-scheduled > em { color: var(--green); }
.cal-item.is-draft { border-left-color: var(--accent); background: var(--accent-tint); }
.cal-item.is-draft > em { color: var(--accent); }
.cal-item.is-review { border-left-color: #D4A017; background: #FFF7E4; }
.cal-item.is-review > em { color: #A86600; }

/* Links */
.link-bars {
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 11px;
  height: 180px;
  padding: 18px 12px 0;
  border-bottom: 1px solid var(--border);
  background: repeating-linear-gradient(to bottom, transparent 0 44px, var(--border) 45px);
}
.link-bars i {
  width: 24px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #FF8A68, var(--accent));
  transform-origin: bottom;
  transition: transform var(--t), filter var(--t);
}
.link-bars i:hover { transform: scaleY(1.05); filter: brightness(1.08); }
.link-bar-labels { display: flex; justify-content: space-around; padding-top: 7px; color: var(--muted); font-size: .48rem; }
.status-pill {
  padding: 4px 6px;
  border-radius: 999px;
  font-size: .48rem !important;
  font-style: normal;
  white-space: nowrap;
}
.status-pill.matched { color: #26704A; background: #E9F7EF; }
.status-pill.review { color: #A86600; background: #FFF4D9; }
.status-pill.outreach { color: #5965A8; background: #EFF0FF; }

/* Technical audit */
.technical-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 12px;
}
.health-score-card {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  text-align: center;
}
.health-ring {
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--score) * 1%), #EAE7E3 0);
}
.health-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 102px;
  height: 102px;
  border-radius: 50%;
  background: var(--white);
}
.health-ring > span { z-index: 1; grid-area: 1 / 1; display: grid; }
.health-ring b { color: var(--ink); font-family: var(--font-head); font-size: 1.7rem; line-height: 1; }
.health-ring small { margin-top: 4px; color: var(--muted); font-size: .52rem; }
.health-score-card > p { margin-top: 12px; color: var(--ink); font-size: .68rem; font-weight: 600; }
.health-score-card > small { color: var(--muted); font-size: .5rem; }
.health-score-card > button {
  margin-top: 13px;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--white);
  background: var(--ink);
  font-size: .55rem;
}
.audit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.audit-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 12px 12px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
}
.audit-card > span:nth-child(2) { display: grid; min-width: 0; }
.audit-card b { color: var(--ink); font-size: .6rem; }
.audit-card small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: .48rem; text-overflow: ellipsis; white-space: nowrap; }
.audit-card > em { color: var(--green); font-size: .52rem; font-style: normal; }
.audit-icon { display: grid !important; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: .56rem; font-weight: 700; }
.audit-icon.pass { color: var(--green); background: #E9F7EF; }
.audit-icon.warn { color: #A86600; background: #FFF4D9; }
.audit-card > i { position: absolute; right: 12px; bottom: 9px; left: 12px; height: 3px; overflow: hidden; border-radius: 9px; background: var(--surface2); }
.audit-card > i b { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.audit-card > i b.warn-bar { background: #F5B942; }

/* Analytics */
.module-line-chart { width: 100%; height: 190px; }
.module-gridlines { fill: none; stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.module-area { fill: url(#moduleArea); }
.module-line { fill: none; stroke: var(--accent); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.rank-up { color: var(--green) !important; font-weight: 600; }
.rank-down { color: #D15C4A !important; font-weight: 600; }

.citation-card { margin-top: 12px; }
.citation-engines {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.citation-engines > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.citation-engines img { flex: none; border-radius: 4px; }
.citation-engines span {
  overflow: hidden;
  color: var(--muted);
  font-size: .52rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.citation-engines b {
  color: var(--ink);
  font-size: .68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.citation-list { display: grid; }
.citation-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .57rem;
}
.citation-row:last-child { border-bottom: 0; }
.citation-row-head {
  min-height: 24px;
  padding-top: 0;
  padding-bottom: 6px;
  color: #AAA49E;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .48rem;
}
.citation-ref {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.citation-ref img { border-radius: 4px; }
.citation-ref > span { display: grid; min-width: 0; }
.citation-ref b {
  overflow: hidden;
  color: var(--ink);
  font-size: .62rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.citation-ref small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: .5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.citation-article {
  overflow: hidden;
  color: var(--ink-soft);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.citation-engine {
  color: var(--accent);
  font-size: .54rem;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}
.citation-row time {
  color: var(--muted);
  font-size: .52rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

/* Distribution */
.distribution-flow { display: grid; gap: 12px; }
.source-content-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  width: 100%;
  margin: auto;
  padding: 14px;
  border: 1px solid rgba(240,78,35,.24);
  border-radius: 11px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.source-content-card > span:nth-child(2) { display: grid; }
.source-content-card em { color: var(--accent); font-size: .48rem; font-style: normal; font-weight: 600; text-transform: uppercase; }
.source-content-card b { color: var(--ink); font-size: .67rem; }
.source-content-card small { color: var(--muted); font-size: .5rem; }
.source-content-card > i { color: var(--green); font-style: normal; }
.source-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  color: var(--white);
  background: var(--accent);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
}
.distribution-arrow { display: grid; place-items: center; color: var(--muted); font-size: .5rem; }
.distribution-arrow i { color: var(--accent); font-size: 1rem; font-style: normal; }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.channel-grid article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  transition: transform var(--t), box-shadow var(--t);
}
.channel-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.channel-grid article > span:nth-child(2) { display: grid; }
.channel-grid b { color: var(--ink); font-size: .59rem; }
.channel-grid small { color: var(--muted); font-size: .48rem; }
.channel-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: var(--white); font-size: .57rem; font-weight: 700; }
.channel-icon.pinterest { background: #E60023; }
.channel-icon.linkedin { background: #0A66C2; }
.channel-icon.mail { background: #5D63D1; }
.channel-icon.xnet { background: #111; }
.channel-icon.reddit { background: #FF4500; }
.channel-icon.image { background: #8A57D6; }

/* Workspace */
.workspace-table { padding-bottom: 8px; }
.workspace-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) .55fr .7fr .65fr .7fr;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  padding: 7px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .56rem;
}
.workspace-row:last-child { border-bottom: 0; }
.workspace-head { min-height: 25px; color: #AAA49E; font-size: .49rem; text-transform: uppercase; letter-spacing: .05em; }
.workspace-client { display: flex; align-items: center; gap: 8px; min-width: 0; }
.workspace-client > i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  color: var(--white);
  font-size: .48rem;
  font-style: normal;
  font-weight: 700;
}
.client-mg { background: #202020; }
.client-hp { background: #367C68; }
.client-rt { background: #3C6FB4; }
.client-fl { background: #8A57D6; }
.workspace-client b { display: grid; overflow: hidden; color: var(--ink); font-size: .61rem; }
.workspace-client small { overflow: hidden; color: var(--muted); font-size: .48rem; font-weight: 400; text-overflow: ellipsis; }
.workspace-row > span b { color: var(--ink); }
.workspace-row > span small { font-size: .47rem; }

.final-trial {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(13,13,13,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,13,13,.025) 1px, transparent 1px),
    var(--surface);
  background-size: 52px 52px;
  border-top: 1px solid var(--border);
}

/* --- Pricing ---------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
  align-items: start;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(26px, 3vw, 36px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.is-featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.price-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 10px 0 2px;
}
.price-amount b {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.price-amount span { font-size: .95rem; color: var(--muted); }
.price-term { font-size: .92rem; color: var(--muted); }

.price-features { display: grid; gap: 11px; margin: 24px 0 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .97rem;
  color: var(--ink-soft);
}
.price-features svg { flex: none; margin-top: 5px; color: var(--accent); }
.price-card .btn { margin-top: auto; }

.pricing-footnote {
  margin-top: 26px;
  text-align: center;
  font-size: .92rem;
  color: var(--muted);
}
.pricing-footnote a { color: var(--accent); font-weight: 600; }
.pricing-footnote a:hover { text-decoration: underline; }

/* --- Feature cards ---------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-md); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
  transition: transform var(--t), background var(--t);
}
.feature-card:hover .feature-icon {
  transform: scale(1.06);
  background: rgba(240,78,35,.16);
}
.feature-card h3 { margin-bottom: 9px; }
.feature-card p { font-size: .97rem; color: var(--muted); }

/* Looping micro-animations, one per feature icon. Durations are
   deliberately co-prime so the six cards never pulse in unison. */
.feature-icon [class^="ic-"] {
  transform-box: view-box;
  transform-origin: 12px 12px;
}

@keyframes icScan {
  0%, 100% { transform: translate(0, 0); }
  30%      { transform: translate(-2px, -1.4px); }
  65%      { transform: translate(1.6px, 1px); }
}
.anim-search .ic-glass { animation: icScan 4.2s ease-in-out infinite; }

@keyframes icSpin { to { transform: rotate(360deg); } }
@keyframes icCore {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(.68); opacity: .7; }
}
.anim-sparkle .ic-rays { animation: icSpin 9s linear infinite; }
.anim-sparkle .ic-core { animation: icCore 2.6s ease-in-out infinite; }

@keyframes icSpreadL {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-1.5px); }
}
@keyframes icSpreadR {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(1.5px); }
}
@keyframes icBlink { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
.anim-code .ic-bracket-l { animation: icSpreadL 3.4s ease-in-out infinite; }
.anim-code .ic-bracket-r { animation: icSpreadR 3.4s ease-in-out infinite; }
.anim-code .ic-caret { animation: icBlink 1.1s steps(1, end) infinite; }

@keyframes icBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.3px); }
}
@keyframes icDot {
  0%, 100% { opacity: .3; transform: translateY(0); }
  40%      { opacity: 1; transform: translateY(-1.2px); }
}
.anim-chat .ic-bubble { animation: icBob 3s ease-in-out infinite; }
.anim-chat .ic-dots path { animation: icDot 1.5s ease-in-out infinite; }
.anim-chat .ic-dots path:nth-child(2) { animation-delay: .18s; }
.anim-chat .ic-dots path:nth-child(3) { animation-delay: .36s; }

@keyframes icDraw { 0% { stroke-dashoffset: 20; } 55%, 100% { stroke-dashoffset: 0; } }
.anim-chart .ic-line {
  stroke-dasharray: 20;
  animation: icDraw 3.6s ease-in-out infinite;
}

@keyframes icWrite {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  35%      { transform: translate(-1.1px, 1.1px) rotate(-4deg); }
  70%      { transform: translate(.7px, -.7px) rotate(3deg); }
}
@keyframes icUnderline { 0% { stroke-dashoffset: 9; } 50%, 100% { stroke-dashoffset: 0; } }
.anim-pencil .ic-pen { animation: icWrite 3.2s ease-in-out infinite; }
.anim-pencil .ic-underline {
  stroke-dasharray: 9;
  animation: icUnderline 3.2s ease-in-out infinite;
}

/* --- Case study ------------------------------------------- */
.case-tag {
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Search Console proof card ---------------------------- */
/* Keep the proof block focused and readable at wide viewport sizes. */
.case-col { max-width: 900px; margin-inline: auto; }

.gsc-card {
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.gsc-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.gsc-dots { display: flex; gap: 6px; flex: none; }
.gsc-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border-2);
}
.gsc-url {
  font-size: .82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gsc-badge {
  margin-left: auto;
  flex: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.gsc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gsc-chart-stage {
  position: relative;
  width: 100%;
  min-width: 0;
}
.gsc-card img { width: 100%; height: auto; }
.gsc-series-toggle {
  position: absolute;
  z-index: 2;
  top: 4.4%;
  display: grid;
  align-content: center;
  gap: clamp(5px, .85vw, 12px);
  width: 22.5%;
  height: 22.4%;
  padding: clamp(8px, 1.35vw, 18px);
  border: 1px solid transparent;
  border-radius: clamp(8px, 1.15vw, 14px);
  color: var(--white);
  text-align: left;
  box-shadow: 0 4px 12px rgba(13,13,13,.08);
  transition: transform var(--t), filter var(--t), color var(--t), background var(--t), border-color var(--t);
}
.gsc-toggle-clicks {
  left: 2%;
  background: #4285F4;
}
.gsc-toggle-impressions {
  left: 25.67%;
  background: #673AB7;
}
.gsc-series-toggle:hover {
  z-index: 3;
  filter: brightness(1.04);
  transform: translateY(-2px);
}
.gsc-series-toggle:focus-visible {
  z-index: 4;
  outline: 3px solid rgba(13,13,13,.22);
  outline-offset: 2px;
}
.gsc-toggle-label {
  display: flex;
  align-items: center;
  gap: clamp(5px, .65vw, 9px);
  font-family: var(--font-head);
  font-size: clamp(.56rem, .78vw, .75rem);
  font-weight: 600;
  white-space: nowrap;
}
.gsc-toggle-label i {
  display: grid;
  place-items: center;
  width: clamp(11px, 1.25vw, 15px);
  height: clamp(11px, 1.25vw, 15px);
  border: 1.5px solid currentColor;
  border-radius: 3px;
  font-size: clamp(.42rem, .55vw, .6rem);
  font-style: normal;
  line-height: 1;
}
.gsc-series-toggle > b {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.25vw, 2rem);
  font-weight: 600;
  line-height: 1;
}
.gsc-series-toggle.is-off {
  border-color: var(--border);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  filter: none;
}
.gsc-series-toggle.is-off .gsc-toggle-label { color: var(--muted); }
.gsc-series-toggle.is-off .gsc-toggle-label i {
  color: transparent;
  border-color: var(--border-2);
  background: var(--white);
}
.gsc-interactive {
  position: absolute;
  z-index: 2;
  /* Match the SVG's graph plot: x 78–1154, y 196–430. */
  left: 6.5%;
  right: 3.84%;
  top: 39.2%;
  bottom: 14%;
  cursor: crosshair;
  touch-action: pan-y;
  outline: none;
}
.gsc-interactive:focus-visible {
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(66,133,244,.2);
}
.gsc-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  opacity: 0;
  background: #A8A29E;
  pointer-events: none;
}
.gsc-point {
  position: absolute;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--white);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 1px 4px rgba(13,13,13,.22);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.gsc-point-clicks { background: #4285F4; }
.gsc-point-impressions { background: #673AB7; }
.gsc-interactive.clicks-off .gsc-point-clicks,
.gsc-interactive.clicks-off .gsc-tooltip-clicks-row,
.gsc-interactive.impressions-off .gsc-point-impressions,
.gsc-interactive.impressions-off .gsc-tooltip-impressions-row { display: none; }
.gsc-tooltip {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 0;
  display: grid;
  gap: 7px;
  min-width: 174px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  opacity: 0;
  color: var(--ink);
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 28px rgba(13,13,13,.14);
  transform: translate(12px, -100%);
  pointer-events: none;
  transition: opacity .12s ease;
}
.gsc-tooltip.is-flipped { transform: translate(calc(-100% - 12px), -100%); }
.gsc-tooltip-date {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: .72rem;
}
.gsc-tooltip > span {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  align-items: center;
  gap: 7px;
  font-size: .68rem;
}
.gsc-tooltip em { color: var(--muted); font-style: normal; }
.gsc-tooltip strong {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 600;
}
.gsc-key { width: 7px; height: 7px; border-radius: 50%; }
.gsc-key-blue { background: #4285F4; }
.gsc-key-purple { background: #673AB7; }
.gsc-hover-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.9);
  font-family: var(--font-head);
  font-size: .56rem;
  font-weight: 500;
  pointer-events: none;
  transition: opacity var(--t);
}
.gsc-interactive:hover .gsc-guide,
.gsc-interactive:hover .gsc-point,
.gsc-interactive:hover .gsc-tooltip,
.gsc-interactive:focus .gsc-guide,
.gsc-interactive:focus .gsc-point,
.gsc-interactive:focus .gsc-tooltip,
.gsc-interactive.is-active .gsc-guide,
.gsc-interactive.is-active .gsc-point,
.gsc-interactive.is-active .gsc-tooltip { opacity: 1; }
.gsc-interactive:hover .gsc-hover-hint,
.gsc-interactive:focus .gsc-hover-hint,
.gsc-interactive.is-active .gsc-hover-hint { opacity: 0; }
.gsc-card figcaption {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: .84rem;
  color: var(--muted);
  text-align: center;
}
.gsc-swipe {
  display: none;
  margin-top: 4px;
  font-weight: 500;
  color: var(--accent);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.metric-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.metric-num {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin: 6px 0 10px;
}
.metric-num.accent { color: var(--accent); }
.metric-card p { font-size: .93rem; color: var(--muted); }

/* --- Why us ----------------------------------------------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.chip:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.chip svg { color: var(--accent); flex: none; }

/* --- Final CTA -------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(100% 70% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(100% 70% at 50% 0%, #000 10%, transparent 75%);
}
.cta .container { position: relative; z-index: 1; }
.cta h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.cta h2 .accent { color: #FF7A52; }
.cta p { color: rgba(255,255,255,.72); max-width: 520px; margin: 16px auto 0; }
.cta .hero-actions { margin-top: 30px; }
.cta-assurance { margin-top: 18px; font-size: .88rem; color: rgba(255,255,255,.6); }

/* --- Footer ----------------------------------------------- */
footer {
  padding-block: 40px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: .92rem; }
.footer-links a { color: var(--muted); transition: color var(--t); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: .88rem; color: var(--muted); }

/* --- Sticky mobile CTA ------------------------------------ */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform .28s ease;
}
.sticky-cta.is-visible { transform: none; }

/* --- Live chat widget ------------------------------------- */
.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 8px 26px rgba(240,78,35,.34), 0 2px 6px rgba(13,13,13,.14);
  transition: transform var(--t), background var(--t), box-shadow var(--t);
}
.chat-launcher:hover {
  transform: translateY(-2px) scale(1.04);
  background: var(--accent-dim);
}
.chat-launcher:focus-visible {
  outline: 3px solid rgba(240,78,35,.35);
  outline-offset: 3px;
}
.chat-launcher svg { grid-area: 1 / 1; transition: opacity var(--t), transform var(--t); }
.chat-icon-close { opacity: 0; transform: rotate(-45deg) scale(.7); }
.chat-widget.is-open .chat-icon-open { opacity: 0; transform: rotate(45deg) scale(.7); }
.chat-widget.is-open .chat-icon-close { opacity: 1; transform: none; }

.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--ink);
  font-family: var(--font-head);
  font-size: .62rem;
  font-weight: 600;
  line-height: 1;
}
.chat-widget.is-open .chat-badge,
.chat-widget.is-seen .chat-badge { display: none; }

.chat-panel {
  width: min(320px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(13,13,13,.18);
  transform-origin: bottom right;
  animation: chatPop .22s cubic-bezier(.2, .9, .3, 1);
}
@keyframes chatPop {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
}

.chat-panel-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
}
.chat-identity { display: grid; line-height: 1.25; }
.chat-identity b {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}
.chat-identity small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .66rem;
}
.chat-online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(23,134,76,.16);
}
.chat-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  transition: color var(--t), background var(--t);
}
.chat-close:hover { color: var(--ink); background: var(--surface2); }

.chat-body {
  display: grid;
  gap: 9px;
  padding: 15px;
}
.chat-msg {
  max-width: 90%;
  padding: 11px 13px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface2);
}
.chat-msg p {
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.5;
}
.chat-time {
  display: block;
  margin-top: 5px;
  color: #A8A29E;
  font-size: .6rem;
}
.chat-typing {
  display: flex;
  gap: 4px;
  width: fit-content;
  padding: 11px 13px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface2);
}
.chat-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #B9B2AB;
  animation: chatTyping 1.4s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: .18s; }
.chat-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes chatTyping {
  0%, 100% { opacity: .35; transform: translateY(0); }
  40%      { opacity: 1; transform: translateY(-3px); }
}

.chat-actions {
  display: grid;
  gap: 8px;
  padding: 0 15px 15px;
}
.chat-reply {
  padding: 11px 13px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  transition: border-color var(--t), background var(--t), color var(--t), transform var(--t);
}
.chat-reply:hover { transform: translateY(-1px); border-color: var(--ink); }
.chat-reply.is-primary {
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent);
}
.chat-reply.is-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); }

/* --- Reveal animation ------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 1000px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .engine-connector { display: none; }
  .engine-step > p { min-height: 48px; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-overview-grid { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-controls { width: 100%; justify-content: space-between; }
}

@media (max-width: 1100px) {
  .kw-sources { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .trial-card { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .control-panel { grid-template-columns: 1fr; }
  .uptime-row {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
  }
  .uptime-bars { grid-column: 1 / -1; order: 3; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .dashboard-tab { grid-template-columns: 20px minmax(0, 1fr); }
  .dashboard-tab i { display: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .nav .container { gap: 14px; }
  .nav-links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 22px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links a { display: block; padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav-mobile-open .nav-links { display: flex; }
  .nav-cta-group { margin-left: auto; }
  .nav-secondary { display: none; }
  .sticky-cta { display: block; }
  footer { padding-bottom: 92px; }
  /* Clear the sticky CTA bar. */
  .chat-widget {
    right: 16px;
    bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .chat-launcher { width: 50px; height: 50px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero h1 { max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .btn-lg { padding: 18px 24px; font-size: 1.02rem; }
  .proof-list { gap: 8px 14px; }
  .proof-list li { font-size: .86rem; }
  .marquee-hover-hint { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .gsc-url { display: none; }
  .gsc-chart-stage { min-width: 760px; }
  .gsc-swipe { display: block; }
  .engine-toolbar { padding: 13px 16px; }
  .engine-live { padding: 7px; font-size: 0; }
  .engine-flow { grid-template-columns: 1fr; padding: 16px; }
  .uptime-head { flex-direction: column; align-items: flex-start; }
  .uptime-row {
    grid-template-columns: 1fr auto;
  }
  .uptime-bars { height: 22px; }
  .engine-step > p { min-height: 0; }
  .control-option { grid-template-columns: auto 1fr; }
  .control-badge { display: none; }
  .dashboard-chrome { padding: 12px 14px; }
  .dashboard-sync { display: none; }
  .dash-attention-label { display: none; }
  .dash-attention-btn { padding: 8px; }
  .dash-attention-panel { right: -8px; width: min(320px, calc(100vw - 28px)); }
  .dashboard-layout { min-height: 0; }
  .dashboard-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }
  .dashboard-main { padding: 16px 12px 18px; }
  .dashboard-panel-head { align-items: flex-start; }
  .dashboard-count,
  .dashboard-range { font-size: .57rem; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-chart { height: 145px; }
  .dashboard-module-strip { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .module-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: 1fr; }
  .kw-sources { grid-template-columns: 1fr; }
  .kw-console-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kw-unified-live { margin-left: 0; }
  .citation-engines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .citation-engines > div:last-child { grid-column: 1 / -1; }
  .citation-list { overflow-x: auto; }
  .citation-row { min-width: 560px; }
  .content-board { grid-template-columns: 1fr; }
  /* Keep the week readable on phones: scroll the month sideways instead of crushing it. */
  .calendar-grid { overflow-x: auto; }
  .calendar-weekdays,
  .calendar-days { min-width: 560px; }
  .calendar-legend { display: none; }
  .technical-layout { grid-template-columns: 1fr; }
  .audit-grid { grid-template-columns: 1fr; }
  .health-score-card { padding-block: 24px; }
  .channel-grid { grid-template-columns: 1fr; }
  .workspace-table { overflow-x: auto; }
  .workspace-table .mock-card-head { min-width: 610px; }
  .workspace-row { min-width: 610px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; gap: 14px 18px; }
}

@media (max-width: 430px) {
  .nav-logo { font-size: 1rem; }
  .nav-cta-group { gap: 8px; }
  .btn-sm { padding: 11px 15px; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .rotator-word { transition: none; }
  .marquee-viewport { overflow-x: auto; }
  .marquee-track { transform: none !important; }
  .marquee-list[aria-hidden="true"] { display: none; }
  .dashboard-panel { animation: none; }
  .engine-step:hover,
  .engine-step:focus,
  .control-option:hover,
  .dashboard-stats article:hover,
  .dashboard-module-strip button:hover,
  .capability-grid li:hover,
  .uptime-row:hover { transform: none; }
}
