/* =========================================================
   Stack Publishing — landing
   1  Tokens          7  Flow             13  Trial form
   2  Base            8  Panels & ideas   14  Footer
   3  Layout          9  Draft stack      15  Utilities
   4  Buttons        10  Screen           16  Responsive
   5  Nav            11  Popouts
   6  Hero           12  Pricing
   ========================================================= */


/* ---------------------------------------------------------
   1  Tokens
   --------------------------------------------------------- */
:root {
  /* surfaces — Search Console–inspired */
  --paper:      #F8F9FA;
  --paper-alt:  #F1F3F4;
  --card:       #FFFFFF;
  --wash:       #F1F3F4;

  /* ink */
  --ink:        #202124;
  --ink-2:      #3C4043;
  --body:       #5F6368;
  --muted:      #80868B;

  /* rules */
  --line:       #DADCE0;
  --line-2:     #BDC1C6;

  /* accent — Google blue, used sparingly */
  --accent:     #1A73E8;
  --accent-2:   #4285F4;
  --accent-ink: #174EA6;
  --accent-soft:#E8F0FE;
  --accent-line:#AECBFA;

  /* status */
  --green:      #188038;
  --green-soft: #E6F4EA;
  --amber:      #F9AB00;
  --red:        #D93025;

  /* type */
  --font-head: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  /* figures and small labels: same family, just aligned numerals — no monospace */
  --font-num:  'Inter', system-ui, sans-serif;

  /* metrics */
  --nav-h:  68px;
  --max-w:  1140px;
  --pad:    clamp(20px, 5vw, 40px);
  --gut:    clamp(72px, 9vw, 124px);

  --r-1: 8px;
  --r-2: 10px;
  --r-3: 12px;
  --r-btn: 12px;

  /* buttons stay ink; blue is for links, states, metrics */
  --btn-ink: #202124;

  /* texture — fractal-noise tile kept very quiet */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --dot: rgba(32,33,36,.06);

  /* Google-product card shadows */
  --sh-1: 0 1px 2px 0 rgba(60,64,67,.08), 0 1px 3px 1px rgba(60,64,67,.04);
  --sh-2: 0 1px 3px 0 rgba(60,64,67,.12), 0 4px 8px 3px rgba(60,64,67,.06);
  --sh-3: 0 2px 6px 2px rgba(60,64,67,.1), 0 8px 16px 4px rgba(60,64,67,.06);

  --t: .18s ease;
}


/* ---------------------------------------------------------
   2  Base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

/* The paper is not one flat colour. A fixed wash on the canvas tints it as you
   scroll, so the page warms and cools instead of sitting dead white. */
html {
  background-color: var(--paper);
}

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

/* A fine grain over the whole page for tooth. It sits under the nav (90) and
   the pop-out (120), and never takes a click. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: .12;
  mix-blend-mode: multiply;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.12;
}
h1 { font-size: clamp(3rem, 7vw, 5.2rem); font-weight: 700; letter-spacing: -.04em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -.032em; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: -.026em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-ink); }

img, svg { display: block; max-width: 100%; }
/* without this the width/height attributes win and aspect-ratio is ignored */
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { color: var(--ink); font-weight: 600; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-1);
}


/* ---------------------------------------------------------
   3  Layout
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
/* the pipeline needs more room than the rest of the page for its two columns */
.container.is-wide { max-width: 1340px; }

.section {
  padding: var(--gut) 0;
  /* no hairline between sections — the gut and any .alt wash already mark
     the change, and a 1px rule in empty space just reads as noise */
}
.section.alt {
  position: relative;
  background: var(--paper-alt);
}
/* the same dot grid as the hero, fading out before it reaches the copy */
.section.alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 50%, transparent 28%, #000);
  mask-image: radial-gradient(72% 62% at 50% 50%, transparent 28%, #000);
  opacity: .5;
  pointer-events: none;
}
.section.alt > .container { position: relative; }

.section-head {
  max-width: 52rem;
  margin: 0 auto clamp(36px, 4.5vw, 56px);
  text-align: center;
}
.section-head h2 { margin-bottom: 0; }
.section-head p {
  max-width: 40rem;
  margin: .7rem auto 0;
  color: var(--body);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
}

/* pipeline sits right under the client strip — no full gut of empty air */
#pipeline {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(24px, 3vw, 40px);
  background: var(--paper);
}

/* Pricing picks up immediately after the scale bridge */
#pricing {
  padding-top: clamp(36px, 4.5vw, 56px);
}

/* Why — premium comparison board */
.why {
  padding-top: clamp(24px, 3.5vw, 40px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.why-board {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 32px) clamp(18px, 2.4vw, 32px) clamp(20px, 2.4vw, 28px);
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(60,64,67,.06), 0 4px 16px rgba(60,64,67,.04);
}
.why-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
  gap: clamp(20px, 2.5vw, 36px);
  align-items: start;
  padding-bottom: clamp(24px, 3vw, 36px);
}
.why-copy {
  min-width: 0;
  text-align: left;
}
.why-eyebrow {
  display: inline-block;
  margin-bottom: .7rem;
  color: #1A73E8;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.why-title {
  margin: 0 0 .8rem;
  color: #202124;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
  text-wrap: balance;
}
.why-prompt {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  margin: 0 .08em;
  padding: .08em .36em .1em .28em;
  vertical-align: baseline;
  background: #E8F0FE;
  border-radius: 7px;
  color: #1967D2;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.why-prompt svg {
  flex: none;
  width: 12px;
  height: 12px;
  color: #1967D2;
  transform: translateY(.04em);
}
.why-lede {
  max-width: 38rem;
  margin: 0 0 .95rem;
  color: #5F6368;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  font-weight: 400;
  line-height: 1.45;
}
.why-rule {
  display: block;
  width: 40px;
  height: 2px;
  margin: 0 0 .95rem;
  background: #1A73E8;
  border-radius: 99px;
}
.why-close {
  display: grid;
  gap: .2rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.why-close-ink { color: #202124; }
.why-close-accent { color: #1A73E8; }

.why-compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 18px);
  min-width: 0;
}
.why-compare::before {
  content: "";
  position: absolute;
  top: 1.9rem;
  bottom: .25rem;
  left: 50%;
  width: 1px;
  background: #DADCE0;
  transform: translateX(-50%);
  pointer-events: none;
}
.why-rail { min-width: 0; }
.why-rail-label {
  display: block;
  margin-bottom: .55rem;
  color: #5F6368;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.why-rail--stack .why-rail-label { color: #1A73E8; }

.why-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.why-step {
  display: grid;
  justify-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .45s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.why-board.is-in .why-step {
  opacity: 1;
  transform: none;
}
.why-step-card {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  width: 100%;
  padding: .55rem .7rem;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(60,64,67,.05);
  color: #202124;
}
.why-rail--generic .why-step-card {
  align-items: flex-start;
}
.why-step-copy {
  display: grid;
  gap: .14rem;
  min-width: 0;
  padding-top: .05rem;
}
.why-step-copy b,
.why-step-card > b {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #202124;
}
.why-step-copy b {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  line-height: 1.25;
}
.why-step-copy small {
  color: #5F6368;
  font-size: .68rem;
  font-weight: 400;
  line-height: 1.35;
}
.why-live {
  display: inline-flex;
  align-items: center;
  padding: .12em .38em;
  background: #E8F0FE;
  border: 1px solid #AECBFA;
  border-radius: 3px;
  color: #1A73E8;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.why-ico {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: .12rem;
  color: #5F6368;
}
.why-rail--generic .why-ico {
  margin-top: .12rem;
}
.why-ico.is-accent { color: #1A73E8; }
.why-step-card.is-enrich .why-ico {
  box-sizing: content-box;
  padding: 3px;
  margin-top: 0;
  background: #E8F0FE;
  border-radius: 5px;
}

.why-arrow {
  display: grid;
  place-items: center;
  height: 16px;
  color: #BDC1C6;
}
.why-rail--stack .why-arrow {
  height: 18px;
}
.why-arrow.is-accent { color: #1A73E8; }
.why-arrow svg {
  width: 10px;
  height: 14px;
  overflow: visible;
}
.why-arrow path {
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  transition: stroke-dashoffset .5s ease;
  transition-delay: calc(var(--i, 0) * 55ms + 100ms);
}
.why-board.is-in .why-arrow path { stroke-dashoffset: 0; }

/* Bottom comparison — problem vs answer */
.why-verdict {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid #E8EAED;
}
.why-verdict-card {
  min-width: 0;
  padding: 14px 16px 16px;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(60,64,67,.05), 0 4px 12px rgba(60,64,67,.04);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .5s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(.22s + var(--d, 0) * 70ms);
}
.why-board.is-in .why-verdict-card {
  opacity: 1;
  transform: translateY(0);
}
.why-verdict-card.is-answer {
  border-color: #AECBFA;
  background: #F8FBFF;
}
.why-verdict-label {
  display: block;
  margin-bottom: .65rem;
  color: #5F6368;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.why-verdict-card.is-answer .why-verdict-label {
  color: #1A73E8;
}
.why-verdict-card ul {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.why-verdict-card li {
  position: relative;
  padding-left: .95rem;
  color: #3C4043;
  font-size: .8rem;
  line-height: 1.4;
}
.why-verdict-card li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #BDC1C6;
}
.why-verdict-card.is-answer li::before {
  background: #1A73E8;
}
.why-verdict-card.is-problem li {
  color: #5F6368;
}

@media (max-width: 980px) {
  .why-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .why-compare::before { display: none; }
  .why-title { font-size: clamp(1.9rem, 6vw, 2.35rem); }
  .why-lede { font-size: clamp(1rem, 3.2vw, 1.15rem); }
  .why-close { font-size: clamp(1rem, 3.2vw, 1.15rem); }
}
@media (max-width: 720px) {
  .why-board { padding: 20px 16px 18px; border-radius: 16px; }
  .why-compare { grid-template-columns: 1fr; gap: 1.25rem; }
  .why-rail--stack .why-arrow { height: 12px; }
  .why-step-card { padding: .48rem .62rem; }
  .why-step-copy { gap: .1rem; }
  .why-step-copy small { font-size: .66rem; }
  .why-verdict {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 2px;
  }
  .why-verdict-card {
    padding: 12px 14px 14px;
  }
  .why-verdict-card li {
    font-size: .76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-step,
  .why-verdict-card,
  .why-arrow path {
    opacity: 1;
    transform: none;
    transition: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--body);
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}


/* ---------------------------------------------------------
   4  Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.014em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t), box-shadow var(--t);
}
.btn:active { transform: translateY(1px); }

/* solid ink, not accent — blue stays for links, bars and labels */
.btn-primary {
  background: var(--btn-ink);
  border-color: var(--btn-ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11,10,10,.16), 0 8px 20px rgba(11,10,10,.12);
}
.btn-primary:hover {
  background: #23201F;
  border-color: #23201F;
  color: #fff;
  box-shadow: 0 2px 4px rgba(11,10,10,.2), 0 14px 30px rgba(11,10,10,.16);
}

.btn-outline {
  background: var(--card);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--card);
}

.btn-sm { padding: .62rem 1.15rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* The single most important target on the page, so it runs larger than the
   rest and carries its own light. The fill stays ink — the colour comes from
   the halo behind it, which reads as emphasis without a blue button. */
.btn-hero {
  position: relative;
  z-index: 1;
  flex-direction: column;
  gap: .28rem;
  min-width: 420px;
  padding: 1.5rem 3.2rem 1.35rem;
  overflow: hidden;
  border-radius: 14px;
  font-family: var(--font-head);
  font-size: 1.52rem;
  font-weight: 700;
  letter-spacing: -.024em;
  box-shadow:
    0 1px 2px rgba(60,64,67,.2),
    0 4px 12px rgba(60,64,67,.16),
    0 8px 24px -6px rgba(26,115,232,.28);
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(60,64,67,.22),
    0 8px 20px rgba(60,64,67,.18),
    0 12px 28px -6px rgba(26,115,232,.32);
}
.btn-hero:active { transform: translateY(0) scale(1); }

.btn-hero-main { display: inline-flex; align-items: center; gap: .55rem; }
.btn-hero-arrow { transition: transform var(--t); }
.btn-hero:hover .btn-hero-arrow { transform: translateX(5px); }

.btn-hero small {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: .9;
}
.btn-hero small u {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  font-weight: 700;
  opacity: 1;
}

/* a gloss crosses the button every few seconds so it never reads as static */
.btn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 36%,
    rgba(255,255,255,.34) 46%,
    rgba(255,255,255,.7) 50%,
    rgba(255,255,255,.34) 54%,
    transparent 64%
  );
  transform: translateX(-110%);
  animation: ctaSheen 4.2s ease-in-out 1.1s infinite;
  pointer-events: none;
}
@keyframes ctaSheen {
  0%        { transform: translateX(-110%); }
  38%, 100% { transform: translateX(110%); }
}

.hero-cta { position: relative; display: inline-flex; }
.hero-cta::before,
.hero-cta::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 40px;
  pointer-events: none;
}
/* a tight, saturated core... */
.hero-cta::before {
  inset: -18px -26px;
  background: radial-gradient(closest-side, rgba(26,115,232,.28), transparent 74%);
  filter: blur(18px);
  opacity: .7;
}
/* wide, quiet bloom — no pulse */
.hero-cta::after {
  inset: -36px -52px;
  background: radial-gradient(closest-side, rgba(26,115,232,.14), transparent 72%);
  filter: blur(24px);
  opacity: .8;
}
@keyframes ctaHalo {
  0%, 100% { opacity: .55; transform: scale(.94); }
  50%      { opacity: 1;   transform: scale(1.07); }
}


/* ---------------------------------------------------------
   5  Nav
   --------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--nav-h);
  background: rgba(248,249,250,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(248,249,250,.96); }

.nav .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-right: auto;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.025em;
}
.nav-logo:hover { color: var(--ink); }
/* Codex — open book with blue gutter */
.nav-logo-mark {
  flex: none;
  width: 26px;
  height: 26px;
  display: block;
  overflow: visible;
}
.nav-logo-mark .mark-page,
.nav-logo-mark .mark-gutter {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-logo-mark .mark-page {
  stroke: #202124;
  stroke-width: 2.25;
}
.nav-logo-mark .mark-gutter {
  stroke: #1A73E8;
  stroke-width: 2;
}

.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  color: var(--body);
  font-size: .9rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta-group { display: flex; align-items: center; gap: 1.1rem; }
.nav-secondary { color: var(--body); font-size: .9rem; font-weight: 500; }
.nav-secondary:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  cursor: pointer;
}
.nav-toggle span {
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav.nav-mobile-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.nav-mobile-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.nav-mobile-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ---------------------------------------------------------
   6  Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(36px, 5vw, 64px)) 0 clamp(36px, 4.5vw, 56px);
  overflow: hidden;
  text-align: center;
}
.hero::before {
  display: none;
}

/* quiet paper tooth only — no colour wash */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(64% 58% at 50% 42%, transparent 34%, #000 88%);
  mask-image: radial-gradient(64% 58% at 50% 42%, transparent 34%, #000 88%);
  opacity: .55;
  pointer-events: none;
}
.hero .container { position: relative; }

.hero-hook {
  max-width: 48ch;
  margin: 0 auto .85rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.4;
  text-wrap: balance;
}

.hero h1 {
  max-width: 16ch;
  margin: 0 auto;
  font-size: clamp(2.55rem, 5.8vw, 3.9rem);
  font-weight: 700;
  line-height: 1.05;
}
/* Hook sets the thesis; this block is the product punch — lead stays ink,
   bridge stays quieter so the cycling brand can carry the colour */
.hero-lead { display: block; color: var(--ink); }
.hero-bridge { display: block; color: var(--muted); }

/* The headline ends on a brand that cycles, which folds the old "built to win
   in" proof strip into the first line of the page. */
.rotator { display: block; }
.rot-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.06em;
  /* JS sets this to the incoming brand's width so the line re-centres smoothly;
     until then the widest name has room and nothing jumps on first paint */
  width: var(--rot-w, 6.4em);
  vertical-align: baseline;
  transition: width .42s cubic-bezier(.22, .9, .3, 1);
}
.rot-item {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: .3em;
  color: var(--brand-ink, var(--accent));
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, calc(-50% + .3em));
  transition: opacity .34s ease, transform .42s cubic-bezier(.22, .9, .3, 1);
}

/* each name carries its own brand colour rather than the site accent */
.rot-item.is-chatgpt    { --brand-ink: #0D0D0D; }
.rot-item.is-perplexity { --brand-ink: #20808D; }
.rot-item.is-claude     { --brand-ink: #C15F3C; }
.rot-item.is-reddit     { --brand-ink: #FF4500; }

/* Google keeps its per-letter sequence; Gemini keeps its gradient */
.rot-word { display: inline-flex; }
.is-multicolour > span:nth-child(1) { color: #4285F4; }
.is-multicolour > span:nth-child(2) { color: #EA4335; }
.is-multicolour > span:nth-child(3) { color: #FBBC05; }
.is-multicolour > span:nth-child(4) { color: #4285F4; }
.is-multicolour > span:nth-child(5) { color: #34A853; }
.is-multicolour > span:nth-child(6) { color: #EA4335; }

.rot-word.is-gradient {
  background-image: linear-gradient(92deg, #4285F4 4%, #9B72CB 52%, #D96570 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.rot-item.is-active {
  opacity: 1;
  transform: translate(-50%, -50%);
}
/* the one on its way out drops rather than rising, so they read as a reel */
.rot-item.is-out {
  opacity: 0;
  transform: translate(-50%, calc(-50% - .3em));
}
.rot-item .brand {
  width: .82em;
  height: .82em;
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  .rot-slot { transition: none; }
  .rot-item { transition: none; }
}

.hero-sub {
  max-width: 58ch;
  margin: 1.8rem auto 0;
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.8rem;
}
.hero-secondary { margin: 0; font-size: .95rem; color: var(--muted); }
.hero-secondary a { font-weight: 600; }

/* --- hero trust strip --- */
.hero-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 760px;
  margin: 1.75rem auto 0;
  padding: .95rem 1.25rem 1rem;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(60,64,67,.06), 0 4px 12px rgba(60,64,67,.04);
  text-align: center;
}
.hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .65rem;
  padding: .28rem .7rem;
  background: #fff;
  border: 1px solid #AECBFA;
  border-radius: 999px;
  color: #1A73E8;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.hero-trust-pill svg {
  flex: none;
  color: #1A73E8;
}
.hero-trust-headline {
  max-width: 34rem;
  margin: 0 0 .85rem;
  color: #202124;
  font-family: var(--font-head);
  font-size: clamp(.98rem, 1.5vw, 1.08rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  text-wrap: balance;
}
.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 34px;
  padding: .35rem .7rem;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 999px;
  color: #3C4043;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, transform .18s ease, background .18s ease;
}
.hero-trust-list li svg {
  flex: none;
  color: #1A73E8;
  transition: color .18s ease;
}
.hero-trust-list li:hover {
  color: #202124;
  background: #fff;
  border-color: #AECBFA;
  transform: translateY(-1px);
}
.hero-trust-list li:hover svg {
  color: #174EA6;
}
.hero-trust-note {
  max-width: 36rem;
  margin: .8rem 0 0;
  color: #5F6368;
  font-size: .74rem;
  font-weight: 400;
  line-height: 1.45;
  text-wrap: balance;
}

@media (max-width: 720px) {
  .hero-trust {
    padding: .9rem 1rem .95rem;
  }
  .hero-trust-headline {
    font-size: .98rem;
    margin-bottom: .75rem;
  }
  .hero-trust-list {
    gap: .4rem;
  }
  .hero-trust-list li {
    font-size: 13px;
    min-height: 32px;
    padding: .32rem .62rem;
  }
  .hero-trust-note {
    font-size: .72rem;
  }
}

.brand {
  display: inline-block;
  background: var(--mark) center / contain no-repeat;
}
.brand-google     { --mark: url(../img/logos/ai/color/google.svg); }
.brand-chatgpt    { --mark: url(../img/logos/ai/color/chatgpt.svg); }
.brand-gemini     { --mark: url(../img/logos/ai/color/gemini.svg); }
.brand-perplexity { --mark: url(../img/logos/ai/color/perplexity.svg); }
.brand-claude     { --mark: url(../img/logos/ai/color/claude.svg); }
.brand-reddit     { --mark: url(../img/logos/ai/reddit.svg); filter: invert(37%) sepia(99%) saturate(3548%) hue-rotate(354deg) brightness(101%) contrast(105%); }


/* --- client logos --- */
.clients {
  margin-top: clamp(28px, 4vw, 44px);
  text-align: center;
}
.clients-label {
  display: block;
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
}

.clients-viewport {
  padding-inline: var(--pad);
}

.clients-track {
  display: block;
}

.clients-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .65rem;
  padding: .45rem 1.2rem .45rem .45rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--sh-1);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.012em;
  white-space: nowrap;
}
/* every mark ships as the same 256px square, trimmed to equal optical size;
   the ring keeps the white-backed marks from dissolving into the pill */
.client-pill img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(11, 12, 15, .08);
  object-fit: cover;
}


/* ---------------------------------------------------------
   7  Flow — the page-wide spine
   --------------------------------------------------------- */
/* One centred column, read top to bottom: heading, then that step's artefact,
   then the next step. Nothing sits off to a side. */
.flow {
  display: grid;
  gap: clamp(72px, 8vw, 118px);
}

.flow-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(24px, 3vw, 40px);
  text-align: left;
}
/* only the copy centres — artefacts keep their own left-aligned reading order */
.flow-copy {
  position: relative;
  width: 100%;
  max-width: 62ch;
  padding-top: 18px; /* room for the accent bar above the icon */
  text-align: center;
}
.flow-visual {
  width: 100%;
  max-width: 880px;
  min-width: 0;
}

/* Every step hands off to the next one down a live line, so the gaps read as
   one continuous process rather than four separate modules. */
.flow-link {
  position: absolute;
  right: 0;
  bottom: calc(clamp(72px, 8vw, 118px) * -1);
  left: 0;
  z-index: 2;
  height: clamp(72px, 8vw, 118px);
  pointer-events: none;
}
.flow-link svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.handoff-track,
.handoff-flow {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.handoff-track {
  stroke: var(--line);
  stroke-width: 1;
}
.handoff-flow {
  stroke: var(--line-2);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: none;
  animation: none;
  opacity: .85;
}
.flow-link > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .34rem .7rem;
  transform: translate(-50%, -50%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  box-shadow: 0 1px 2px rgba(60,64,67,.06);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 500;
  white-space: nowrap;
}
.flow-link > span i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: none;
}
/* terminal milestone — short stems into the scale bridge */
.flow-link.is-end {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: auto;
  margin-top: clamp(18px, 2.2vw, 28px);
}
.flow-link.is-end > span {
  position: static;
  transform: none;
  margin: 8px 0;
}
.flow-end-stem {
  display: block;
  width: 1px;
  height: 22px;
  background: var(--line);
  flex: none;
}
.flow-end-stem.is-down {
  height: 28px;
}

/* Bridge from published demo → pricing */
.scale-bridge {
  max-width: 34rem;
  margin: clamp(12px, 1.8vw, 20px) auto 0;
  padding: 0 var(--pad);
  text-align: center;
}
.scale-bridge-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-wrap: balance;
}
.scale-bridge-lede {
  margin: .65rem 0 0;
  color: var(--body);
  font-size: clamp(1.125rem, 1.7vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  text-wrap: balance;
}
@keyframes handoffFlow { to { stroke-dashoffset: -30; } }

/* no decorative wash behind headlines — keep the process analytical */
.flow-copy::before { display: none; }

.flow-copy h3 {
  position: relative;
  margin: .15rem 0 .85rem;
  font-size: clamp(2.55rem, 4.6vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.02;
}
[data-stage="sources"] .flow-copy h3 {
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.15rem, 4vw, 3.15rem);
}

.flow-lede {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--body);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.6;
  font-weight: 400;
}

/* step icon — white tile, gray border & glyph; blue only on the timeline dot */
.lede-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto .95rem;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 16px;
  color: #5F6368;
  box-shadow: 0 1px 2px rgba(60,64,67,.06);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  cursor: default;
}
.lede-icon:hover {
  border-color: #AECBFA;
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(60,64,67,.1);
}
.lede-icon svg { width: 22px; height: 22px; }
/* status marker above the icon — the one blue accent */
.lede-icon::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  background: var(--line-2);
  border-radius: 50%;
  box-shadow: none;
  transition: background .35s ease;
}
.stage.is-live:not(.is-done) .lede-icon::before {
  background: #1A73E8;
}
.stage.is-done .lede-icon::before {
  width: 14px;
  height: 14px;
  top: -19px;
  background: var(--card);
  border: 1.5px solid #1A73E8;
  box-shadow: none;
}
.stage.is-done .lede-icon::after {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  width: 4px;
  height: 7px;
  border: solid #1A73E8;
  border-width: 0 1.5px 1.5px 0;
  transform: translateX(-50%) rotate(45deg);
}
/* active / done: tile stays neutral — blue lives on the status dot */
.stage.is-live:not(.is-done) .lede-icon,
.stage.is-done .lede-icon {
  background: #fff;
  border-color: #DADCE0;
  color: #5F6368;
  box-shadow: 0 1px 2px rgba(60,64,67,.06);
}
.stage.is-live:not(.is-done) .lede-icon:hover,
.stage.is-done .lede-icon:hover {
  border-color: #AECBFA;
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(60,64,67,.1);
}

/* four sources sit two-up, then funnel into a single brief */
.converge .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.converge .source-card { gap: .85rem; padding: 1.05rem 1.15rem .95rem; }
.converge .source-card-head b { white-space: nowrap; }
.converge .source-expand { display: none; }

.converge-lines {
  display: block;
  width: 100%;
  height: 58px;
  overflow: visible;
}
.converge-lines path {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  transition: stroke .5s ease;
}
.stage.is-live .converge-lines path {
  stroke: var(--line-2);
  animation: none;
}
@keyframes convergeFlow { to { stroke-dashoffset: -18; } }

.converge-node {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: .85rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  box-shadow: var(--sh-1);
  transition: border-color .35s ease, box-shadow .35s ease;
}
.converge-node > svg { flex: none; color: var(--muted); transition: color .5s ease; }
.converge-node b { display: block; font-family: var(--font-head); font-size: 1rem; }
.converge-node small { color: var(--muted); font-size: .78rem; }
.stage.is-live:not(.is-done) .converge-node {
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(26,115,232,.1), 0 2px 8px rgba(26,115,232,.08);
}
.stage.is-live .converge-node > svg { color: var(--body); }
.stage.is-live:not(.is-done) .converge-node > svg { color: var(--body); }

/* the brief drops into the cruncher */
.converge-stem {
  display: block;
  width: 20px;
  height: 34px;
  margin: 0 auto;
}
.converge-stem path {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  transition: stroke .5s ease;
}
.stage.is-live .converge-stem path {
  stroke: var(--line);
  animation: none;
}

.crunch {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: .95rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  box-shadow: var(--sh-1);
  text-align: left;
}
.crunch-cog {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent);
}
.stage.is-live .crunch-cog svg { animation: cogSpin 5s linear infinite; }
@keyframes cogSpin { to { transform: rotate(360deg); } }

.crunch-body { min-width: 0; }
.crunch-body b { display: block; font-family: var(--font-head); font-size: .98rem; }
.crunch-body small {
  display: block;
  margin-top: .1rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.42;
}

/* five bars ticking over, like a meter working through the numbers */
.crunch-bars {
  display: flex;
  flex: none;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}
.crunch-bars i {
  width: 3px;
  height: 30%;
  background: var(--accent-line);
  border-radius: 99px;
}
.stage.is-live .crunch-bars i { animation: crunchBar 1.1s ease-in-out infinite; }
.crunch-bars i:nth-child(2) { animation-delay: .13s; }
.crunch-bars i:nth-child(3) { animation-delay: .26s; }
.crunch-bars i:nth-child(4) { animation-delay: .39s; }
.crunch-bars i:nth-child(5) { animation-delay: .52s; }
@keyframes crunchBar {
  0%, 100% { height: 26%; background: var(--accent-line); }
  50%      { height: 100%; background: var(--accent); }
}

.article-panel .ship-checks {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

/* scroll-in state, driven by JS — the column rises as you reach it */
.stage .flow-copy,
.stage .flow-visual {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.22, .61, .36, 1);
}

.stage.is-live .flow-copy,
.stage.is-live .flow-visual { opacity: 1; transform: none; }
.stage.is-live .flow-visual { transition-delay: .1s; }

/* Opportunities: panel + heading are always visible; only rows animate later */
.stage[data-stage="ideas"] .flow-copy,
.stage[data-stage="ideas"] .flow-visual {
  opacity: 1;
  transform: none;
}
.stage[data-stage="ideas"] .ideas-panel {
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(26,115,232,.1), 0 2px 8px rgba(26,115,232,.08);
}


/* active stage — slightly more prominent artefact */
.stage.is-live:not(.is-done) .panel {
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(26,115,232,.1), 0 2px 8px rgba(26,115,232,.08);
}

/* --- source cards --- */
.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
  gap: 14px;
}
.source-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem 1.15rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--sh-1);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.source-card:hover {
  border-color: var(--accent-line);
  box-shadow: var(--sh-2);
  transform: translateY(-1px);
}

.source-card-head { display: flex; align-items: center; gap: .7rem; }
.source-card-head b {
  display: block;
  color: var(--ink);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.source-card-head small {
  display: block;
  margin-top: .1rem;
  color: var(--muted);
  font-size: .74rem;
}

.source-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  color: var(--accent);
}
.source-icon.is-logo { background: var(--card); }

.source-metrics {
  display: flex;
  gap: 1.5rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}
.source-metrics > span { display: block; }
.source-metrics em {
  display: block;
  color: var(--ink);
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -.02em;
}
.source-metrics span span {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .04em;
}

.source-expand {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
}
.source-card:hover .source-expand { color: var(--accent-ink); }


/* ---------------------------------------------------------
   7b  Data pipe — sources merge into opportunities
   --------------------------------------------------------- */
.data-pipe {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}
.data-pipe::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  z-index: 0;
  background-image: radial-gradient(rgba(32,33,36,.035) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  opacity: .7;
}
.data-connect,
.data-grid,
.data-merge { position: relative; z-index: 1; }

.data-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  margin: 0 0 .85rem;
  color: #5F6368;
  font-size: .78rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .4s ease, transform .4s ease;
}
.data-pipe.is-connecting .data-connect,
.data-connect.is-on {
  opacity: 1;
  transform: none;
}
.data-pipe.is-ready .data-connect {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
.data-connect i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1A73E8;
  flex: none;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.data-card {
  display: grid;
  gap: .75rem;
  padding: 1rem 1.05rem .9rem;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(60,64,67,.05);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.22,.61,.36,1),
              border-color .3s ease, box-shadow .3s ease;
}
.data-card.is-on,
.data-card.is-ready {
  opacity: 1;
  transform: none;
}
.data-card.is-connecting {
  opacity: 1;
  border-color: #AECBFA;
  box-shadow: 0 1px 2px rgba(26,115,232,.08), 0 6px 16px rgba(26,115,232,.08);
  transform: translateY(-8px);
}
.data-card:hover {
  border-color: #AECBFA;
  box-shadow: 0 2px 8px rgba(60,64,67,.1);
  transform: translateY(-2px);
}
.data-card.is-on:hover,
.data-card.is-ready:hover {
  transform: translateY(-2px);
}
.data-card.is-connecting:hover {
  transform: translateY(-8px);
}
.data-card:hover .data-spark path,
.data-card:hover .data-bars i,
.data-card:hover .data-gaps i {
  filter: brightness(1.06);
}

.data-card-top {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: start;
}
.data-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 10px;
  color: #5F6368;
}
.data-ico.is-ga { color: #5F6368; }
.data-title-row {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
}
.data-card-top b {
  display: block;
  color: #202124;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.data-check {
  width: 14px;
  height: 14px;
  flex: none;
  color: #1A73E8;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .25s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.data-check path {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset .35s ease;
}
.data-card.is-connecting .data-check,
.data-card.is-ready .data-check {
  opacity: 1;
  transform: none;
}
.data-card.is-connecting .data-check path,
.data-card.is-ready .data-check path {
  stroke-dashoffset: 0;
}
.data-card-top small {
  display: block;
  margin-top: .15rem;
  color: #5F6368;
  font-size: .72rem;
}
.data-live {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .18rem .45rem;
  background: #E8F0FE;
  border-radius: 99px;
  color: #1A73E8;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .35s ease, transform .35s ease;
}
.data-card.is-ready .data-live {
  opacity: 1;
  transform: none;
}
.data-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1A73E8;
  flex: none;
}
.data-card.is-ready .data-live i {
  animation: dataLivePulse 2.8s ease-in-out infinite;
}
@keyframes dataLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.data-metrics {
  display: flex;
  gap: 1.35rem;
  padding-top: .15rem;
  border-top: 1px solid #DADCE0;
}
.data-metrics em {
  display: block;
  min-width: 3.2ch;
  color: #202124;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -.02em;
}
.data-metrics span span {
  color: #80868B;
  font-size: .68rem;
}
.data-spark {
  display: block;
  width: 100%;
  height: 28px;
}
.data-spark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s cubic-bezier(.22,.61,.36,1);
}
.data-card.is-drawn .data-spark path {
  stroke-dashoffset: 0;
}
.data-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
}
.data-bars i {
  flex: 1;
  height: 0;
  background: #E8F0FE;
  border-radius: 3px 3px 0 0;
  transition: height 1s cubic-bezier(.22,.61,.36,1);
}
.data-bars i:nth-child(2),
.data-bars i:nth-child(4),
.data-bars i:nth-child(6) { background: #AECBFA; }
.data-card.is-drawn .data-bars i {
  height: var(--h, 50%);
}
.data-bars i:nth-child(1) { transition-delay: 0ms; }
.data-bars i:nth-child(2) { transition-delay: 40ms; }
.data-bars i:nth-child(3) { transition-delay: 80ms; }
.data-bars i:nth-child(4) { transition-delay: 120ms; }
.data-bars i:nth-child(5) { transition-delay: 160ms; }
.data-bars i:nth-child(6) { transition-delay: 200ms; }
.data-gaps {
  display: grid;
  gap: 5px;
}
.data-gaps i {
  display: block;
  height: 5px;
  width: 0;
  background: #1A73E8;
  border-radius: 99px;
  transition: width 1s cubic-bezier(.22,.61,.36,1);
}
.data-gaps i:nth-child(2) { background: #8AB4F8; }
.data-gaps i:nth-child(3) { background: #AECBFA; }
.data-gaps i:nth-child(1) { transition-delay: 0ms; }
.data-gaps i:nth-child(2) { transition-delay: 50ms; background: #8AB4F8; }
.data-gaps i:nth-child(3) { transition-delay: 100ms; background: #AECBFA; }
.data-card.is-drawn .data-gaps i {
  width: var(--w, 70%);
}

/* Idle micro-motion — only after ready, very subtle, infrequent */
.data-pipe.is-ready .data-card.is-ready .data-spark path {
  animation: dataSparkIdle 18s ease-in-out infinite;
}
.data-pipe.is-ready .data-card.is-ready .data-bars i {
  animation: dataBarIdle 16s ease-in-out infinite;
}
.data-pipe.is-ready .data-card.is-ready .data-gaps i {
  animation: dataGapIdle 17s ease-in-out infinite;
}
.data-pipe.is-ready .data-card.is-ready .data-bars i:nth-child(2) { animation-delay: .4s; }
.data-pipe.is-ready .data-card.is-ready .data-bars i:nth-child(3) { animation-delay: .8s; }
.data-pipe.is-ready .data-card.is-ready .data-bars i:nth-child(4) { animation-delay: 1.1s; }
.data-pipe.is-ready .data-card.is-ready .data-gaps i:nth-child(2) { animation-delay: .6s; }
.data-pipe.is-ready .data-card.is-ready .data-gaps i:nth-child(3) { animation-delay: 1s; }
@keyframes dataSparkIdle {
  0%, 88%, 100% { transform: translateY(0); }
  94% { transform: translateY(-1.5px); }
}
@keyframes dataBarIdle {
  0%, 86%, 100% { transform: scaleY(1); transform-origin: bottom; }
  93% { transform: scaleY(1.04); transform-origin: bottom; }
}
@keyframes dataGapIdle {
  0%, 87%, 100% { transform: scaleX(1); transform-origin: left; }
  94% { transform: scaleX(1.03); transform-origin: left; }
}

.data-merge {
  display: grid;
  justify-items: center;
  height: 56px;
  margin: 2px 0 0;
}
.data-merge-paths {
  display: block;
  width: min(100%, 640px);
  height: 56px;
  overflow: visible;
}
.data-merge-track {
  fill: none;
  stroke: #DADCE0;
  stroke-width: 1.25;
}
.data-merge-pulse {
  fill: none;
  stroke: #1A73E8;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-dasharray: 14 240;
  stroke-dashoffset: 260;
  opacity: 0;
}
.data-merge-pulse.is-run {
  opacity: 1;
  animation: dataPulse .85s ease forwards;
}
@keyframes dataPulse {
  to { stroke-dashoffset: 0; opacity: 0; }
}
.data-merge-line {
  display: none;
  width: 1px;
  height: 36px;
  background: #DADCE0;
}

.data-brief {
  width: min(100%, 520px);
  margin: .35rem auto 0;
  padding: 1.15rem 1.25rem 1.05rem;
  background: #fff;
  border: 1px solid #AECBFA;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(26,115,232,.06), 0 8px 24px rgba(26,115,232,.05);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1);
  transition-delay: .35s;
}
.data-pipe.is-in .data-brief {
  opacity: 1;
  transform: none;
}
.data-brief-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .55rem;
  color: #1A73E8;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.data-brief > b {
  display: block;
  margin: 0 0 .7rem;
  color: #202124;
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: -.02em;
}
.data-brief ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem .85rem;
  margin: 0 0 .9rem;
  padding: 0;
  list-style: none;
}
.data-brief li {
  position: relative;
  padding-left: .85rem;
  color: #5F6368;
  font-size: .82rem;
}
.data-brief li::before {
  content: "";
  position: absolute;
  top: .45em;
  left: 0;
  width: 5px;
  height: 5px;
  background: #1A73E8;
  border-radius: 50%;
}
.data-brief-progress {
  display: block;
  height: 3px;
  overflow: hidden;
  background: #E8F0FE;
  border-radius: 99px;
}
.data-brief-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #1A73E8;
  border-radius: inherit;
  transition: width .7s ease;
  transition-delay: .55s;
}
.data-pipe.is-in .data-brief-progress i { width: 100%; }

.data-score {
  width: min(100%, 520px);
  margin: 12px auto 0;
  padding: 1.05rem 1.15rem;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(60,64,67,.05);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1);
  transition-delay: .55s;
}
.data-pipe.is-in .data-score {
  opacity: 1;
  transform: none;
}
.data-score-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: .7rem;
  margin-bottom: .85rem;
}
.data-score-head .data-ico { color: #5F6368; }
.data-score-head b {
  display: block;
  color: #202124;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
.data-score-head small {
  display: block;
  margin-top: .25rem;
  color: #5F6368;
  font-size: .8rem;
  line-height: 1.4;
}
.data-score-rows {
  display: grid;
  gap: .55rem;
}
.data-score-rows > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
}
.data-score-rows span {
  color: #5F6368;
  font-size: .78rem;
  font-weight: 500;
}
.data-score-rows i {
  display: block;
  height: 6px;
  overflow: hidden;
  background: #E8EAED;
  border-radius: 99px;
}
.data-score-rows em {
  display: block;
  width: 0;
  height: 100%;
  background: #1A73E8;
  border-radius: inherit;
  transition: width .65s ease;
  transition-delay: .7s;
}
.data-pipe.is-in .data-score-rows em { width: var(--v, 50%); }

.data-topic {
  width: min(100%, 520px);
  margin: 12px auto 0;
  padding: 1.05rem 1.15rem 1.1rem;
  background: #fff;
  border: 1px solid #1A73E8;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(26,115,232,.08), 0 6px 18px rgba(26,115,232,.06);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1);
  transition-delay: .78s;
}
.data-pipe.is-in .data-topic {
  opacity: 1;
  transform: none;
}
.data-topic-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .55rem;
  padding: .2rem .55rem;
  background: #E8F0FE;
  border-radius: 99px;
  color: #1A73E8;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.data-topic-status i {
  width: 6px;
  height: 6px;
  background: #1A73E8;
  border-radius: 50%;
}
.data-topic > b {
  display: block;
  margin: 0 0 .45rem;
  color: #202124;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
.data-topic p {
  margin: 0 0 .55rem;
  color: #202124;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.data-topic-meta {
  color: #5F6368;
  font-size: .78rem;
}

@media (max-width: 720px) {
  .data-grid { grid-template-columns: 1fr; }
  .data-merge-paths { display: none; }
  .data-merge-line { display: block; }
  .data-brief ul { grid-template-columns: 1fr; }
  .data-score-rows > div { grid-template-columns: 6.2rem minmax(0, 1fr); }
  .data-card-top { grid-template-columns: 36px minmax(0, 1fr); }
  .data-live { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .data-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .data-connect { opacity: 0 !important; }
  .data-live,
  .data-check { opacity: 1 !important; transform: none !important; }
  .data-check path { stroke-dashoffset: 0 !important; }
  .data-spark path { stroke-dashoffset: 0 !important; transition: none !important; }
  .data-bars i { height: var(--h, 50%) !important; transition: none !important; }
  .data-gaps i { width: var(--w, 70%) !important; transition: none !important; }
  .data-live i,
  .data-pipe.is-ready .data-card.is-ready .data-spark path,
  .data-pipe.is-ready .data-card.is-ready .data-bars i,
  .data-pipe.is-ready .data-card.is-ready .data-gaps i {
    animation: none !important;
  }
  .data-merge-pulse {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* ---------------------------------------------------------
   8  Panels & article ideas  (legacy source styles retained)
   --------------------------------------------------------- */
.panel {
  padding: clamp(18px, 2.6vw, 26px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--sh-1);
}

.panel-note {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: .88rem;
}
.panel-note b { font-family: var(--font-num); font-variant-numeric: tabular-nums; color: var(--accent); }

.ideas-panel { padding-bottom: clamp(16px, 2.2vw, 22px); }
.ideas-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.ideas-head b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.ideas-head small { color: var(--muted); font-size: .82rem; }

.idea-tabs {
  display: inline-flex;
  flex: none;
  padding: 3px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.idea-tab {
  padding: .42rem .75rem;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font: inherit;
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--t), background var(--t), box-shadow var(--t);
}
.idea-tab:hover { color: var(--ink); }
.idea-tab.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(11,12,15,.1);
}
.idea-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Category pills — the queue is a sample, so let people load their own vertical */
.idea-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.idea-cats-label {
  margin-right: .25rem;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 600;
}
.idea-cat {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .4rem .72rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--body);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color var(--t), background var(--t), border-color var(--t), box-shadow var(--t);
}
.idea-cat i {
  font-size: .95rem;
  font-style: normal;
  line-height: 1;
}
.idea-cat:hover { border-color: var(--line-2); color: var(--ink); }
.idea-cat.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 1px 6px rgba(11,12,15,.16);
}
.idea-cat:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.idea-pane[hidden] { display: none; }
.idea-pane-intro {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 .85rem;
  color: var(--body);
  font-size: .82rem;
  line-height: 1.4;
}
.idea-kind {
  flex: none;
  padding: .18rem .5rem;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 700;
}
.idea-kind.is-evergreen {
  background: var(--green-soft);
  color: var(--green);
}
.idea-kind.is-news {
  background: #fff0e8;
  color: #d94d0b;
}

.rss-flow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  margin-bottom: .9rem;
  padding: .85rem .95rem;
  background: linear-gradient(120deg, #fff7f1, var(--card));
  border: 1px solid #ffd8c2;
  border-radius: var(--r-2);
}
.rss-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #ff5a1f;
  border-radius: 9px;
  color: #fff;
}
.rss-flow b { display: block; font-size: .88rem; }
.rss-flow small {
  display: block;
  margin-top: .1rem;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.35;
}
.rss-live {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--green);
  font-size: .7rem;
  font-weight: 700;
}
.rss-live i {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--green-soft);
}

.ideas-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px 110px;
  gap: 1rem;
  padding: 0 .95rem .45rem;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1.2;
}
.ideas-columns span:nth-child(2) { text-align: center; }
.ideas-columns span:last-child { text-align: right; }

.ideas { display: grid; gap: 8px; }
.ideas li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px 110px;
  align-items: center;
  gap: 1rem;
  padding: .8rem .95rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    opacity .45s ease,
    transform .5s cubic-bezier(.22, .9, .3, 1),
    filter .3s ease;
}
.ideas li.is-in {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.idea-picked-badge {
  position: absolute;
  top: -.45rem;
  left: .75rem;
  z-index: 2;
  display: none;
  padding: .16rem .5rem;
  background: var(--green);
  border-radius: 99px;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(24,128,56,.28);
}
.ideas-panel.has-pick .ideas li:not(.is-picked).is-in {
  opacity: .42;
  filter: saturate(.7);
}
.ideas li.is-picked {
  z-index: 2;
  background: var(--green-soft);
  border-color: #81C995;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--green) 28%, transparent),
    0 4px 14px rgba(24,128,56,.12);
}
.ideas li.is-picked .idea-picked-badge {
  display: inline-block;
  animation: ideaBadgeIn .35s ease both;
}
.ideas li.is-picked .idea-title {
  color: var(--ink);
  font-weight: 700;
}
.ideas li.is-picked .idea-score b { color: var(--green); }
.ideas li.is-picked .idea-score i {
  background: color-mix(in srgb, var(--green) 16%, #fff);
}
.ideas li.is-picked .idea-score i em { background: var(--green); }
@keyframes ideaBadgeIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: none; }
}

/* Selected pop — no layout-shifting scale */
.ideas-panel.is-streaming .ideas li.is-picked.is-in {
  animation: ideaPickFlash .45s ease both;
}
@keyframes ideaPickFlash {
  0%   { background: var(--wash); border-color: var(--line); box-shadow: none; }
  40%  { background: var(--green-soft); border-color: #81C995; }
  100% {
    background: var(--green-soft);
    border-color: #81C995;
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--green) 28%, transparent),
      0 4px 14px rgba(24,128,56,.12);
  }
}

/* Settled / no-JS: keep the top opportunity visibly selected */
.ideas-panel:not(.is-streaming) .ideas li.is-selected,
.ideas-panel.has-pick .ideas li.is-picked {
  background: var(--green-soft);
  border-color: #81C995;
}
.ideas-panel:not(.is-streaming) .ideas li.is-selected .idea-picked-badge {
  display: inline-block;
}
.ideas-panel:not(.is-streaming) .ideas li.is-selected .idea-title { font-weight: 700; }
.ideas-panel:not(.is-streaming) .ideas li.is-selected .idea-score b { color: var(--green); }
.ideas-panel:not(.is-streaming) .ideas li.is-selected .idea-score i em { background: var(--green); }

.queue-live {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: .5rem;
  padding: .16rem .5rem;
  background: var(--green-soft);
  border-radius: 99px;
  color: var(--green);
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 700;
  vertical-align: middle;
}
.queue-live i {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.ideas-panel.is-streaming .queue-live i { animation: pulse 1.6s ease-in-out infinite; }
.idea-title {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.idea-state {
  flex: none;
  padding: .2rem .55rem;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
}
.idea-state.is-evergreen {
  background: var(--green-soft);
  border-color: transparent;
  color: var(--green);
}
.idea-state.is-news {
  background: #fff0e8;
  border-color: transparent;
  color: #d94d0b;
}

/* confidence: a short track plus the number it settles on */
.idea-score {
  display: flex;
  flex: none;
  align-items: center;
  gap: .6rem;
}
.idea-score i {
  position: relative;
  display: block;
  width: 68px;
  height: 5px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.idea-score i em {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--c);
  background: var(--accent);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
}
.stage.is-live .idea-score i em {
  animation: growX .9s cubic-bezier(.22,.9,.3,1) forwards;
}
/* Opportunities: bars fill only as each row lands */
.stage[data-stage="ideas"] .idea-score i em {
  animation: none;
  transform: scaleX(0);
}
.stage[data-stage="ideas"] .ideas li.is-in .idea-score i em {
  animation: growX .85s cubic-bezier(.22,.9,.3,1) forwards;
}
@keyframes growX { to { transform: scaleX(1); } }

.idea-score b {
  min-width: 2.5ch;
  color: var(--ink);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: .88rem;
  font-weight: 600;
  text-align: right;
}


/* ---------------------------------------------------------
   9  Draft — live workspace (editor + task cards)
   --------------------------------------------------------- */
.flow-visual.is-draft {
  max-width: 1080px;
}

.draft-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(240px, 1fr);
  gap: 14px;
  align-items: start;
}

.draft-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(60,64,67,.06), 0 4px 14px rgba(60,64,67,.05);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .5s cubic-bezier(.22,.9,.3,1), border-color .35s ease, box-shadow .35s ease;
}
.stage.is-live .draft-preview.is-in,
.draft-preview.is-ready {
  opacity: 1;
  transform: none;
}
.draft-preview.is-writing {
  border-color: #AECBFA;
  box-shadow: 0 1px 2px rgba(26,115,232,.08), 0 6px 18px rgba(26,115,232,.07);
}
.draft-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .85rem;
  background: #F8F9FA;
  border-bottom: 1px solid #E8EAED;
}
.draft-applying {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  color: #5F6368;
  font-size: .68rem;
  font-weight: 600;
}
.draft-applying i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #DADCE0;
  flex: none;
}
.draft-preview.is-writing .draft-applying {
  color: #174EA6;
}
.draft-preview.is-writing .draft-applying i {
  background: #1A73E8;
}
.draft-applying em {
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.draft-preview-meta {
  color: #80868B;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex: none;
}
.draft-doc {
  padding: .75rem .9rem 1rem;
  min-height: 460px;
  max-height: 560px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.draft-block {
  position: relative;
  margin: 0 0 .65rem;
  color: #202124;
  font-size: .8rem;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(4px);
  transition:
    opacity .65s cubic-bezier(.22,.9,.3,1),
    transform .7s cubic-bezier(.22,.9,.3,1),
    max-height .7s cubic-bezier(.22,.9,.3,1),
    margin .45s ease,
    background .55s ease,
    box-shadow .55s ease;
}
.draft-block.is-in {
  opacity: 1;
  max-height: 320px;
  transform: none;
}
.draft-block.is-fresh {
  background: rgba(232,240,254,.55);
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow: 0 0 0 2px rgba(232,240,254,.55);
}
.draft-block.is-title {
  margin: 0 0 .35rem;
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.22;
  color: #202124;
}
.draft-block.is-title.is-in { max-height: 88px; }
.draft-block.is-dek {
  margin: 0 0 .85rem;
  color: #5F6368;
  font-size: .78rem;
  line-height: 1.4;
}
.draft-block.is-dek.is-in { max-height: 56px; }
.draft-block.is-subhead {
  margin: 1rem 0 .4rem;
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
  color: #202124;
}
.draft-block.is-subhead.is-in { max-height: 52px; }
.draft-block.is-subhead:first-of-type,
.draft-block.is-title + .draft-block.is-subhead,
.draft-block.is-dek + .draft-block.is-subhead {
  margin-top: .55rem;
}
.draft-block.is-list {
  padding-left: 1.15rem;
  list-style: disc;
}
.draft-block.is-list.is-numbered {
  list-style: decimal;
}
.draft-block.is-list.is-in {
  max-height: 180px;
  overflow: visible;
}
.draft-block.is-list li {
  margin: 0 0 .28rem;
  padding-left: .1rem;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity .55s cubic-bezier(.22,.9,.3,1),
    transform .6s cubic-bezier(.22,.9,.3,1);
}
.draft-block.is-list li.is-in {
  opacity: 1;
  transform: none;
}
.draft-block.is-list li::marker { color: #5F6368; }
.draft-block strong { font-weight: 700; }
.draft-block.is-quote {
  margin: .55rem 0 .85rem;
  color: #3C4043;
  font-style: italic;
  padding: .55rem .75rem;
  background: #F8F9FA;
  border: 1px solid #E8EAED;
  border-left: 3px solid #1A73E8;
  border-radius: 0 8px 8px 0;
}
.draft-block.is-quote.is-in { max-height: 160px; }
.draft-block.is-quote cite {
  display: block;
  margin-top: .35rem;
  color: #80868B;
  font-size: .66rem;
  font-style: normal;
  font-weight: 600;
}
.draft-block.is-table-wrap {
  margin: .45rem 0 .75rem;
  padding: 0;
  border: 1px solid #DADCE0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.draft-block.is-table-wrap.is-in { max-height: 220px; }
.draft-block.is-table-wrap.is-fresh {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232,240,254,.7);
}
.draft-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .7rem;
  line-height: 1.35;
}
.draft-table th,
.draft-table td {
  padding: .45rem .55rem;
  border-bottom: 1px solid #E8EAED;
  text-align: left;
  vertical-align: top;
}
.draft-table th {
  background: #F8F9FA;
  color: #5F6368;
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.draft-table td { color: #202124; }
.draft-table tr:last-child td { border-bottom: none; }
.draft-table tbody tr:nth-child(even) td { background: #FCFCFD; }
.draft-block.is-embed {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  margin: .75rem 0;
  padding: .7rem;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(60,64,67,.06);
  font-size: .74rem;
  font-style: normal;
  color: #3C4043;
}
.draft-block.is-embed.is-in { max-height: 140px; }
.draft-block.is-embed.is-fresh {
  background: #fff;
  box-shadow: 0 0 0 3px #E8F0FE, 0 1px 2px rgba(60,64,67,.06);
}
.draft-block.is-figure {
  margin: .85rem 0 .95rem;
  padding: 0;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 8px;
  overflow: hidden;
  font-style: normal;
}
.draft-block.is-figure.is-featured {
  margin: 0 0 .9rem;
  border-radius: 10px;
}
.draft-block.is-figure.is-in { max-height: 280px; }
.draft-block.is-figure.is-featured.is-in { max-height: 340px; }
.draft-block.is-figure.is-fresh {
  background: #fff;
  box-shadow: 0 0 0 3px #E8F0FE;
}
.draft-block.is-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #F1F3F4;
  vertical-align: top;
}
.draft-block.is-figure.is-featured img {
  aspect-ratio: 2 / 1;
  max-height: 220px;
}
.draft-block.is-figure figcaption {
  margin: 0;
  padding: .4rem .65rem .5rem;
  background: #F8F9FA;
  border-top: 1px solid #E8EAED;
  color: #5F6368;
  font-size: .66rem;
  line-height: 1.35;
}
.draft-embed-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #E8EAED;
  background: #F8F9FA;
}
.draft-embed-body {
  display: grid;
  gap: .18rem;
  min-width: 0;
}
.draft-embed-brand {
  color: #80868B;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.draft-embed-body b {
  color: #0B79BF;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.draft-embed-meta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #5F6368;
  font-size: .66rem;
}
.draft-stars {
  color: #F3A847;
  letter-spacing: .02em;
  font-size: .7rem;
  line-height: 1;
}
.draft-embed-price {
  color: #202124;
  font-size: .84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.draft-embed-price small {
  margin-left: .25rem;
  padding: .08rem .35rem;
  background: #232F3E;
  border-radius: 3px;
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: middle;
}
.draft-embed-cta {
  justify-self: start;
  margin-top: .2rem;
  padding: .28rem .65rem;
  background: #F0C14B;
  border: 1px solid #A88734;
  border-radius: 4px;
  color: #111;
  font-size: .66rem;
  font-weight: 650;
  line-height: 1.2;
}
.draft-block.is-editor {
  margin: .7rem 0 0;
  padding: .45rem .6rem;
  background: #E8F0FE;
  border: 1px solid #AECBFA;
  border-radius: 8px;
  color: #174EA6;
  font-size: .72rem;
  font-weight: 600;
}
.draft-block.is-editor.is-in { max-height: 56px; }
.draft-link {
  color: #1A0DAB;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: background .35s ease, box-shadow .35s ease;
}
.draft-block.is-fresh .draft-link {
  background: #FEF7E0;
  box-shadow: 0 0 0 2px #FEF7E0;
  border-radius: 2px;
}
.draft-caret {
  display: none;
  width: 1.5px;
  height: .95em;
  margin-left: 2px;
  background: #1A73E8;
  vertical-align: -0.08em;
}
.draft-block.is-active .draft-caret {
  display: inline-block;
  animation: draftCaret 1s steps(1) infinite;
}
.draft-preview.is-complete .draft-caret { display: none; animation: none; }
@keyframes draftCaret { 50% { opacity: 0; } }

.draft-wordbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .85rem .65rem;
  border-top: 1px solid #E8EAED;
  background: #F8F9FA;
}
.draft-words {
  margin: 0;
  color: #202124;
  font-size: .78rem;
  font-weight: 600;
}
.draft-words b {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  color: #1A73E8;
  font-weight: 700;
}
.draft-words-note {
  margin: 0;
  color: #80868B;
  font-size: .66rem;
  font-weight: 500;
  text-align: right;
}

/* Task cards — background workers */
.draft-tasks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.draft-task {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: .55rem;
  padding: .55rem .6rem .55rem .55rem;
  background: #fff;
  border: 1px solid #DADCE0;
  border-left: 3px solid #DADCE0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(60,64,67,.04);
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.stage.is-drafting .draft-task:not(.is-running):not(.is-done) {
  opacity: .72;
}
.draft-task.is-running {
  opacity: 1;
  border-color: #DADCE0;
  border-left-color: #1A73E8;
  background: #fff;
  box-shadow: 0 1px 2px rgba(26,115,232,.06);
}
.draft-task.is-done {
  opacity: 1;
  border-left-color: #1A73E8;
  background: #F8FBFF;
  box-shadow: 0 1px 2px rgba(60,64,67,.04);
}
.draft-task.is-editor.is-running {
  border-color: #AECBFA;
  border-left-color: #1A73E8;
  background: #E8F0FE;
  animation: draftEditorPulse 1.1s ease-in-out 1;
}
.draft-task.is-editor.is-done {
  border-color: #AECBFA;
  background: #E8F0FE;
}
@keyframes draftEditorPulse {
  0%, 100% { box-shadow: 0 1px 2px rgba(26,115,232,.06); }
  50% { box-shadow: 0 0 0 3px rgba(26,115,232,.12); }
}

.draft-task-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #fff;
  border: 1px solid #E8EAED;
  border-radius: 6px;
  color: #5F6368;
}
.draft-task-logo.is-icon { color: #5F6368; }
.draft-task.is-running .draft-task-logo.is-icon,
.draft-task.is-done .draft-task-logo.is-icon {
  color: #1A73E8;
  border-color: #AECBFA;
  background: #E8F0FE;
}
.draft-task-logo img {
  width: auto;
  max-width: 16px;
  max-height: 16px;
}

.draft-task-body {
  min-width: 0;
}
.draft-task-body b {
  display: block;
  color: #202124;
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.draft-task-body small {
  display: block;
  margin-top: .12rem;
  color: #80868B;
  font-size: .62rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.draft-task.is-running .draft-task-body small {
  color: #174EA6;
  font-weight: 600;
}
.draft-task.is-done .draft-task-body small {
  color: #1A73E8;
  font-weight: 600;
}

.draft-task-mark {
  position: relative;
  width: 16px;
  height: 16px;
  color: #1A73E8;
}
.draft-spinner,
.draft-task-check {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
}
.draft-spinner {
  border: 1.5px solid #AECBFA;
  border-top-color: #1A73E8;
  border-radius: 50%;
  box-sizing: border-box;
}
.draft-task.is-running .draft-spinner {
  opacity: 1;
  animation: draftSpin .7s linear infinite;
}
.draft-task-check {
  width: 16px;
  height: 16px;
}
.draft-task-check path {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  transition: stroke-dashoffset .35s ease;
}
.draft-task.is-done .draft-spinner { opacity: 0; animation: none; }
.draft-task.is-done .draft-task-check { opacity: 1; }
.draft-task.is-done .draft-task-check path { stroke-dashoffset: 0; }
@keyframes draftSpin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .draft-workspace {
    grid-template-columns: 1fr;
  }
  .draft-tasks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .draft-doc {
    min-height: 320px;
    max-height: 420px;
  }
}

@media (max-width: 560px) {
  .draft-tasks { grid-template-columns: 1fr; }
  .draft-wordbar {
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
  }
  .draft-words-note { text-align: left; }
}

/* Draft handoff pill crossfade */
.flow-link > .flow-status {
  display: inline-grid;
  place-items: center;
}
.flow-status-label {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.flow-status-label.is-on { opacity: 1; }
.flow-link .flow-status-label i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: none;
}
.stage[data-stage="sources"] .flow-link.is-active > span {
  box-shadow: 0 0 0 1px color-mix(in srgb, #1A73E8 24%, transparent);
}
.stage[data-stage="sources"].is-live .handoff-flow {
  stroke: #1A73E8;
  stroke-dasharray: 4 6;
  animation: handoffFlow 1.1s linear infinite;
  opacity: 1;
}

/* ---------------------------------------------------------
   10  WordPress admin — Posts → open → Publish
   --------------------------------------------------------- */
.wp-admin {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: #1d2327;
  box-shadow: var(--sh-2);
  user-select: none;
}
.wp-top {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .85rem;
  background: #1d2327;
  color: rgba(255,255,255,.72);
  font-size: .72rem;
}
.wp-dots { display: flex; gap: 5px; }
.wp-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3c434a; }
.wp-dots i:nth-child(1) { background: #F0655A; }
.wp-dots i:nth-child(2) { background: #F2BD4C; }
.wp-dots i:nth-child(3) { background: #61C556; }
.wp-url {
  flex: 1;
  min-width: 0;
  padding: .28rem .6rem;
  background: #2c3338;
  border-radius: 4px;
  color: rgba(255,255,255,.78);
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-user { color: rgba(255,255,255,.55); font-weight: 600; }

.wp-shell {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 340px;
  background: #f0f0f1;
}

.wp-side {
  padding: .85rem .55rem;
  background: #1d2327;
  color: rgba(240,246,252,.78);
  font-size: .72rem;
}
.wp-brand {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 .35rem .9rem;
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
}
.wp-brand i {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: #2271b1;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.wp-nav { display: grid; gap: 2px; }
.wp-nav li {
  position: relative;
  padding: .48rem .55rem;
  border-radius: 3px;
  transition: background .2s ease, color .2s ease;
}
.wp-nav li.is-posts {
  font-weight: 650;
}
.wp-admin[data-wp-phase="posts"] .wp-nav li.is-posts,
.wp-admin[data-wp-phase="open"] .wp-nav li.is-posts,
.wp-admin[data-wp-phase="editor"] .wp-nav li.is-posts,
.wp-admin[data-wp-phase="publish"] .wp-nav li.is-posts,
.wp-admin[data-wp-phase="done"] .wp-nav li.is-posts {
  background: #2271b1;
  color: #fff;
}

.wp-main {
  position: relative;
  min-width: 0;
  padding: 1rem 1.1rem 1.15rem;
  background: #f0f0f1;
  color: #1d2327;
}
.wp-view[hidden] { display: none !important; }
.wp-view > b,
.wp-view-head b {
  display: block;
  margin-bottom: .55rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -.02em;
}
.wp-view.is-dash > p {
  margin: 0 0 .7rem;
  color: #646970;
  font-size: .78rem;
}
.wp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.wp-cards span {
  padding: .7rem .65rem;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  color: #646970;
  font-size: .68rem;
}
.wp-cards em {
  display: block;
  color: #1d2327;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 700;
}

.wp-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .7rem;
}
.wp-view-head b { margin: 0; }

.wp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .42rem .8rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #2271b1;
  color: #fff;
  font: inherit;
  font-size: .74rem;
  font-weight: 650;
  cursor: default;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.wp-btn.is-ghost {
  background: #fff;
  border-color: #2271b1;
  color: #2271b1;
}
.wp-btn.is-publish {
  min-width: 88px;
  background: #2271b1;
  box-shadow: 0 1px 0 #135e96;
}
.wp-admin[data-wp-phase="publish"] .wp-btn.is-publish,
.wp-admin[data-wp-phase="done"] .wp-btn.is-publish {
  background: #135e96;
  transform: scale(.96);
}

.wp-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 3px;
  overflow: hidden;
  font-size: .72rem;
}
.wp-table th,
.wp-table td {
  padding: .55rem .65rem;
  border-bottom: 1px solid #f0f0f1;
  text-align: left;
}
.wp-table th {
  background: #f6f7f7;
  color: #2c3338;
  font-weight: 650;
}
.wp-table tr:last-child td { border-bottom: 0; }
.wp-table tr[data-wp-target="row"] {
  transition: background .2s ease, box-shadow .2s ease;
}
.wp-admin[data-wp-phase="open"] .wp-table tr[data-wp-target="row"],
.wp-admin[data-wp-phase="editor"] .wp-table tr[data-wp-target="row"] {
  background: #f0f6fc;
  box-shadow: inset 3px 0 0 #2271b1;
}

.wp-pill {
  display: inline-block;
  padding: .12rem .4rem;
  border-radius: 99px;
  font-size: .62rem;
  font-weight: 700;
}
.wp-pill.is-draft { background: #fcf9e8; color: #996800; }
.wp-pill.is-live { background: #edfaef; color: #007017; }

.wp-loading {
  position: absolute;
  inset: auto 1.1rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  background: #1d2327;
  border-radius: 4px;
  color: #fff;
  font-size: .72rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.wp-loading i {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #72aee6;
  border-radius: 50%;
  animation: wpSpin .7s linear infinite;
}
.wp-admin[data-wp-phase="open"] .wp-loading {
  opacity: 1;
  transform: none;
}
@keyframes wpSpin { to { transform: rotate(360deg); } }

.wp-editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin: -.15rem 0 .8rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid #dcdcde;
  color: #646970;
  font-size: .78rem;
  font-weight: 600;
}
.wp-editor-body {
  max-height: 220px;
  overflow: hidden;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .45s cubic-bezier(.22,.9,.3,1);
}
.wp-admin[data-wp-phase="editor"] .wp-editor-body,
.wp-admin[data-wp-phase="publish"] .wp-editor-body,
.wp-admin[data-wp-phase="done"] .wp-editor-body {
  opacity: 1;
  transform: none;
}
.wp-editor-body h5 {
  margin: 0 0 .55rem;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.wp-feat {
  margin: 0 0 .55rem;
  overflow: hidden;
  border-radius: 4px;
  background: #e8eaed;
  border: 1px solid #dcdcde;
}
.wp-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  max-height: 112px;
  object-fit: cover;
  object-position: 55% 40%;
}
.wp-editor-body p {
  margin: 0 0 .5rem;
  color: #3c434a;
  font-size: .74rem;
  line-height: 1.55;
}
.wp-editor-body p:last-child { margin-bottom: 0; }
.wp-infographic {
  display: grid;
  gap: .2rem;
  padding: .55rem .65rem;
  background: #f0f6fc;
  border: 1px solid #c5d9ed;
  border-radius: 3px;
  color: #0a4b78;
  font-size: .68rem;
}
.wp-infographic span:first-child { font-weight: 700; }

.wp-toast {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .75rem;
  background: #fff;
  border: 1px solid #c3c4c7;
  border-left: 4px solid #00a32a;
  border-radius: 3px;
  color: #1d2327;
  font-size: .74rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.wp-toast i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00a32a;
}
.wp-admin[data-wp-phase="done"] .wp-toast {
  opacity: 1;
  transform: none;
}

/* cursor that walks Posts → row → Publish — position set in JS from the
   real target rects so it still lands after layout shifts */
.wp-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 16px;
  height: 16px;
  background: #111;
  clip-path: polygon(0 0, 0 100%, 28% 72%, 55% 100%, 68% 92%, 42% 62%, 100% 62%);
  opacity: 0;
  transform: translate(72px, 150px);
  transition: transform .7s cubic-bezier(.22,.9,.3,1), opacity .2s ease;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.wp-admin.is-playing .wp-cursor { opacity: 1; }
.wp-admin[data-wp-phase="done"] .wp-cursor { opacity: 0; }

.wp-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin: 0;
  padding: .7rem .85rem .85rem;
  background: #f0f0f1;
  border-top: 1px solid #dcdcde;
  list-style: none;
}
.wp-caption li {
  padding: .28rem .65rem;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 99px;
  color: #646970;
  font-size: .68rem;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.wp-admin[data-wp-phase="posts"] .wp-caption li[data-wp-cap="posts"],
.wp-admin[data-wp-phase="open"] .wp-caption li[data-wp-cap="open"],
.wp-admin[data-wp-phase="editor"] .wp-caption li[data-wp-cap="publish"],
.wp-admin[data-wp-phase="publish"] .wp-caption li[data-wp-cap="publish"],
.wp-admin[data-wp-phase="done"] .wp-caption li[data-wp-cap="publish"] {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

@media (max-width: 680px) {
  .wp-shell { grid-template-columns: 108px minmax(0, 1fr); min-height: 300px; }
  .wp-side { padding: .7rem .35rem; font-size: .64rem; }
  .wp-brand { font-size: .68rem; }
  .wp-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .wp-cursor,
  .wp-editor-body,
  .wp-loading,
  .wp-toast { transition: none; }
  .wp-loading i { animation: none; }
}

/* ---------------------------------------------------------
   10b  Audience demo — WP publish → AI Overview citation
   --------------------------------------------------------- */
.audience-demo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11.2;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(60,64,67,.06), 0 8px 24px rgba(60,64,67,.06);
  user-select: none;
}
.audience-chrome {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .85rem;
  background: #F8F9FA;
  border-bottom: 1px solid #DADCE0;
}
.audience-dots { display: flex; gap: 5px; }
.audience-dots i {
  width: 8px; height: 8px; border-radius: 50%; background: #DADCE0;
}
.audience-dots i:nth-child(1) { background: #F0655A; }
.audience-dots i:nth-child(2) { background: #F2BD4C; }
.audience-dots i:nth-child(3) { background: #61C556; }
.audience-url {
  flex: 1;
  min-width: 0;
  padding: .32rem .7rem;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 99px;
  color: #5F6368;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: .72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.audience-demo[data-phase="to-search"] .audience-url,
.audience-demo[data-phase="typing"] .audience-url {
  border-color: #AECBFA;
  box-shadow: 0 0 0 3px #E8F0FE;
}

.audience-stage {
  position: relative;
  height: calc(100% - 42px);
  background: #fff;
}
.audience-scene {
  position: absolute;
  inset: 0;
  transition: opacity .55s ease, transform .55s ease;
}
.audience-scene[hidden] { display: none !important; }
.audience-scene.is-leaving {
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
}
.audience-scene.is-entering {
  opacity: 0;
  transform: translateX(14px);
}
.audience-demo[data-phase="to-search"] .audience-scene.is-search,
.audience-demo[data-phase="typing"] .audience-scene.is-search,
.audience-demo[data-phase="overview"] .audience-scene.is-search,
.audience-demo[data-phase="cite"] .audience-scene.is-search,
.audience-demo[data-phase="proof"] .audience-scene.is-search {
  opacity: 1;
  transform: none;
}

/* WP scene inside audience */
.audience-scene.is-wp {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  background: #f0f0f1;
}
.audience-scene.is-wp .wp-side { height: 100%; }
.audience-scene.is-wp .wp-nav li.is-active {
  background: #2271b1;
  color: #fff;
}
.audience-scene.is-wp .wp-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: .75rem .85rem .8rem;
  background: #f0f0f1;
}
.audience-scene.is-wp .wp-editor-body {
  flex: 1;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  padding: .65rem .75rem;
  background: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .55s ease, transform .55s ease;
  mask-image: linear-gradient(#000 78%, transparent);
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
}
.audience-scene.is-wp .wp-editor-body h5 {
  margin: 0 0 .35rem;
  font-size: .92rem;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.audience-scene.is-wp .wp-feat {
  max-width: 100%;
  margin-bottom: .4rem;
}
.audience-scene.is-wp .wp-thumb {
  aspect-ratio: 2.2 / 1;
  max-height: 78px;
  height: auto;
  object-position: 55% 40%;
}
.audience-scene.is-wp .wp-subhead {
  margin: .55rem 0 .2rem;
  color: #1d2327;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.audience-scene.is-wp .wp-editor-body p {
  margin: 0 0 .35rem;
  font-size: .62rem;
  line-height: 1.4;
  color: #2c3338;
}
.audience-scene.is-wp .wp-quote {
  padding-left: .45rem;
  border-left: 2px solid #c3c4c7;
  color: #50575e;
  font-style: italic;
}
.audience-scene.is-wp .wp-link {
  color: #135e96;
  text-decoration: underline;
  text-underline-offset: 1px;
}
.audience-scene.is-wp .wp-embed {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: .5rem;
  align-items: start;
  margin: .35rem 0 .45rem;
  padding: .45rem;
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.audience-scene.is-wp .wp-embed-thumb {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #dcdcde;
  background: #f0f0f1;
}
.audience-scene.is-wp .wp-embed-body {
  display: grid;
  gap: .08rem;
  min-width: 0;
}
.audience-scene.is-wp .wp-embed-brand {
  color: #787c82;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.audience-scene.is-wp .wp-embed-body b {
  color: #135e96;
  font-size: .62rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.audience-scene.is-wp .wp-embed-meta {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  color: #646970;
  font-size: .52rem;
}
.audience-scene.is-wp .wp-stars {
  color: #dba617;
  font-size: .58rem;
  letter-spacing: .02em;
  line-height: 1;
}
.audience-scene.is-wp .wp-embed-price {
  color: #1d2327;
  font-size: .68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.audience-scene.is-wp .wp-embed-price small {
  margin-left: .2rem;
  padding: .05rem .28rem;
  background: #232F3E;
  border-radius: 2px;
  color: #fff;
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: middle;
}
.audience-scene.is-wp .wp-embed-cta {
  justify-self: start;
  margin-top: .12rem;
  padding: .18rem .45rem;
  background: linear-gradient(180deg, #F7DFA5, #F0C14B);
  border: 1px solid #A88734;
  border-radius: 99px;
  color: #111;
  font-size: .52rem;
  font-weight: 650;
  line-height: 1.2;
}
.audience-scene.is-wp .wp-editor-body p:last-child { margin-bottom: 0; }
.audience-demo[data-phase="editor"] .wp-editor-body,
.audience-demo[data-phase="publish"] .wp-editor-body,
.audience-demo[data-phase="published"] .wp-editor-body {
  opacity: 1;
  transform: none;
}
.audience-demo[data-phase="publish"] .wp-btn.is-publish,
.audience-demo[data-phase="published"] .wp-btn.is-publish {
  background: #135e96;
  transform: scale(.97);
}
.audience-demo[data-phase="published"] .wp-toast {
  opacity: 1;
  transform: translateY(0);
}
.wp-cite-seed {
  background: #E8F0FE;
  color: #174EA6;
  border-radius: 3px;
  padding: 0 .15em;
}

.audience-cursor {
  position: absolute;
  top: 0; left: 0;
  z-index: 8;
  width: 14px; height: 14px;
  margin: -2px 0 0 -2px;
  background: #202124;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(32,33,36,.25);
  opacity: 0;
  pointer-events: none;
  transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .2s ease;
}
.audience-demo.is-playing .audience-cursor { opacity: 1; }
.audience-demo[data-phase="to-search"] .audience-cursor,
.audience-demo[data-phase="typing"] .audience-cursor,
.audience-demo[data-phase="overview"] .audience-cursor,
.audience-demo[data-phase="cite"] .audience-cursor,
.audience-demo[data-phase="proof"] .audience-cursor { opacity: 0; }

/* Search scene */
.audience-scene.is-search {
  display: flex;
  flex-direction: column;
  padding: .65rem .85rem .55rem;
  background: #fff;
  overflow: hidden;
}
.sr-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .45rem;
}
.sr-logo {
  flex: none;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}
.sr-logo i { font-style: normal; }
.sr-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: .35rem;
  flex: 1;
  min-width: 0;
  padding: .4rem .55rem .4rem .85rem;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 99px;
  box-shadow: 0 1px 3px rgba(60,64,67,.1);
  font-size: .8rem;
  color: #202124;
}
.sr-query { flex: 1; min-height: 1.1em; min-width: 0; white-space: nowrap; overflow: hidden; }
.sr-caret {
  width: 1px; height: 14px;
  background: #1A73E8;
  opacity: 0;
  flex: none;
}
.audience-demo[data-phase="typing"] .sr-caret {
  opacity: 1;
  animation: srBlink 1s steps(1) infinite;
}
@keyframes srBlink { 50% { opacity: 0; } }
.sr-field-actions {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  margin-left: auto;
  flex: none;
  color: #5F6368;
}
.sr-field-sep {
  width: 1px;
  height: 18px;
  background: #DADCE0;
}
.sr-tabs {
  display: flex;
  align-items: flex-end;
  gap: .95rem;
  margin: 0 0 .55rem;
  padding: 0 0 0;
  border-bottom: 1px solid #DADCE0;
  color: #5F6368;
  font-size: .72rem;
  font-weight: 500;
}
.sr-tabs > span {
  padding: 0 0 .42rem;
  white-space: nowrap;
}
.sr-tabs .is-on {
  color: #202124;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 #202124;
}
.sr-tools { margin-left: auto; }

.aio {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(178px, .78fr);
  gap: .75rem;
  flex: 1;
  min-height: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease, filter .4s ease;
}
.audience-demo[data-phase="overview"] .aio,
.audience-demo[data-phase="cite"] .aio,
.audience-demo[data-phase="proof"] .aio {
  opacity: 1;
  transform: none;
}
.audience-demo[data-phase="cite"] .aio-main,
.audience-demo[data-phase="proof"] .aio-main,
.audience-demo[data-phase="cite"] .aio-card:not(.is-mg),
.audience-demo[data-phase="proof"] .aio-card:not(.is-mg) {
  opacity: .42;
  transition: opacity .4s ease;
}
.aio-main { min-width: 0; overflow: hidden; }
.aio-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .4rem;
}
.aio-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #202124;
  font-size: .78rem;
  font-weight: 600;
}
.aio-menu {
  color: #5F6368;
  font-size: .95rem;
  line-height: 1;
  letter-spacing: .02em;
}
.aio-answer {
  margin: 0 0 .65rem;
  color: #202124;
  font-size: .78rem;
  line-height: 1.5;
}
.aio-answer b { font-weight: 700; }
.aio-cite {
  background: #E8F0FE;
  color: #174EA6;
  border-radius: 3px;
  padding: 0 .12em;
  font-weight: 700;
}
.audience-demo[data-phase="cite"] .aio-cite,
.audience-demo[data-phase="proof"] .aio-cite {
  outline: 1.5px solid #1A73E8;
  outline-offset: 1px;
}
.aio-chip {
  display: inline-flex;
  align-items: center;
  gap: .18rem;
  margin: 0 .1em;
  padding: .08em .42em .1em;
  background: #F1F3F4;
  border-radius: 99px;
  color: #3C4043;
  font-size: .62rem;
  font-weight: 500;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}
.aio-chip svg { flex: none; color: #5F6368; }
.aio-sections {
  display: grid;
  gap: .55rem;
}
.aio-sections b {
  display: block;
  margin-bottom: .2rem;
  color: #202124;
  font-size: .76rem;
  font-weight: 700;
}
.aio-sections ul {
  margin: 0;
  padding: 0 0 0 1.05rem;
  color: #202124;
  font-size: .7rem;
  line-height: 1.4;
}
.aio-sections li { margin: 0 0 .22rem; }
.aio-sections li strong { font-weight: 600; }

.aio-sources {
  display: grid;
  align-content: start;
  gap: .4rem;
  min-width: 0;
  padding: .5rem;
  background: #F8F9FA;
  border: 1px solid #E8EAED;
  border-radius: 14px;
}
.aio-sources-head {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .1rem .15rem .2rem;
  color: #3C4043;
  font-size: .68rem;
  font-weight: 600;
}
.aio-sources-head .aio-menu { margin-left: auto; }
.aio-sources-icons {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
}
.aio-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: .45rem;
  padding: .5rem .55rem;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 12px;
  transition: opacity .4s ease, transform .4s ease, border-color .35s ease, box-shadow .35s ease;
}
.aio-card-copy { min-width: 0; }
.aio-card b {
  display: -webkit-box;
  overflow: hidden;
  color: #1A0DAB;
  font-size: .66rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.aio-card em {
  display: -webkit-box;
  margin: .18rem 0 .2rem;
  overflow: hidden;
  color: #4D5156;
  font-size: .6rem;
  font-style: normal;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.aio-card small {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  color: #70757A;
  font-size: .58rem;
  font-weight: 500;
}
.aio-favicon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.aio-card-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #E8EAED;
  border: 1px solid #DADCE0;
  align-self: start;
}
.aio-card-thumb.is-muted {
  display: block;
  background: linear-gradient(135deg, #E8EAED, #DADCE0);
}
.aio-show-all {
  display: block;
  width: 100%;
  margin: .05rem 0 0;
  padding: .42rem .5rem;
  background: #E8EAED;
  border: 0;
  border-radius: 99px;
  color: #202124;
  font: inherit;
  font-size: .68rem;
  font-weight: 600;
  cursor: default;
}
.aio-card.is-mg .aio-cited-pill {
  position: absolute;
  top: -.55rem;
  left: .45rem;
  z-index: 2;
  display: none;
  padding: .18rem .45rem;
  background: #E8F0FE;
  border: 1px solid #AECBFA;
  border-radius: 99px;
  color: #1A73E8;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.audience-demo[data-phase="cite"] .aio-card.is-mg,
.audience-demo[data-phase="proof"] .aio-card.is-mg {
  z-index: 3;
  opacity: 1;
  border-color: #1A73E8;
  box-shadow: 0 1px 2px rgba(26,115,232,.12), 0 6px 18px rgba(26,115,232,.12);
  transform: scale(1.025);
}
.audience-demo[data-phase="cite"] .aio-card.is-mg .aio-cited-pill,
.audience-demo[data-phase="proof"] .aio-card.is-mg .aio-cited-pill {
  display: inline-block;
}

.aio-link {
  position: absolute;
  inset: 8% 24% 10% 6%;
  width: auto; height: auto;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
.aio-link path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}
.audience-demo[data-phase="cite"] .aio-link,
.audience-demo[data-phase="proof"] .aio-link {
  opacity: 1;
}
.audience-demo[data-phase="cite"] .aio-link path,
.audience-demo[data-phase="proof"] .aio-link path {
  animation: aioDraw .7s ease forwards;
}
@keyframes aioDraw { to { stroke-dashoffset: 0; } }

.audience-proof {
  position: absolute;
  right: .85rem;
  bottom: .55rem;
  margin: 0;
  padding: .28rem .55rem;
  background: #fff;
  border: 1px solid #DADCE0;
  border-radius: 99px;
  color: #5F6368;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: -.01em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.audience-demo[data-phase="proof"] .audience-proof {
  opacity: 1;
  transform: none;
  color: #1A73E8;
  border-color: #AECBFA;
  background: #E8F0FE;
}

.audience-note {
  margin: .95rem 0 0;
  color: #5F6368;
  font-size: .9rem;
  text-align: center;
}

.ship-checks li.is-accent b { color: #1A73E8; }
.ship-checks li.is-accent::before { border-color: #1A73E8; }

@media (max-width: 860px) {
  .audience-demo { aspect-ratio: 10 / 12; border-radius: 18px; }
  .audience-scene.is-wp { grid-template-columns: 96px minmax(0, 1fr); }
  .aio {
    grid-template-columns: 1fr;
    gap: .65rem;
  }
  .aio-link { display: none; }
  .aio-hide-sm { display: none; }
  .aio-sources { order: 2; }
}
@media (max-width: 680px) {
  .audience-scene.is-wp { grid-template-columns: 1fr; }
  .audience-scene.is-wp .wp-side { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .audience-scene,
  .audience-cursor,
  .aio,
  .aio-card,
  .aio-link path,
  .audience-proof,
  .wp-editor-body { transition: none !important; animation: none !important; }
}

/* Legacy device mockups kept for reference styles below — unused in markup */
.devices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  max-width: 880px;
  margin-inline: auto;
}

.screen { display: grid; justify-items: center; }
.screen-bezel {
  position: relative;
  width: 100%;
  padding: 10px 10px 14px;
  background: linear-gradient(180deg, #26282E 0%, #1A1C21 100%);
  border: 1px solid #34363D;
  border-radius: 16px;
  box-shadow: var(--sh-3);
  overflow: hidden;
}
/* macOS hides overlay scrollbars until you move, so the page fades out at the
   bottom edge instead — that is the cue there is more article below */
.screen-bezel::after {
  content: "";
  position: absolute;
  inset: auto 10px 14px;
  height: 32px;
  border-radius: 0 0 7px 7px;
  background: linear-gradient(180deg, transparent, var(--card));
  pointer-events: none;
}
.screen-bezel > .win-bar,
.screen-bezel > .win-bar {
  border-radius: 7px 7px 0 0;
  border-bottom: 1px solid var(--line);
}
/* A monitor is landscape, so the viewport is fixed to one and the article
   scrolls inside it. Before this the mockup grew to whatever the article
   needed and the step became the tallest thing on the page. */
.screen-bezel > .win-body {
  aspect-ratio: 16 / 10;
  overflow-y: auto;
  /* deliberately not overscroll-behavior: contain — once the article bottoms
     out, the wheel has to carry on down the page or this becomes a scroll trap */
  background: var(--card);
  border-radius: 0 0 7px 7px;
  /* a real but unobtrusive scrollbar — it is the cue that there is more to read */
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.screen-bezel > .win-body::-webkit-scrollbar { width: 7px; }
.screen-bezel > .win-body::-webkit-scrollbar-track { background: transparent; }
.screen-bezel > .win-body::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border: 2px solid var(--card);
  border-radius: 99px;
}
.screen-bezel > .win-body::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* the site header pins while the article scrolls under it, like the real page */
.screen-bezel > .win-body > .site-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card);
}

/* monitor neck and foot, drawn rather than imaged */
.screen-stand {
  position: relative;
  display: block;
  width: 190px;
  height: 30px;
}
.screen-stand::before,
.screen-stand::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #2A2C32 0%, #1E2025 100%);
}
.screen-stand::before {
  top: 0;
  width: 96px;
  height: 24px;
  clip-path: polygon(34% 0, 66% 0, 74% 100%, 26% 100%);
}
.screen-stand::after {
  bottom: 0;
  width: 190px;
  height: 8px;
  border-radius: 99px;
  box-shadow: 0 10px 20px rgba(11,12,15,.2);
}

/* --- the phone --- */
.phone {
  position: relative;
  /* fixed, so the article inside always breaks the same way */
  width: 200px;
  padding: 7px;
  background: linear-gradient(180deg, #26282E 0%, #1A1C21 100%);
  border: 1px solid #34363D;
  border-radius: 24px;
  box-shadow: var(--sh-3);
}
.phone-notch {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 2;
  width: 40px;
  height: 5px;
  transform: translateX(-50%);
  background: #0C0D10;
  border-radius: 99px;
}

/* a real handset ratio, so anything past the fold clips like it would on a phone */
.phone-screen {
  aspect-ratio: 9 / 18.5;
  overflow: hidden;
  position: relative;
  background: var(--card);
  border-radius: 18px;
}
.phone-screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--card));
  pointer-events: none;
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: .8rem .5rem .3rem;
  color: var(--muted);
  font-size: .52rem;
}
.phone-bar svg { flex: none; color: var(--green); }

.win-dots { display: flex; gap: 6px; flex: none; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #C9C6BF; }
.win-dots i:nth-child(1) { background: #F0655A; }
.win-dots i:nth-child(2) { background: #F2BD4C; }
.win-dots i:nth-child(3) { background: #61C556; }

.win-bar {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .8rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.win-actions { display: flex; gap: .5rem; flex: none; color: var(--muted); }
.win-url {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex: 1;
  min-width: 0;
  padding: .32rem .7rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--body);
  font-size: .7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win-url svg { flex: none; color: var(--green); }
.win-live {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  flex: none;
  color: var(--green);
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: .68rem;
  font-weight: 600;
}
.win-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.stage.is-live .win-live i { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.ship-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ship-checks li {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--body);
  font-size: .82rem;
}
.ship-checks li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 9px;
  border: solid var(--green);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg) translateY(-1px);
}
.ship-checks b { color: var(--ink); font-weight: 600; }

.win-body { position: relative; }
.stage.is-live .win-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(32,33,36,.04) 45%, transparent);
  animation: sweep 1.4s ease .3s forwards;
  pointer-events: none;
}
@keyframes sweep {
  from { transform: translateY(-100%); opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

/* --- the client's page, rendered inside --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: .8rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-right: auto;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.site-logo i {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--accent);
}
.site-logo.is-sm { font-size: .7rem; margin-bottom: .45rem; }
.site-links { display: flex; gap: 1.1rem; color: var(--body); font-size: .7rem; }
.site-cart { color: var(--body); }

.site-page { padding: 1.4rem 1.4rem 1.6rem; }
.site-kicker {
  display: block;
  color: var(--accent);
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.site-page h5 {
  max-width: 30ch;
  margin: .45rem 0 .35rem;
  font-size: 1.22rem;
  letter-spacing: -.028em;
  line-height: 1.2;
}
.site-page h6 {
  margin: .9rem 0 .35rem;
  font-size: .8rem;
  letter-spacing: -.015em;
}
.site-byline {
  display: block;
  margin-bottom: .8rem;
  color: var(--muted);
  font-size: .66rem;
}
/* 16:9 at 1200px wide — what Google Discover wants for a large preview */
.site-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: .8rem;
  border-radius: var(--r-2);
}
/* Each mockup crops the same asset to suit its frame: at 16:9 the picture eats
   four fifths of the monitor's fold and the page reads as a photo rather than
   an article. The phone does the same thing further down. */
.screen-bezel .site-hero { aspect-ratio: 2.4 / 1; }

.site-page p {
  max-width: 62ch;
  margin: 0 0 .55rem;
  color: var(--body);
  font-size: .74rem;
  line-height: 1.62;
}

.site-embed {
  margin: .9rem 0;
  padding: .7rem .8rem .8rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-2);
}
.site-embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .55rem;
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
}
.site-embed-head b {
  padding: .1rem .4rem;
  background: var(--ink);
  border-radius: 3px;
  color: #fff;
  font-size: .58rem;
}
.site-embed-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 1px;
  background: var(--accent-line);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-1);
  overflow: hidden;
}
.site-embed-grid > span {
  display: block;
  padding: .38rem .42rem;
  background: rgba(255,255,255,.94);
  color: var(--muted);
  font-size: .56rem;
  letter-spacing: .05em;
}
.site-embed-grid b {
  display: block;
  margin-top: .1rem;
  color: var(--accent-ink);
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: .7rem;
  letter-spacing: 0;
  text-transform: none;
}
.site-embed.is-sm { margin: .7rem 0; padding: .5rem .55rem .6rem; }
.site-embed.is-sm .site-embed-head { font-size: .62rem; margin-bottom: .4rem; }
.site-embed.is-sm .site-embed-grid > span { padding: .3rem .4rem; font-size: .5rem; }
.site-embed.is-sm .site-embed-grid b { font-size: .64rem; }

/* four across is too tight on a phone, so the infographic reflows to 2x2 */
.site-embed.is-stack .site-embed-grid {
  grid-auto-flow: row;
  grid-template-columns: 1fr 1fr;
}

/* Hover callouts on the desktop mockup — what goes into a finished piece */
.screen-bezel .spot {
  position: relative;
  display: block;
  outline: none;
  cursor: default;
  border-radius: var(--r-2);
  transition: box-shadow .2s ease, background .2s ease;
}
.screen-bezel .spot.is-inline {
  display: inline;
  border-radius: 3px;
  padding: 0 .08em;
}
/* a quiet hot-dot so the spots are discoverable before you hover */
.screen-bezel .spot::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,115,232,.18), 0 2px 6px rgba(16,16,20,.18);
  pointer-events: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.screen-bezel .spot.is-inline::after {
  top: -.15em;
  right: -.35em;
  width: 7px;
  height: 7px;
  border-width: 1.5px;
}
.screen-bezel .spot-tip {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(100% + 8px);
  padding: .28rem .55rem;
  background: var(--ink);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 6px 18px rgba(16,16,20,.22);
}
.screen-bezel .spot-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top-color: var(--ink);
}
.screen-bezel .spot.is-inline .spot-tip {
  left: 50%;
  bottom: calc(100% + 6px);
  font-size: .58rem;
}
/* near the top of the scrollport, a tip above the hero would clip — drop it
   into the article body instead */
.screen-bezel .spot-tip.is-below {
  top: calc(100% - .55rem);
  bottom: auto;
  transform: translate(-50%, -4px);
}
.screen-bezel .spot-tip.is-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--ink);
}
.screen-bezel .spot:hover .spot-tip.is-below,
.screen-bezel .spot:focus-visible .spot-tip.is-below {
  transform: translate(-50%, 0);
}

.screen-bezel .spot .site-hero { margin-bottom: 0; }
.screen-bezel .spot:has(.site-hero) { margin-bottom: .8rem; }
.screen-bezel .spot:hover,
.screen-bezel .spot:focus-visible {
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px rgba(26,115,232,.16);
  background: rgba(26,115,232,.04);
}
.screen-bezel .spot.is-inline:hover,
.screen-bezel .spot.is-inline:focus-visible {
  background: rgba(26,115,232,.1);
  box-shadow: none;
}
.screen-bezel .spot:hover::after,
.screen-bezel .spot:focus-visible::after {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(26,115,232,.28), 0 2px 8px rgba(16,16,20,.22);
}
.screen-bezel .spot:hover .spot-tip,
.screen-bezel .spot:focus-visible .spot-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.screen-bezel .site-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: default;
}
.screen-bezel .site-link.is-external::after {
  content: "↗";
  margin-left: .15em;
  font-size: .85em;
  text-decoration: none;
}

@media (hover: none) {
  /* on touch, the tips stay put once the stage is live — no hover to rely on */
  .stage.is-live .screen-bezel .spot-tip {
    opacity: .92;
    transform: translate(-50%, 0);
  }
  .stage.is-live .screen-bezel .spot {
    box-shadow: 0 0 0 1.5px rgba(26,115,232,.35);
  }
  .stage.is-live .screen-bezel .spot.is-inline {
    background: rgba(26,115,232,.08);
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-bezel .spot,
  .screen-bezel .spot::after,
  .screen-bezel .spot-tip { transition: none; }
}

/* --- the same page, at phone scale --- */
.site-page.is-phone { padding: .5rem .7rem 1rem; }
.site-page.is-phone .site-kicker { font-size: .48rem; }
.site-page.is-phone h5 { margin: .3rem 0 .25rem; font-size: .78rem; line-height: 1.22; }
.site-page.is-phone h6 { margin: .6rem 0 .3rem; font-size: .6rem; }
.site-page.is-phone .site-byline { margin-bottom: .5rem; font-size: .5rem; }
/* a shorter crop on the phone buys the room the infographic needs */
.site-page.is-phone .site-hero {
  aspect-ratio: 2 / 1;
  margin-bottom: .5rem;
  border-radius: var(--r-1);
}
.site-page.is-phone p { font-size: .54rem; line-height: 1.6; }
.site-page.is-phone .site-embed { margin: .6rem 0; padding: .45rem .5rem .5rem; }
.site-page.is-phone .site-embed-head { margin-bottom: .35rem; font-size: .52rem; }
.site-page.is-phone .site-embed-grid > span { padding: .25rem .3rem; font-size: .4rem; }
.site-page.is-phone .site-embed-grid b { font-size: .48rem; }

/* ---------------------------------------------------------
   11  Popouts
   --------------------------------------------------------- */
.popout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: var(--pad);
  background: rgba(16,16,20,.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--t);
}
.popout-backdrop.is-open { opacity: 1; }

.popout {
  display: none;
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--sh-3);
  transform: translateY(10px) scale(.98);
  transition: transform .22s ease;
}
.popout.is-active { display: block; }
.popout-backdrop.is-open .popout.is-active { transform: none; }

.popout-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.popout-head b { display: block; font-family: var(--font-head); font-size: 1rem; }
.popout-head small { display: block; color: var(--muted); font-size: .74rem; }
.popout-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-left: auto;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  color: var(--body);
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.popout-close:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.popout-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 1.1rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
}
.popout-stats div { padding: .7rem; background: var(--card); text-align: center; }
.popout-stats b {
  display: block;
  color: var(--ink);
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: 1.06rem;
}
.popout-stats span {
  color: var(--muted);
  font-size: .66rem;
  letter-spacing: .05em;
}

.popout-table { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; }
.popout-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px 58px;
  gap: .6rem;
  padding: .55rem .75rem;
  background: var(--card);
  font-size: .8rem;
}
.popout-row > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.popout-row > span:not(:first-child) { font-family: var(--font-num); font-variant-numeric: tabular-nums; text-align: right; }
.popout-row.is-head {
  background: var(--wash);
  color: var(--muted);
  font-size: .66rem;
  letter-spacing: .04em;
}
.popout-row.is-head > span:not(:first-child) { font-family: inherit; }
.popout-row .up  { color: var(--green); font-weight: 600; }
.popout-row .gap { color: var(--amber); font-weight: 600; }

.popout-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .82rem;
}


/* ---------------------------------------------------------
   12  Pricing
   --------------------------------------------------------- */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 16px);
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.2vw, 28px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--sh-1);
}
.pricing-tier--featured {
  border-color: #AECBFA;
  box-shadow: 0 8px 28px rgba(26, 115, 232, .1);
  padding-top: clamp(28px, 3vw, 34px);
}
.pricing-tier.is-selected:not(.pricing-tier--featured) {
  border-color: #DADCE0;
}
.pricing-tier-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: .28rem .7rem;
  background: #E8F0FE;
  border: 1px solid #AECBFA;
  border-radius: 999px;
  color: #174EA6;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.pricing-tier-head {
  margin-bottom: 1.1rem;
}
.pricing-tier-head h3 {
  margin: 0;
  color: #202124;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.pricing-tier-volume {
  margin: .65rem 0 0;
  color: #202124;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.pricing-tier-volume em {
  font-family: var(--font-num);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: #1A73E8;
}
.pricing-tier-cost {
  margin: 0;
}
.pricing-tier-price {
  margin: 0;
}
.pricing-tier-price strong {
  display: block;
  color: #202124;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.1rem, 3.4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .95;
}
.pricing-tier--enterprise .pricing-tier-price strong {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 2.8vw, 2.2rem);
  letter-spacing: -.03em;
}
.pricing-tier-discount {
  margin: .5rem 0 0;
  color: #174EA6;
  font-size: .8rem;
  font-weight: 600;
}
.pricing-tier-then {
  margin: .3rem 0 0;
  color: #5F6368;
  font-size: .86rem;
  font-weight: 500;
}
.pricing-tier-features {
  display: grid;
  gap: .38rem;
  margin: 1.05rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid #E8EAED;
  list-style: none;
}
.pricing-tier-features li {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  color: #3C4043;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.3;
}
.pricing-tier-features svg {
  flex: none;
  margin-top: .06rem;
  color: #188038;
}
.pricing-tier-actions {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 1.35rem;
}
.pricing-tier-cta {
  gap: 8px;
  min-height: 52px;
  padding: .85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.015em;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pricing-tier-cta-arrow {
  flex: none;
  transition: transform .18s ease;
}
.pricing-tier-cta--soft {
  background: #E8F0FE;
  border-color: #AECBFA;
  color: #174EA6;
  box-shadow: 0 4px 14px rgba(26, 115, 232, .14);
}
.pricing-tier-cta--soft:hover {
  background: #D2E3FC;
  border-color: #8AB4F8;
  color: #174EA6;
  box-shadow: 0 8px 20px rgba(26, 115, 232, .2);
}
.pricing-tier-cta--strong {
  background: #0B0A0A;
  border-color: #0B0A0A;
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 10, 10, .28);
}
.pricing-tier-cta--strong:hover {
  background: #23201F;
  border-color: #23201F;
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 10, 10, .32);
}
.pricing-tier-cta:active {
  transform: none;
  box-shadow: 0 2px 8px rgba(32, 33, 36, .14);
}
@media (prefers-reduced-motion: no-preference) {
  .pricing-tier {
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  }
  .pricing-tier:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(32, 33, 36, .1);
  }
  .pricing-tier--featured:hover {
    box-shadow: 0 12px 32px rgba(26, 115, 232, .16);
  }
  .pricing-tier-cta:hover {
    transform: translateY(-2px);
  }
  .pricing-tier-cta:hover .pricing-tier-cta-arrow {
    transform: translateX(3px);
  }
  .pricing-tier-cta:active {
    transform: none;
  }
}

.pricing-assurance {
  max-width: 40rem;
  margin: clamp(1.5rem, 2.4vw, 2rem) auto 0;
  color: #5F6368;
  font-size: .92rem;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}
.pricing-assurance strong {
  color: #202124;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .pricing-tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
  }
}
@media (max-width: 640px) {
  .pricing-tiers {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .pricing-tier--featured {
    order: -1;
  }
}

/* ---------------------------------------------------------
   13  Trial
   --------------------------------------------------------- */
/* The trial closes the pricing module rather than owning a section of its own.
   By this point the visitor has a number in front of them, so the ask belongs
   here — and the pitch can be short, because the page already made it. */
.trial-inline {
  max-width: 980px;
  margin: clamp(30px, 3.6vw, 44px) auto 0;
  padding-top: clamp(30px, 3.6vw, 44px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.trial-inline-head { margin-bottom: clamp(22px, 2.6vw, 32px); }
.trial-inline-head h3 {
  max-width: 22ch;
  margin: .55rem auto .55rem;
  font-size: clamp(1.55rem, 2.8vw, 1.95rem);
  letter-spacing: -.028em;
  line-height: 1.18;
  text-wrap: balance;
}
.trial-inline-head > p {
  max-width: 46ch;
  margin: 0 auto;
  color: var(--body);
  font-size: 1.02rem;
}

.trial-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
  margin-top: 1.15rem;
}
.trial-points li {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: var(--body);
  font-size: .87rem;
  font-weight: 500;
}
.trial-points svg { flex: none; color: var(--accent); }

.trial-form {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(28px, 3.8vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--sh-2);
  text-align: left;
}

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  margin-bottom: .4rem;
  color: var(--ink-2);
  font-size: .84rem;
  font-weight: 500;
}
.field .muted { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: .72rem .85rem;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  color: var(--ink);
  font-family: inherit;
  font-size: .92rem;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.field textarea { min-height: 88px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--card);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-hp { position: absolute; left: -9999px; }

.form-status { margin-bottom: .8rem; font-size: .84rem; color: var(--red); }
.form-status:empty { display: none; }
.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.form-success {
  display: none;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--sh-2);
  text-align: center;
}
.form-success.is-visible { display: block; }
.form-success-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 1.1rem;
  background: var(--green-soft);
  border-radius: 50%;
  color: var(--green);
}
.form-success h3 { margin-bottom: .5rem; }


/* ---------------------------------------------------------
   14  Footer & sticky CTA
   --------------------------------------------------------- */
footer {
  padding: clamp(44px, 5vw, 64px) 0;
  background: var(--ink);
  color: rgba(255,255,255,.62);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
footer .nav-logo { color: #fff; }
footer .nav-logo:hover { color: #fff; }
footer .nav-logo-mark .mark-page { stroke: #fff; }
footer .nav-logo-mark .mark-gutter { stroke: #1A73E8; }
.footer-links { display: flex; flex-wrap: wrap; gap: .8rem 1.7rem; }
.footer-links a { color: rgba(255,255,255,.62); font-size: .88rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin: 0; font-size: .8rem; color: rgba(255,255,255,.42); }


/* ---------------------------------------------------------
   15  Utilities
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ---------------------------------------------------------
   16  Responsive
   --------------------------------------------------------- */
@media (max-width: 1000px) {
  .flow { gap: clamp(64px, 9vw, 96px); }
  .flow-link {
    bottom: calc(clamp(64px, 9vw, 96px) * -1);
    height: clamp(64px, 9vw, 96px);
  }
  .flow-link > span { padding: .28rem .55rem; font-size: .65rem; }
}

/* In this band the phone still sits beside the monitor but the monitor is too
   narrow for four across. Below it the phone stacks and the width comes back. */
@media (min-width: 681px) and (max-width: 820px) {
  .screen-bezel .site-embed-grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
  }
}


@media (max-width: 860px) {
  .nav-links,
  .nav-cta-group { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  .nav.nav-mobile-open .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    display: grid;
    gap: 0;
    padding: .5rem var(--pad) 1.2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
  }
  .nav.nav-mobile-open .nav-links a {
    display: block;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
}

@media (max-width: 680px) {
  body { font-size: 16px; }

  /* both artefact grids drop to a single column so nothing gets squeezed */
  .converge .source-grid { grid-template-columns: 1fr; }
  .converge .source-card-head b { white-space: normal; }
  .converge-lines { height: 42px; }

  .ideas-head {
    align-items: stretch;
    flex-direction: column;
  }
  .idea-tabs { align-self: flex-start; }
  .idea-pane-intro { align-items: flex-start; }
  .rss-flow { grid-template-columns: auto minmax(0, 1fr); }
  .rss-live { grid-column: 2; }

  .ideas-columns { display: none; }
  .ideas li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem .7rem;
  }
  .idea-score { grid-column: 1 / -1; }
  .idea-score::before {
    content: "Confidence";
    color: var(--muted);
    font-size: .66rem;
    font-weight: 600;
  }
  .idea-score i { width: 100%; }

  .source-metrics { gap: 1.1rem; }

  .win-bar { padding: .45rem .6rem; gap: .5rem; }
  .win-actions { display: none; }
  .win-url { font-size: .62rem; }
  .win-live { font-size: .62rem; }
  .site-nav { gap: .8rem; padding: .7rem .9rem; }
  .site-links { display: none; }
  .site-page { padding: 1rem .9rem 1.2rem; }
  .site-page h5 { font-size: 1.02rem; }

  /* no room for the two side by side — the phone drops below the monitor */
  .devices {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 1.6rem;
  }
  .site-page.is-phone { padding: .5rem .7rem 1rem; }
  .site-page.is-phone h5 { font-size: .78rem; }

  .popout { padding: 1.1rem; }
  .popout-row { grid-template-columns: minmax(0, 1fr) 52px 48px; font-size: .76rem; }
  .popout-stats b { font-size: .94rem; }

  .hero-cta { display: flex; width: 100%; }
  .btn-hero { width: 100%; min-width: 0; padding-inline: 1.4rem; font-size: 1.28rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .stage { opacity: 1; transform: none; }
  .stage .flow-copy, .stage .flow-visual { opacity: 1; transform: none; }
  .ideas li { opacity: 1; transform: none; pointer-events: auto; }
  .idea-score i em { transform: scaleX(1); }
  .draft-preview { opacity: 1; transform: none; }
  .draft-task { opacity: 1; }
  .draft-block { opacity: 1; transform: none; max-height: none; }
  .draft-block.is-list li { opacity: 1; transform: none; }
  .draft-caret { display: none !important; animation: none !important; }
  .draft-spinner { animation: none !important; }
  .draft-task-check { opacity: 1; }
  .draft-task-check path { stroke-dashoffset: 0; }
  .idea-score i em { transform: scaleX(1); }
  .data-card { opacity: 1 !important; transform: none !important; }
  .data-live, .data-check { opacity: 1 !important; transform: none !important; }
  .data-check path, .data-spark path { stroke-dashoffset: 0 !important; }
  .data-bars i { height: var(--h, 50%) !important; }
  .data-gaps i { width: var(--w, 70%) !important; }
}
