/* Homepage only. Paperwork, conversation and a structured result share one stage. */
.landing-main:has(> .home-fold) { padding-top: 160px !important; }

.home-fold {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 160px) !important;
}

.home-fold .home-hero {
  align-items: center !important;
  gap: 48px;
  min-height: 450px !important;
}

.home-fold .hero-copy { position: relative; z-index: 2; }
.home-fold .hero-lede { max-width: 29rem; }
.home-fold .hero-actions .btn { box-shadow: 0 2px 2px #00000014, inset 0 1px 0 #ffffff1a; }
.home-fold .hero-demo { min-width: 0; height: 450px; }

.home-fold .demo-label {
  position: absolute;
  z-index: 4;
  top: 75px;
  right: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .2em;
}

.home-fold .hero-demo > .product-frame {
  position: absolute;
  z-index: 3;
  top: 101px;
  right: 8px;
  left: 36px;
  border-color: var(--line-strong);
  border-radius: 22px;
  background: #1c1b19;
  box-shadow: 0 36px 70px -26px #000000b3, 0 8px 18px -10px #00000080, inset 0 1px 0 #ffffff0d;
}

.home-fold .demo-window { min-height: 290px; padding: 21px 20px 19px; }
.home-fold .hero-panel-stage { height: 224px; }
.home-fold #hero-text-chat { gap: 8px; }
.home-fold #hero-text-chat > div > div { padding-block: 6px; }
.home-fold .hero-mode-btn { font-size: 11px; padding: 6px 11px; }
.home-fold .hero-mode-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art-field {
  position: absolute;
  inset: -60px -70px -60px -80px;
  /* Finish the glow inside its bounds so hovering cannot reveal a clipped edge. */
  background: radial-gradient(ellipse closest-side at 57% 45%, #d977571a, transparent 100%);
}

.hero-art-field::after {
  position: absolute;
  inset: 40px 40px 0;
  background-image: radial-gradient(var(--line-strong) .7px, transparent .7px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse, #000 10%, transparent 70%);
  content: '';
}

.hero-art-route {
  position: absolute;
  inset: -10px -30px;
  width: calc(100% + 60px);
  height: calc(100% + 20px);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.hero-art-route circle { fill: var(--bg); stroke: var(--accent); }
.hero-art-ticks { opacity: .6; }

.hero-art-paper,
.hero-art-summary {
  position: absolute;
  border: 1px solid #ffffff20;
  border-radius: 14px;
  background: linear-gradient(140deg, #302d28, #1d1c19);
  box-shadow: 0 18px 32px -18px #00000080, inset 0 1px 0 #ffffff0a;
}

.hero-art-paper {
  top: 26px;
  left: 9px;
  width: 270px;
  transform: rotate(-10deg);
}

.hero-art-summary {
  right: -3px;
  bottom: -9px;
  width: 207px;
  transform: rotate(7deg);
}

.hero-art-paper svg,
.hero-art-summary svg { display: block; width: 100%; stroke: #ffffff20; stroke-width: 1; }
.hero-art-heading { stroke: #ffffff40; stroke-width: 3; stroke-linecap: round; }
.hero-art-solid { fill: #d9775729; stroke: #d9775740; }
.hero-art-paper-mark { stroke: #e1a08a; stroke-width: 1.5; stroke-linecap: round; }
.hero-art-seal { fill: #d977571a; stroke: #d9775760; }
.hero-art-check { stroke: #e1a08a; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

html[data-site-theme="light"] .home-fold .hero-demo > .product-frame {
  background: linear-gradient(150deg, #fffefa, #fdfbf7) !important;
  border-color: #d9d1c4 !important;
  box-shadow: 0 32px 65px -24px #6d472d38, 0 8px 18px -12px #6d472d30, inset 0 1px 0 #fff !important;
}

html[data-site-theme="light"] .hero-art-field {
  background: radial-gradient(ellipse closest-side at 55% 45%, #caa47a33, #eadac61a 46%, transparent 100%);
}

html[data-site-theme="light"] :is(.hero-art-paper, .hero-art-summary) {
  border-color: #d9d1c4;
  background: linear-gradient(140deg, #fefdf9, #eee8dc);
  box-shadow: 0 18px 32px -18px #68432a40, inset 0 1px 0 #ffffffb3;
}

html[data-site-theme="light"] :is(.hero-art-paper, .hero-art-summary) svg { stroke: #b7aa9466; }
html[data-site-theme="light"] .hero-art-heading { stroke: #a3937a99; }
html[data-site-theme="light"] :is(.hero-art-paper-mark, .hero-art-check) { stroke: var(--accent); }

@media (min-width: 1024px) {
  .home-fold .home-hero { grid-template-columns: 1fr 1.08fr; }
}

@media (max-width: 1023px) {
  .home-fold .home-hero { grid-template-columns: 1fr; gap: 12px; }
  .home-fold .hero-demo { width: min(580px, 100%); margin: 0 auto; }
  .home-fold .hero-lede { max-width: 36rem; }
}

@media (max-width: 599px) {
  .landing-main:has(> .home-fold) { padding-top: 130px !important; }
  .home-fold .home-hero { gap: 24px; }
  .home-fold .hero-demo { height: 435px; }
  .home-fold .hero-demo > .product-frame { top: 80px; right: 0; left: 0; border-radius: 18px; }
  .home-fold .demo-window { padding: 17px 14px; }
  .home-fold .demo-label { top: 55px; right: 16px; }
  .hero-art-paper { top: 10px; left: 20px; width: 210px; }
  .hero-art-summary { right: 15px; bottom: 0; width: 165px; }
  .hero-art-route { inset: 0; width: 100%; height: 100%; }
  .hero-art-field { inset: -20px -16px; }
}
