/* The drawer overlays the preview, so opening it never animates page layout. */
.fork-hero-demo { --drawer-width: 350px; }
.fork-hero-demo .browser-bar { position: relative; }
.fork-hero-demo .demo-layout,
.fork-hero-demo .demo-layout.is-chat-open { padding-right: 0; min-height: 552px; transition: none; }
.fork-hero-demo .client-site { min-height: 552px; }
.fork-hero-demo .client-nav { height: 76px; padding-inline: 34px; }
.fork-hero-demo .client-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 422px; }
.fork-hero-demo .client-copy { padding: 36px 34px 26px; background: #fbfaf4; z-index: 1; }
.fork-hero-demo .client-eyebrow { font-size: 7px; }
.fork-hero-demo .client-image { position: relative; inset: auto; min-height: 422px; }
.fork-hero-demo .client-image img { transform: scale(1); transition: transform 700ms var(--ease); }
.fork-hero-demo .is-chat-open .client-image img { transform: scale(1.035); }
.fork-hero-demo .client-description { max-width: 235px; font-size: 11px; margin-top: 20px; }
.fork-hero-demo .client-button { font-size: 10px; }
.fork-hero-demo .headline-stage { position: relative; margin-top: 23px; height: 198px; isolation: isolate; }
.fork-hero-demo .client-copy h2,
.fork-hero-demo .headline-out { margin: 0; font: 400 64px/1.02 Georgia, serif; letter-spacing: -.065em; max-width: 370px; text-wrap: initial; transition: none; }
.fork-hero-demo .headline-out { position: absolute; inset: 0; animation: headline-leave 350ms var(--ease) both; }
.fork-hero-demo .headline-in { animation: headline-enter 480ms var(--ease) both; }
.fork-hero-demo .headline-selection { position: absolute; inset: -10px 8px -9px -11px; max-width: 380px; border: 1px solid #9baf8460; background: #dee8cb35; border-radius: 5px; z-index: -1; opacity: 0; transform: scale(.99); transition: opacity 180ms ease, transform 350ms var(--ease); pointer-events: none; }
.fork-hero-demo .headline-selection.is-visible { opacity: 1; transform: scale(1); }
.fork-hero-demo .editor-toggle { min-height: 31px; }
.fork-hero-demo .toggle-dot { width: 5px; height: 5px; border-radius: 50%; background: #91a48a; }
.fork-hero-demo .editor-toggle.is-active { background: #edf2e8; border-color: #d5dfce; }
.fork-hero-demo .chat-panel { width: var(--drawer-width); z-index: 4; border-left: 1px solid #dedfd9; box-shadow: -16px 0 50px -28px #18241850; opacity: 0; transform: translateX(102%); visibility: hidden; transition: transform 460ms cubic-bezier(.32,.72,0,1), opacity 260ms ease, visibility 460ms; }
.fork-hero-demo .is-chat-open .chat-panel { transform: translateX(0); opacity: 1; visibility: visible; }
.fork-hero-demo .chat-header { padding: 17px 15px; gap: 9px; }
.fork-hero-demo .chat-avatar { width: 35px; height: 35px; border-radius: 10px; }
.fork-hero-demo .chat-avatar img { filter: invert(1); }
.fork-hero-demo .chat-header strong { font-size: 16px; letter-spacing: -.02em; }
.fork-hero-demo .chat-header > div > span { font-size: 9px; margin-top: 3px; white-space: nowrap; }
.fork-hero-demo .client-access-pill { font-size: 8px; color: #7b8274; border: 1px solid #e3e6de; border-radius: 20px; padding: 5px 7px; white-space: nowrap; }
.fork-hero-demo .close-chat { width: 27px; height: 30px; }
.fork-hero-demo .chat-scope { padding: 11px 17px; font-size: 9px; background: #f8f9f6; }
.fork-hero-demo .chat-thread { padding: 26px 18px 16px; min-height: 135px; }
.fork-hero-demo .assistant-intro > p { font-size: 24px; line-height: 1.2; letter-spacing: -.045em; }
.fork-hero-demo .assistant-welcome { font-size: 11px; line-height: 1.6; margin-top: 15px; max-width: 240px; }
.fork-hero-demo .conversation-label { font-size: 7px; letter-spacing: .1em; color: #8f938a; margin-left: 32px; }
.fork-hero-demo .user-message { margin-top: 6px; font-size: 12px; line-height: 1.5; padding: 13px 14px; background: #f2f3ef; }
.fork-hero-demo .chat-exchange { animation: message-enter 280ms var(--ease) both; }
.fork-hero-demo .assistant-message { margin-top: 18px; }
.fork-hero-demo .assistant-message > p { font-size: 11px; line-height: 1.65; }
.fork-hero-demo .thinking-message { display: flex; flex-direction: column; gap: 9px; padding: 5px 0; font-size: 9px; color: #8a8e84; }
.fork-hero-demo .thinking-dots { display: flex; align-items: center; gap: 4px; height: 12px; }
.fork-hero-demo .thinking-dots i { width: 4px; height: 4px; background: #718566; border-radius: 50%; animation: thinking 1000ms ease-in-out infinite; }
.fork-hero-demo .thinking-dots i:nth-child(2) { animation-delay: 120ms; }
.fork-hero-demo .thinking-dots i:nth-child(3) { animation-delay: 240ms; }
.fork-hero-demo .change-receipt { margin-top: 15px; padding: 11px 12px; gap: 9px; border-color: #e4e6dd; background: #f8f9f5; color: #69765d; animation: message-enter 300ms var(--ease) both; }
.fork-hero-demo .change-receipt strong { display: block; font-size: 10px; font-weight: 600; }
.fork-hero-demo .change-receipt div > span { display: block; font-size: 8px; margin-top: 3px; color: #8a9481; }
.fork-hero-demo .change-receipt.is-success { border-color: #dce7d4; background: #f2f7ed; }
.fork-hero-demo .chat-bottom { padding: 0 15px 13px; }
.fork-hero-demo .suggestions { gap: 5px; margin-bottom: 12px; }
.fork-hero-demo .suggestions button { font-size: 8px; padding: 6px 8px; min-height: 26px; background: #fafbf8; }
.fork-hero-demo #chat-form { background: #fff; padding: 11px; box-shadow: 0 3px 12px #00000005; }
.fork-hero-demo #chat-form.is-typing { border-color: #a9b89c; }
.fork-hero-demo #chat-input { font-size: 11px; line-height: 1.55; height: 53px; padding: 0; color: #373b33; caret-color: #4b6540; }
.fork-hero-demo .composer-bottom > span { font-size: 8px; }
.fork-hero-demo .composer-bottom > button { width: 29px; height: 29px; }
.fork-hero-demo .chat-demo-note { font-size: 7px; margin-top: 8px; }
.fork-hero-demo .site-update { z-index: 2; left: 31px; bottom: 12px; transform: translateY(8px); opacity: 0; visibility: hidden; pointer-events: none; font-size: 9px; padding: 10px 12px; border-radius: 30px; transition: transform 350ms var(--ease), opacity 250ms ease, visibility 250ms; }
.fork-hero-demo .site-update.is-visible { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.fork-hero-demo .site-update svg { width: 12px; height: 12px; }
.fork-hero-demo .site-update svg:nth-of-type(2) { color: #859078; }
.fork-hero-demo .update-divider { height: 11px; width: 1px; background: #dce3d7; margin-inline: 3px; }
.fork-hero-demo .demo-caption { margin-top: 18px; }
.fork-hero-demo .demo-caption p > span { margin-left: 12px; }
.fork-hero-demo .demo-playback { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.fork-hero-demo .demo-playback button { min-height: 36px; }
.fork-hero-demo.is-paused:not(.is-manual) .headline-in,
.fork-hero-demo.is-paused:not(.is-manual) .headline-out,
.fork-hero-demo.is-paused:not(.is-manual) .chat-exchange,
.fork-hero-demo.is-paused:not(.is-manual) .change-receipt,
.fork-hero-demo.is-paused:not(.is-manual) .thinking-dots i { animation-play-state: paused; }
@keyframes headline-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes headline-leave { to { opacity: 0; transform: translateY(-8px); } }
@keyframes message-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes thinking { 0%, 70%, 100% { opacity: .35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 1100px) {
  .fork-hero-demo { --drawer-width: 326px; }
  .fork-hero-demo .client-copy { padding-left: 29px; }
  .fork-hero-demo .client-copy h2, .fork-hero-demo .headline-out { font-size: 57px; }
  .fork-hero-demo .headline-stage { height: 178px; }
}
@media (max-width: 899px) {
  .fork-hero-demo { --drawer-width: 310px; }
  .fork-hero-demo .client-hero { display: block; position: relative; }
  .fork-hero-demo .client-image { position: absolute; inset: 0; }
  .fork-hero-demo .client-image img { object-position: 68% center; }
  .fork-hero-demo .client-copy { min-height: 422px; background: linear-gradient(90deg,#fbfaf4 5%,#fbfaf4ed 48%,#fbfaf44d 100%); }
  .fork-hero-demo .client-access-pill { font-size: 7px; padding-inline: 5px; }
  .fork-hero-demo .chat-header { padding-inline: 12px; gap: 7px; }
}
@media (max-width: 679px) {
  .fork-hero-demo .demo-layout, .fork-hero-demo .demo-layout.is-chat-open,
  .fork-hero-demo .client-site { min-height: 565px; }
  .fork-hero-demo .browser-url { font-size: 7px; left: 45%; }
  .fork-hero-demo .editor-toggle { font-size: 7px; min-height: 27px; }
  .fork-hero-demo .toggle-dot { display: none; }
  .fork-hero-demo .client-nav { height: 66px; padding-inline: 22px; }
  .fork-hero-demo .client-copy { padding: 39px 27px 26px; min-height: 445px; }
  .fork-hero-demo .client-hero, .fork-hero-demo .client-image { min-height: 445px; }
  .fork-hero-demo .client-copy h2, .fork-hero-demo .headline-out { font-size: 53px; max-width: 265px; }
  .fork-hero-demo .headline-stage { height: 164px; margin-top: 25px; }
  .fork-hero-demo .client-description { font-size: 10px; max-width: 185px; margin-top: 23px; }
  .fork-hero-demo .client-button { font-size: 9px; }
  .fork-hero-demo .chat-panel { width: min(310px,calc(100% - 16px)); top: 12px; right: 8px; bottom: 12px; border-radius: 13px; }
  .fork-hero-demo .chat-header strong { font-size: 15px; }
  .fork-hero-demo .chat-header > div > span { font-size: 8px; }
  .fork-hero-demo .chat-thread { padding-top: 25px; }
  .fork-hero-demo .site-update { left: 13px; bottom: 13px; padding: 9px 10px; font-size: 8px; gap: 5px; }
  .fork-hero-demo .site-update button { font-size: 8px; margin-left: 3px; }
  .fork-hero-demo .demo-caption { align-items: flex-start; gap: 10px; }
  .fork-hero-demo .demo-caption p { font-size: 10px; max-width: 205px; }
  .fork-hero-demo .demo-caption p > span { margin: 4px 0 0; font-size: 9px; line-height: 1.5; }
  .fork-hero-demo .demo-playback { gap: 11px; }
  .fork-hero-demo .demo-playback button { font-size: 8px; min-height: 32px; }
}
@media (max-width: 359px) {
  .fork-hero-demo .client-copy { padding-left: 23px; }
  .fork-hero-demo .client-copy h2, .fork-hero-demo .headline-out { font-size: 48px; }
  .fork-hero-demo .client-access-pill { display: none; }
  .fork-hero-demo .demo-caption { flex-wrap: wrap; }
}
@media (hover: hover) and (pointer: fine) {
  .fork-hero-demo .demo-playback button:hover { color: #263b4b; }
  .fork-hero-demo .suggestions button:hover { background: #edf2e7; }
}
@media (prefers-reduced-motion: reduce) {
  .fork-hero-demo *, .fork-hero-demo *::before, .fork-hero-demo *::after { animation: none !important; transition: none !important; }
}

/* Keep the page spacing and mockups balanced without decorative labels. */
.hero #hero-heading, .section h2, .closing h2 { margin-top: 0; }
.workflow-tabs > button > span:first-child { flex: 1; }
.workflow-tabs > button > .step-arrow { flex: 0 0 auto; }
.workflow-panel > h3, .lead-app > h3 { margin-top: 0; }
.lead-brand > span:first-child { display: block; font-size: 21px; letter-spacing: -.06em; }
.agency-card > h3 { padding-top: 28px; margin-top: 0; }
.fork-hero-demo .headline-stage { margin-top: 0; }
.fork-hero-demo .client-hero, .fork-hero-demo .client-image { min-height: 476px; }
.fork-hero-demo .demo-caption { justify-content: flex-end; }
.fork-hero-demo .composer-bottom { justify-content: flex-end; }
@media (max-width: 899px) {
  .fork-hero-demo .client-copy { min-height: 476px; }
}
@media (max-width: 679px) {
  .fork-hero-demo .client-hero, .fork-hero-demo .client-image,
  .fork-hero-demo .client-copy { min-height: 499px; }
}
