@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --ink: #0b1220;
  --ink-2: #1a2436;
  --paper: #eef1f6;
  --paper-2: #f7f8fb;
  --line: #c5cede;
  --mute: #5c6b7a;
  --coral: #e85d2a;
  --coral-deep: #c4471a;
  --ok: #1f7a4c;
  --bad: #a61f1f;
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --panel-bg: rgba(255, 255, 255, 0.86);
  --panel-blur: 8px;
  --panel-radius: 18px;
  --panel-shadow: 0 10px 28px rgba(11, 18, 32, 0.04);
  --wrap-max: 1120px;
  --wrap-pad: 1.25rem;
  --nav-pad-x: max(var(--wrap-pad), calc((100vw - min(var(--wrap-max), 100vw - (var(--wrap-pad) * 2))) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--paper-2);
  background-image:
    radial-gradient(1100px 640px at 8% -8%, rgba(232, 93, 42, 0.16), transparent 52%),
    radial-gradient(900px 520px at 100% 8%, rgba(26, 36, 54, 0.12), transparent 48%),
    radial-gradient(700px 400px at 50% 100%, rgba(232, 93, 42, 0.05), transparent 55%),
    linear-gradient(180deg, #fbfcfe 0%, var(--paper-2) 42%, var(--paper) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.wrap {
  width: min(var(--wrap-max), calc(100% - (var(--wrap-pad) * 2)));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
  text-decoration: none;
}
a:hover { color: var(--ink); }
a:active { color: var(--coral-deep); }
a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}
button, input, textarea, select { font: inherit; }

/* Full-bleed sticky bar; brand + links align with .wrap content. */
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 0.75rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0.75rem var(--nav-pad-x);
  background: #f7f8fb;
  border-bottom: 1px solid rgba(197, 206, 222, 0.85);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.wrap > .nav,
.desk-shell > .nav {
  border-bottom-color: rgba(197, 206, 222, 0.85);
  margin-bottom: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.12rem;
  flex: none;
  min-height: 2.4rem;
}
.brand img { width: 34px; height: 34px; image-rendering: auto; border-radius: 8px; display: block; }
.nav-links {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  color: var(--mute);
  font-size: 0.9rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
  margin-left: auto;
}
.nav-links > a:not(.btn) {
  color: var(--mute);
  font-weight: 500;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links > a:not(.btn):visited { color: var(--mute); }
.nav-links > a:not(.btn):hover {
  color: var(--ink);
  background: rgba(11, 18, 32, 0.05);
}
.nav-links > a:not(.btn):active { color: var(--coral-deep); }
.nav-links > a:not(.btn).is-active,
.nav-links > a:not(.btn)[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  background: rgba(11, 18, 32, 0.07);
}
.nav-links > a:not(.btn).is-active:visited,
.nav-links > a:not(.btn)[aria-current="page"]:visited {
  color: var(--ink);
}
.nav-links > a:not(.btn).is-active:hover,
.nav-links > a:not(.btn)[aria-current="page"]:hover {
  color: var(--coral-deep);
  background: rgba(232, 93, 42, 0.08);
}
.nav-end {
  display: none;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  margin-left: 0;
}
.nav-cta-bar { display: none; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars {
  display: grid;
  gap: 5px;
  width: 1.15rem;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-links .btn,
.nav-links a.btn,
.nav-links .btn:visited,
.nav-links a.btn:visited,
.nav-links .btn:hover,
.nav-links a.btn:hover,
.nav-links .btn:active,
.nav-links a.btn:active,
.nav-links .btn:focus,
.nav-links a.btn:focus,
.nav-links .btn:focus-visible,
.nav-links a.btn:focus-visible,
.nav-links button.btn,
.nav-end .btn,
.nav-end a.btn,
.nav-end .btn:visited,
.nav-end a.btn:visited,
.nav-end .btn:hover,
.nav-end a.btn:hover,
.nav-end .btn:active,
.nav-end a.btn:active,
.nav-end .btn:focus,
.nav-end a.btn:focus,
.nav-end .btn:focus-visible,
.nav-end a.btn:focus-visible,
a.nav-cta {
  font-weight: 600;
  margin: 0;
  margin-left: 0.35rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  line-height: 1.2;
  min-height: 2.25rem;
  flex: none;
  /* Kill lift/jump: generic a.btn:hover uses translateY(-1px). */
  transform: none !important;
  translate: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}
/* Nav CTA: quiet outline, not a solid orange pill */
.nav-links .btn.coral,
.nav-links a.btn.coral,
.nav-links .btn.coral:visited,
.nav-links a.btn.coral:visited,
.nav-end .btn.coral,
.nav-end a.btn.coral,
.nav-end .btn.coral:visited,
.nav-end a.btn.coral:visited,
a.nav-cta.btn.coral,
a.nav-cta.btn.coral:visited {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  box-shadow: none;
}
.nav-links .btn.coral:hover,
.nav-links a.btn.coral:hover,
.nav-end .btn.coral:hover,
.nav-end a.btn.coral:hover,
a.nav-cta.btn.coral:hover {
  background: rgba(232, 93, 42, 0.06);
  border-color: rgba(232, 93, 42, 0.45);
  color: var(--coral-deep);
}
.nav-links .btn.coral:active,
.nav-links a.btn.coral:active,
.nav-end .btn.coral:active,
.nav-end a.btn.coral:active,
a.nav-cta.btn.coral:active {
  background: rgba(232, 93, 42, 0.1);
  border-color: var(--coral);
  color: var(--coral-deep);
}
.nav-links .btn.ghost,
.nav-links .btn.ghost:visited {
  color: var(--ink);
}
.nav-links .btn.ghost.is-active,
.nav-links .btn.ghost[aria-current="page"] {
  color: var(--coral);
  border-color: var(--coral);
}
.nav-links .btn.coral.is-active,
.nav-links a.btn.coral.is-active,
.nav-links .btn.coral[aria-current="page"],
.nav-links a.btn.coral[aria-current="page"] {
  background: rgba(232, 93, 42, 0.1);
  border-color: rgba(232, 93, 42, 0.45);
  color: var(--coral-deep);
}

.btn,
a.btn,
a.btn:visited,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #f5f7fb;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover,
a.btn:hover,
button.btn:hover {
  transform: translateY(-1px);
  background: var(--ink-2);
  color: #fff;
}
.btn:active,
a.btn:active,
button.btn:active {
  color: #fff;
}
.btn.ghost,
a.btn.ghost,
a.btn.ghost:visited,
button.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover,
a.btn.ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(11, 18, 32, 0.04);
}
.btn.coral,
a.btn.coral,
a.btn.coral:visited,
button.btn.coral {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
.btn.coral:hover,
a.btn.coral:hover {
  background: var(--coral-deep);
  border-color: var(--coral-deep);
  color: #fff;
}
.btn.coral:active,
a.btn.coral:active {
  color: #fff;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn[hidden],
a.btn[hidden],
button.btn[hidden],
.panel[hidden],
.row[hidden] { display: none !important; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: end;
  min-height: calc(100vh - 5.5rem);
  padding: 2rem 0 3.5rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--mute);
  max-width: 34rem;
  margin: 0 0 1.6rem;
}
.hero .lede .hit {
  color: var(--coral-deep);
  font-style: italic;
  font-family: var(--display);
  font-size: 1.28em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-visual {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
}
.visual-stack {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
}
.hero-visual .mark {
  width: 78%;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 24px 50px rgba(11, 18, 32, 0.18));
  animation: float 5.5s ease-in-out infinite;
}
.hero-visual .puffin {
  position: absolute;
  right: 4%;
  bottom: 18%;
  width: 96px;
  image-rendering: auto;
  filter: drop-shadow(0 14px 28px rgba(11, 18, 32, 0.2));
  animation: bob 2.8s ease-in-out infinite;
  z-index: 2;
}
.pack-float {
  position: absolute;
  left: 0;
  bottom: 6%;
  width: 58%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.12);
  animation: rise 6s ease-in-out infinite;
  z-index: 3;
}
.pack-float-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--mute);
  margin-bottom: 0.35rem;
}
.pack-float .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mute);
}
.pack-float .dot.ok { background: var(--ok); }
.pack-float strong { display: block; font-size: 0.95rem; }
.pack-float p { margin: 0.2rem 0 0; color: var(--mute); font-size: 0.82rem; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
@keyframes rise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.icon {
  width: 40px;
  height: 40px;
  color: var(--ink);
  display: block;
  margin-bottom: 0.75rem;
  flex: none;
}
.icon.sm { width: 28px; height: 28px; margin: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat {
  border-top: 2px solid var(--ink);
  padding: 1rem 0 0.25rem;
}
.stat .icon { margin-bottom: 0.5rem; }
.stat-n {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.stat-l { color: var(--mute); font-size: 0.92rem; max-width: 12rem; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.feature {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.feature strong { display: block; margin-bottom: 0.35rem; }
.feature p { margin: 0; color: var(--mute); font-size: 0.95rem; }

.visual-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.mock {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.08);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--mute);
}
.mock-bar.dark {
  background: var(--ink);
  color: #9aa8bd;
  border-bottom-color: transparent;
}
.mock-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c5cede;
}
.mock-bar.dark span:nth-child(1) { background: #e85d2a; }
.mock-bar.dark span:nth-child(2) { background: #f0b429; }
.mock-bar.dark span:nth-child(3) { background: #3dba7a; }
.mock-bar em { margin-left: auto; font-style: normal; }
.mock-body {
  position: relative;
  padding: 1.1rem;
  min-height: 260px;
}
.mock-line {
  height: 10px;
  width: 55%;
  border-radius: 999px;
  background: #e4e9f1;
  margin-bottom: 0.55rem;
}
.mock-line.wide { width: 82%; }
.mock-claim {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  margin-top: 0.75rem;
  background: var(--paper-2);
}
.mock-claim.gap { border-style: dashed; opacity: 0.9; }
.mock-claim strong { display: block; font-size: 0.85rem; }
.mock-claim p { margin: 0.15rem 0 0; color: var(--mute); font-size: 0.82rem; }
.mock-puffin {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 8px 16px rgba(11, 18, 32, 0.18));
  background: transparent;
}
.mock-puffin-pop {
  animation: mock-nu-pop 0.45s ease;
}
@keyframes mock-nu-pop {
  0% { transform: translateY(4px) scale(0.92); opacity: 0.7; }
  55% { transform: translateY(-3px) scale(1.06); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.mock-md {
  margin: 0;
  padding: 1.1rem 1.15rem 1.3rem;
  background: var(--ink);
  color: #d7deea;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  min-height: 260px;
  white-space: pre-wrap;
}

.section { padding: 3.5rem 0; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.section .sub { color: var(--mute); max-width: 36rem; margin: 0 0 1.8rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.step {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.step .icon { margin-top: 0.35rem; }
.step strong { display: block; margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--mute); }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.plan {
  border: 1px solid var(--line);
  background: var(--panel-bg);
  backdrop-filter: blur(var(--panel-blur));
  border-radius: var(--panel-radius);
  padding: 1.25rem;
  box-shadow: var(--panel-shadow);
}
.plan.featured { border-color: var(--ink); background: rgba(255, 255, 255, 0.96); }
.plan .price {
  font-family: var(--display);
  font-size: 2.4rem;
  margin: 0.4rem 0;
}
.plan p { color: var(--mute); margin: 0 0 1rem; }
.plan .strike {
  text-decoration: line-through;
  font-size: 0.85rem;
  margin-bottom: 0.25rem !important;
}
.plan code {
  font-size: 0.85em;
  background: var(--paper);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}
.promo-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  border: 1px solid var(--coral);
  background: rgba(232, 93, 42, 0.08);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  color: var(--ink);
}
.promo-banner strong { color: var(--coral); letter-spacing: 0.04em; }
.promo-banner .btn { margin-left: auto; }
.habit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.25rem;
}
.habit-strip .hint-line { margin: 0.2rem 0 0; }
.habit-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  flex: 1;
  font-size: 0.88rem;
  color: var(--mute);
}
.habit-stats strong { color: var(--ink); font-size: 1.05rem; margin-right: 0.2rem; }
.habit-strip .btn { margin-left: auto; }
@media (max-width: 720px) {
  .habit-strip .btn { margin-left: 0; width: 100%; }
}
.pilot-ladder {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  font-size: 0.9rem;
}
.pilot-ladder strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
}
.pilot-ladder ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.pilot-ladder li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
  color: var(--mute);
}
.pilot-ladder li span {
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 560px) {
  .pilot-ladder li { grid-template-columns: 1fr; gap: 0.15rem; }
  .promo-banner { flex-wrap: wrap; }
  .promo-banner .btn { margin-left: 0; width: 100%; }
}

.mute-label { color: var(--mute); font-weight: 500; font-size: 0.85em; }
.hero-stakes .eyebrow {
  color: var(--coral);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.75rem;
}
.hero-stakes h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
}
.hero-board {
  gap: 0.85rem;
  min-height: 320px;
}
.feature-win {
  border-color: var(--coral);
  background: rgba(232, 93, 42, 0.06);
}
.contrast-grid .feature strong { display: block; margin-bottom: 0.35rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--coral);
  margin: 0 0 0.75rem;
}
.tagline {
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--coral);
  margin: 0 0 0.75rem;
  text-transform: none;
}
.sub.wide { max-width: 40rem; }
.judge-line {
  margin: 1.25rem 0 0;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.verify-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
  max-width: 40rem;
}
.verify-list li { margin: 0.4rem 0; }
.verify-list.muted { color: var(--mute); }
.showcase-pack { max-height: 420px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--mute);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.footer a,
.footer a:hover,
.hint-line a,
.hint-line a:hover {
  color: var(--mute);
  text-decoration: none;
}
.footer a:hover,
.hint-line a:hover { color: var(--ink); }

/* Desk */
.desk-shell { padding: 0 0 3rem; }
.desk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  background: var(--panel-bg);
  backdrop-filter: blur(var(--panel-blur));
  border-radius: var(--panel-radius);
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: var(--panel-shadow);
}
.panel h2 {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.ledger-resolved {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f7a4c;
}
.outcome-row {
  margin-top: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.unlock-after-send {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--coral) 30%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--coral) 7%, var(--paper));
}
.outcome-btn.is-active {
  border-color: var(--coral);
  color: var(--coral);
}
.refuse-theatre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.5rem 0 0.85rem;
}
.refuse-col {
  border-radius: 14px;
  padding: 0.85rem 0.95rem 1rem;
  position: relative;
  min-height: 7.5rem;
}
.refuse-almost {
  border: 1px solid rgba(232, 93, 42, 0.35);
  background: linear-gradient(180deg, rgba(232, 93, 42, 0.1), rgba(255, 255, 255, 0.94));
}
.refuse-bound {
  border: 1px solid rgba(31, 122, 76, 0.35);
  background: linear-gradient(180deg, rgba(31, 122, 76, 0.1), rgba(255, 255, 255, 0.94));
}
.refuse-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.45rem;
}
.refuse-almost p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  text-decoration: line-through;
  text-decoration-color: rgba(232, 93, 42, 0.55);
  color: #5a3a2e;
}
.refuse-almost mark.gap-hit {
  background: rgba(232, 93, 42, 0.28);
  color: #3a1a10;
  border-radius: 2px;
  padding: 0 0.08em;
  text-decoration: inherit;
  font-weight: 600;
}
.refuse-bound .ship-answer {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  background: transparent;
  border: 0;
  padding: 0;
}
.refuse-stamp {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}
.refuse-stamp-miss {
  color: var(--coral-deep);
  background: rgba(232, 93, 42, 0.12);
}
.refuse-stamp-miss.is-elevated,
.refuse-stamp-miss.is-high {
  background: rgba(232, 93, 42, 0.22);
}
.refuse-stamp-ok {
  color: #1f7a4c;
  background: rgba(31, 122, 76, 0.12);
}
.refuse-theatre.theatre-in {
  animation: theatreIn 0.55s ease;
}
.refuse-theatre.theatre-focus {
  outline: 2px solid rgba(232, 93, 42, 0.55);
  outline-offset: 4px;
  animation: theatreIn 0.55s ease, theatrePulse 1.2s ease 0.2s 1;
}
.refuse-theatre:focus {
  outline: 2px solid rgba(232, 93, 42, 0.55);
  outline-offset: 4px;
}
@keyframes theatreIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes theatrePulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 93, 42, 0.35); }
  70% { box-shadow: 0 0 0 12px rgba(232, 93, 42, 0); }
  100% { box-shadow: none; }
}
.ship-theatre-status {
  font-weight: 600;
  color: var(--ink);
  margin: 0.15rem 0 0.55rem;
}
.verify-panel textarea {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}
.verify-summary {
  margin: 1rem 0 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 122, 76, 0.25);
  background: rgba(31, 122, 76, 0.06);
}
.verify-summary.is-fail {
  border-color: rgba(180, 50, 50, 0.35);
  background: rgba(180, 50, 50, 0.07);
}
.verify-summary.is-fail strong { color: var(--bad); }
.verify-summary p { margin: 0.35rem 0 0; color: var(--mute); }
.verify-near {
  margin: 0.45rem 0 0;
  font-weight: 600;
  color: var(--ink);
}
.verify-near.high { color: var(--coral-deep); }
.verify-seal {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.verify-seal.ok { color: var(--ok); }
.verify-seal.bad { color: var(--bad); }
.verify-seal.miss { color: var(--mute); }
.hint-line.warn { color: var(--coral-deep); }
@media (max-width: 720px) {
  .refuse-theatre { grid-template-columns: 1fr; }
}
.ship-card {
  border: 1px solid rgba(31, 122, 76, 0.35);
  background: linear-gradient(180deg, rgba(31, 122, 76, 0.08), rgba(255, 255, 255, 0.92));
  border-radius: 14px;
  padding: 0.85rem 0.95rem 1rem;
  margin: 0.35rem 0 0.9rem;
  box-shadow: 0 8px 22px rgba(31, 122, 76, 0.06);
}
.ship-card.ship-flash {
  animation: shipFlash 0.9s ease;
}
@keyframes shipFlash {
  0% { box-shadow: 0 0 0 0 rgba(232, 93, 42, 0.45); }
  40% { box-shadow: 0 0 0 6px rgba(232, 93, 42, 0.18); }
  100% { box-shadow: 0 8px 22px rgba(31, 122, 76, 0.06); }
}
.ship-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.ship-card-top strong {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ok);
}
.ship-meta {
  font-size: 0.75rem;
  color: var(--mute);
  white-space: nowrap;
}
.ship-answer {
  margin: 0;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(197, 206, 222, 0.9);
  font-family: var(--font);
  font-size: 0.98rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  max-height: 280px;
  overflow: auto;
}
.ship-actions { margin-top: 0.7rem; }
.gap-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.gap-chip {
  display: inline-block;
  max-width: 100%;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: rgba(166, 31, 31, 0.08);
  border: 1px solid rgba(166, 31, 31, 0.22);
  color: var(--bad);
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 600;
}
.pack-details {
  margin: 0.4rem 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.35rem 0.7rem 0.55rem;
  background: rgba(255, 255, 255, 0.55);
}
.pack-details summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mute);
  padding: 0.35rem 0;
  list-style: none;
}
.pack-details summary::-webkit-details-marker { display: none; }
.pack-details summary::before {
  content: "▸ ";
  color: var(--coral);
}
.pack-details[open] summary::before { content: "▾ "; }
.pack-details .out { margin-top: 0.4rem; }
.tight-row { gap: 0.45rem; margin: 0.2rem 0 0.55rem; }
.tight-row .btn { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.pack-view-header h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.label { display: block; font-size: 0.82rem; color: var(--mute); margin: 0.7rem 0 0.3rem; }
.bind-status {
  display: inline-block;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  vertical-align: middle;
  transition: background 0.2s, color 0.2s;
}
.bind-status.ok  { background: #d9f0e4; color: var(--ok); }
.bind-status.bad { background: #f8dede; color: var(--bad); }
.bind-status.warn { background: rgba(232,93,42,0.12); color: var(--coral); }
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
  border-color: transparent;
}

textarea { min-height: 96px; resize: vertical; }
.claim {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  margin-top: 0.75rem;
  background: var(--paper-2);
}
.claim-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: var(--mute);
}
.row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #e8edf5;
}
.status.ok { background: #d9f0e4; color: var(--ok); }
.status.bad { background: #f8dede; color: var(--bad); }
.status.warn { background: rgba(232,93,42,0.12); color: var(--coral); }
.out {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  max-height: 520px;
  overflow: auto;
  margin: 0;
}
.guide {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}
.guide img {
  width: 52px;
  height: 52px;
  image-rendering: auto;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}
.guide p { margin: 0; font-size: 0.9rem; color: #d7deea; }
.guide strong { color: #fff; }
.guide.mobile-tip { background: var(--coral); display: none; }
@media (max-width: 900px) {
  .guide.mobile-tip { display: flex; }
}

/* Auth — split graphic + form */
body.page-auth {
  background: #fff;
  background-image: none;
}
body.page-auth::before { display: none; }

.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.auth-visual {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  min-height: 100vh;
}
.auth-visual picture {
  position: absolute;
  inset: 0;
  display: block;
}
.auth-visual picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
}
.auth-visual-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 18, 32, 0.55) 0%, rgba(11, 18, 32, 0.22) 42%, rgba(11, 18, 32, 0.45) 100%),
    linear-gradient(180deg, transparent 40%, rgba(11, 18, 32, 0.72) 100%);
}
.auth-visual-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2.5rem 2.4rem 2.75rem;
  color: #f5f7fb;
  max-width: 28rem;
}
.auth-visual-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.auth-visual-line {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.2vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.auth-visual-line em {
  font-style: italic;
  color: #ffb89a;
}
.auth-visual-sub {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(245, 247, 251, 0.78);
  max-width: 22rem;
}
.auth-pane {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(232, 93, 42, 0.1), transparent 55%),
    linear-gradient(180deg, #fbfcfe 0%, var(--paper-2) 100%);
  padding: 0 1.5rem 2.5rem;
}
.auth-pane-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem 0 0.75rem;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.auth-pane-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.auth-pane-nav .brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}
.auth-pane-back {
  font-size: 0.88rem;
  color: var(--mute);
  text-decoration: none;
  white-space: nowrap;
}
.auth-google-gis {
  display: flex;
  justify-content: stretch;
  width: 100%;
  min-height: 44px;
  margin: 0 0 0.15rem;
  border-radius: 999px;
  overflow: hidden;
  /* Kill GIS iframe focus halo (blue ring in the screenshot) */
  outline: none;
  box-shadow: none;
  isolation: isolate;
}
.auth-google-gis > div {
  width: 100% !important;
}
.auth-google-gis iframe {
  outline: none !important;
  box-shadow: none !important;
}
.auth-google-gis:focus,
.auth-google-gis:focus-within,
.auth-google-gis *:focus {
  outline: none !important;
  box-shadow: none !important;
}
/* Prefer our branded Google button; GIS host stays visually hidden for click-proxy */
.auth-google-gis.is-proxy {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.auth-pane-back:hover { color: var(--ink); }

/* Auth nav must never pick up the site mobile drawer / hamburger */
.page-auth .auth-pane-nav .nav-links,
.page-auth .auth-pane-nav .nav-drawer,
.page-auth .auth-pane-nav .nav-toggle,
.page-auth .auth-pane-nav .nav-end {
  display: none !important;
}
.auth-card {
  max-width: 440px;
  margin: 1.25rem auto 3rem;
  padding: 1.75rem 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-bg);
  backdrop-filter: blur(var(--panel-blur));
  box-shadow: 0 18px 48px rgba(11, 18, 32, 0.08);
}
.auth-card-flush {
  width: min(420px, 100%);
  margin: 1.5rem auto auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0.5rem 0 2rem;
  border-radius: 0;
}
.auth-card .tabs {
  margin: 0 0 1rem;
  width: 100%;
  max-width: 22rem;
  gap: 0.18rem;
  padding: 0.2rem;
}
.auth-card .tab {
  flex: 1 1 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}
.auth-card-head { margin-bottom: 0.95rem; }
.auth-sub {
  margin: 0.35rem 0 0;
  color: var(--mute);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-form input {
  width: 100%;
  max-width: 22rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  box-sizing: border-box;
}
.auth-submit {
  width: 100%;
  max-width: 22rem;
  margin-top: 1.25rem;
  justify-content: center;
}
.auth-google {
  width: 100%;
  max-width: 22rem;
  margin-top: 0.15rem;
  background: #111827;
  color: #fff;
  border: 1px solid #111827;
  box-shadow: none;
  gap: 0.55rem;
  font-weight: 600;
}
.auth-google:hover {
  background: #0b1220;
  border-color: #0b1220;
  transform: translateY(-1px);
}
.auth-google:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.auth-google .google-g { flex-shrink: 0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(28, 25, 23, 0.1);
}
.auth-divider span { flex-shrink: 0; }
.auth-divider[hidden] { display: none !important; }
.auth-form .field { margin-top: 0.85rem; }
.auth-form .field:first-child { margin-top: 0; }
.auth-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mute);
  margin: 0 0 0.35rem;
}
.auth-footer {
  margin: 0.95rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--mute);
}
.auth-footer a {
  color: var(--mute);
  text-decoration: none;
}
.auth-footer a:hover { color: var(--ink); }
.auth-card .form-msg { margin-top: 1rem; text-align: center; }

.tabs {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.06);
  border: 1px solid transparent;
}
.tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--mute);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tab.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(11, 18, 32, 0.12);
}

@media (max-width: 960px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-visual {
    min-height: 38vh;
    max-height: 42vh;
  }
  .auth-visual-copy { padding: 1.4rem 1.25rem 1.5rem; max-width: none; }
  .auth-visual-line { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .auth-pane { min-height: auto; padding: 0 1.15rem 2rem; }
  .auth-card-flush { margin-top: 0.75rem; }
}
@media (max-width: 520px) {
  .auth-card { padding: 1.35rem 1.1rem 1.25rem; border-radius: 18px; }
  .auth-visual { min-height: 32vh; }
}

.sub.tight { margin-bottom: 1rem; }
.form-msg { margin-top: 0.85rem; font-size: 0.92rem; color: var(--ok); }
.form-msg.bad { color: var(--bad); }
.hint-line { margin: 1rem 0 0; color: var(--mute); font-size: 0.9rem; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 0.5rem 0 1.25rem;
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.auth-card-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-head .sub { margin: 0.45rem 0 0; color: var(--mute); }
.legal-meta {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--mute);
  letter-spacing: 0.01em;
}
/* Privacy / Terms: centred column, left-aligned body for reading. */
.page-head:has(+ .legal),
.page-head.legal-head {
  display: block;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.page-head:has(+ .legal) > div,
.page-head.legal-head > div {
  width: 100%;
}
.legal {
  max-width: 40rem;
  width: 100%;
  margin: 0 auto 2.5rem;
  text-align: left;
}
.legal h2 {
  margin: 1.55rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.legal h2:first-child { margin-top: 0; }
.legal p,
.legal li {
  margin: 0 0 0.65rem;
  color: var(--ink);
  line-height: 1.55;
  font-size: 0.95rem;
}
.legal ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}
.legal li + li { margin-top: 0.35rem; }
.legal a { color: var(--coral-deep); text-decoration: none; }
.legal a:hover { color: var(--coral); text-decoration: none; }
.dash-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 3rem;
}
.h3 { font-size: 0.95rem; margin: 1.1rem 0 0.4rem; }
.meta { color: var(--mute); font-size: 0.85rem; }
.secure-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--mute);
  font-size: 0.92rem;
}
.pack-list, .session-list, .activity-list { display: grid; gap: 0.45rem; }
.pack-row, .session-row, .activity-row {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  display: grid;
  gap: 0.15rem;
  width: 100%;
  color: inherit;
  font: inherit;
}
.session-row, .activity-row { cursor: default; }
.pack-title { font-weight: 600; }
.pack-meta, .pack-date, .session-row span, .activity-row span, .activity-row em {
  color: var(--mute);
  font-size: 0.82rem;
  font-style: normal;
}
.empty { color: var(--mute); margin: 0; }

/* Pack view page */
.pack-view-panel { max-width: 860px; margin: 1.5rem auto; }
.pack-view-header { margin-bottom: 1.25rem; }
.pack-view-header h2 { margin: 0 0 0.5rem; }
.pack-excerpts {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}
.pack-excerpts[hidden] { display: none !important; }
.pack-claim {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1.05rem 1rem;
  background: rgba(255, 255, 255, 0.88);
}
.pack-claim.is-bound { border-color: rgba(61, 186, 122, 0.45); }
.pack-claim.is-gap { border-color: rgba(200, 70, 70, 0.35); }
.pack-claim header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  color: var(--mute);
}
.pack-claim header strong {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.pack-claim.is-bound header strong { color: var(--ok); }
.pack-claim.is-gap header strong { color: var(--bad); }
.pack-claim-text {
  margin: 0 0 0.45rem;
  font-weight: 600;
  line-height: 1.35;
}
.pack-claim-why,
.pack-claim-quote {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: var(--mute);
  line-height: 1.4;
}
.pack-claim-excerpt {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(11, 18, 32, 0.04);
  color: var(--ink);
}
mark.pack-span {
  background: rgba(61, 186, 122, 0.28);
  color: inherit;
  padding: 0.05em 0.12em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.pack-claim.is-gap mark.pack-span {
  background: rgba(200, 70, 70, 0.18);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.pack-meta-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; color: var(--mute); font-size: 0.85rem; }
.pack-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  background: var(--paper);
  color: var(--mute);
}
.pack-badge.tier-draft { background: #e8edf5; color: var(--ink); }
.pack-badge.tier-grounded { background: #d9f0e4; color: var(--ok); }
.pack-badge.tier-counsel { background: rgba(232, 93, 42, 0.12); color: var(--coral); }
.pack-badge.status-ready { background: #d9f0e4; color: var(--ok); }
.pack-badge.status-ready-with-gaps { background: #f0ddb4; color: #8b6914; }

/* Nu companion FAB (non-desk) */
#nu-fab {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 9998;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 10px 18px rgba(11, 18, 32, 0.28));
}
#nu-fab.nu-fab-in { opacity: 1; transform: translateY(0) scale(1); }
#nu-fab:hover { transform: translateY(-2px) scale(1.04); }
#nu-fab.is-open { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 50%; }
#nu-fab .nu-avatar-wrap { width: 60px; height: 60px; background: transparent; }
#nu-fab img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  background: transparent;
}
#nu-chat-panel .nu-chat-head img {
  image-rendering: auto;
}
#nu-fab-dismiss {
  position: fixed;
  bottom: 4.85rem;
  right: 1.15rem;
  z-index: 9999;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #f5f7fb;
  font: 600 0.7rem/1 var(--font);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
/* Desktop / laptop: no × — right-click Nu for Hide Nu */
@media (hover: hover) and (pointer: fine) {
  #nu-fab-dismiss { display: none !important; }
  #nu-root .nu-hide { display: none !important; }
}
/* Mobile / touch: small × visible */
@media (hover: none), (pointer: coarse) {
  #nu-fab-dismiss.nu-fab-in {
    opacity: 0.6;
    pointer-events: auto;
    transform: scale(1);
  }
  #nu-fab-dismiss:hover,
  #nu-fab-dismiss:focus-visible { opacity: 1; }
  #nu-root .nu-hide {
    opacity: 0.6;
    pointer-events: auto;
  }
  #nu-root .nu-hide:hover,
  #nu-root .nu-hide:focus-visible { opacity: 1; }
}

#nu-root .nu-hide {
  position: absolute;
  top: 0;
  right: 6px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #f5f7fb;
  font: 600 0.7rem/1 var(--font);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

#nu-ctx {
  position: fixed;
  z-index: 10050;
  min-width: 120px;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(11, 18, 32, 0.16);
}
#nu-ctx button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font: 600 0.88rem/1.2 var(--font);
  color: var(--ink);
  cursor: pointer;
}
#nu-ctx button:hover {
  background: var(--paper);
  color: var(--coral-deep);
}

/* Blink lids removed — they painted a dark line over Nu's face. */

#nu-chat-panel {
  position: fixed;
  bottom: 5.6rem;
  right: 1.4rem;
  z-index: 9998;
  width: min(360px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 480px;
}
#nu-chat-panel[hidden] { display: none !important; }
#nu-chat-panel .nu-chat-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.nu-chat-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: #f5f7fb;
}
.nu-chat-head img {
  width: 44px;
  height: 44px;
  image-rendering: auto;
  border-radius: 10px;
  flex: none;
  background: transparent;
  object-fit: contain;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}
.nu-chat-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  background: transparent;
}
.nu-chat-title { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.nu-chat-title strong { font-size: 0.95rem; color: #fff; }
.nu-chat-title span { font-size: 0.72rem; color: #9aa8bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nu-chat-head button {
  background: none;
  border: none;
  color: #9aa8bd;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  line-height: 1;
  border-radius: 6px;
  flex: none;
}
.nu-chat-head button:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nu-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 140px;
  max-height: 280px;
}
.nu-msg {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.nu-msg.nu { background: var(--paper); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.nu-msg.user { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.nu-msg.nu a.nu-cta {
  color: var(--coral-deep);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nu-msg.nu a.nu-cta:hover { color: var(--coral); text-decoration: none; }
.nu-msg.nu-msg-limit { border: 1px dashed var(--coral); background: #fff7f3; color: var(--coral-deep); }
.nu-chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.35rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.nu-chat-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  background: var(--paper-2);
  color: var(--ink);
  min-width: 0;
}
.nu-chat-form input:focus { outline: 2px solid var(--coral); outline-offset: 1px; }
.nu-chat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem 0.75rem;
  border-top: 0;
}
.nu-chat-scope {
  margin: 0;
  font-size: 0.72rem;
  color: var(--mute);
}
.nu-chat-hide {
  border: 0;
  background: none;
  color: var(--mute);
  font: 500 0.75rem/1 var(--font);
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}
.nu-chat-hide:hover { color: var(--coral-deep); }

.pref-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.pref-row:last-of-type { border-bottom: 0; }
.pref-row label { display: block; font-weight: 600; color: var(--ink); }
.pref-row .pref-desc { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--mute); line-height: 1.4; }
.pref-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pref-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(11, 18, 32, 0.2);
  transition: transform 0.15s ease;
}
.pref-switch[aria-checked="true"] {
  background: var(--ink);
  border-color: var(--ink);
}
.pref-switch[aria-checked="true"]::after { transform: translateX(18px); }

/* Nu companion — elite sharp cutout (not pixel-crunch) */
#nu-root {
  position: fixed;
  left: 0;
  top: 0;
  width: 112px;
  z-index: 9999;
  touch-action: none;
  user-select: none;
  will-change: transform;
  background: transparent;
}
#nu-root .nu-sprite {
  width: 112px;
  height: 112px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: grab;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 12px 28px rgba(11, 18, 32, 0.2));
}
#nu-root.is-drag .nu-sprite { cursor: grabbing; }
#nu-root .nu-face {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  background: transparent;
}
#nu-root .nu-sprite img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  pointer-events: none;
  background: transparent;
  transform-origin: center center;
}
#nu-root .nu-bob { display: grid; place-items: center; transform-origin: 50% 85%; position: relative; }
/* Walk bob is vertical only. !important so action shake/point cannot stack translateX. */
#nu-root.is-walk .nu-bob {
  animation: nu-step 0.32s ease-in-out infinite !important;
}
#nu-root.is-walk.nu-act .nu-bob {
  animation: nu-step 0.32s ease-in-out infinite !important;
}
#nu-root .nu-bubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 220px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11, 18, 32, 0.25);
}
#nu-root .nu-bubble .nu-bubble-cta {
  color: #ffd2bf;
  font-weight: 600;
  text-decoration: none;
}
#nu-root .nu-bubble .nu-bubble-cta:hover {
  color: #fff;
  text-decoration: none;
}
#nu-root .nu-bubble::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: var(--ink);
}
/* Mood tint accents (sprite swap is primary) */
#nu-root[data-mood="happy"] .nu-sprite { filter: drop-shadow(0 8px 14px rgba(232, 93, 42, 0.28)); }
#nu-root[data-mood="worried"] .nu-sprite { filter: drop-shadow(0 8px 14px rgba(166, 31, 31, 0.25)); }
#nu-root[data-mood="think"] .nu-sprite { filter: drop-shadow(0 8px 14px rgba(92, 107, 122, 0.28)); }
#nu-root[data-mood="proud"] .nu-sprite { filter: drop-shadow(0 8px 16px rgba(31, 122, 76, 0.28)); }

/* Actions */
#nu-root.nu-act[data-action="wave"] .nu-bob { animation: nu-wave 0.9s ease both; }
#nu-root.nu-act[data-action="bounce"] .nu-bob { animation: nu-bounce 0.5s ease both; }
#nu-root.nu-act[data-action="shake"] .nu-bob { animation: nu-shake 0.75s ease both; }
#nu-root.nu-act[data-action="spin"] .nu-bob { animation: nu-spin 0.85s ease both; }
#nu-root.nu-act[data-action="point"] .nu-bob { animation: nu-point 0.85s ease both; }
#nu-root.nu-act[data-action="celebrate"] .nu-bob { animation: nu-celebrate 1.05s ease both; }
#nu-root.nu-act[data-action="stomp"] .nu-bob { animation: nu-stomp 0.7s ease both; }
#nu-root.nu-act[data-action="peek"] .nu-bob { animation: nu-peek 0.7s ease both; }

@keyframes nu-step {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
@keyframes nu-wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg) translateY(-4px); }
  50% { transform: rotate(10deg) translateY(-2px); }
  75% { transform: rotate(-8deg) translateY(-4px); }
}
@keyframes nu-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-14px) scale(1.04); }
  70% { transform: translateY(0) scale(0.98); }
}
@keyframes nu-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px) rotate(-4deg); }
  40% { transform: translateX(6px) rotate(4deg); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(4px); }
}
@keyframes nu-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes nu-point {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(10px, -6px) rotate(6deg); }
  70% { transform: translate(6px, -2px); }
}
@keyframes nu-celebrate {
  0%, 100% { transform: translateY(0) scale(1); }
  20% { transform: translateY(-16px) scale(1.08) rotate(-6deg); }
  40% { transform: translateY(-4px) scale(1.02) rotate(6deg); }
  60% { transform: translateY(-14px) scale(1.08) rotate(-4deg); }
  80% { transform: translateY(0) scale(1) rotate(0deg); }
}
@keyframes nu-stomp {
  0%, 100% { transform: translateY(0) scaleY(1); }
  30% { transform: translateY(-8px) scaleY(1.05); }
  50% { transform: translateY(3px) scaleY(0.9); }
  70% { transform: translateY(0) scaleY(1); }
}
@keyframes nu-peek {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-6px) rotate(-8deg); }
  70% { transform: translateY(-2px) rotate(4deg); }
}

body.page-marketing .nav,
body.page-showcase .nav {
  background: #f7f8fb;
  border-bottom: 1px solid rgba(197, 206, 222, 0.85);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  margin-bottom: 0;
  box-shadow: none;
}
@media (max-width: 900px) {
  .hero, .desk-grid, .steps, .plans, .stats, .features, .visual-board, .dash-grid { grid-template-columns: 1fr; }
  .stats, .features { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; padding-top: 1rem; }
  .hero-visual { min-height: 280px; }
  .nav {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
  .brand {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    background: #f7f8fb;
  }
  .nav-end {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    flex: 0 0 auto;
  }
  .nav-cta-bar {
    display: inline-flex !important;
    align-items: center;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
  }
  .nav-toggle-bars {
    display: grid;
    gap: 5px;
    width: 1.15rem;
  }
  .nav-toggle-bars span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .nav.is-open .nav-toggle-bars span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle-bars span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-cta,
  .nav-end .btn.coral,
  .nav-cta-bar {
    padding: 0.5rem 0.9rem !important;
    font-size: 0.88rem !important;
    min-height: 2.75rem;
    white-space: nowrap;
    border-radius: 12px !important;
  }
  .nav-links,
  .nav-drawer {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: var(--nav-pad-x);
    right: var(--nav-pad-x);
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.55rem;
    margin: 0;
    overflow: visible;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(11, 18, 32, 0.14);
  }
  .nav.is-open .nav-links,
  .nav.is-open .nav-drawer {
    display: flex;
  }
  .nav-links .hide-sm,
  .nav-drawer .hide-sm {
    display: flex !important;
  }
  .nav-links > a:not(.btn),
  .nav-drawer > a:not(.btn),
  .nav-links > button.btn.ghost,
  .nav-drawer > button.btn.ghost {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    font-size: 1rem;
    min-height: 2.75rem;
  }
  .nav-links > a:not(.btn):hover,
  .nav-drawer > a:not(.btn):hover {
    background: rgba(11, 18, 32, 0.04);
  }
  .nav-links > a.btn,
  .nav-drawer > a.btn,
  .nav-links > button.btn,
  .nav-drawer > button.btn {
    width: 100%;
    margin: 0.15rem 0 0;
    justify-content: center;
  }
  /* Compose stays in the top bar on phones — hide the drawer duplicate */
  .nav-links > a.btn.coral,
  .nav-drawer > a.btn.coral {
    display: none !important;
  }
  /* Mobile desk optimization */
  .desk-grid { gap: 1rem; }
  .panel { padding: 0.9rem 1rem 1rem; }
  textarea { min-height: 80px; font-size: 16px; } /* Prevent zoom on iOS */
  input[type="text"], input[type="email"], input[type="password"] { font-size: 16px; } /* Prevent zoom on iOS */
  .claim { padding: 0.7rem; }
  .row { gap: 0.5rem; }
  .btn { padding: 0.65rem 1rem; font-size: 0.92rem; }
  .out { font-size: 0.78rem; max-height: 360px; }
  /* Mobile pack view */
  .pack-view-panel { margin: 1rem auto; }
  /* Touch-friendly Nu */
  #nu-root .nu-sprite { width: 92px; height: 92px; }
  #nu-root .nu-sprite img { width: 84px; height: 84px; }
  #nu-root .nu-face { width: 84px; height: 84px; }
  #nu-root .nu-bubble { max-width: 180px; font-size: 0.75rem; }
}
@media (max-width: 560px) {
  .stats, .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .nav-cta,
  .nav-end .btn.coral {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.84rem !important;
  }
  .auth-pane-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }
  .auth-pane-nav .brand {
    background: transparent;
  }
  /* Voice input hint for mobile */
  label::after {
    content: " ";
  }
  textarea[data-field="ask"]::placeholder {
    content: "Tap to type or use voice input...";
  }
}

/* Viral drop */
.drop-hero { padding-bottom: 0.5rem; }
.drop-hero-cta {
  margin-top: 1rem;
}
.drop-hero-cta .btn {
  min-height: 2.4rem;
  padding: 0.55rem 1.05rem;
  font-size: 0.92rem;
}
.drop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.drop-card-hint {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}
.viral-card {
  border: 1px solid rgba(197, 206, 222, 0.95);
  border-radius: 18px;
  padding: 1.15rem 1.15rem 1rem;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper-2) 100%);
  color: var(--ink);
  min-height: 280px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 32px rgba(11, 18, 32, 0.07);
  position: relative;
  overflow: hidden;
}
.viral-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: var(--coral);
}
.viral-card.is-preview {
  outline: 1px dashed rgba(232, 93, 42, 0.4);
  outline-offset: 3px;
}
.viral-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.viral-card-top .viral-tag {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.viral-brand {
  color: var(--ink);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
  text-transform: none;
  font-size: 1rem;
}
.viral-brand img {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
.viral-tag {
  border: 1px solid rgba(11, 18, 32, 0.12);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-2);
  font-weight: 600;
}
.viral-card.is-preview .viral-tag {
  border-color: rgba(232, 93, 42, 0.35);
  color: var(--coral-deep);
  background: rgba(232, 93, 42, 0.08);
}
.viral-almost-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
}
.viral-almost {
  margin: 0.4rem 0 1.05rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 3.6vw, 1.45rem);
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.viral-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.viral-bound, .viral-gap {
  border-radius: 14px;
  padding: 0.85rem 0.8rem;
  min-height: 108px;
  position: relative;
}
.viral-card.is-stamped .viral-bound {
  animation: stamp-in 0.55s ease both;
}
.viral-card.is-stamped .viral-gap {
  animation: freeze-in 0.65s ease 0.12s both;
}
.viral-bound {
  background: linear-gradient(180deg, rgba(31, 122, 76, 0.12), rgba(31, 122, 76, 0.05));
  border: 1.5px solid rgba(31, 122, 76, 0.42);
}
.viral-gap {
  background: linear-gradient(180deg, rgba(232, 93, 42, 0.12), rgba(232, 93, 42, 0.04));
  border: 1.5px dashed rgba(232, 93, 42, 0.65);
}
.viral-bound strong, .viral-gap strong {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.45rem;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  font-weight: 800;
}
.viral-bound strong {
  color: #fff;
  background: #1f7a4c;
}
.viral-gap strong {
  color: #fff;
  background: var(--coral-deep);
}
.viral-bound p, .viral-gap p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.35;
}
.viral-footer {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--mute);
}
.viral-card-end {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(197, 206, 222, 0.75);
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  position: relative;
  overflow: visible;
  box-shadow: none;
  border-radius: 0;
}
.viral-end-rail,
.viral-end-kicker,
.viral-end-scan {
  display: none;
}
.viral-end-copy {
  min-width: 0;
  flex: 1;
}
.viral-end-copy strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.2rem;
  color: var(--ink);
}
.viral-end-copy p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--mute);
  line-height: 1.35;
}
.viral-nu {
  display: block;
  width: 2.85rem;
  height: 2.85rem;
  object-fit: contain;
  flex: none;
  opacity: 0.88;
  filter: drop-shadow(0 4px 8px rgba(11, 18, 32, 0.12));
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.viral-nu.is-pop {
  animation: viral-nu-pop 0.5s ease;
}
@keyframes viral-nu-pop {
  0% { transform: translateY(6px) scale(0.9); opacity: 0.4; }
  60% { transform: translateY(-3px) scale(1.06); opacity: 1; }
  100% { transform: none; opacity: 0.88; }
}
.viral-qr {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 8px;
  background: #fff;
  padding: 0.2rem;
  box-sizing: border-box;
  border: 1px solid rgba(197, 206, 222, 0.9);
  box-shadow: none;
  flex: none;
  opacity: 0.92;
}
@media (max-width: 560px) {
  .viral-card-end {
    align-items: center;
  }
  .viral-nu {
    width: 2.4rem;
    height: 2.4rem;
  }
  .viral-qr {
    width: 3rem;
    height: 3rem;
  }
}
.viral-pop { animation: viral-pop 0.45s ease; }
@keyframes viral-pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}
.waitlist-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
/* Email + CTA: cap field width — global input{width:100%} overstretches the row */
.waitlist-box .row,
.showcase-wait .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  max-width: 26rem;
}
.waitlist-box input[type="email"],
.showcase-wait input[type="email"] {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 17rem;
  align-self: center;
  min-height: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem 0.8rem;
  box-sizing: border-box;
}
.waitlist-box .row .btn,
.showcase-wait .row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.share-logos {
  margin: 0.85rem 0 0.35rem;
}
.share-logos-label {
  margin: 0 0 0.45rem;
}
.share-logos-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}
.share-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.share-logo:hover {
  border-color: var(--coral);
  color: var(--coral-deep);
  background: color-mix(in srgb, var(--coral) 8%, var(--paper));
}
.share-logo:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.share-logo svg { display: block; }
.share-logo-muted {
  opacity: 0.55;
}
.share-logo-muted:hover {
  opacity: 1;
}
#share-hint {
  margin-top: 0.45rem;
  color: var(--ok);
}
.showcase-wait {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.showcase-wait .row {
  margin-top: 0.45rem;
}
.viral-strip {
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 93, 42, 0.35);
  background: rgba(232, 93, 42, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}
.viral-strip p {
  margin: 0;
  max-width: 36rem;
  color: var(--ink);
}
.viral-strip strong { color: var(--coral-deep); }
.mock-claim { transition: transform 0.35s ease, border-color 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease; }
.hero-board:hover .mock-claim { transform: translateY(-2px); }
.hero-board:hover .mock-claim.gap { transform: translateY(2px); }
.mock-claim.is-waiting { opacity: 0.25; transform: scale(0.96); }
.mock-claim.stamp-in {
  animation: stamp-in 0.55s cubic-bezier(0.2, 1.4, 0.3, 1) both;
  border-color: var(--ok);
  box-shadow: 0 10px 28px rgba(31, 122, 76, 0.2);
}
.mock-claim.freeze-in {
  animation: freeze-in 0.65s ease both;
  border-color: var(--coral);
  box-shadow: 0 10px 28px rgba(232, 93, 42, 0.18);
}
@keyframes stamp-in {
  0% { opacity: 0; transform: scale(1.2) rotate(-2deg); }
  60% { opacity: 1; transform: scale(0.96) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes freeze-in {
  0% { opacity: 0; filter: blur(4px); transform: translateY(10px); }
  100% { opacity: 1; filter: none; transform: none; }
}

.btn-pulse-once {
  animation: btn-pulse 1.15s ease-out 1;
}
@keyframes btn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 93, 42, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(232, 93, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 93, 42, 0); }
}

.pulse-dot::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--coral);
  vertical-align: 0.1em;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.04);
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  padding: 0.7rem 0;
}
.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: ticker 22s linear infinite;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  white-space: nowrap;
}
.ticker-track span:nth-child(even) { color: var(--coral); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

.charge-band,
.cta-band {
  border-radius: 0;
  padding: 2.4rem 0 1.2rem !important;
  margin: 0.5rem 0 1.5rem;
  background: transparent;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.charge-band h2,
.cta-band h2 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
}
.charge-band .sub,
.cta-band .sub {
  color: var(--mute) !important;
  max-width: 36rem;
  margin: 0 0 1.4rem;
}
.charge-band .btn.ghost,
.charge-band a.btn.ghost,
.cta-band .btn.ghost,
.cta-band a.btn.ghost {
  color: var(--ink);
  border-color: var(--line);
}
.charge-band .btn.ghost:hover,
.cta-band .btn.ghost:hover {
  background: rgba(11, 18, 32, 0.04);
  color: var(--ink);
  border-color: var(--ink);
}
.cta-band .hero-cta { margin-top: 0.25rem; }

.status.ok { animation: status-flash 0.7s ease; }
@keyframes status-flash {
  0% { transform: scale(1.15); }
  100% { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-pulse-once, .ticker-track, .pulse-dot::before,
  .mock-claim.stamp-in, .mock-claim.freeze-in, .viral-pop, .status.ok,
  .viral-card.is-stamped .viral-bound, .viral-card.is-stamped .viral-gap {
    animation: none !important;
  }
}
@media (max-width: 900px) {
  .drop-grid { grid-template-columns: 1fr; }
  .viral-split { grid-template-columns: 1fr; }
}

.claim[data-bound="yes"] {
  border-color: var(--ok);
  box-shadow: 0 0 0 1px rgba(31, 122, 76, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.claim[data-bound="no"] {
  border-color: var(--coral);
  box-shadow: 0 0 0 1px rgba(232, 93, 42, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bind-status.bound { color: var(--ok); font-weight: 700; letter-spacing: 0.06em; }
.bind-status.gap { color: var(--coral); font-weight: 700; letter-spacing: 0.06em; }

/* Friday Freeze */
.memory-rail {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 88%, #fff6e8);
}
.memory-rail strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.memory-rail .hint-line { margin: 0 0 0.55rem; }
.memory-rail .row { flex-wrap: wrap; gap: 0.4rem; }

.coach-rail {
  margin: 0 0 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 90%, #e8f0ff);
}
.coach-rail strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.35rem;
}
.coach-rail .coach-warn {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  display: grid;
  gap: 0.35rem;
}
.coach-rail .coach-warn:last-child { margin-bottom: 0; }
.coach-rail .coach-warn p { margin: 0; }
.coach-rail .coach-warn.coach-sev-warn { color: var(--coral); }
.coach-rail .coach-action {
  justify-self: start;
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
}

.freeze-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(232, 93, 42, 0.45);
  background: rgba(232, 93, 42, 0.1);
}
.freeze-banner strong {
  color: var(--coral-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.billing-fields.is-deferred { display: none; }

/* YC / investor demo: keep chrome on the refuse moment */
body.demo-mode .nav-links > a[href="/dashboard"],
body.demo-mode .nav-links > a[href="/billing"],
body.demo-mode .nav-links > a[href="/settings"],
body.demo-mode .nav-links > a[href="/pricing"] {
  display: none;
}
body.demo-mode #pilot-ladder,
body.demo-mode #pay-hint,
body.demo-mode #billing-fields,
body.demo-mode #suggest-claims,
body.demo-mode #save-hint,
body.demo-mode #draft-hint,
body.demo-mode #memory-rail,
body.demo-mode #coach-rail,
body.demo-mode #ship-secondary,
body.demo-mode #ship-habit {
  display: none !important;
}
body.demo-mode #auth-link {
  display: none;
}
body.demo-mode #intake-title::after {
  content: " · Friday demo";
  color: var(--mute);
  font-weight: 500;
  font-size: 0.85rem;
}
body.demo-mode .refuse-theatre {
  gap: 1rem;
  margin: 0.35rem 0 1.15rem;
}
body.demo-mode .refuse-col {
  min-height: 10.5rem;
  padding: 1.15rem 1.2rem 1.35rem;
  box-shadow: 0 14px 36px rgba(11, 18, 32, 0.07);
}
body.demo-mode .refuse-almost p {
  font-size: 1.05rem;
  line-height: 1.5;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(232, 93, 42, 0.7);
}
body.demo-mode .refuse-almost mark.gap-hit {
  background: rgba(232, 93, 42, 0.38);
  box-shadow: 0 0 0 2px rgba(232, 93, 42, 0.12);
}
body.demo-mode .refuse-bound .ship-answer {
  font-size: 1.02rem;
  line-height: 1.5;
}
body.demo-mode .refuse-stamp {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  border: 2px solid currentColor;
  background: transparent;
  transform: rotate(-7deg);
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.06);
}
body.demo-mode .refuse-stamp-miss {
  color: var(--coral-deep);
}
body.demo-mode .refuse-stamp-ok {
  color: #1f7a4c;
  transform: rotate(6deg);
}
body.demo-mode #ship-card {
  border-color: rgba(31, 122, 76, 0.35);
  background: linear-gradient(180deg, rgba(31, 122, 76, 0.06), #fff);
}
body.demo-mode #ship-lede {
  font-size: 0.95rem;
}
.almost-field.almost-focus,
body.friday-freeze #almost {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232, 93, 42, 0.18);
  min-height: 110px;
}
body.friday-freeze #almost-label { color: var(--coral-deep); font-weight: 600; }

.counsel-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: var(--paper-2);
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.counsel-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: pre-wrap;
}
.almost-ledger { display: grid; gap: 0.55rem; }
.ledger-row-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: stretch;
}
.ledger-redo {
  align-self: center;
  white-space: nowrap;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}
@media (max-width: 640px) {
  .ledger-row-wrap { grid-template-columns: 1fr; }
  .ledger-redo { width: 100%; text-align: center; }
}
.ledger-row {
  display: grid;
  gap: 0.25rem;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.ledger-row:hover {
  border-color: var(--coral);
  transform: translateY(-1px);
}
.ledger-almost {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
}
.ledger-meta { font-size: 0.8rem; color: var(--mute); }
#ledger-filter {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.claim-list { display: grid; gap: 0.55rem; }
.claim-row {
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}
.claim-row strong {
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink);
}
.claim-row span { font-size: 0.82rem; color: var(--mute); }
.claim-meta { font-size: 0.78rem !important; }
.claim-stale {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--coral) !important;
  font-weight: 600;
  font-size: 0.75rem !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.activity-thread {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  overflow: hidden;
}
.activity-thread-head {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.activity-thread-head:hover { background: color-mix(in srgb, var(--coral) 6%, transparent); }
.activity-thread-head span { font-size: 0.82rem; color: var(--mute); }
.activity-thread-head em { font-size: 0.75rem; color: var(--mute); font-style: normal; }
.activity-thread-body {
  border-top: 1px solid var(--line);
  padding: 0.55rem 0.9rem 0.75rem;
  display: grid;
  gap: 0.35rem;
}
.activity-event {
  font-size: 0.82rem;
  color: var(--ink);
}
.activity-event em {
  color: var(--mute);
  font-style: normal;
  margin-left: 0.35rem;
}
.stale-desk-nudge {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--coral) 35%, var(--line));
  background: color-mix(in srgb, var(--coral) 8%, var(--paper));
  font-size: 0.85rem;
  color: var(--ink);
}
.stale-desk-nudge a { color: var(--coral); }

.arch-flow {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.arch-flow li {
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.35rem;
}
.arch-flow strong {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
}
.arch-flow span {
  font-size: 0.88rem;
  color: var(--mute);
  line-height: 1.35;
}
.arch-flow .arch-win {
  border-color: var(--coral);
  box-shadow: 0 0 0 2px rgba(232, 93, 42, 0.12);
}
.arch-flow .arch-win strong { color: var(--coral-deep); }
.lede.tight { margin-top: 0.65rem; max-width: 36rem; }
@media (max-width: 800px) {
  .arch-flow { grid-template-columns: 1fr 1fr; }
}

/* —— Marketing / showcase: hero bleed only (grain is global) —— */
body.page-marketing,
body.page-showcase {
  background-image:
    radial-gradient(1000px 560px at 12% -10%, rgba(232, 93, 42, 0.14), transparent 55%),
    radial-gradient(800px 480px at 92% 0%, rgba(11, 18, 32, 0.1), transparent 50%),
    linear-gradient(180deg, #f4f6fa 0%, var(--paper-2) 45%, var(--paper) 100%);
}
body.page-marketing::before,
body.page-showcase::before {
  opacity: 0.4;
}
body.page-marketing .wrap,
body.page-showcase .wrap {
  position: relative;
  z-index: 1;
}

.hero-bleed {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(92vh, 820px);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-bleed-soft { height: min(62vh, 520px); }
.hero-bleed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 38%;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Keep the desk photo crisp; veil handles readability */
  filter: none;
  transform: translateZ(0);
}
.hero-bleed-veil {
  position: absolute;
  inset: 0;
  /* Lighter veil: photo stays legible, copy still readable */
  background:
    linear-gradient(90deg, rgba(247, 248, 251, 0.78) 0%, rgba(247, 248, 251, 0.35) 42%, rgba(247, 248, 251, 0.06) 68%, rgba(247, 248, 251, 0.1) 100%),
    linear-gradient(180deg, rgba(247, 248, 251, 0.12) 0%, rgba(247, 248, 251, 0.28) 70%, rgba(247, 248, 251, 0.92) 100%);
}
.hero-bleed-soft .hero-bleed-veil {
  background:
    linear-gradient(180deg, rgba(247, 248, 251, 0.18) 0%, rgba(247, 248, 251, 0.55) 72%, rgba(247, 248, 251, 0.94) 100%);
}

.page-marketing .hero {
  position: relative;
  z-index: 1;
  align-items: center;
}
.page-marketing .hero > div:first-child {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero-stage {
  position: relative;
  width: min(100%, 460px);
  margin-left: auto;
}
.almost-scrap {
  position: absolute;
  top: -1.1rem;
  left: -0.6rem;
  z-index: 4;
  width: min(70%, 220px);
  rotate: -6deg;
  padding: 0.7rem 0.8rem 0.85rem;
  background: #fff8e8;
  border: 1px solid #e2d3a8;
  box-shadow: 0 12px 28px rgba(11, 18, 32, 0.14);
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-2);
  animation: scrap-in 0.7s ease both;
}
.almost-scrap .scrap-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-deep);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.almost-scrap p {
  margin: 0;
  text-decoration: line-through;
  text-decoration-color: rgba(232, 93, 42, 0.75);
  text-decoration-thickness: 2px;
}
@keyframes scrap-in {
  from { opacity: 0; transform: translateY(-10px) rotate(-10deg); }
  to { opacity: 1; transform: translateY(0) rotate(-6deg); }
}

.hero-nu {
  position: absolute;
  right: 0.55rem;
  bottom: 0.45rem;
  width: 104px;
  height: 104px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 12px 24px rgba(11, 18, 32, 0.2));
  animation: bob 3.2s ease-in-out infinite;
  z-index: 3;
}

.mock-claim {
  position: relative;
  overflow: hidden;
}
.rubber-stamp {
  position: absolute;
  right: 0.45rem;
  top: 0.4rem;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border: 2.5px solid currentColor;
  border-radius: 4px;
  rotate: -12deg;
  opacity: 0;
  transform: scale(1.35);
  pointer-events: none;
}
.rubber-stamp.bound {
  color: var(--ok);
  box-shadow: inset 0 0 0 1px rgba(31, 122, 76, 0.25);
}
.rubber-stamp.gap {
  color: #2a6f9e;
  border-style: dashed;
  box-shadow: inset 0 0 0 1px rgba(42, 111, 158, 0.2);
}
.mock-claim.stamp-in .rubber-stamp.bound,
.mock-claim.freeze-in .rubber-stamp.gap,
.showcase-board .rubber-stamp {
  animation: stamp-press 0.55s cubic-bezier(0.2, 1.35, 0.3, 1) both;
}
.showcase-board .mock-claim.gap .rubber-stamp {
  animation-delay: 0.35s;
}
.rubber-stamp.is-pulse {
  animation: stamp-press 0.55s cubic-bezier(0.2, 1.35, 0.3, 1) both;
}
.span-pin {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ok);
}
.showcase-live-row { margin-top: 1.1rem; }
.chat-vs-almost {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.chat-vs-almost article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.82);
}
.chat-vs-almost .chat-bubble { border-style: dashed; }
.chat-vs-almost .almost-refuse { border-color: var(--ink); }
.chat-vs-almost strong { display: block; margin-bottom: 0.35rem; }
.chat-vs-almost p { margin: 0 0 0.5rem; line-height: 1.45; }
.chat-vs-almost .meta { font-size: 0.75rem; color: var(--mute); }
@media (max-width: 720px) {
  .chat-vs-almost { grid-template-columns: 1fr; }
}
@keyframes stamp-press {
  0% { opacity: 0; transform: scale(1.5) rotate(-18deg); }
  55% { opacity: 0.95; transform: scale(0.96) rotate(-10deg); }
  100% { opacity: 0.88; transform: scale(1) rotate(-12deg); }
}

.mock {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 22px 50px rgba(11, 18, 32, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
/* Pack result: paper card, not a high-contrast terminal */
.mock-pack {
  background: #fffef9;
  border-color: rgba(197, 206, 222, 0.95);
}
.mock-pack .mock-bar {
  background: #f4f1ea;
  color: var(--mute);
  border-bottom-color: rgba(197, 206, 222, 0.85);
}
.mock-pack .mock-md {
  background:
    linear-gradient(180deg, #fffef9 0%, #f7f4ec 100%);
  color: var(--ink-2);
  min-height: 220px;
  font-size: 0.86rem;
  border-top: 1px solid transparent;
}
.stage-frame {
  padding: 1rem;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.55), rgba(255,255,255,0.18));
  border: 1px solid rgba(197, 206, 222, 0.7);
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.1);
}
.showcase-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 2rem 2.5rem;
  align-items: end;
  padding-bottom: 0.5rem;
}
.showcase-hero-copy {
  min-width: 0;
}
.showcase-hero-stage {
  min-width: 0;
}
.showcase-hero-cta {
  margin-top: 1.1rem;
}
.hero-secondary-links {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--mute);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.hero-secondary-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.hero-secondary-links a:hover {
  color: var(--coral-deep);
}
.showcase-wait {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.showcase-more {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}
.showcase-more summary {
  cursor: pointer;
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 500;
  list-style: none;
}
.showcase-more summary::-webkit-details-marker { display: none; }
.showcase-more[open] summary { color: var(--ink); margin-bottom: 0.35rem; }
.showcase-more .waitlist-box {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: 0;
}

.showcase-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.showcase-hero .lede .hit {
  color: var(--coral-deep);
  font-style: italic;
  font-family: var(--display);
  font-size: 1.2em;
}

.arch-flow li {
  background:
    linear-gradient(180deg, #fff 0%, var(--paper-2) 100%);
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.06);
}
.arch-flow .arch-win {
  background: linear-gradient(180deg, #fff7f3 0%, #ffe8dc 100%);
}

@media (max-width: 900px) {
  .hero-bleed { height: 55vh; }
  .hero-bleed-veil {
    background:
      linear-gradient(180deg, rgba(244,246,250,0.2) 0%, rgba(244,246,250,0.55) 55%, rgba(244,246,250,0.94) 100%);
  }
  .showcase-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.35rem;
  }
  .almost-scrap { position: relative; top: 0; left: 0; margin-bottom: 0.75rem; rotate: -2deg; width: 100%; }
  .hero-stage { width: 100%; }
  .hero-nu { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .almost-scrap, .hero-nu, .rubber-stamp { animation: none !important; }
  .almost-scrap { opacity: 1; }
  .showcase-board .rubber-stamp { opacity: 0.85; }
}


/* ── Phone-first polish (viral surfaces) ─────────────────────── */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .nav {
    padding-top: max(0.65rem, env(safe-area-inset-top));
    padding-left: max(var(--nav-pad-x), env(safe-area-inset-left));
    padding-right: max(var(--nav-pad-x), env(safe-area-inset-right));
  }
  .footer {
    padding-bottom: max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom)));
  }
}

@media (max-width: 900px) {
  :root { --wrap-pad: 1rem; }
  body {
    background-attachment: scroll;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
  body.nav-open { overflow: hidden; }
  .drop-hero h1 {
    font-size: clamp(1.85rem, 7.2vw, 2.45rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
  }
  .drop-hero .sub {
    font-size: 0.98rem;
    line-height: 1.45;
  }
  .drop-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .drop-grid .drop-result { order: 1; }
  .drop-grid .drop-form { order: 2; }
  .drop-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    position: sticky;
    bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    margin: 0.35rem 0 0;
    padding: 0.55rem;
    border-radius: 16px;
    background: rgba(247, 248, 251, 0.94);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(11, 18, 32, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .drop-actions .btn {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem 0.9rem;
  }
  .waitlist-box .row,
  .showcase-wait .row {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    max-width: none;
  }
  .waitlist-box .row .btn,
  .showcase-wait .row .btn {
    width: 100%;
    min-height: 2.75rem;
  }
  .waitlist-box input[type="email"],
  .showcase-wait input[type="email"] {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    align-self: stretch;
    min-height: 2.75rem;
    height: 2.75rem;
    max-height: 2.75rem;
    padding: 0.55rem 0.8rem;
    font-size: 16px;
    box-sizing: border-box;
  }
  .share-logo {
    width: 2.85rem;
    height: 2.85rem;
    min-width: 44px;
    min-height: 44px;
  }
  .viral-almost {
    font-size: clamp(1.1rem, 4.6vw, 1.3rem);
  }
  .viral-card { padding: 1rem 0.95rem 0.9rem; }
  .panel label {
    display: block;
    margin-top: 0.85rem;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
  }
  .panel label:first-of-type { margin-top: 0; }
  select { font-size: 16px; }
  .hero-cta .btn,
  .hero-cta a.btn {
    min-height: 2.75rem;
    flex: 1 1 auto;
  }
  .footer {
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.85rem;
  }
  #nu-root .nu-sprite { width: 72px; height: 72px; }
  #nu-root .nu-sprite img { width: 64px; height: 64px; }
  #nu-root .nu-face { width: 64px; height: 64px; }
  #nu-root .nu-bubble { max-width: min(200px, calc(100vw - 6rem)); font-size: 0.74rem; }
  #nu-chat-panel {
    left: max(0.5rem, env(safe-area-inset-left));
    right: max(0.5rem, env(safe-area-inset-right));
    bottom: max(4.75rem, calc(4.2rem + env(safe-area-inset-bottom)));
    width: auto;
    max-height: min(68dvh, 520px);
    border-radius: 18px;
  }
  .nu-chat-form input { font-size: 16px; min-height: 2.6rem; }
  .showcase-hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-stakes h1 { font-size: clamp(1.9rem, 8vw, 2.7rem); }
  .hero-bleed { height: min(42vh, 320px); }
}

@media (max-width: 560px) {
  :root { --wrap-pad: 0.85rem; }
  .drop-actions { grid-template-columns: 1fr; }
  .viral-end-copy strong { font-size: 1.05rem; }
  .row { flex-wrap: wrap; }
  .row > .btn { flex: 1 1 auto; min-height: 2.75rem; }
}

@media (hover: none), (pointer: coarse) {
  .btn:hover,
  a.btn:hover,
  button.btn:hover { transform: none; }
  .share-logo:hover { transform: none; }
}

/* Compose widget · refuse desk (no extension) */
.compose-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
  margin: 0.35rem 0 0.5rem;
}
.compose-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 860px) {
  .compose-grid { grid-template-columns: 1fr; }
}
.compose-panel label { display: block; margin: 0.85rem 0 0.35rem; font-weight: 600; font-size: 0.9rem; }
.compose-panel textarea {
  width: 100%;
  min-height: 8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  resize: vertical;
}
.compose-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
  align-items: center;
}
.compose-chip-head {
  width: 100%;
  font-size: 0.8rem;
  color: var(--mute);
  margin-bottom: 0.15rem;
}
.compose-chip {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  font-family: inherit;
}
.compose-chip.bound {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}
.compose-chip.gap {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
.compose-out {
  margin: 0.5rem 0 0.85rem;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  white-space: pre-wrap;
  font-size: 0.92rem;
  min-height: 7rem;
}
.compose-out-title { margin: 0 0 0.25rem; font-size: 1.05rem; }

/* Clearance card — the owned object at send */
.clearance-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.5rem 0 0.75rem;
  background: #fff;
}
.clearance-card-state {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.clearance-card-line {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
}
.clearance-card-meta {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--mute);
}
.clearance-card.is-uncleared .clearance-card-state { color: var(--mute); }
.clearance-card.is-gaps .clearance-card-state { color: var(--bad); }
.clearance-card.is-gaps {
  border-color: #e8b4b4;
  background: #fff8f8;
}
.clearance-card.is-ready .clearance-card-state { color: var(--coral-deep); }
.clearance-card.is-ready {
  border-color: #f0c4b0;
  background: #fff9f6;
}
.clearance-card.is-cleared .clearance-card-state { color: var(--ok); }
.clearance-card.is-cleared {
  border-color: #9fd4b5;
  background: #f3faf6;
}
.compose-meta { margin-top: 0.75rem; font-size: 0.8rem; color: var(--mute); }
.hint-line.ok { color: var(--ok); }
.hint-line.bad { color: var(--bad); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }

/* Embed clearance widget page */
.embed-clear-page {
  background: var(--paper-2);
  min-height: 100vh;
}
.embed-clear {
  max-width: 560px;
  margin: 0 auto;
  padding: 0.85rem 1rem 1.5rem;
}
.embed-clear-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.embed-clear-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--ink);
}
.embed-clear-brand img {
  border-radius: 7px;
  display: block;
}
.embed-clear-tag {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--coral);
}
.embed-honest {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}
.embed-clear label {
  display: block;
  margin: 0;
  font-weight: 600;
  font-size: 0.85rem;
}
.embed-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.65rem 0 0.3rem;
}
.embed-field-head .embed-out-label {
  margin: 0;
}
.embed-count {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.embed-count.is-cut {
  color: var(--coral-deep);
}
.embed-out-label {
  margin: 0.85rem 0 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
}
.embed-actions {
  flex-wrap: wrap;
  gap: 0.5rem;
}
.embed-actions .btn.coral {
  order: -1;
}
.embed-clear textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-family: var(--font);
  background: #fff;
  resize: vertical;
  line-height: 1.45;
}
.embed-bound-out {
  min-height: 4.5rem;
  font-size: 0.85rem;
}
.embed-copy-stage {
  margin-top: 0.5rem;
}
.embed-copy-stage .compose-out {
  border-color: var(--coral);
  background: #fff9f6;
  user-select: text;
  cursor: text;
}
.embed-pack-meta {
  margin-bottom: 0.45rem;
}
.embed-pack-excerpts {
  margin-top: 0.35rem;
}
.embed-pack-excerpts .pack-claim {
  font-size: 0.92rem;
}
.embed-clear-page .clearance-card-state {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.95rem;
}
.embed-glossary {
  margin-top: 0.85rem;
}
.embed-foot {
  margin-top: 0.65rem;
}
body.embed-clear-page .wrap { display: none; }

/* Clearance seal stamp pulse */
.clearance-card.stamp-pulse {
  animation: clearance-stamp 0.35s ease-out;
}
@keyframes clearance-stamp {
  from { transform: scale(0.96); }
  to { transform: scale(1); }
}
.clearance-pay {
  margin-top: 0.65rem;
  font-size: 0.82rem;
}
.clearance-pay.is-credit {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(180, 140, 60, 0.35);
  background: rgba(250, 236, 200, 0.55);
  color: #5c4a1f;
}
.clearance-pay.is-credit a { color: #7a5a12; font-weight: 600; }
.product-one-liner {
  margin: 0.65rem 0 0;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
}
.cta-micro {
  margin: 0.45rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.78rem;
  color: var(--mute);
}
.hero-scroll-cue {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 0.75rem;
  font-size: 1.35rem;
  color: var(--mute);
  text-decoration: none;
  line-height: 1;
  animation: hero-cue-bob 1.8s ease-in-out infinite;
}
@keyframes hero-cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue { animation: none; }
}
.showcase-steps {
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.showcase-step-hint {
  margin: 0.35rem 0 0;
  max-width: 28rem;
}
.workspace-rail-tip {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.72rem;
}
.pack-status-tech {
  font-size: 0.72rem;
  color: var(--mute);
  background: transparent;
  padding: 0;
}
.page-showcase .showcase-hero {
  min-height: auto;
  padding-bottom: 1.25rem;
}
.page-showcase .showcase-hero-copy .brand img,
.page-showcase .nav .brand img {
  width: 36px;
  height: 36px;
}
.drop-data-note {
  margin-top: 0.75rem;
  max-width: 40rem;
}
.ledger-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.9rem;
}
.ledger-summary strong { color: var(--ink); }
.gap-card-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0;
}
.gap-card-hero img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 10px 22px rgba(11, 18, 32, 0.16));
}
html.almost-widget-open #nu-root,
html.almost-widget-open .nu-root {
  /* Prefer left when Clear FAB owns bottom-right */
  right: auto !important;
  left: 12px !important;
}

/* Clearance workspace — B2C IDE without extension */
.workspace-page {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 93, 42, 0.08), transparent 55%),
    linear-gradient(180deg, #eef1f6 0%, #e8ecf3 100%);
  min-height: 100vh;
}
.workspace-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1.4fr) minmax(280px, 0.9fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "top top top"
    "rail main dock";
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  gap: 0;
}
.workspace-top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(247, 248, 251, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.workspace-top .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.workspace-product {
  margin: 0;
  font-size: 0.8rem;
  color: var(--mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 650;
}
.workspace-top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.workspace-rail {
  grid-area: rail;
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.workspace-rail-label {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
}
.workspace-rail-label:first-child { margin-top: 0; }
.workspace-rail-btn {
  width: 100%;
  justify-content: flex-start;
  font-size: 0.82rem;
}
.workspace-sessions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  overflow: auto;
  max-height: 42vh;
}
.workspace-session {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  color: var(--ink);
}
.workspace-session:hover { border-color: var(--coral); }
.workspace-session strong { display: block; font-size: 0.8rem; margin-bottom: 0.15rem; }
.workspace-session span { color: var(--mute); font-size: 0.72rem; }
.workspace-rail-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
}
.workspace-rail-foot a { color: var(--mute); }
.workspace-main {
  grid-area: main;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  min-height: 0;
}
.workspace-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.75rem 1rem 0.85rem;
}
.workspace-pane:last-child { border-bottom: 0; }
.workspace-pane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.workspace-pane-head label {
  margin: 0;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.workspace-pane-meta {
  font-size: 0.75rem;
  color: var(--mute);
}
.workspace-pane textarea {
  flex: 1;
  width: 100%;
  min-height: 8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  line-height: 1.45;
  background: #fff;
  resize: none;
}
.workspace-pane textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(232, 93, 42, 0.12);
}
.workspace-toolbar {
  margin-top: 0.45rem;
  min-height: 1.25rem;
}
.workspace-dock {
  grid-area: dock;
  padding: 1rem;
  border-left: 1px solid var(--line);
  background: rgba(247, 248, 251, 0.9);
  overflow: auto;
}
.workspace-dock-label {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mute);
}
.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.workspace-dock .compose-out {
  min-height: 5rem;
  font-size: 0.88rem;
}
.workspace-dock-links { margin-top: 1rem; }
@media (max-width: 980px) {
  .workspace-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "main"
      "dock"
      "rail";
  }
  .workspace-rail {
    border-right: 0;
    border-top: 1px solid var(--line);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .workspace-sessions { max-height: none; flex-direction: row; flex-wrap: wrap; width: 100%; }
  .workspace-main { grid-template-rows: auto auto; }
  .workspace-pane textarea { min-height: 10rem; resize: vertical; }
}
