:root {
  color-scheme: light;
  --paper: #fbf8f3;
  --paper-soft: #f4eee6;
  --paper-warm: #fffdf9;
  --ink: #151515;
  --ink-soft: #4e4b48;
  --muted: #746e68;
  --line: rgba(21, 21, 21, 0.13);
  --line-strong: rgba(21, 21, 21, 0.24);
  --red: #df2027;
  --gold: #916a22;
  --blue: #6c9ec2;
  --dark: #111111;
  --dark-soft: #23201d;
  --white: #fffefa;
  --button-primary-bg: #151515;
  --button-primary-fg: #fffefa;
  --button-secondary-bg: rgba(255, 254, 250, 0.42);
  --button-secondary-hover: #fffefa;
  --proof-bg: rgba(255, 253, 249, 0.74);
  --security-pill-bg: rgba(255, 253, 249, 0.66);
  --use-card-bg: rgba(255, 253, 249, 0.82);
  --use-gradient:
    linear-gradient(180deg, rgba(255, 253, 249, 0.9), rgba(244, 238, 230, 0.92));
  --hero-overlay:
    linear-gradient(
      90deg,
      rgba(251, 248, 243, 0.98) 0%,
      rgba(251, 248, 243, 0.9) 34%,
      rgba(251, 248, 243, 0.48) 72%,
      rgba(251, 248, 243, 0.2) 100%
    ),
    linear-gradient(
      180deg,
      rgba(251, 248, 243, 0.1) 0%,
      rgba(251, 248, 243, 0.98) 100%
    );
  --hero-overlay-mobile:
    linear-gradient(
      180deg,
      rgba(251, 248, 243, 0.98) 0%,
      rgba(251, 248, 243, 0.88) 48%,
      rgba(251, 248, 243, 0.98) 100%
    ),
    linear-gradient(
      90deg,
      rgba(251, 248, 243, 0.96) 0%,
      rgba(251, 248, 243, 0.52) 100%
    );
  --max: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b0d10;
  --paper-soft: #11151a;
  --paper-warm: #0f1216;
  --ink: #f4f0e8;
  --ink-soft: #c6c1b8;
  --muted: #a39e95;
  --line: rgba(244, 240, 232, 0.14);
  --line-strong: rgba(244, 240, 232, 0.3);
  --red: #ff565b;
  --gold: #d7b673;
  --blue: #82b4d8;
  --dark: #050607;
  --dark-soft: #111419;
  --button-primary-bg: #f4f0e8;
  --button-primary-fg: #0b0d10;
  --button-secondary-bg: rgba(15, 18, 22, 0.56);
  --button-secondary-hover: #171b21;
  --proof-bg: rgba(15, 18, 22, 0.82);
  --security-pill-bg: rgba(15, 18, 22, 0.76);
  --use-card-bg: rgba(15, 18, 22, 0.86);
  --use-gradient:
    linear-gradient(180deg, rgba(15, 18, 22, 0.94), rgba(11, 13, 16, 0.98));
  --hero-overlay:
    linear-gradient(
      90deg,
      rgba(11, 13, 16, 0.98) 0%,
      rgba(11, 13, 16, 0.9) 36%,
      rgba(11, 13, 16, 0.58) 72%,
      rgba(11, 13, 16, 0.34) 100%
    ),
    linear-gradient(
      180deg,
      rgba(11, 13, 16, 0.2) 0%,
      rgba(11, 13, 16, 0.99) 100%
    );
  --hero-overlay-mobile:
    linear-gradient(
      180deg,
      rgba(11, 13, 16, 0.98) 0%,
      rgba(11, 13, 16, 0.86) 48%,
      rgba(11, 13, 16, 0.99) 100%
    ),
    linear-gradient(
      90deg,
      rgba(11, 13, 16, 0.96) 0%,
      rgba(11, 13, 16, 0.6) 100%
    );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  padding: 26px 28px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max));
  margin: 0 auto;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.42rem;
  font-weight: 650;
  letter-spacing: 0;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(223, 32, 39, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--red);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--button-primary-fg);
  background: var(--button-primary-bg);
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: var(--red);
  background: var(--red);
}

.button.secondary {
  color: var(--ink);
  background: var(--button-secondary-bg);
  border-color: var(--line-strong);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--ink);
  background: var(--button-secondary-hover);
}

.nav-cta {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.88rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: var(--button-secondary-bg);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--ink);
  background: var(--button-secondary-hover);
  transform: translateY(-1px);
}

.theme-icon {
  width: 1.2em;
  margin-right: 6px;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}

.theme-icon-light {
  display: none;
}

:root[data-theme="dark"] .theme-icon-dark {
  display: none;
}

:root[data-theme="dark"] .theme-icon-light {
  display: inline;
}

.hero {
  position: relative;
  display: grid;
  min-height: 86svh;
  overflow: clip;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 180ms ease;
}

:root[data-theme="dark"] .hero-image {
  filter: brightness(0.65) saturate(0.82) contrast(1.06);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--hero-overlay);
}

.hero-inner {
  display: grid;
  align-items: center;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 128px 28px 74px;
}

.hero-copy {
  width: min(740px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  content: "";
  background: var(--red);
}

h1 {
  max-width: 840px;
  font-size: 5.15rem;
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 1.28rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--proof-bg);
  backdrop-filter: blur(12px);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 28px;
}

.proof-item {
  min-height: 132px;
  padding: 26px 24px 24px;
  border-left: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 1px solid var(--line);
}

.proof-value {
  display: block;
  color: var(--red);
  font-size: 2.05rem;
  font-weight: 680;
  line-height: 1;
}

.proof-label {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.4;
}

.section {
  padding: 92px 28px;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading {
  max-width: 820px;
  font-size: 3.35rem;
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-intro {
  max-width: 690px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.65;
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 56px;
  align-items: start;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pain-card {
  min-height: 206px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-warm);
}

.pain-card h3,
.feature-card h3,
.use-card h3,
.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.pain-card p,
.feature-card p,
.use-card p,
.step-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.number {
  display: block;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.platform {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}

.platform-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.84fr);
  gap: 60px;
  align-items: center;
}

.platform-visual {
  position: relative;
  min-height: 430px;
}

.platform-visual img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.flow-list {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.flow-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.flow-item:last-child {
  border-bottom: 1px solid var(--line);
}

.flow-index {
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 800;
}

.flow-title {
  font-size: 1.08rem;
  font-weight: 750;
}

.flow-copy {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.dark-band {
  color: var(--white);
  background: var(--dark);
}

.dark-band .section-kicker,
.dark-band .accent {
  color: #ff5b5f;
}

.dark-band .section-intro,
.dark-band .feature-card p {
  color: rgba(255, 254, 250, 0.72);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 46px;
  border: 1px solid rgba(255, 254, 250, 0.18);
  background: rgba(255, 254, 250, 0.18);
}

.feature-card {
  min-height: 262px;
  padding: 26px;
  background: var(--dark-soft);
}

.feature-card .number {
  color: #d7b673;
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1fr);
  gap: 60px;
  align-items: center;
}

.security-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.agent-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-warm);
}

.agent-row img {
  width: 148px;
  height: 148px;
  object-fit: contain;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.security-pill {
  min-height: 54px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: var(--security-pill-bg);
  font-size: 0.94rem;
  font-weight: 650;
}

.use-cases {
  background: var(--use-gradient), var(--paper-soft);
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.use-card {
  min-height: 246px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--use-card-bg);
}

.pilot {
  border-top: 1px solid var(--line);
  background: var(--paper-warm);
}

.pilot-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(420px, 1fr);
  gap: 52px;
  align-items: start;
}

.pilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.step-grid {
  display: grid;
  gap: 14px;
}

.step-card {
  min-height: 154px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.footer {
  padding: 34px 28px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper-warm);
}

.footer-inner {
  display: flex;
  width: min(100%, var(--max));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.92rem;
}

.footer strong {
  color: var(--ink);
}

@media (max-width: 1000px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  h1 {
    font-size: 4.1rem;
  }

  .section-heading {
    font-size: 2.72rem;
  }

  .proof-grid,
  .feature-grid,
  .use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-layout,
  .platform-layout,
  .security-layout,
  .pilot-layout {
    grid-template-columns: 1fr;
  }

  .platform-visual {
    min-height: 320px;
  }

  .platform-visual img {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-nav {
    padding: 18px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 0;
  }

  .theme-toggle {
    width: 42px;
    min-height: 42px;
    padding: 0;
  }

  .theme-icon {
    margin-right: 0;
  }

  .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .hero {
    min-height: 82svh;
  }

  .hero::after {
    background: var(--hero-overlay-mobile);
  }

  .hero-image {
    object-position: 60% 50%;
  }

  .hero-inner {
    padding: 108px 18px 48px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: clamp(2.72rem, 13vw, 3.1rem);
    line-height: 1;
  }

  .hero-text {
    max-width: 100%;
    margin-top: 22px;
    font-size: 1.06rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .section {
    padding: 68px 18px;
  }

  .section-heading {
    font-size: 2.22rem;
    line-height: 1.08;
  }

  .section-intro {
    font-size: 1rem;
  }

  .proof-grid,
  .pain-grid,
  .feature-grid,
  .security-list,
  .use-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    padding: 0 18px;
  }

  .proof-item {
    min-height: 104px;
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .proof-item:first-child {
    border-top: 0;
  }

  .proof-item:last-child {
    border-right: 0;
  }

  .pain-card,
  .feature-card,
  .use-card,
  .step-card {
    min-height: auto;
  }

  .flow-item {
    grid-template-columns: 48px 1fr;
  }

  .agent-row {
    grid-template-columns: 1fr;
  }

  .agent-row img {
    width: 118px;
    height: 118px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .nav-links a,
  .theme-toggle,
  .hero-image {
    transition: none;
  }
}

.site-nav.static-nav {
  position: static;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(16px);
}

.back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.back-link::before {
  content: "<";
  margin-right: 8px;
  color: var(--red);
}

.home-blog {
  border-top: 1px solid var(--line);
  background: var(--paper-warm);
}

.home-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 52px;
  align-items: start;
}

.home-blog-list {
  display: grid;
  gap: 14px;
}

.blog-card {
  display: block;
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--paper-warm);
}

.blog-card h2,
.blog-card h3,
.blog-empty h2,
.blog-empty h3 {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: 0;
}

.blog-card p,
.blog-empty p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.58;
}

.blog-empty {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.blog-empty code {
  color: var(--ink);
  font-size: 0.92em;
}

.blog-index-hero {
  padding: 88px 28px 28px;
  background: var(--paper-warm);
}

.blog-index-hero h1,
.post-hero h1 {
  max-width: 920px;
  font-size: clamp(3.1rem, 7vw, 5.6rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: 0;
}

.blog-index-section {
  padding-top: 52px;
}

.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.blog-card-large {
  min-height: 360px;
}

.blog-card-large img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.blog-empty-wide {
  max-width: 760px;
}

.post-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 84px 28px 96px;
}

.post-hero {
  max-width: 900px;
}

.post-description {
  max-width: 720px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1.22rem;
  line-height: 1.58;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.post-meta span::before {
  content: "/";
  margin-right: 10px;
  color: var(--line-strong);
}

.post-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  margin-top: 44px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 64px;
  align-items: start;
  margin-top: 58px;
}

.post-toc {
  position: sticky;
  top: 28px;
}

.toc-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-warm);
}

.toc-details summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 780;
}

.js-toc {
  padding: 0 18px 18px;
}

.js-toc .toc-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.js-toc .toc-list .toc-list {
  margin-top: 7px;
  padding-left: 14px;
}

.js-toc .toc-link {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.js-toc .is-active-link {
  color: var(--red);
  font-weight: 760;
}

.post-content {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.78;
}

.post-content > * + * {
  margin-top: 1.22em;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0;
  scroll-margin-top: 96px;
}

.post-content h2 {
  margin-top: 2.2em;
  font-size: 2rem;
}

.post-content h3 {
  margin-top: 1.75em;
  font-size: 1.36rem;
}

.post-content h4 {
  margin-top: 1.5em;
  font-size: 1.12rem;
}

.post-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.post-content code {
  overflow-wrap: anywhere;
}

.post-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-warm);
}

.post-content pre code {
  display: block;
  min-width: 0;
  overflow-wrap: normal;
  white-space: pre;
}

.post-content img,
.post-content video {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.article-media {
  margin: 2em 0;
}

.article-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.media-embed {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 2em 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--dark);
}

.media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.callout {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  background: var(--paper-warm);
}

@media (max-width: 1000px) {
  .home-blog-layout,
  .post-layout {
    grid-template-columns: 1fr;
  }

  .blog-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-toc {
    position: static;
  }
}

@media (max-width: 680px) {
  .blog-index-hero {
    padding: 54px 18px 20px;
  }

  .blog-index-grid {
    grid-template-columns: 1fr;
  }

  .blog-card,
  .blog-empty {
    min-height: auto;
    padding: 20px;
  }

  .post-shell {
    padding: 58px 18px 72px;
  }

  .post-cover {
    margin-top: 32px;
    aspect-ratio: 16 / 10;
  }

  .post-layout {
    gap: 34px;
    margin-top: 34px;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.65rem;
  }
}

/* HoneyBook pilot onboarding */

.honeybook-onboarding {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 4%, rgba(108, 158, 194, 0.13), transparent 32rem),
    radial-gradient(circle at 8% 34%, rgba(223, 32, 39, 0.06), transparent 28rem),
    var(--paper);
}

.hb-nav {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}

.hb-nav-inner,
.hb-main,
.hb-footer {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.hb-nav-inner,
.hb-nav-meta,
.hb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hb-nav-meta {
  justify-content: flex-end;
}

.hb-access-pill {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper-warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hb-signout {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.hb-signout:hover,
.hb-signout:focus-visible {
  color: var(--red);
}

.hb-main {
  padding: 86px 28px 72px;
}

.hb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: 74px;
  align-items: center;
}

.hb-hero-copy {
  max-width: 650px;
}

.hb-eyebrow,
.hb-step-label,
.hb-card-label {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hb-eyebrow {
  margin-bottom: 22px;
}

.hb-hero h1 {
  max-width: 680px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 7.6vw, 6.8rem);
  font-weight: 500;
  line-height: 0.91;
  letter-spacing: -0.06em;
}

.hb-lede {
  max-width: 610px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hb-download-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--paper-warm) 91%, transparent);
  box-shadow: 0 24px 60px rgba(21, 21, 21, 0.08);
}

.hb-file-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 68px;
  border: 1px solid var(--line-strong);
  border-radius: 8px 14px 8px 8px;
  color: var(--white);
  background: var(--dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.hb-card-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.68rem;
}

.hb-download-copy h2 {
  font-size: 1.5rem;
  line-height: 1.15;
}

.hb-download-copy p:last-child {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hb-download-copy code {
  font-size: 0.8rem;
}

.hb-download-button {
  grid-column: 1 / -1;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  padding: 0 18px 0 20px;
}

.hb-download-button span {
  font-size: 1.2rem;
}

.hb-private-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.55;
}

.hb-private-note strong {
  color: var(--ink-soft);
}

.hb-install {
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.32fr);
  gap: 70px;
  margin-top: 120px;
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.hb-section-heading h2,
.hb-next h2 {
  margin-top: 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.4vw, 3.65rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hb-section-heading > p:last-child {
  margin-top: 20px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.hb-command-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hb-command-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-warm);
}

.hb-command-number,
.hb-next-grid article > span {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.hb-command-list h3 {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.hb-command-list pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  color: #e9e6df;
  background: #111317;
  border-radius: 8px;
  padding: 15px 16px;
}

.hb-command-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.91rem;
  white-space: pre;
}

.hb-next {
  margin-top: 110px;
}

.hb-next > div:first-child {
  max-width: 520px;
}

.hb-next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.hb-next-grid article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper-warm) 72%, transparent);
}

.hb-next-grid h3 {
  margin-top: 34px;
  font-size: 1.06rem;
}

.hb-next-grid p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hb-integrity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 70px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}

.hb-integrity > div {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.hb-integrity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e9c61;
  box-shadow: 0 0 0 5px rgba(46, 156, 97, 0.12);
}

.hb-integrity p {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: right;
}

.hb-integrity code {
  margin-left: 8px;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
}

.hb-footer {
  padding: 30px 28px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.hb-footer a {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 880px) {
  .hb-hero,
  .hb-install {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hb-download-card {
    width: min(100%, 500px);
  }
}

@media (max-width: 680px) {
  .hb-nav {
    padding: 18px;
  }

  .hb-access-pill {
    display: none;
  }

  .hb-main {
    padding: 58px 18px 54px;
  }

  .hb-hero h1 {
    font-size: clamp(3.35rem, 17vw, 4.6rem);
  }

  .hb-lede {
    font-size: 1.03rem;
  }

  .hb-download-card {
    padding: 22px;
  }

  .hb-install,
  .hb-next {
    margin-top: 82px;
  }

  .hb-install {
    padding-top: 54px;
  }

  .hb-command-list li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }

  .hb-command-list code {
    font-size: 0.79rem;
  }

  .hb-next-grid {
    grid-template-columns: 1fr;
  }

  .hb-next-grid article {
    min-height: auto;
  }

  .hb-next-grid h3 {
    margin-top: 22px;
  }

  .hb-integrity {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hb-integrity p {
    text-align: left;
  }

  .hb-integrity code {
    display: block;
    margin: 5px 0 0;
  }

  .hb-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 18px 34px;
  }
}

/* Pilot page factory */

.pilot-admin {
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 2%, rgba(108, 158, 194, 0.14), transparent 30rem),
    radial-gradient(circle at 4% 38%, rgba(223, 32, 39, 0.05), transparent 30rem),
    var(--paper);
}

.pilot-admin [hidden] {
  display: none !important;
}

.pa-main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 78px 28px 82px;
}

.pa-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 62px;
}

.pa-intro h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.65rem, 7vw, 6.25rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.058em;
}

.pa-intro .hb-eyebrow {
  margin-bottom: 20px;
}

.pa-intro > p {
  max-width: 460px;
  padding-bottom: 8px;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.66;
}

.pa-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.68fr);
  gap: 18px;
  align-items: start;
}

.pa-form-panel,
.pa-preview,
.pa-success,
.pa-pilot-card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-warm) 88%, transparent);
  box-shadow: 0 22px 60px rgba(21, 21, 21, 0.055);
}

.pa-form-panel {
  padding: 32px;
  border-radius: 18px;
}

.pa-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.pa-panel-heading > div {
  display: flex;
  gap: 15px;
}

.pa-panel-heading > div > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  color: var(--white);
  background: var(--dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
}

.pa-panel-heading h2,
.pa-success h2,
.pa-existing h2,
.pa-preview h2 {
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.pa-panel-heading > p {
  max-width: 170px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: right;
}

#pilot-form {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.pa-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pa-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pa-field > span {
  color: var(--ink-soft);
  font-size: 0.81rem;
  font-weight: 800;
}

.pa-field input,
.pa-field textarea,
.pa-slug-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 62%, var(--paper-warm));
  font: inherit;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.pa-field input {
  min-height: 48px;
  padding: 0 13px;
}

.pa-field textarea {
  min-height: 72px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.45;
}

.pa-field input:hover,
.pa-field textarea:hover,
.pa-slug-input:hover {
  border-color: color-mix(in srgb, var(--ink) 45%, transparent);
}

.pa-field input:focus,
.pa-field textarea:focus,
.pa-slug-input:focus-within {
  outline: none;
  border-color: var(--ink);
  background: var(--paper-warm);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 11%, transparent);
}

.pa-field small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.pa-slug-input {
  display: flex;
  align-items: center;
  min-height: 48px;
  overflow: hidden;
}

.pa-slug-input > span {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 0 0 13px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  white-space: nowrap;
}

.pa-slug-input input {
  min-width: 60px;
  padding-left: 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

.pa-slug-input input:focus {
  box-shadow: none;
  background: transparent;
}

.pa-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  background: color-mix(in srgb, var(--paper-soft) 68%, transparent);
  transition:
    border-color 150ms ease,
    background 150ms ease;
}

.pa-upload:hover,
.pa-upload:focus-within,
.pa-upload.has-file {
  border-color: var(--ink);
  background: var(--paper-soft);
}

.pa-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.pa-upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 52px;
  flex: 0 0 42px;
  border-radius: 6px 10px 6px 6px;
  color: var(--white);
  background: var(--dark);
  font-size: 1.1rem;
}

.pa-upload-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin-right: auto;
}

.pa-upload-copy strong,
.pa-upload-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-upload-copy strong {
  font-size: 0.88rem;
}

.pa-upload-copy small {
  color: var(--muted);
  font-size: 0.74rem;
}

.pa-upload .button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.76rem;
}

.pa-error {
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--red) 42%, transparent);
  border-radius: 9px;
  color: color-mix(in srgb, var(--red) 82%, var(--ink));
  background: color-mix(in srgb, var(--red) 7%, var(--paper-warm));
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.pa-progress {
  display: grid;
  gap: 9px;
  padding: 14px 15px;
  border-radius: 9px;
  background: var(--paper-soft);
}

.pa-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 750;
}

.pa-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.pa-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width 180ms ease;
}

.pa-submit {
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0 19px;
}

.pa-submit:disabled {
  cursor: wait;
  opacity: 0.64;
  transform: none;
}

.pa-preview {
  position: sticky;
  top: 18px;
  overflow: hidden;
  padding: 28px;
  border-radius: 18px;
  background:
    linear-gradient(
      155deg,
      color-mix(in srgb, var(--paper-warm) 96%, transparent),
      color-mix(in srgb, var(--paper-soft) 84%, transparent)
    );
}

.pa-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pa-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pa-live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e9c61;
  box-shadow: 0 0 0 4px rgba(46, 156, 97, 0.11);
}

.pa-preview h2 {
  max-width: 270px;
  margin-top: 28px;
  font-size: 2.35rem;
  line-height: 0.98;
}

.pa-preview > p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

.pa-mini-page {
  margin: 26px 0 24px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(21, 21, 21, 0.09);
  transform: rotate(-0.55deg);
}

.pa-mini-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 0.47rem;
  font-weight: 850;
}

.pa-mini-nav i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

.pa-mini-nav em {
  margin-left: auto;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.28rem;
  font-style: normal;
}

.pa-mini-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
  padding: 18px 3px;
}

.pa-mini-hero > div:first-child {
  display: grid;
  align-content: center;
  gap: 5px;
}

.pa-mini-hero small {
  color: var(--red);
  font-size: 0.27rem;
  font-weight: 900;
}

.pa-mini-hero b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 0.92;
}

.pa-mini-hero > div:first-child span {
  width: 88%;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}

.pa-mini-hero > div:first-child span:last-child {
  width: 66%;
}

.pa-mini-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper-warm);
}

.pa-mini-card i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  height: 23px;
  border-radius: 3px;
  color: var(--white);
  background: var(--dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.45rem;
  font-style: normal;
}

.pa-mini-card span {
  height: 4px;
  border-radius: 3px;
  background: var(--line);
}

.pa-mini-card span:nth-of-type(2) {
  width: 62%;
}

.pa-mini-card strong {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 5px;
  border-radius: 3px;
  color: var(--button-primary-fg);
  background: var(--button-primary-bg);
  font-size: 0.27rem;
}

.pa-mini-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.pa-mini-steps span {
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-warm);
}

.pa-preview ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.pa-preview li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pa-preview li span {
  color: #2e9c61;
  font-weight: 900;
}

.pa-success {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  padding: 24px 26px;
  border-color: color-mix(in srgb, #2e9c61 36%, var(--line));
  border-radius: 14px;
}

.pa-success-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: #2e9c61;
  font-weight: 900;
}

.pa-success h2 {
  font-size: 1.65rem;
}

.pa-success > div:nth-child(2) > a {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
}

.pa-success > div:nth-child(2) > a:hover {
  color: var(--red);
}

.pa-success-actions {
  display: flex;
  gap: 9px;
}

.pa-success-actions .button {
  min-height: 40px;
  font-size: 0.8rem;
}

.pa-existing {
  margin-top: 100px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.pa-existing-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.pa-existing h2 {
  margin-top: 10px;
  font-size: 3.1rem;
}

.pa-existing-heading > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.pa-pilot-list {
  display: grid;
  gap: 12px;
}

.pa-pilot-card {
  padding: 24px;
  border-radius: 13px;
  box-shadow: none;
}

.pa-pilot-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.pa-pilot-card h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.pa-pilot-card-top > div > a {
  display: inline-block;
  margin-top: 5px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 750;
}

.pa-pilot-card-top > .button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.75rem;
}

.pa-pilot-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 28px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pa-pilot-details > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pa-pilot-details span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pa-pilot-details strong,
.pa-pilot-details code {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.48;
}

.pa-pilot-details code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.pa-list-status {
  padding: 34px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.auth-message-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 84% 12%, rgba(108, 158, 194, 0.13), transparent 28rem),
    var(--paper);
}

.auth-message-card {
  width: min(100%, 620px);
  padding: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--paper-warm);
  box-shadow: 0 25px 70px rgba(21, 21, 21, 0.08);
}

.auth-message-card .hb-step-label {
  margin-top: 52px;
}

.auth-message-card h1 {
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 8vw, 4.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.auth-message-card > p:not(.hb-step-label) {
  margin-top: 20px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.auth-message-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

@media (max-width: 900px) {
  .pa-intro {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .pa-intro > p {
    padding-bottom: 0;
  }

  .pa-workspace {
    grid-template-columns: 1fr;
  }

  .pa-preview {
    position: static;
  }

  .pa-mini-page {
    max-width: 460px;
  }
}

@media (max-width: 680px) {
  .pa-main {
    padding: 56px 18px 60px;
  }

  .pa-intro {
    margin-bottom: 42px;
  }

  .pa-intro h1 {
    font-size: clamp(3.2rem, 16vw, 4.6rem);
  }

  .pa-form-panel,
  .pa-preview {
    padding: 22px;
    border-radius: 14px;
  }

  .pa-panel-heading > p {
    display: none;
  }

  .pa-field-grid {
    grid-template-columns: 1fr;
  }

  .pa-upload {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pa-upload-copy {
    width: calc(100% - 60px);
    margin-right: 0;
  }

  .pa-upload .button {
    width: 100%;
  }

  .pa-success {
    grid-template-columns: auto 1fr;
    padding: 20px;
  }

  .pa-success-actions {
    grid-column: 1 / -1;
  }

  .pa-success-actions .button {
    flex: 1;
  }

  .pa-existing {
    margin-top: 76px;
    padding-top: 52px;
  }

  .pa-existing h2 {
    font-size: 2.55rem;
  }

  .pa-pilot-card {
    padding: 20px;
  }

  .pa-pilot-details {
    grid-template-columns: 1fr;
  }

  .auth-message-card {
    padding: 28px 22px;
  }
}
