/* ==========================================================================
   QA-Report — Free Drawing Ballooning Tool
   "Precision instrument" redesign: blueprint atmosphere, balloon-callout
   motifs, dimension-line dividers, mono technical labels.
   Palette preserved from the original site tokens (dark navy / blue / cyan).
   ========================================================================== */

:root {
  --bg: 220 22% 10%;
  --bg-deep: 222 26% 7%;
  --card: 220 18% 14%;
  --card-2: 220 18% 16%;
  --muted: 220 16% 20%;
  --fg: 210 20% 98%;
  --mut-fg: 218 11% 68%;
  --primary: 210 100% 55%;
  --accent: 195 100% 50%;
  --green: 152 60% 48%;
  --purple: 265 85% 68%;
  --border: 220 16% 22%;

  --font-sans: "Archivo", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --radius: 14px;
  --maxw: 76rem;
}

/* ---------------------------------------------------------------- base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: hsl(var(--bg-deep));
  color: hsl(var(--fg));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: hsl(var(--accent)); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: hsl(var(--primary) / 0.4); }

h1, h2, h3 { font-family: var(--font-sans); }

/* mono technical label — reused everywhere */
.hero-eyebrow, .guide-eyebrow, .cta-eyebrow, .dim-label, .vb-title,
.vb-badge, .persona-num, .footer-brandline {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ------------------------------------------------------ page backdrop */
/* One continuous blueprint grid + soft glows behind everything. */
.page-bg {
  position: relative;
  background-color: hsl(var(--bg));
  background-image:
    linear-gradient(to right, hsl(216 30% 60% / 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(216 30% 60% / 0.055) 1px, transparent 1px),
    linear-gradient(to right, hsl(216 30% 60% / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(216 30% 60% / 0.035) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  overflow-x: clip;
}
/* big atmospheric glows */
.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}
.page-bg::before {
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 560px;
  background: radial-gradient(ellipse, hsl(var(--primary) / 0.16), transparent 65%);
}
.page-bg::after {
  top: 800px; right: -260px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, hsl(var(--accent) / 0.07), transparent 65%);
}

.landing {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 150px 28px 110px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 700; font-size: 15px; line-height: 1;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.8,.3,1.1), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(202 100% 48%));
  color: #fff;
  box-shadow: 0 12px 28px -10px hsl(var(--primary) / 0.65),
              inset 0 1px 0 hsl(0 0% 100% / 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px hsl(var(--primary) / 0.8),
              inset 0 1px 0 hsl(0 0% 100% / 0.22);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  border-color: hsl(var(--primary) / 0.5);
  color: hsl(var(--fg));
  background: hsl(var(--primary) / 0.08);
}
.btn-outline:hover {
  background: hsl(var(--primary) / 0.16);
  border-color: hsl(var(--primary) / 0.8);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: hsl(var(--border));
  color: hsl(var(--mut-fg));
  background: hsl(var(--card) / 0.5);
}
.btn-ghost:hover { color: hsl(var(--fg)); border-color: hsl(var(--accent) / 0.6); transform: translateY(-2px); }

.btn-light { background: #fff; color: hsl(222 47% 16%); box-shadow: 0 14px 30px -10px hsl(220 30% 4% / 0.5); }
.btn-light:hover { transform: translateY(-2px); background: hsl(210 40% 96%); }
.btn-ghost-light { border-color: hsl(0 0% 100% / 0.55); color: #fff; }
.btn-ghost-light:hover { background: hsl(0 0% 100% / 0.12); border-color: #fff; transform: translateY(-2px); }

.btn-lg { padding: 17px 32px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-full { width: 100%; }

/* ---------------------------------------------------------------- NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(var(--bg-deep) / 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid hsl(var(--border) / 0.7);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  height: 66px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: hsl(var(--fg)); }
.nav-brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a, .nav-trigger {
  color: hsl(var(--mut-fg)); font-size: 14.5px; font-weight: 600;
  font-family: var(--font-sans);
  background: transparent; border: none; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.nav-links > a:hover, .nav-trigger:hover,
.nav-item-dropdown:hover .nav-trigger,
.nav-item-dropdown:focus-within .nav-trigger { color: hsl(var(--fg)); }

.nav-item-dropdown { position: relative; }
.nav-caret { transition: transform .2s; }
.nav-item-dropdown:hover .nav-caret,
.nav-item-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 14px); left: -10px; min-width: 290px;
  display: flex; flex-direction: column; gap: 2px;
  background: hsl(var(--card-2) / 0.97);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius); padding: 8px;
  box-shadow: 0 28px 50px -18px hsl(220 30% 3% / 0.9);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item-dropdown:hover .nav-dropdown-panel,
.nav-item-dropdown:focus-within .nav-dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-dropdown-panel a { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border-radius: 10px; transition: background .15s; }
.nav-dropdown-panel a:hover { background: hsl(var(--primary) / 0.1); }
.nav-dd-title { color: hsl(var(--fg)); font-size: 14.5px; font-weight: 700; }
.nav-dd-desc { color: hsl(var(--mut-fg)); font-size: 13px; line-height: 1.4; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-signin { color: hsl(var(--fg)); font-weight: 600; font-size: 14.5px; padding: 0 6px; }

/* mobile disclosure menu */
.nav-mobile { display: none; position: static; }
.nav-mobile > summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: hsl(var(--fg)); }
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary:hover { background: hsl(var(--muted) / 0.6); }
.nav-mobile .ic-close { display: none; }
.nav-mobile[open] > summary .ic-menu { display: none; }
.nav-mobile[open] > summary .ic-close { display: inline; }
.nav-mobile-panel {
  position: fixed; top: 66px; left: 0; right: 0;
  background: hsl(var(--bg-deep) / 0.98);
  border-bottom: 1px solid hsl(var(--border));
  display: flex; flex-direction: column; padding: 8px 28px 22px;
  box-shadow: 0 30px 50px -20px hsl(220 30% 3% / 0.9);
}
.nav-mobile-panel a:not(.btn) { padding: 14px 4px; color: hsl(var(--mut-fg)); font-weight: 600; font-size: 16px; border-bottom: 1px solid hsl(var(--border) / 0.5); }
.nav-mobile-panel a:not(.btn):hover { color: hsl(var(--fg)); }
.nav-mobile-panel .nav-mobile-signin { color: hsl(var(--fg)); }
.nav-mobile-panel .btn { margin-top: 16px; }

/* ---------------------------------------------------------------- HERO */
.hero {
  position: relative;
  text-align: center;
  padding-top: 26px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: hsl(var(--accent));
  background: hsl(var(--accent) / 0.07);
  border: 1px solid hsl(var(--accent) / 0.3);
  border-radius: 999px;
  padding: 9px 18px;
}
.pulse-dot { position: relative; width: 8px; height: 8px; flex: 0 0 auto; }
.pulse-dot::before, .pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: hsl(var(--accent));
}
.pulse-dot::before { opacity: .7; animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

.hero h1 {
  font-size: clamp(46px, 7.2vw, 86px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 28px auto 0;
  max-width: 18ch;
}
.hero h1 .accent {
  position: relative;
  display: inline-block;
  background: linear-gradient(100deg, hsl(var(--primary)) 10%, hsl(var(--accent)) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.balloon-anchor { position: relative; display: inline-block; }
/* a real "balloon" pinned to the headline word — the product as decoration */
.word-balloon {
  position: absolute;
  top: -0.46em; right: -0.78em;
  width: 0.52em; height: 0.52em;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid hsl(var(--accent));
  border-radius: 50%;
  background: hsl(var(--bg) / 0.85);
  color: hsl(var(--accent));
  font-family: var(--font-mono);
  font-size: 0.24em; font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 0 24px hsl(var(--accent) / 0.45);
  animation: balloon-pop .6s cubic-bezier(.2,1.4,.4,1) .9s both;
}
/* leader line from the balloon toward the word */
.word-balloon::after {
  content: "";
  position: absolute;
  bottom: -0.42em; left: -0.4em;
  width: 0.55em; height: 2px;
  background: hsl(var(--accent) / 0.7);
  transform: rotate(38deg);
}
@keyframes balloon-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.page-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: hsl(var(--mut-fg));
  line-height: 1.7;
  margin: 24px auto 0;
  max-width: 44rem;
}

/* free chips */
.page-free {
  list-style: none;
  margin: 26px auto 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.page-free li {
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
  color: hsl(var(--green));
  background: hsl(var(--green) / 0.08);
  border: 1px solid hsl(var(--green) / 0.35);
  border-radius: 8px;
  padding: 7px 14px;
  display: inline-flex; align-items: center; gap: 7px;
}
.page-free li::before {
  content: "";
  width: 5px; height: 9px;
  border-right: 2px solid hsl(var(--green));
  border-bottom: 2px solid hsl(var(--green));
  transform: rotate(45deg) translateY(-1px);
}

.hero-actions {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

/* decorative balloon callouts around the headline */
.hero-balloons { position: absolute; inset: 0; pointer-events: none; }
.deco-balloon {
  position: absolute;
  display: flex; align-items: center; gap: 0;
  opacity: 0;
  animation: deco-in 1s ease 1.2s forwards, deco-float 7s ease-in-out 2.2s infinite;
}
.db-1 { top: 16%; left: 1.5%; }
.db-2 { top: 9%; right: 1%; animation-delay: 1.45s, 2.8s; }
.db-3 { top: 56%; right: 4%; animation-delay: 1.7s, 3.4s; }
.db-circle {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid hsl(var(--primary) / 0.8);
  border-radius: 50%;
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  color: hsl(var(--primary));
  background: hsl(var(--bg) / 0.7);
  box-shadow: 0 0 20px hsl(var(--primary) / 0.25);
}
.db-line { width: 54px; height: 0; border-top: 1.5px dashed hsl(var(--primary) / 0.5); }
.db-dim {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em;
  color: hsl(var(--mut-fg) / 0.85);
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  background: hsl(var(--card) / 0.6);
}
@keyframes deco-in { to { opacity: 1; } }
@keyframes deco-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* trust stats */
.trust-stats {
  display: flex; align-items: stretch;
  margin: 54px auto 0;
  max-width: 58rem;
  border-radius: 18px;
  background: linear-gradient(180deg, hsl(var(--card) / 0.9), hsl(var(--card) / 0.65));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 30px 60px -30px hsl(220 30% 3% / 0.8),
              inset 0 1px 0 hsl(0 0% 100% / 0.05);
  padding: 22px 14px;
  backdrop-filter: blur(6px);
}
.trust-stat {
  flex: 1 1 0;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 6px 20px; text-align: left;
}
.trust-stat + .trust-stat { border-left: 1px dashed hsl(var(--border)); }
.trust-stat-icon {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
}
.trust-stat-icon svg { width: 24px; height: 24px; }
.tsi-green  { color: hsl(var(--green));  background: hsl(var(--green) / 0.1);  border: 1px solid hsl(var(--green) / 0.35); }
.tsi-blue   { color: hsl(var(--primary)); background: hsl(var(--primary) / 0.1); border: 1px solid hsl(var(--primary) / 0.35); }
.tsi-purple { color: hsl(var(--purple)); background: hsl(var(--purple) / 0.1); border: 1px solid hsl(var(--purple) / 0.35); }
.trust-stat-text { display: flex; flex-direction: column; min-width: 0; }
.trust-stat-value {
  font-family: var(--font-mono);
  font-weight: 700; font-size: 23px; line-height: 1.15;
  letter-spacing: -0.02em;
}
.v-green { color: hsl(var(--green)); }
.v-blue { color: hsl(var(--primary)); }
.v-purple { color: hsl(var(--purple)); }
.trust-stat-label { font-weight: 700; font-size: 15px; color: hsl(var(--fg)); }
.trust-stat-desc { font-size: 13px; line-height: 1.45; color: hsl(var(--mut-fg)); }

/* ------------------------------------------- dimension-line dividers */
.dim-divider {
  display: flex; align-items: center; gap: 18px;
  margin: 14px 0 -10px;
}
.dim-divider::before, .dim-divider::after {
  content: ""; flex: 1;
  border-top: 1px dashed hsl(var(--border));
}
.dim-tick { width: 1px; height: 14px; background: hsl(var(--mut-fg) / 0.5); flex: 0 0 auto; }
.dim-label { color: hsl(var(--mut-fg) / 0.75); white-space: nowrap; }

/* ------------------------------------------------------- TOOL SECTION */
.hero-split {
  display: flex; align-items: stretch; gap: 32px;
  scroll-margin-top: 90px;
}
.hero-canvas { flex: 1 1 auto; min-width: 0; }

/* framed "viewport" around the canvas island */
.viewport-frame {
  height: 100%;
  display: flex; flex-direction: column;
  border-radius: 18px;
  border: 1px solid hsl(var(--primary) / 0.35);
  background: hsl(var(--card) / 0.75);
  box-shadow: 0 40px 80px -40px hsl(220 30% 3% / 0.9),
              0 0 0 1px hsl(var(--primary) / 0.08),
              0 0 70px -20px hsl(var(--primary) / 0.3);
  overflow: hidden;
}
.viewport-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  background: hsl(var(--bg-deep) / 0.75);
  border-bottom: 1px solid hsl(var(--border));
}
.vb-dots { display: inline-flex; gap: 6px; }
.vb-dots i { width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--muted)); }
.vb-dots i:first-child { background: hsl(var(--primary) / 0.85); }
.vb-dots i:nth-child(2) { background: hsl(var(--accent) / 0.7); }
.vb-title { color: hsl(var(--mut-fg) / 0.8); flex: 1; letter-spacing: 0.14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-badge {
  display: inline-flex; align-items: center; gap: 7px;
  color: hsl(var(--green));
  border: 1px solid hsl(var(--green) / 0.4);
  background: hsl(var(--green) / 0.08);
  border-radius: 7px;
  padding: 5px 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.vb-badge svg { width: 12px; height: 12px; }
.viewport-body { position: relative; flex: 1; padding: 14px; }
#ballooning-tool { position: relative; z-index: 1; height: 100%; min-height: 460px; }

/* fiducial corner crosshairs (like drawing registration marks) */
.fid { position: absolute; width: 16px; height: 16px; z-index: 0; }
.fid::before, .fid::after { content: ""; position: absolute; background: hsl(var(--accent) / 0.5); }
.fid::before { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.fid::after { top: 50%; left: 0; height: 1.5px; width: 100%; transform: translateY(-50%); }
.fid-tl { top: 8px; left: 8px; }
.fid-tr { top: 8px; right: 8px; }
.fid-bl { bottom: 8px; left: 8px; }
.fid-br { bottom: 8px; right: 8px; }

/* placeholder before the React island mounts (replaced on mount) */
.tool-placeholder {
  height: 100%; min-height: 432px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  border: 2px dashed hsl(var(--border));
  border-radius: 12px;
  text-align: center;
  padding: 24px;
}
.tp-balloon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid hsl(var(--primary));
  border-radius: 50%;
  color: hsl(var(--primary));
  font-family: var(--font-mono); font-size: 24px; font-weight: 700;
  box-shadow: 0 0 34px hsl(var(--primary) / 0.3);
  animation: deco-float 5s ease-in-out infinite;
}
.tp-title { font-size: 19px; font-weight: 800; color: hsl(var(--fg)); letter-spacing: -0.01em; }
.tp-sub { font-family: var(--font-mono); font-size: 12.5px; color: hsl(var(--mut-fg)); letter-spacing: 0.04em; }

/* how-to guide */
.hero-guide {
  flex: 0 0 calc(40% - 32px);
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, hsl(var(--primary) / 0.07), hsl(var(--card) / 0.7) 50%);
  border: 1px solid hsl(var(--border));
  border-radius: 18px;
  padding: 30px 30px 26px;
  scroll-margin-top: 90px;
  /* Slow slide: width + padding animate so the canvas grows to the right while
     the guide collapses into the rail in sync. */
  transition: flex-basis 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Wraps the full guide content so it can fade out (and be clipped by the guide's
   overflow) as the rail slides in. min-width keeps the text from reflowing mid-slide. */
.guide-inner {
  flex: 1;
  display: flex; flex-direction: column;
  min-width: 300px;
  transition: opacity 0.28s ease;
}
/* Collapse-to-rail control (top-right); only visible when the guide is open
   AND a drawing is loaded (see the doc-loaded rules below). */
.guide-collapse-btn {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: none; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--card) / 0.85);
  color: hsl(var(--mut-fg));
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.guide-collapse-btn:hover { color: hsl(var(--fg)); border-color: hsl(var(--primary) / 0.5); }
/* The thin vertical rail shown when collapsed; fills the narrowed guide. */
.guide-rail {
  position: absolute; inset: 0;
  display: none; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 14px; padding: 16px 0;
  background: transparent; border: 0;
  color: hsl(var(--accent));
  cursor: pointer;
  transition: background 0.15s ease;
}
.guide-rail:hover { background: hsl(var(--primary) / 0.06); }
.guide-rail-label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: hsl(var(--mut-fg));
  transition: color 0.15s ease;
}
.guide-rail:hover .guide-rail-label { color: hsl(var(--fg)); }
.guide-eyebrow { color: hsl(var(--accent)); margin-bottom: 10px; }
.hero-guide h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
  color: hsl(var(--fg));
  margin: 0 0 24px;
}
.hero-guide ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0;
  counter-reset: guide;
  flex: 1;
}
.hero-guide ol li {
  position: relative;
  padding: 0 0 20px 52px;
  color: hsl(var(--mut-fg));
  font-size: 15px; line-height: 1.6;
  counter-increment: guide;
}
/* balloon-style step numbers + connecting spine */
.hero-guide ol li::before {
  content: counter(guide);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  color: hsl(var(--accent));
  border: 2px solid hsl(var(--accent) / 0.7);
  border-radius: 50%;
  background: hsl(var(--bg) / 0.7);
}
.hero-guide ol li:not(:last-child)::after {
  content: "";
  position: absolute; left: 16.5px; top: 38px; bottom: 4px;
  width: 0;
  border-left: 1.5px dashed hsl(var(--accent) / 0.3);
}
.hero-guide ol li strong { color: hsl(var(--fg)); font-weight: 700; }
.guide-foot {
  display: flex; align-items: center; gap: 9px;
  margin-top: 8px; padding-top: 18px;
  border-top: 1px dashed hsl(var(--border));
  font-family: var(--font-mono);
  font-size: 12.5px; color: hsl(var(--mut-fg));
  letter-spacing: 0.02em;
}
.guide-foot svg { width: 15px; height: 15px; flex: 0 0 auto; color: hsl(var(--green)); }

/* Drawing loaded: collapse the "How to use" guide into a thin vertical rail and
   let the canvas island grow to fill the freed width (both animate, in sync).
   React toggles .bln-doc-loaded on #tool when a drawing loads; the rail /
   collapse buttons toggle .guide-open to slide it back and forth. Desktop only -
   below 980px the layout stacks vertically (see the responsive block). */
@media (min-width: 981px) {
  /* Collapsed state = drawing loaded and NOT manually re-opened. */
  #tool.bln-doc-loaded:not(.guide-open) .hero-guide {
    flex-basis: 46px;
    padding: 0;
  }
  #tool.bln-doc-loaded:not(.guide-open) .guide-inner {
    opacity: 0;
    pointer-events: none;
  }
  #tool.bln-doc-loaded:not(.guide-open) .guide-rail { display: flex; }
  /* Show the collapse control only when the guide is open over a loaded drawing. */
  #tool.bln-doc-loaded.guide-open .guide-collapse-btn { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-guide, .guide-inner { transition: none; }
}

/* ------------------------------------------------------- SHARE BAND */
.share-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  scroll-margin-top: 90px;
}
.share-card {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(160deg, hsl(var(--primary) / 0.1), hsl(var(--card) / 0.78) 55%);
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: 18px;
  padding: 30px;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.share-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / 0.55);
  box-shadow: 0 26px 50px -24px hsl(var(--primary) / 0.45);
}
.share-card-head { display: flex; align-items: center; gap: 14px; }
.share-card-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; color: hsl(var(--fg)); line-height: 1.25; }
.share-card-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 13px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.12);
  border: 1px solid hsl(var(--primary) / 0.4);
}
.share-card-icon svg { width: 21px; height: 21px; }
.share-lead { font-size: 14.5px; color: hsl(var(--mut-fg)); line-height: 1.6; flex: 0 0 auto; }
.share-card .btn { margin-top: auto; }

.share-feats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.share-feats li {
  position: relative; padding-left: 22px;
  font-size: 14px; color: hsl(var(--fg)); line-height: 1.45;
}
.share-feats li::before {
  content: "";
  position: absolute; left: 2px; top: 6px;
  width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
}

.share-fineprint {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px; color: hsl(var(--mut-fg)); margin: 0;
  letter-spacing: 0.03em;
}
.share-fineprint svg { width: 13px; height: 13px; flex: 0 0 auto; }

#copy-linkedin-post.is-copied {
  background: linear-gradient(135deg, hsl(var(--green)), hsl(158 60% 40%));
  box-shadow: 0 12px 26px -10px hsl(var(--green) / 0.6);
}

/* --------------------------------------------------------- SEO PROSE */
.seo-prose {
  max-width: 62rem;
  margin: 0 auto;
  width: 100%;
  display: flex; flex-direction: column; gap: 44px;
}
.prose-block h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800; letter-spacing: -0.02em;
  color: hsl(var(--fg));
  margin: 0 0 14px;
}
.prose-block > p {
  font-size: 16.5px;
  color: hsl(var(--mut-fg));
  line-height: 1.75;
}
.prose-block a { color: hsl(var(--accent)); font-weight: 600; border-bottom: 1px dashed hsl(var(--accent) / 0.5); transition: border-color .2s; }
.prose-block a:hover { border-bottom-style: solid; border-bottom-color: hsl(var(--accent)); }

.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.persona-card {
  position: relative;
  background: hsl(var(--card) / 0.75);
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 22px 20px 20px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.persona-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--accent) / 0.5);
  box-shadow: 0 22px 44px -22px hsl(220 30% 3% / 0.9);
}
.persona-num { color: hsl(var(--accent) / 0.85); display: block; margin-bottom: 12px; }
.persona-card h3 { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; color: hsl(var(--fg)); margin-bottom: 8px; line-height: 1.3; }
.persona-card p { font-size: 13.5px; color: hsl(var(--mut-fg)); line-height: 1.55; }

/* --------------------------------------------------------------- CTA */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 22px;
  padding: 72px 40px;
  background: linear-gradient(135deg, hsl(212 90% 38%), hsl(199 95% 42%));
  border: 1px solid hsl(var(--accent) / 0.4);
  box-shadow: 0 50px 100px -50px hsl(var(--primary) / 0.6);
}
/* subtle grid inside the CTA so it ties into the blueprint theme */
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, hsl(0 0% 100% / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(0 0% 100% / 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.cta-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 560px; height: 280px; border-radius: 50%;
  background: radial-gradient(ellipse, hsl(0 0% 100% / 0.22), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta-eyebrow { color: hsl(0 0% 100% / 0.75); margin-bottom: 14px; }
.cta h2 {
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 900; letter-spacing: -0.03em;
  color: #fff; line-height: 1.1;
  margin-bottom: 16px;
}
.cta-sub {
  font-size: 17.5px; color: hsl(0 0% 100% / 0.88);
  max-width: 560px; margin: 0 auto 34px; line-height: 1.65;
}
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* --------------------------------------------------------------- FAQ */
.faq { max-width: 56rem; margin: 0 auto; width: 100%; }
.faq h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800; letter-spacing: -0.02em;
  color: hsl(var(--fg));
  margin-bottom: 30px;
  text-align: center;
}
.faq details {
  background: hsl(var(--card) / 0.7);
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 0 26px;
  margin-bottom: 12px;
  transition: border-color .3s, background .3s;
}
.faq details[open] { border-color: hsl(var(--primary) / 0.45); background: hsl(var(--card) / 0.9); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 21px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 {
  font-size: 16.5px; font-weight: 700;
  color: hsl(var(--fg));
  letter-spacing: -0.005em;
  transition: color .2s;
}
.faq details[open] summary h3 { color: hsl(var(--accent)); }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 19px; font-weight: 500;
  color: hsl(var(--accent));
  border: 1.5px solid hsl(var(--accent) / 0.45);
  border-radius: 50%;
  transition: transform .25s, background .25s;
}
.faq details[open] summary::after {
  content: "\2013";
  transform: rotate(180deg);
  background: hsl(var(--accent) / 0.1);
}
.faq details p {
  padding: 0 0 24px;
  font-size: 15.5px; color: hsl(var(--mut-fg)); line-height: 1.7;
  max-width: 62ch;
}
.faq p strong { color: hsl(var(--fg)); font-weight: 700; }

/* ------------------------------------------------------------ FOOTER */
.footer {
  background: hsl(var(--bg-deep));
  border-top: 1px solid hsl(var(--border) / 0.7);
  padding: 44px 0;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; text-align: center;
}
.footer-brandline { color: hsl(var(--mut-fg) / 0.55); }
.footer p { font-size: 14px; color: hsl(var(--mut-fg)); }
.footer a { color: hsl(var(--mut-fg)); transition: color .2s; }
.footer a:hover { color: hsl(var(--fg)); }

/* -------------------------------------------------------- animations */
/* page-load stagger (hero) */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { animation: fade-up .8s cubic-bezier(.2,.7,.3,1) both; animation-delay: var(--d, 0s); }

/* reveal-on-scroll (sections) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
/* transform must end at none (not translateY(0)): a non-none transform would
   become the containing block for the tool's position:fixed fullscreen mode. */
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .anim, .deco-balloon, .word-balloon, .tp-balloon, .pulse-dot::before { animation: none !important; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .hero-balloons { display: none; }
}

@media (max-width: 980px) {
  .landing { padding: 120px 20px 80px; gap: 48px; }
  .hero-split { flex-direction: column; }
  .hero-canvas, .hero-guide { flex: 1 1 auto; }
  .persona-grid { grid-template-columns: 1fr 1fr; }
  .share-band { grid-template-columns: 1fr; }
  /* mobile nav */
  .nav-links { display: none; }
  .nav-actions > .nav-signin,
  .nav-actions > .btn-primary { display: none; }
  .nav-mobile { display: inline-flex; }
}

@media (max-width: 640px) {
  .landing { padding: 104px 16px 64px; gap: 40px; }
  .hero h1 { letter-spacing: -0.03em; }
  .trust-stats { flex-direction: column; gap: 8px; padding: 18px; max-width: 26rem; }
  .trust-stat { justify-content: flex-start; padding: 10px 4px; }
  .trust-stat + .trust-stat { border-left: none; border-top: 1px dashed hsl(var(--border)); padding-top: 18px; }
  .persona-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta { padding: 52px 22px; }
  .cta-actions .btn { width: 100%; }
  .dim-label { font-size: 10.5px; letter-spacing: 0.12em; }
  .viewport-bar { padding: 10px 14px; gap: 10px; }
  .vb-title { display: none; }
  #ballooning-tool { min-height: 380px; }
  .tool-placeholder { min-height: 352px; }
  .share-feats { grid-template-columns: 1fr; }
}
