:root {
  color-scheme: light;
  --bg: #fff;
  --fg: #242a23;
  --muted: #6a7167;
  --line: #dedfd6;
  --panel: #fffefa;
  --green: #2e3c2a;
  /* Logo orange (#ff4900) deepened just enough for AA white text. */
  --orange: #d43b00;
  --orange-hover: #b53200;
  --orange-press: #9a2b00;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    16px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Inter,
    Roboto,
    "Noto Sans",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #b66a3a;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
::selection {
  color: #243120;
  background: #dce5d3;
}
.wrap {
  width: 100%;
  max-width: 1184px;
  padding-inline: 32px;
  margin-inline: auto;
}
h1,
h2,
p {
  margin-top: 0;
}
h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.12;
  font-weight: 450;
  letter-spacing: -0.045em;
  margin-bottom: 19px;
  text-wrap: pretty;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fffef9;
  border: 0;
  border-radius: 100px;
  text-decoration: none;
  padding: 12px 23px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.btn:hover {
  background: var(--orange-hover);
  box-shadow: 0 4px 18px #b532001f;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 650;
}
.wordmark img {
  display: block;
  width: 31px;
  height: 31px;
  border-radius: 8px;
}
/* Only the artwork is clipped, so menus can cross the hero boundary. */
.hero {
  position: relative;
  isolation: isolate;
  z-index: 2;
  min-height: 800px;
  background: #fff;
  overflow: visible;
}
.hero-landscape {
  position: absolute;
  inset: 0 0 auto;
  height: 780px;
  z-index: -3;
  overflow: hidden;
}
.hero-landscape picture,
.hero-landscape img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-landscape img {
  object-fit: cover;
  object-position: center top;
  animation: landscape-in 2.4s var(--ease) both;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 25%,
    #ffffff20 48%,
    #ffffffdc 77%,
    #fff 97%
  );
}
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 98px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-inline-start: auto;
  font-size: 14px;
}
.nav-links > a {
  text-decoration: none;
  color: #4b5547;
}
.nav-links > a:hover {
  color: #192715;
}
.nav-cta {
  border: 1px solid var(--orange);
  border-radius: 100px;
  text-decoration: none;
  background: var(--orange);
  color: #fffef9;
  padding: 7px 20px;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-cta:hover {
  border-color: var(--orange-hover);
  background: var(--orange-hover);
}
.hero-content {
  text-align: center;
  padding-top: 250px;
  padding-bottom: 85px;
}
.hero h1 {
  max-width: 920px;
  margin: 0 auto 24px;
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1.04;
  font-weight: 430;
  letter-spacing: -0.06em;
}
.hero h1 em {
  display: inline-block;
  max-width: 100%;
  font-style: normal;
  color: #303c2c;
}
.lede {
  max-width: 520px;
  margin: 0 auto 29px;
  color: #586151;
  font-size: 18px;
  line-height: 1.75;
  text-wrap: pretty;
}
.hero h1,
.hero .lede,
.hero .cta,
.hero .note {
  animation: rise-in 1s var(--ease) both;
}
.hero .lede {
  animation-delay: 0.12s;
}
.hero .cta {
  animation-delay: 0.24s;
}
.hero .note {
  animation-delay: 0.3s;
}
.cta {
  display: inline-flex;
  position: relative;
  z-index: 3;
  align-items: stretch;
  gap: 1px;
}
.cta > .btn {
  border-start-start-radius: 100px;
  border-end-start-radius: 100px;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}
.cta > a:has(+ button[hidden]) {
  border-radius: 100px;
}
.cta > .caret {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: 100px;
  border-end-end-radius: 100px;
  padding-inline: 13px;
  background: var(--orange-hover);
}
.cta > .caret:hover {
  background: var(--orange-press);
}
.caret svg {
  width: 10px;
  height: 6px;
  fill: currentColor;
  transition: transform 0.2s;
}
.caret[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.cta-menu {
  position: absolute;
  inset-block-start: calc(100% + 9px);
  inset-inline-start: 0;
  z-index: 10;
  min-width: 305px;
  padding: 6px;
  background: var(--panel);
  color: var(--fg);
  border: 1px solid #dedfd5;
  border-radius: 15px;
  box-shadow: 0 14px 35px #19240d26;
  text-align: start;
  animation: menu-in 0.18s var(--ease);
}
.cta-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 10px;
  border-radius: 9px;
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
}
.cta-menu a:hover,
.cta-menu a:focus-visible {
  background: #eceee6;
}
.cta-menu svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: none;
}
.cta-menu .meta {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 11px;
}
.note {
  display: block;
  color: #606a58;
  margin: 15px 0 0;
  font-size: 11px;
}
.lang {
  position: relative;
}
.lang summary {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  cursor: pointer;
  color: #4b5547;
  font-size: 13px;
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang summary::after {
  content: "⌄";
  margin-inline-start: 4px;
  font-size: 12px;
}
.lang summary svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.lang-menu {
  position: absolute;
  inset-block-start: calc(100% + 13px);
  inset-inline-end: 0;
  z-index: 20;
  width: 190px;
  max-height: 310px;
  padding: 5px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 10px 28px #18220c1c;
}
.lang-menu a {
  display: block;
  padding: 7px 10px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 13px;
  color: var(--fg);
}
.lang-menu a:hover {
  background: #eceee6;
}
.lang-menu a[aria-current] {
  color: #5c744a;
}
/* Product previews with three native disclosure controls. */
.product-section {
  padding-top: 80px;
  padding-bottom: 112px;
}
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  margin-bottom: 46px;
}
.section-intro p {
  max-width: 525px;
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.outline-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 18px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}
.outline-link:hover {
  background: #f0f2eb;
}
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 96px;
  align-items: center;
}
.preview-stage {
  margin: 0;
  min-width: 0;
}
.preview-panels {
  background: #eceee7;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  container-type: inline-size;
}
.app-preview {
  display: flex;
  width: 100%;
  aspect-ratio: 1;
}
.app-preview[hidden] {
  display: none;
}

/* Coded app windows modeled on Blade Desktop. Every size is in em and the
   em follows the container width, so a window scales as one piece. */
.mock {
  --m-bg: #fbfbfa;
  --m-side: #f3f3f0;
  --m-line: #e4e5df;
  --m-fg: #1f2320;
  --m-muted: #767b72;
  --m-green: #5d7a4f;
  padding: 7%;
  font-size: calc(100cqw / 38);
  line-height: 1.45;
  color: var(--m-fg);
  text-align: start;
}
.mock .mw {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 0.9em;
  background: var(--m-bg);
  box-shadow: 0 1.6em 3.4em #2a35201a, 0 0.2em 0.5em #2a35200d;
}
.mock .mi {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mock .mi.ok {
  color: var(--m-green);
  stroke-width: 1.8;
}
.mw-bar {
  position: relative;
  display: flex;
  gap: 0.45em;
  align-items: center;
  padding: 0.75em 0.9em;
  border-bottom: 1px solid var(--m-line);
}
.mw-bar i {
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: #e2e3dd;
}
.mw-bar i:nth-child(1) { background: #f26a5e; }
.mw-bar i:nth-child(2) { background: #f5bd4f; }
.mw-bar i:nth-child(3) { background: #5fc454; }
.mw-bar span {
  position: absolute;
  inset-inline: 0;
  text-align: center;
  font-size: 0.85em;
  font-weight: 600;
  color: #4b4f49;
  pointer-events: none;
}
.mw-bar b {
  margin-inline-start: 0.4em;
  font-weight: 400;
  color: var(--m-muted);
}
.mw-head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.65em 0.9em;
  border-bottom: 1px solid var(--m-line);
  font-size: 0.9em;
}
.mw-head img {
  width: 1.5em;
  height: 1.5em;
}
.mw-head .crumb {
  display: flex;
  align-items: center;
  gap: 0.4em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  color: var(--m-muted);
}
.mw-head .crumb em {
  font-style: normal;
  opacity: 0.6;
}
.mw-body {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  flex: 1;
  min-height: 0;
  padding: 0.9em;
}
.m-file,
.m-tool {
  display: flex;
  align-items: center;
  gap: 0.55em;
  white-space: nowrap;
}
.m-file {
  padding: 0.6em 0.75em;
  border-radius: 0.6em;
  background: #f0f1ec;
}
.m-file span,
.m-tool span {
  color: var(--m-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-file span {
  margin-inline-start: auto;
}
.m-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--m-line);
  border-radius: 0.6em;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.m-table th,
.m-table td {
  padding: 0.38em 0.75em;
  border-bottom: 1px solid var(--m-line);
  text-align: start;
  font-weight: 400;
}
.m-table th {
  background: #f3f4ef;
  color: var(--m-muted);
}
.m-table tr:last-child td {
  border-bottom: 0;
}
.m-compose {
  margin-top: auto;
  padding: 0.75em 0.85em 0.65em;
  border: 1px solid var(--m-line);
  border-radius: 0.8em;
  background: #fff;
}
.m-compose p {
  margin: 0 0 0.7em;
}
.m-compose > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.m-compose .chip {
  font-size: 0.85em;
  color: var(--m-muted);
}
.m-compose .send {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.5em;
  background: var(--orange);
}
.m-compose .send svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.caret-blink {
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin-inline-start: 2px;
  vertical-align: text-bottom;
  background: var(--m-fg);
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink {
  50% { opacity: 0; }
}
.m-msg {
  margin: 0;
}
.m-tool {
  font-size: 0.9em;
}
.m-tool small {
  margin-inline-start: auto;
  font-size: 0.85em;
  color: var(--m-muted);
}
.m-shot {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border: 1px solid var(--m-line);
  border-radius: 0.7em;
  background: #fff;
  overflow: hidden;
}
.m-shot p {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  padding: 0.5em 0.75em;
  border-bottom: 1px solid var(--m-line);
  font-size: 0.9em;
  white-space: nowrap;
}
.m-shot p span {
  margin-inline-start: auto;
  color: var(--m-muted);
  font-size: 0.9em;
}
.shot-stack {
  position: relative;
  flex: 1;
  min-height: 0;
}
.shot-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5em;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.shot-stack img.on {
  opacity: 1;
  transform: none;
}
.m-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45em;
}
.m-strip span {
  aspect-ratio: 3 / 2;
  padding: 0.15em;
  border: 1px solid var(--m-line);
  border-radius: 0.45em;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.m-strip span.on {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}
.m-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0.3em;
}
/* Mockup entrance. Each panel plays when its section scrolls in, and again
   whenever a feature step reveals it (display: none restarts animations).
   Reduced motion removes all of it and leaves the final state. */
.mock .mw {
  animation: mock-rise 0.7s var(--ease) 0.1s both;
}
.mw-body > *,
.ws-side > *,
.ws-files li,
.m-table tr {
  animation: mock-up 0.5s var(--ease) both;
}
.mw-body > :nth-child(1) { animation-delay: 0.35s; }
.mw-body > :nth-child(2) { animation-delay: 0.45s; }
.mw-body > :nth-child(3) { animation-delay: 0.55s; }
.mw-body > :nth-child(4) { animation-delay: 0.65s; }
.m-table tr:nth-child(1) { animation-delay: 0.5s; }
.m-table tr:nth-child(2) { animation-delay: 0.56s; }
.m-table tr:nth-child(3) { animation-delay: 0.62s; }
.m-table tr:nth-child(4) { animation-delay: 0.68s; }
.m-table tr:nth-child(5) { animation-delay: 0.74s; }
.m-table tr:nth-child(6) { animation-delay: 0.8s; }
.m-table tr:nth-child(7) { animation-delay: 0.86s; }
.m-compose {
  animation-delay: 0.9s !important;
}
.m-compose p {
  animation: mock-type 1.3s steps(42) 1.3s both;
}
.m-strip span {
  animation: mock-up 0.4s var(--ease) both;
}
.m-strip span:nth-child(1) { animation-delay: 0.7s; }
.m-strip span:nth-child(2) { animation-delay: 0.76s; }
.m-strip span:nth-child(3) { animation-delay: 0.82s; }
.m-strip span:nth-child(4) { animation-delay: 0.88s; }
.m-strip span:nth-child(5) { animation-delay: 0.94s; }
.ws-side > :nth-child(1) { animation-delay: 0.35s; }
.ws-side > :nth-child(2) { animation-delay: 0.42s; }
.ws-side > :nth-child(3) { animation-delay: 0.49s; }
.ws-side > :nth-child(4) { animation-delay: 0.56s; }
.ws-side > :nth-child(5) { animation-delay: 0.63s; }
.ws-side > :nth-child(6) { animation-delay: 0.7s; }
.ws-side > :nth-child(7) { animation-delay: 0.77s; }
.ws-side > :nth-child(8) { animation-delay: 0.84s; }
.ws-files li:nth-child(1) { animation-delay: 0.6s; }
.ws-files li:nth-child(2) { animation-delay: 0.7s; }
.ws-files li:nth-child(3) { animation-delay: 0.8s; }
.ws-files li:nth-child(4) { animation-delay: 0.9s; }
.js-reveal .reveal:not(.in) .mock,
.js-reveal .reveal:not(.in) .mock * {
  animation-play-state: paused !important;
}
@keyframes mock-rise {
  from { opacity: 0; transform: translateY(1.4em) scale(0.97); }
}
@keyframes mock-up {
  from { opacity: 0; transform: translateY(0.5em); }
}
@keyframes mock-type {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 -1em 0 0); }
}

/* Ask demo. landing.js steps data-stage through type, sent, think and done.
   Without a stage (no JS, reduced motion) the finished answer shows. */
.ask-demo .mw {
  position: relative;
}
.ask-demo .ask-chat {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  flex: 1;
  min-height: 0;
  animation: none !important;
}
.ask-demo[data-stage="type"] .ask-chat,
.ask-demo:not([data-stage="type"]) .m-file,
.ask-demo:not([data-stage="type"]) .ask-data,
.ask-demo[data-stage="sent"] .m-think,
.ask-demo[data-stage="sent"] .ask-answer,
.ask-demo[data-stage="think"] .ask-answer,
.ask-demo:not([data-stage="think"]) .m-think {
  display: none;
}
.ask-chat > *,
.ask-answer > * {
  animation: mock-up 0.4s var(--ease) both;
}
.ask-answer {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.ask-answer > :nth-child(2) { animation-delay: 0.25s; }
.ask-answer > :nth-child(3) { animation-delay: 0.5s; }
.m-user {
  align-self: flex-end;
  max-width: 82%;
  margin: 0;
  padding: 0.5em 0.8em;
  border-radius: 0.8em;
  background: #ecede7;
}
.m-think {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.9em;
  font-weight: 500;
  color: var(--m-muted);
}
.m-spinner {
  width: 1.35em;
  height: 1.35em;
  fill: currentColor;
}
.m-spinner rect {
  animation: pulse-opacity 1.5s ease-in-out infinite both;
}
.m-spinner rect.o {
  animation-name: pulse-opacity-dim;
}
@keyframes pulse-opacity {
  0%, 40% { opacity: 0.4; animation-timing-function: steps(6); }
  50%, 90% { opacity: 1; animation-timing-function: steps(6); }
  100% { opacity: 0.4; }
}
@keyframes pulse-opacity-dim {
  0%, 40% { opacity: 0.15; animation-timing-function: steps(4); }
  50%, 90% { opacity: 0.35; animation-timing-function: steps(4); }
  100% { opacity: 0.15; }
}
/* Same sweep as Blade Desktop's TextShimmer. */
.m-shimmer {
  color: transparent;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 5.2ch), var(--m-fg) 50%, transparent calc(50% + 5.2ch)),
    linear-gradient(var(--m-muted), var(--m-muted));
  background-size: 360% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  animation: text-shimmer-sweep 1.2s linear infinite;
}
@keyframes text-shimmer-sweep {
  0% { background-position: 100% 0, 0 0; }
  100% { background-position: 0% 0, 0 0; }
}
.m-result td:nth-child(n + 2),
.m-result th:nth-child(n + 2) {
  white-space: nowrap;
}
.m-result td:first-child {
  font-weight: 500;
}
.ask-input:empty::before {
  content: "Ask Blade to work in this workspace…";
  color: #a3a79e;
}
.ask-demo .m-compose p {
  display: flex;
  align-items: center;
  animation: none;
}
.ask-demo .m-compose p:has(.ask-input:empty) .caret-blink {
  order: -1;
  margin: 0 2px 0 0;
}
.ask-demo .send {
  transition: background 0.2s, transform 0.12s;
}
.ask-demo .m-compose:has(.ask-input:empty) .send {
  background: #d4d6ce;
}
.ask-demo .send.press {
  transform: scale(0.88);
}
.m-pointer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 1.3em;
  height: 1.6em;
  fill: #1f2320;
  stroke: #fff;
  stroke-width: 1.2;
  stroke-linejoin: round;
  opacity: 0;
  transform: translate(var(--px, 120%), var(--py, 120%));
  transition: transform 0.75s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.25s;
  filter: drop-shadow(0 0.1em 0.15em #0003);
  pointer-events: none;
}
.m-pointer.show {
  opacity: 1;
}
.m-pointer.press {
  transform: translate(var(--px), var(--py)) scale(0.85);
  transition-duration: 0.1s;
}

/* Script window: real tabs a visitor can switch, an R file that writes
   itself and runs, the data, and the saved output. landing.js drives it. */
.script-demo .mw-body {
  gap: 0;
  padding-top: 0;
}
.m-tabs {
  display: flex;
  gap: 0.2em;
  margin: 0 -0.9em;
  padding: 0 0.6em;
  border-bottom: 1px solid var(--m-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.m-tabs button {
  flex: none;
  padding: 0.6em 0.75em 0.5em;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: inherit;
  font-size: 0.92em;
  color: var(--m-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.m-tabs button:hover {
  color: var(--m-fg);
}
.m-tabs button[aria-selected="true"] {
  color: var(--m-fg);
  border-color: var(--orange);
}
.m-tabs button:focus-visible,
.run-btn:focus-visible,
.m-pane:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
  border-radius: 0.3em;
}
.m-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin: 0 -0.9em -0.9em;
}
.m-pane[hidden] {
  display: none;
}
.script-demo .m-pane {
  overflow: hidden;
  animation: mock-up 0.3s var(--ease) both;
}
.script-demo .pane-r {
  animation: none;
}
.m-run {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em 0.9em;
  font-size: 0.85em;
  color: var(--m-muted);
}
.run-status > span {
  display: none;
  align-items: center;
  gap: 0.45em;
}
.script-demo[data-run="idle"] .st-idle,
.script-demo[data-run="busy"] .st-busy,
.script-demo[data-run="done"] .st-done,
.script-demo:not([data-run]) .st-done {
  display: inline-flex;
}
.run-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 0.75em;
  border: 0;
  border-radius: 0.45em;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.12s;
}
.run-btn:hover {
  background: var(--orange-hover);
}
.run-btn.press {
  transform: scale(0.92);
}
.run-btn svg {
  width: 0.85em;
  height: 0.85em;
  fill: currentColor;
}
.m-code {
  flex: none;
  margin: 0;
  padding: 0.2em 0 0.6em;
  overflow: hidden;
  font: 0.86em/1.75 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.m-code .cl {
  display: block;
  padding: 0 0.9em;
  white-space: pre;
  transition: background 0.25s, opacity 0.25s;
}
.script-demo[data-type] .m-code .cl {
  opacity: 0;
}
.script-demo[data-type] .m-code .cl.on {
  opacity: 1;
}
.m-code .cl.cur {
  background: #fdf0e9;
  box-shadow: inset 2px 0 var(--orange);
}
.m-code i {
  display: inline-block;
  width: 2em;
  font-style: normal;
  color: #b0b4ab;
}
.m-code .f { color: #4f7a3f; }
.m-code .s { color: #b8461b; }
.m-code .k { color: #8a8f86; }
.m-console {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--m-line);
  background: #f6f6f3;
  transform: translateY(100%);
  transition: transform 0.55s var(--ease);
}
.script-demo:not([data-run]) .m-console,
.script-demo[data-run="busy"] .m-console,
.script-demo[data-run="done"] .m-console {
  transform: none;
}
.m-console p {
  margin: 0;
  padding: 0.35em 0.9em;
  border-bottom: 1px solid var(--m-line);
  font-size: 0.8em;
  font-weight: 600;
  color: var(--m-muted);
}
.m-console pre,
.pane-out pre {
  flex: 1;
  margin: 0;
  padding: 0.5em 0.9em;
  overflow: auto;
  font: 0.72em/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #3a3f38;
  overscroll-behavior: contain;
}
.m-console pre {
  position: relative;
}
.m-console .ol {
  display: block;
  white-space: pre;
}
.script-demo[data-run="busy"] .m-console .ol {
  visibility: hidden;
}
.script-demo[data-run="busy"] .m-console .ol.on {
  visibility: visible;
}
.pane-out pre {
  white-space: pre;
  background: #fff;
}
.script-demo .pane-csv {
  overflow: auto;
  overscroll-behavior: contain;
}
.m-sheet {
  border-collapse: collapse;
  font-size: 0.82em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.m-sheet th,
.m-sheet td {
  padding: 0.35em 0.7em;
  border-bottom: 1px solid var(--m-line);
  border-inline-end: 1px solid var(--m-line);
  text-align: end;
}
.m-sheet tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f4ef;
  color: var(--m-muted);
  font-weight: 500;
  text-align: start;
}
.m-sheet th:first-child {
  position: sticky;
  left: 0;
  background: #f3f4ef;
  color: #a3a79e;
  font-weight: 400;
}
.m-sheet tr:first-child th:first-child {
  z-index: 2;
}

/* Workspace window: sidebar plus file list, in a wider frame. */
.ws-mock {
  display: flex;
  aspect-ratio: 3 / 2;
  padding: 5%;
  border-radius: 18px;
  background: #f2eee6;
  font-size: calc(100cqw / 50);
}
.workspace-preview {
  container-type: inline-size;
}
.ws-split {
  display: flex;
  flex: 1;
  min-height: 0;
}
.ws-side {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  width: 32%;
  flex: none;
  padding: 0.8em 0.6em;
  border-inline-end: 1px solid var(--m-line);
  background: var(--m-side);
}
.ws-side p {
  margin: 0;
}
.ws-brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0 0.35em 0.6em;
  font-weight: 600;
}
.ws-brand img {
  width: 1.5em;
  height: 1.5em;
}
.ws-new {
  margin-bottom: 0.7em;
  padding: 0.45em;
  border-radius: 0.5em;
  background: #2b2d2a;
  color: #fff;
  text-align: center;
  font-size: 0.9em;
}
.ws-label {
  padding: 0 0.35em 0.2em;
  font-size: 0.85em;
  color: var(--m-muted);
}
.ws-folder,
.ws-session {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.35em;
  border-radius: 0.45em;
  white-space: nowrap;
}
.ws-folder {
  margin-top: 0.3em;
  color: var(--m-muted);
  font-size: 0.9em;
}
.ws-session {
  padding-inline-start: 1.9em;
}
.ws-session span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-session.on {
  background: #e7e8e2;
}
.ws-folder small,
.ws-session small {
  margin-inline-start: auto;
  color: var(--m-muted);
  font-size: 0.85em;
}
.ws-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.ws-files {
  padding: 1.1em 1.3em;
}
.ws-title {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin: 0 0 0.6em;
  font-size: 1.5em;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ws-title span {
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--m-muted);
}
.ws-files ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--m-line);
}
.ws-files li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 0.2em;
  border-bottom: 1px solid var(--m-line);
  white-space: nowrap;
}
.ws-files li b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-files li span {
  margin-inline-start: auto;
  color: var(--m-muted);
  font-size: 0.9em;
}
.ws-files li small {
  width: 2.2em;
  text-align: end;
  color: var(--m-muted);
  font-size: 0.85em;
}
.feature-list {
  display: grid;
  gap: 5px;
  align-content: center;
  padding-bottom: 26px;
}
.feature-step {
  border-radius: 17px;
  padding: 18px 20px;
  background: transparent;
  transition: background 0.3s;
}
.feature-step[open] {
  background: #f0f1eb;
}
.feature-step {
  position: relative;
}
.step-timer {
  position: absolute;
  inset-inline: 20px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #dfe2d8;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}
.step-timer::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}
[dir="rtl"] .step-timer::after {
  transform-origin: right;
}
.feature-step.timing[open] .step-timer {
  opacity: 1;
}
.feature-step.timing[open] .step-timer::after {
  animation: step-countdown var(--step-duration, 10s) linear forwards;
}
.feature-step.held .step-timer::after {
  animation-play-state: paused;
}
@keyframes step-countdown {
  to { transform: scaleX(1); }
}
.feature-step summary {
  display: flex;
  align-items: center;
  gap: 13px;
  list-style: none;
  cursor: pointer;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.feature-step summary::-webkit-details-marker {
  display: none;
}
.feature-step summary svg {
  width: 25px;
  height: 25px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-step p {
  margin: 12px 0 2px 38px;
  margin-inline-start: 38px;
  margin-inline-end: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
[dir="rtl"] .feature-step p {
  margin-left: 0;
}
.workspace-section {
  padding-bottom: 112px;
}
.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 96px;
  border-top: 1px solid var(--line);
  padding-top: 80px;
}
.workspace-copy h2 {
  max-width: 420px;
}
.workspace-copy p {
  max-width: 400px;
  margin-bottom: 0;
  font-size: 17px;
  color: var(--muted);
}

.leaders-section {
  padding-block: 90px;
  background: #f5f4ed;
}
.leaders-intro {
  max-width: 580px;
  margin-bottom: 45px;
}
.leaders-intro p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 0;
}
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.leader-profile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 32px;
  background: #fffefa;
  border: 1px solid #e2e2d8;
  border-radius: 18px;
}
.leader-company {
  margin: 0 0 26px;
  font-size: 35px;
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.leader-quote {
  flex: 1;
  margin-bottom: 32px;
}
.quote-status:empty { display: none; }
.quote-status {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.leader-quote blockquote {
  margin: 0;
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.leader-person {
  display: flex;
  align-items: center;
  gap: 15px;
}
.leader-photo {
  display: block;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: #eceee7;
}
.leader-profile h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 550;
  line-height: 1.4;
}
.leader-role {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
/* Download controls sit inside the original lakeside footer artwork. */
.landscape-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --footer-solid: 100px;
  --footer-fade: 260px;
  background: #faf8ed;
  padding-top: 110px;
}
.footer-art {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.footer-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.landscape-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Second layer fades the art to solid white behind the footer links. */
  background:
    linear-gradient(0deg, #fff 0, #fff var(--footer-solid), #fff0 var(--footer-fade)),
    linear-gradient(180deg, #fff9 0%, #fff6 30%, #fff1 75%);
  pointer-events: none;
}
.download-content {
  max-width: 770px;
  text-align: center;
  padding-bottom: 110px;
}
.download-content h2 {
  font-size: clamp(40px, 4vw, 56px);
  margin-bottom: 18px;
}
.download-lede {
  max-width: 400px;
  margin: 0 auto 33px;
  font-size: 16px;
  line-height: 1.75;
  color: #69715f;
  text-wrap: pretty;
}
.dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: start;
}
.dl a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fffef9e6;
  border: 1px solid #cdd2bf;
  border-radius: 11px;
  text-decoration: none;
  color: #303a29;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.dl a:hover {
  border-color: #93a67d;
  background: #f1f4e8;
}
.dl .os {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.dl svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
}
.dl .meta {
  margin-inline-start: auto;
  color: #66735c;
  font-size: 11px;
}
.install-notes {
  margin: 22px auto 0;
  max-width: 640px;
  color: #5e6b55;
  font-size: 12px;
}
.install-notes summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}
.install-notes summary::-webkit-details-marker {
  display: none;
}
.install-notes summary::after {
  content: "+";
}
.install-notes[open] summary::after {
  content: "−";
}
.install-notes p {
  margin: 15px 0 0;
  padding: 16px;
  text-align: start;
  background: #fffefaed;
  border-radius: 10px;
  line-height: 1.85;
}
.install-notes b {
  font-weight: 550;
  color: #536044;
}
.footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 28px;
  padding-bottom: 36px;
}
.footer-bottom .wordmark {
  font-size: 25px;
}
.footer-bottom .wordmark img {
  width: 28px;
  height: 28px;
}
.footer-bottom nav {
  display: flex;
  gap: 24px;
  margin-inline-start: auto;
  font-size: 13px;
}
.footer-bottom nav a {
  text-decoration: none;
  color: var(--fg);
}
.footer-bottom nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-bottom small {
  color: var(--muted);
  font-size: 12px;
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes landscape-in {
  from {
    opacity: 0.6;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes preview-in {
  from {
    opacity: 0.3;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.js-reveal .reveal.in {
  opacity: 1;
  transform: none;
}
@media (max-width: 900px) {
  .hero {
    min-height: 780px;
  }
  .hero h1 {
    font-size: 62px;
  }
  .hero-content {
    padding-top: 220px;
  }
  .product-layout {
    gap: 45px;
  }
  .workspace-layout {
    gap: 45px;
  }
  .feature-step {
    padding: 16px;
  }
  .feature-step summary {
    font-size: 19px;
    gap: 10px;
  }
  .feature-step p {
    font-size: 14px;
    margin-inline-start: 35px;
  }
  .feature-step summary svg {
    width: 24px;
    height: 24px;
  }
  .footer-bottom small {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 640px) {
  html {
    scroll-padding-top: 20px;
  }
  .wrap {
    padding-inline: 22px;
  }
  h2 {
    font-size: 33px;
    line-height: 1.18;
  }
  .hero {
    min-height: 760px;
    min-height: 90svh;
  }
  .hero-landscape {
    height: 570px;
  }
  .hero-landscape img {
    object-position: center top;
  }
  .hero::before {
    background: linear-gradient(
      180deg,
      transparent 18%,
      #fff4 36%,
      #ffffffe6 66%,
      #fff 83%
    );
  }
  .nav {
    min-height: 82px;
    gap: 16px;
  }
  .wordmark {
    font-size: 23px;
    gap: 8px;
  }
  .wordmark img {
    width: 29px;
    height: 29px;
  }
  .nav-links {
    font-size: 12px;
    gap: 17px;
  }
  .lang summary {
    font-size: 12px;
  }
  .nav-cta {
    display: none;
  }
  .hero-content {
    padding-top: clamp(180px, 30svh, 245px);
    padding-bottom: 80px;
  }
  .hero h1 {
    font-size: clamp(37px, 10vw, 60px);
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin-bottom: 22px;
  }
  .lede {
    font-size: 15px;
    line-height: 1.8;
    max-width: 350px;
    margin-bottom: 27px;
  }
  .btn {
    font-size: 13px;
    padding: 12px 22px;
  }
  .note {
    font-size: 10px;
    margin-top: 17px;
  }
  .cta-menu {
    min-width: 280px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    animation: none;
  }
  [dir="rtl"] .cta-menu {
    transform: translateX(50%);
  }
  .product-section {
    padding-top: 50px;
    padding-bottom: 65px;
  }
  .section-intro {
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 27px;
  }
  .section-intro h2 {
    margin-bottom: 16px;
  }
  .section-intro p {
    font-size: 15px;
    line-height: 1.75;
  }
  .outline-link {
    padding: 6px 12px;
    font-size: 12px;
    gap: 8px;
    margin-top: 4px;
  }
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }
  .workspace-section {
    padding-bottom: 65px;
  }
  .workspace-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 50px;
  }
  .workspace-copy p {
    font-size: 15px;
    line-height: 1.75;
  }
  .ws-mock {
    aspect-ratio: 4 / 3;
    border-radius: 15px;
    font-size: calc(100cqw / 40);
  }
  .ws-files li span {
    display: none;
  }
  .leaders-section {
    padding-block: 60px;
  }
  .leaders-intro {
    margin-bottom: 30px;
  }
  .leaders-intro p {
    font-size: 15px;
  }
  .leaders-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .leader-quote blockquote {
    font-size: 21px;
  }
  .leader-profile {
    padding: 26px;
    border-radius: 15px;
  }
  .preview-panels {
    border-radius: 15px;
  }
  .feature-list {
    gap: 3px;
    padding-bottom: 0;
  }
  .feature-step {
    padding: 17px;
    border-radius: 13px;
  }
  .feature-step summary {
    font-size: 18px;
    gap: 11px;
  }
  .feature-step summary svg {
    width: 23px;
    height: 23px;
  }
  .feature-step p {
    font-size: 14px;
    margin-inline-start: 34px;
    line-height: 1.75;
    margin-top: 10px;
  }
  .landscape-footer {
    --footer-solid: 150px;
    --footer-fade: 300px;
    padding-top: 75px;
  }
  .download-content {
    padding-bottom: 80px;
    max-width: 430px;
  }
  .download-content h2 {
    font-size: 41px;
  }
  .download-lede {
    font-size: 15px;
    max-width: 285px;
    margin-bottom: 28px;
  }
  .dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .dl a {
    padding: 15px 17px;
  }
  .dl .os {
    font-size: 13px;
  }
  .dl .meta {
    font-size: 11px;
  }
  .install-notes {
    font-size: 11px;
  }
  .footer-art img {
    object-position: center bottom;
  }
  .footer-bottom {
    justify-content: center;
    gap: 22px;
    padding-top: 26px;
    padding-bottom: 30px;
  }
  .footer-bottom nav {
    margin-inline-start: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 22px;
    font-size: 13px;
  }
  .footer-bottom small {
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  .nav-links {
    gap: 13px;
  }
  .lang summary {
    font-size: 0;
    gap: 0;
  }
  .lang summary svg {
    width: 16px;
    height: 16px;
  }
  .lang summary::after {
    display: none;
  }
  .section-intro {
    display: block;
  }
  .outline-link {
    margin-top: 18px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-content {
    padding-top: 190px;
  }
  .cta-menu {
    min-width: 270px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}
