/* Sections added to the Ember design: studio, findings, pricing, code. Uses the Ember theme variables. */
.robot-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.robot-strip figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.robot-strip img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.robot-strip figcaption { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.code-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin: 22px 0 0;
  overflow-x: auto; font: 14px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--fg); }
.code-card.small { font-size: 13px; margin-top: 18px; }
.code-card .c { color: var(--accent); } .code-card .s { color: #9ad19a; } .code-card .n { color: #f0c27b; } .code-card .m { color: var(--muted); }
.note { color: var(--muted); font-size: 13px; margin-top: 12px; }
.findings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.findings div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.findings strong { display: block; font-size: 19px; color: var(--accent); margin-bottom: 4px; }
.findings span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.plan.featured { border-color: var(--accent); }
.plan h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.plan .pill { font-size: 11px; font-weight: 500; border: 1px solid var(--accent); color: var(--accent); padding: 2px 8px; border-radius: 99px; }
.plan .price { font-size: 38px; font-weight: 700; margin: 12px 0 6px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.plan ul { padding-left: 18px; margin: 14px 0 0; color: var(--fg); } .plan li { margin: 6px 0; font-size: 14.5px; }
.plan li.soon { color: var(--muted); } .plan li.soon em { font-style: normal; font-size: 11px; color: var(--accent); margin-left: 4px; }
@media (max-width: 900px) {
  .robot-strip { grid-template-columns: repeat(2, 1fr); }
  .findings, .plan-grid { grid-template-columns: 1fr; }
}

/* ---- Hero: centered headline with floating robots ---------------------------------------------------- */
.hero-center { position: relative; min-height: clamp(640px, calc(100vh - 90px), 900px); display: grid; place-items: center; padding-block: 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); text-align: center; isolation: isolate; overflow-x: clip; }
.hero-center::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, #ffffff14 1px, transparent 1.4px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 30%, transparent 75%); }
.hero-center::after { content: ""; position: absolute; left: 50%; top: 44%; width: min(720px, 90vw); height: 360px; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(ellipse at center, #ff9b5426, transparent 68%); filter: blur(10px); pointer-events: none; }
.hero-center-copy { max-width: 880px; display: grid; justify-items: center; gap: 22px; position: relative; z-index: 2; min-width: 0; }
.live-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: #17191bcc; font-size: 14px; color: var(--fg); }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 4px #3ecf6e22; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px #3ecf6e0a; } }
.hero-center h1 { margin: 0; max-width: none; font-size: clamp(38px, 5.4vw, 74px); line-height: 1.05; letter-spacing: -0.045em; text-wrap: balance; }
.glow-line { display: block; background: linear-gradient(92deg, #ff7a2f, #ffb067 55%, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-center-copy p { margin: 0; max-width: 640px; font-size: 18.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.hero-actions, .tour-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.button.light { background: #f6f4f0; color: #141210; border-radius: 12px; padding-inline: 26px; box-shadow: 0 10px 34px #ff9b5426, 0 1px 0 #fff inset; }
.hero-actions .button.outline, .tour-actions .button.outline { border-radius: 12px; }
.hero-meta { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }

.float-field { position: absolute; inset: 0; z-index: 1; }
.floater { position: absolute; translate: calc(-50% + var(--px, 0) * var(--depth, .5) * -36px) calc(-50% + var(--py, 0) * var(--depth, .5) * -28px); transition: translate .5s cubic-bezier(.2,.7,.2,1); pointer-events: auto; }
.robot-tile { display: block; width: 100%; height: 100%; border-radius: 26%; overflow: hidden;
  background: radial-gradient(circle at 30% 22%, #fffdfa, #e5dfd7 58%, #cfc8bf); box-shadow: 0 18px 40px #000a, 0 1px 0 #fff inset, 0 0 0 1px #ffffff1a;
  rotate: var(--r, 0deg); transition: rotate .4s, scale .4s; }
.robot-tile img { width: 100%; height: 100%; object-fit: contain; padding: 5%; display: block; }
.floater .robot-tile { animation: bob 7s ease-in-out var(--d) infinite; }
.floater:hover .robot-tile { rotate: 0deg; scale: 1.08; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ---- Studio tour --------------------------------------------------------------------------------- */
.tour { padding-block: 8px 72px; scroll-margin-top: 20px; }
.tour-stage { border-radius: 28px; padding: clamp(14px, 3vw, 40px) clamp(10px, 4vw, 56px) clamp(16px, 3vw, 34px); position: relative; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 12% 8%, #ff9b54 0%, transparent 60%), radial-gradient(ellipse 55% 70% at 92% 18%, #ffcf9a 0%, transparent 62%),
    radial-gradient(ellipse 70% 70% at 80% 100%, #2c4fb8 0%, transparent 65%), radial-gradient(ellipse 60% 60% at 5% 95%, #1f3a8f 0%, transparent 60%), linear-gradient(160deg, #e0733a, #8b5a8c 55%, #23356f); }
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: clamp(12px, 2vw, 24px); }
.tour-tabs button { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #ffffff40; background: #10111259; color: #fff; padding: 9px 16px 9px 10px;
  border-radius: 99px; font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s; }
.tour-tabs button b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ffffff26; font-size: 12px; }
.tour-tabs button[aria-selected="true"] { background: #f6f4f0; color: #141210; border-color: #f6f4f0; }
.tour-tabs button[aria-selected="true"] b { background: var(--accent); color: #141210; }
.tour-window { max-width: 1100px; margin-inline: auto; border-radius: 14px; overflow: hidden; background: #0d0e10; box-shadow: 0 40px 90px #0009, 0 0 0 1px #ffffff26; }
.tour-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #191a1d; border-bottom: 1px solid #ffffff12; font-size: 12px; color: var(--muted); }
.tour-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3b3f; } .tour-bar i:first-child { background: #ff6159; } .tour-bar i:nth-child(2) { background: #ffbd2e; } .tour-bar i:nth-child(3) { background: #28c941; }
.tour-bar span { margin-left: 10px; color: var(--fg); font-weight: 600; } .tour-bar em { margin-left: auto; font-style: normal; font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .05em; }
.tour-shots { position: relative; aspect-ratio: 1800 / 1075; max-width: 100%; }
.tour-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.tour-shots img.on { opacity: 1; }
.tour-caption { max-width: 760px; margin: clamp(14px, 2vw, 22px) auto 0; text-align: center; color: #fff; font-size: 16px; line-height: 1.55; text-shadow: 0 1px 10px #0006; min-height: 3.1em; }
.tour-actions { margin-top: 26px; }
.note.center { text-align: center; }

/* ---- Robot roster marquee ------------------------------------------------------------------------- */
.roster { padding-block: 64px 10px; overflow: hidden; }
.roster-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.roster-head p { margin: 0; color: var(--muted); max-width: 520px; }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: slide 60s linear infinite; padding-block: 10px 6px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee figure { margin: 0; width: 132px; display: grid; gap: 10px; justify-items: center; }
.marquee .robot-tile { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 10px 26px #0008, 0 1px 0 #fff inset; }
.marquee figcaption { font-size: 13px; color: var(--muted); text-align: center; }
@keyframes slide { to { transform: translateX(calc(-50% - 9px)); } }

/* ---- "Change the scene" section (former hero) ---------------------------------------------------- */
.ember .hero.play { min-height: 560px; border-top: 1px solid var(--line); }
.hero.play h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.06; letter-spacing: -.04em; margin: 18px 0; }
.hero.play h2 em { font-style: normal; color: var(--accent); }

@media (prefers-reduced-motion: reduce) { .floater .robot-tile, .marquee-track, .live-pill i { animation: none; } .tour-shots img { transition: none; } }
@media (max-width: 760px) {
  .hero-center { min-height: 0; padding-block: 130px 130px; }
  .hero-center-copy p { font-size: 16.5px; }
  .tour-stage { border-radius: 18px; }
  .tour-tabs button { padding: 8px 12px 8px 8px; font-size: 13px; }
  .tour-caption { font-size: 14.5px; }
  .marquee figure { width: 100px; } .marquee .robot-tile { width: 100px; height: 100px; border-radius: 24px; }
}
@media (max-width: 760px) { .studio-view-tools button, .scene-controls button, .studio-motion { min-height: 40px; min-width: 40px; } }

/* ---- the problem: four terminals ---------------------------------------------------------------- */
.pain-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: stretch; margin-top: 8px; }
.mini-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; }
.mini-term { background: #0b0c0d; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.mini-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #1b1d20; font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.mini-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3b3f; } .mini-bar i:nth-child(1) { background: #ff6159; } .mini-bar i:nth-child(2) { background: #ffbd2e; } .mini-bar i:nth-child(3) { background: #28c941; }
.mini-bar span { margin-left: 8px; }
.mini-body { padding: 10px 14px 14px; display: grid; gap: 4px; }
.mini-body p { margin: 0; font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; color: #d9dadc; overflow-wrap: anywhere; }
.mini-body p.cmd { color: #9ad19a; } .mini-body p.err { color: #ff8a7a; }
.ba-card { background: radial-gradient(ellipse 80% 60% at 100% 0%, #ff9b5422, transparent 70%), var(--panel); border: 1px solid #ff9b5466; border-radius: 16px; padding: 22px 26px; display: grid; align-content: center; gap: 2px; min-width: 0; }
.ba-title { font: 12px/1.4 ui-monospace, monospace; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; }
.ba-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ba-line:last-child { border-bottom: 0; }
.ba-o { color: var(--muted); text-decoration: line-through; text-decoration-color: #ff8a7a99; } .ba-a { color: var(--accent); } .ba-n { color: var(--fg); font-weight: 600; }

/* ---- tour heading and video -------------------------------------------------------------------- */
.tour-head { text-align: center; display: grid; justify-items: center; gap: 10px; margin-bottom: 26px; }
.tour-head h2 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.tour-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0d0e10; }

/* ---- early access ------------------------------------------------------------------------------ */
.early-box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: clamp(22px, 4vw, 44px); border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 80% at 0% 0%, #ff9b5426, transparent 65%), radial-gradient(ellipse 60% 70% at 100% 100%, #2c4fb833, transparent 65%), var(--panel); }
.early-box h2 { margin: 12px 0 14px; }
.early-box p { color: var(--muted); line-height: 1.6; }
.early-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.early-mail .mail { color: var(--fg); font-weight: 600; user-select: all; overflow-wrap: anywhere; }
.button.small { min-height: 34px; padding: 6px 14px; font-size: 13px; border-radius: 9px; }
.early-form { display: grid; gap: 12px; min-width: 0; }
.early-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.early-form input, .early-form textarea { font: inherit; font-size: 15px; color: var(--fg); background: #0f1011; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; box-sizing: border-box; }
.early-form input:focus, .early-form textarea:focus { outline: 2px solid #ff9b5488; outline-offset: 1px; border-color: transparent; }
.early-form textarea { resize: vertical; }
.early-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.early-form button[type=submit] { justify-self: start; margin-top: 4px; }
.form-status { min-height: 1.4em; margin: 0; font-size: 14px; color: var(--muted); }
.form-status.good { color: #7fd99a; } .form-status.bad { color: #ff8a7a; }

@media (max-width: 900px) { .pain-grid, .early-box { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .mini-terms { grid-template-columns: 1fr; } }

/* ---- brand ------------------------------------------------------------------------------------------ */
.brand-logo { width: 32px; height: 32px; display: block; flex: none; }
.made-by { display: inline-flex; align-items: center; gap: 8px; }
.made-by img { width: 22px; height: 22px; }

/* docs view (#docs) */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-block: 24px 96px; }
.docs[hidden] { display: none; }
.docs-nav { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 48px); overflow-y: auto; }
.docs-nav .eyebrow { margin: 18px 0 8px; }
.docs-nav a { color: var(--muted); font-size: 14px; padding: 7px 10px; border-radius: 6px; border-left: 2px solid transparent; }
.docs-nav a:hover { color: var(--fg); background: var(--panel); }
.docs-nav a.docs-back { color: var(--accent); padding-left: 0; }
.docs-body { min-width: 0; max-width: 780px; }
.docs-body h1 { font-size: clamp(36px, 4vw, 54px); letter-spacing: -.05em; line-height: 1.08; margin: 12px 0 14px; }
.docs-lead { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0 0 8px; }
.docs-sec { padding-top: 44px; scroll-margin-top: 24px; border-bottom: 1px solid var(--line); padding-bottom: 36px; }
.docs-sec:last-child { border-bottom: 0; }
.docs-sec h2 { font-size: 28px; letter-spacing: -.035em; margin: 0 0 14px; font-weight: 650; }
.docs-sec h3 { font-size: 17px; margin: 26px 0 8px; }
.docs-sec p, .docs-sec li { color: #d8d6d2; font-size: 15.5px; line-height: 1.75; }
.docs-sec ul, .docs-sec ol { padding-left: 22px; margin: 10px 0; }
.docs-sec code { font: 13px ui-monospace, "JetBrains Mono", monospace; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--fg); overflow-wrap: anywhere; }
.docs-sec pre.code-card { overflow-x: auto; white-space: pre; font: 13px/1.65 ui-monospace, "JetBrains Mono", monospace; }
.docs-sec kbd { font: 12px ui-monospace, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--fg); background: var(--panel); white-space: nowrap; }
.docs-sec a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.docs-note { border-left: 2px solid var(--accent); background: #ff9b540d; padding: 10px 14px; border-radius: 0 8px 8px 0; }
.docs-table { overflow-x: auto; margin: 14px 0; }
.docs-table table { min-width: 0; }
.docs-table th { font-size: 12px; padding: 0 16px 10px 0; }
.docs-table td { font-size: 14.5px; font-weight: 400 !important; padding: 12px 16px 12px 0; line-height: 1.6; color: #d8d6d2; vertical-align: top; }
.docs-table td:first-child { color: var(--fg); white-space: nowrap; }
.nav-links a.on { color: var(--fg); }
.footer-links { display: flex; gap: 20px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 8px; }
  .docs-nav { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .docs-nav .eyebrow { display: none; }
  .docs-nav a { border: 1px solid var(--line); font-size: 13px; padding: 6px 10px; }
  .docs-nav a.docs-back { border: 0; width: 100%; }
  .docs-table td:first-child { white-space: normal; }
}
