/* Joy brand v1: coral, warm white, charcoal and DM Sans. */
:root {
  --paper: #fff7ef;
  --ink: #292525;
  --muted: #665c58;
  --line: #e5d8cf;
  --orange: #c74431;
  --orange-dark: #a93626;
  --panel: #292525;
  --panel-muted: #c9beb7;
  --ease: cubic-bezier(.2, .75, .25, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', Arial, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
img, video { display: block; width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
em { font: inherit; }
h1, h2 { font-weight: 500; letter-spacing: -.05em; line-height: 1.08; }
h2 { font-size: clamp(38px, 4vw, 54px); }
::selection { background: #f2c9bc; color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.section-width { max-width: 1440px; margin: auto; padding: 0 64px; }
.section-space { padding-top: 104px; padding-bottom: 104px; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .12em; line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 54px; padding: 15px 22px; border: 1px solid var(--orange); border-radius: 7px; background: var(--orange); color: #fff; font-size: 14px; font-weight: 550; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-2px); }
.button span { font-size: 20px; font-weight: 400; line-height: 1; }
.button-small { min-height: 41px; padding: 11px 17px; font-size: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; border: 0; background: transparent; font-size: 13px; font-weight: 550; }
.text-button:hover, .text-link:hover { color: var(--orange); }
.play-small { display: grid; place-items: center; width: 26px; height: 26px; padding-left: 2px; border: 1px solid #8c7d75; border-radius: 50%; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 100; padding: 12px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 10px; }

/* Header actions appear only after the hero actions pass above it. */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff7efed; backdrop-filter: blur(18px); border-bottom: 1px solid #e5d8cf85; }
.header-inner { max-width: 1440px; min-height: 91px; margin: auto; padding: 0 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; width: 165px; height: 50px; object-fit: contain; flex-shrink: 0; }
.site-header #main-nav { display: flex; flex-direction: row; align-items: center; gap: 28px; margin-left: auto; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s ease; }
.site-header.header-actions-visible #main-nav { opacity: 1; visibility: visible; pointer-events: auto; }
.header-watch { border: 0; background: none; color: var(--ink); font-size: 13px; padding: 12px 0; white-space: nowrap; }
.header-watch:hover { color: var(--orange); }
.site-header #main-nav .header-cta { margin: 0; color: #fff; font-size: 13px; white-space: nowrap; }

/* Preserve the accepted hero composition and mobile fold geometry. */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 735px; align-items: center; gap: 10px; overflow: hidden; }
.hero-copy { min-width: 0; padding: 80px 0 68px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(54px, 5.55vw, 80px); line-height: 1.06; margin: 27px 0 24px; letter-spacing: -.065em; white-space: nowrap; }
.hero h1 em { color: var(--orange); font-size: 1em; letter-spacing: inherit; line-height: inherit; }
.hero-description { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: none; }
.hero-actions { display: flex; gap: 23px; align-items: center; margin-top: 32px; }
.hero-actions .button { font-size: 12px; padding: 15px 18px; gap: 18px; }
.hero-actions .text-button { font-size: 12px; white-space: nowrap; }
.hero-visual { position: relative; height: 645px; align-self: center; margin-left: 0; background: transparent; isolation: isolate; overflow: hidden; }
.hero-robot { position: absolute; inset: 0; z-index: 1; height: 100%; width: 100%; object-fit: contain; object-position: center; mix-blend-mode: normal; }

/* One native player, five clearly selectable buttons. */
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.workflow-layout { display: grid; grid-template-columns: .85fr 1.55fr; gap: 56px; align-items: start; }
.workflow-tabs { display: grid; gap: 10px; }
.workflow-tab { display: grid; grid-template-columns: 26px 1fr; align-items: start; gap: 12px; width: 100%; min-height: 56px; padding: 18px; border: 1px solid #d9c9bd; border-radius: 9px; background: #fffcf8; text-align: left; transition: background .16s, border-color .16s, color .16s; }
.workflow-tab:hover { background: #f7e9df; border-color: #bca497; }
.workflow-tab.active { color: #fff; border-color: var(--orange); background: var(--orange); }
.step-number { padding-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.workflow-tab strong { font-size: 18px; font-weight: 500; letter-spacing: -.025em; line-height: 1.35; }
.step-copy { display: none; max-width: 280px; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.workflow-tab.active .step-copy { display: block; }
.workflow-tab.active strong, .workflow-tab.active .step-number, .workflow-tab.active .step-copy { color: #fff; }
.service-panel { min-width: 0; scroll-margin-top: 110px; }
.demo-picture { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; background: #efe4d9; }
.demo-picture > img { height: 100%; object-fit: contain; }
.inline-demo { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: contain; background: #111; }
.inline-demo[hidden], #service-image[hidden] { display: none; }
.video-status { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.video-status:empty { display: none; }
.demo-caption { display: flex; align-items: flex-start; justify-content: flex-end; padding-top: 16px; }
.scene-duration { padding-top: 2px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Design partner invitation and the same two required form fields. */
.pilot.section-space { padding-top: 0; }
.pilot-shell { display: grid; grid-template-columns: 1fr .96fr; gap: 64px; padding: 56px; border-radius: 16px; color: var(--paper); background: var(--panel); }
.pilot .eyebrow { color: #e7dcd5; }
.pilot-copy { align-self: center; }
.pilot h2 { margin: 20px 0; font-size: clamp(36px, 3.55vw, 51px); white-space: nowrap; }
.pilot-copy > p { max-width: 38ch; color: #d9ccc4; font-size: 14px; line-height: 1.75; }
.pilot-copy > p + p { margin-top: 18px; }
.pilot-copy strong { color: var(--paper); font-weight: 600; }
.pilot-form-wrap { align-self: center; padding: 32px; border-radius: 10px; background: var(--paper); color: var(--ink); }
.pilot-form-wrap h3 { margin: 0 0 26px; font-size: 34px; font-weight: 500; line-height: 1.12; letter-spacing: -.04em; }
.pilot-form-wrap label { display: block; margin-bottom: 18px; font-size: 14px; font-weight: 500; line-height: 1.5; }
input, textarea { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 12px; border: 1px solid #d9c9bd; border-radius: 6px; background: #fffcf8; color: var(--ink); font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s; }
input { height: 48px; }
input::placeholder, textarea::placeholder { color: #85766b; font-size: 14px; font-weight: 400; }
input:focus, textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 2px #c7443120; }
textarea { resize: vertical; min-height: 96px; max-height: 240px; }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; }
.pilot-form-wrap .button { width: 100%; min-height: 50px; margin-top: 3px; padding: 12px 16px; font-size: 13px; }
.form-status { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-status:empty { display: none; }
.form-success { min-height: 406px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.form-success[hidden] { display: none; }
.success-mark { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 50%; color: var(--orange); }
.success-mark svg { width: 26px; height: 26px; }
.form-success h3 { margin-bottom: 14px; }
.form-success h3:focus { outline: 0; }
.form-success p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.form-success .text-button { margin-top: 24px; }

/* Readable answers without a second layer of introductory copy. */
.faq { display: grid; grid-template-columns: .85fr 1.55fr; gap: 56px; padding-bottom: 104px; }
.faq h2 { font-size: clamp(36px, 3.8vw, 48px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; list-style: none; cursor: pointer; font-size: 16px; font-weight: 500; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span { color: var(--muted); font-size: 22px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary > span { transform: rotate(45deg); }
.faq details > p { max-width: 550px; padding: 0 28px 24px 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

/* Compact contact-only footer. Brand assets remain in the shared kit. */
.site-footer { border-top: 1px solid var(--line); background: #f4e9df; }
.footer-top { padding: 32px 0; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact > a { font-size: clamp(18px, 2vw, 24px); letter-spacing: -.025em; line-height: 1.4; }
.footer-contact > a:hover { color: var(--orange); }
.footer-contact > p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid #e1d3c8; color: var(--muted); font-size: 12px; line-height: 1.5; }
.reveal { animation: reveal-in .65s var(--ease) both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1600px) {
  .hero { min-height: 780px; }
  .hero-visual { height: 690px; }
  .hero h1 { font-size: 84px; }
}
@media (max-width: 1200px) {
  .section-width { padding-left: 40px; padding-right: 40px; }
  .header-inner { padding: 0 40px; }
  .hero { min-height: 660px; }
  .hero-visual { height: 570px; }
  .hero h1 { font-size: clamp(45px, 5.5vw, 66px); }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 16px; flex-wrap: wrap; }
  .hero-actions .button, .hero-actions .text-button { font-size: 11px; }
  .workflow-layout { gap: 32px; grid-template-columns: .9fr 1.3fr; }
  .pilot-shell { gap: 40px; padding: 40px; }
  .pilot-form-wrap { padding: 28px; }
  .pilot h2 { font-size: 44px; }
  .faq { gap: 32px; grid-template-columns: .9fr 1.3fr; }
}
@media (max-width: 960px) {
  .hero { min-height: 620px; grid-template-columns: 1.08fr 1fr; }
  .hero h1 { font-size: clamp(39px, 5.5vw, 53px); }
  .hero-visual { height: 535px; }
  .hero-actions { gap: 8px; }
  .section-heading { gap: 30px; }
  .workflow-layout { gap: 30px; grid-template-columns: 1fr 1.2fr; }
  .workflow-tab { grid-template-columns: 20px 1fr; padding: 16px; gap: 10px; }
  .workflow-tab strong { font-size: 17px; }
  .pilot-shell { padding: 32px; gap: 30px; }
  .pilot-form-wrap { padding: 24px; }
  .pilot h2 { font-size: 37px; }
  .pilot-form-wrap h3 { font-size: 30px; }
  .faq { gap: 30px; grid-template-columns: 1fr 1.2fr; }
}
/* Keep desktop text on the section rail, with the dark surface outside it. */
@media (min-width: 761px) {
  .pilot-shell { position: relative; isolation: isolate; padding-inline: 0; background: transparent; }
  .pilot-shell::before { content: ''; position: absolute; z-index: -1; inset: 0 -32px; border-radius: inherit; background: var(--panel); pointer-events: none; }
}
@media (min-width: 961px) and (max-width: 1200px) {
  .pilot-shell::before { inset-inline: -24px; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .pilot-shell::before { inset-inline: -16px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 85px; }
  .section-width { padding-left: 24px; padding-right: 24px; }
  .section-space { padding-top: 64px; padding-bottom: 64px; }
  .header-inner { min-height: 76px; padding: 0 24px; }
  .brand-logo { width: 132px; height: 40px; }
  .site-header #main-nav { gap: 18px; }
  .header-watch { min-height: 44px; font-size: 11px; }
  .site-header #main-nav .header-cta { min-height: 40px; padding: 8px 12px; gap: 14px; font-size: 10px; }
  .header-cta span { font-size: 16px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: auto; padding-top: 16px; padding-bottom: 0; }
  .hero-copy { display: contents; width: 100%; }
  .hero h1 { order: 1; font-size: clamp(38px, 10.7vw, 46px); line-height: 1.1; letter-spacing: -.045em; margin: 12px 0 10px; white-space: normal; }
  .hero h1 em { font-size: 1em; line-height: inherit; letter-spacing: inherit; vertical-align: baseline; }
  .hero-description { order: 2; font-size: 13px; line-height: 1.65; max-width: 360px; }
  .hero-visual { order: 3; width: 100%; height: clamp(180px, calc(100svh - 380px), 380px); margin: 12px 0 0; }
  .hero-robot { padding: 0; }
  .hero-actions { order: 4; display: flex; justify-content: center; gap: 20px; flex-wrap: nowrap; margin-top: 12px; padding-bottom: 8px; }
  .hero-actions .button { min-height: 46px; padding: 12px 13px; font-size: 12px; gap: 12px; }
  .hero-actions .text-button { min-height: 44px; font-size: 12px; gap: 7px; }
  .hero-actions .play-small { width: 23px; height: 23px; flex-shrink: 0; }
  .workflow.section-space { padding-top: 62px; padding-bottom: 64px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading h2 { font-size: clamp(34px, 9.2vw, 40px); line-height: 1.09; letter-spacing: -.045em; }
  .workflow-layout { display: flex; flex-direction: column; gap: 24px; }
  .service-panel { order: -1; width: 100%; scroll-margin-top: 94px; }
  .workflow-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .workflow-tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 13px 10px; text-align: center; }
  .workflow-tab:not(:first-child) .step-number { display: none; }
  #tab-full { grid-column: 1/-1; }
  .workflow-tab strong { font-size: 13px; line-height: 1.4; letter-spacing: -.02em; }
  .step-number { padding-top: 0; font-size: 11px; }
  .step-copy, .workflow-tab.active .step-copy { display: none; }
  .demo-picture { border-radius: 10px; }
  .demo-caption { padding-top: 12px; }
  .pilot-shell { grid-template-columns: 1fr; padding: 18px; gap: 32px; border-radius: 14px; }
  .pilot-form-wrap { order: -1; align-self: stretch; padding: 24px; margin: 0; }
  .pilot-form-wrap h3 { font-size: 30px; margin: 0 0 24px; }
  .pilot-copy { padding: 0 8px 10px; }
  .pilot h2 { margin: 18px 0; font-size: clamp(26px, 7.5vw, 40px); line-height: 1.1; letter-spacing: -.04em; }
  .pilot-copy > p { max-width: none; }
  .faq { display: block; padding-bottom: 64px; }
  .faq-intro { margin-bottom: 32px; }
  .faq h2 { font-size: 38px; }
  .faq summary { padding: 22px 0; font-size: 15px; }
  .faq details > p { padding-right: 15px; }
  .footer-top { padding: 28px 0; }
  .footer-contact { margin: 0; gap: 8px; }
  .footer-contact > a { font-size: 19px; }
  .footer-bottom { gap: 14px; padding: 22px 0; flex-wrap: wrap; }
}
@media (max-width: 390px) {
  .section-width { padding-left: 20px; padding-right: 20px; }
  .header-inner { padding: 0 20px; }
  .site-header .brand-logo { width: 112px; height: 34px; }
  .site-header #main-nav { gap: 14px; flex-shrink: 0; }
  .site-header #main-nav .header-cta { flex-shrink: 0; }
}
@media (max-width: 374px) {
  .hero-actions { gap: 16px; }
  .hero-actions .button { padding: 12px 10px; gap: 8px; }
  .hero-actions .text-button { gap: 6px; }
  .hero-actions .play-small { width: 21px; height: 21px; }
  .pilot-shell { padding: 15px; }
  .pilot-form-wrap { padding: 21px; }
}
@media (max-width: 350px) {
  .site-header .brand-logo { width: 96px; height: 30px; }
  .site-header #main-nav { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .button:hover { transform: none; }
}
