:root {
  --appear-green: #0A4D2C;
  --meadow-grid: round(nearest, clamp(72px, 8.3333vw, 144px), 2px);
  --grid-size: var(--meadow-grid);
  --bar-inset: 8px;
  --bar-gap: 6px;
  --bar-button-height: 32px;
  --bar-height: calc(var(--bar-button-height) + 2 * var(--bar-inset));
}
/* The tile's crosshair sits at its center. Place a grid intersection at the centerline and top of the hero. */
body { background-position: center calc(var(--grid-size) / -2); }
/* Ten centered columns leave an outer grid square on each side at Laptop L.
   The 1000px floor meets the existing 50px gutters at the breakpoint. */
@media (min-width: 1100px) {
  .section-inner { width: max(1000px, calc(10 * var(--meadow-grid))); }
}
.nav-wrap {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  inset-inline: 0;
  margin-block: 0;
  height: var(--bar-height);
  padding: var(--bar-inset);
  padding-inline-start: 12px;
  gap: 12px;
  box-shadow: inset 0 0 0 1px #e5e7e9, 0 6px 20px #13201612;
}
.nav-wrap .wordmark img { width: 96px; }
.nav-wrap nav { gap: clamp(12px, 1.5vw, 24px); font-size: 11px; }
.nav-actions, .view-switch { gap: var(--bar-gap); }
.nav-actions .button, .hero-copy .trial, .view-switch button {
  height: var(--bar-button-height);
  min-height: var(--bar-button-height);
  padding: 0 14px;
  font: 10px/1.2 var(--mono);
}
.nav-actions .demo-link:hover { background: #eef1ea; }
.meadow-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(448px, 42vw, 640px);
  display: grid;
  align-items: center;
}
.meadow-backdrop {
  --step: var(--meadow-grid);
  --sky-top: 0px;
  --grass-bottom: round(down, 100%, var(--step));
  position: absolute;
  z-index: -1;
  inset: 0 0 0 calc(50% - 2 * var(--step));
  background: #a9d8ed url('assets/meadow-crisp.webp') center 42% / cover no-repeat;
  clip-path: polygon(
    0 var(--sky-top), 100% var(--sky-top),
    100% var(--grass-bottom), calc(2 * var(--step)) var(--grass-bottom),
    calc(2 * var(--step)) calc(var(--sky-top) + 2 * var(--step)),
    var(--step) calc(var(--sky-top) + 2 * var(--step)),
    var(--step) calc(var(--sky-top) + var(--step)),
    0 calc(var(--sky-top) + var(--step))
  );
  pointer-events: none;
}
.hero-layout {
  margin-block: 0;
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: minmax(404px, 2fr) minmax(0, 3fr);
  align-items: center;
}
.hero-copy { text-align: left; padding: 0 20px 0 0; pointer-events: auto; }
.hero-copy h1 {
  font-size: clamp(46px, 4.85vw, 78px);
  line-height: .98;
  margin: 0 0 24px;
  letter-spacing: -1px;
  color: #080a08;
  text-wrap: initial;
}
.built-for {
  justify-content: flex-start; align-items: center;
  gap: 8px; flex-wrap: nowrap; white-space: nowrap;
  margin: 0; max-width: none; min-height: 0;
  font-size: clamp(10px, .77vw, 12px); line-height: 1.35;
}
.built-for-tail { flex: none; margin-top: 0; }
.engine-chip { width: 104px; flex: none; height: 26px; padding: 0 4px; border: 1px solid #5d655e; background: #fff; }
.engine-chip #engine-face { gap: 4px; }
.engine-chip img { width: 13px; height: 13px; }
.hero-copy .trial { position: relative; margin-top: clamp(24px, 3.1vw, 44px); }
.trial-frame { position: absolute; inset: -3px; pointer-events: none; }
.demo-player {
  position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden;
  border-radius: 8px; background: #e8eddf;
  box-shadow: 0 0 0 1px #26311b2b, 0 5px 14px #1b32171a, 0 18px 40px -6px #1b32173b;
}
.demo-player video { display: block; width: 100%; height: 100%; object-fit: cover; }
.statement { margin-block: 0; padding: calc(var(--meadow-grid) + clamp(12px, 2vw, 28px)) 0 var(--meadow-grid); }
.statement-line {
  max-width: max(680px, calc(6 * var(--meadow-grid))); margin-inline: auto;
  font-size: clamp(34px, 3.2vw, 48px); gap: 16px; margin-bottom: 16px;
}
.statement-line.last { margin-bottom: 0; gap: 16px; }
/* Give the walkthrough its own full row on phones and tablets, including landscape tablets. */
@media (max-width: 1040px), (max-width: 1376px) and (pointer: coarse) {
  .meadow-hero { min-height: 0; }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(36px, 5.3vw, 48px);
    padding: calc(64px + var(--story-space)) 0 var(--story-space);
  }
  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: clamp(48px, 9vw, 66px); margin-bottom: 20px; }
  .built-for { max-width: 100%; font-size: 10px; gap: 6px; }
  .hero-copy .trial { margin-top: 28px; }
}
@media (max-width: 760px) {
  :root { --bar-inset: 6px; --bar-gap: 4px; }
  .nav-wrap { top: max(12px, env(safe-area-inset-top)); }
  .nav-actions .trial { max-width: none; }
  .nav-actions .button, .hero-copy .trial, .view-switch button { padding-inline: 12px; }
  #mobile-menu { width: 32px; height: var(--bar-button-height); }
  .nav-wrap #site-navigation { top: 52px; display: none; }
  .nav-wrap[data-menu-open] #site-navigation { display: flex; }
  .meadow-backdrop {
    --sky-top: round(down, calc(100% - 50vw - 80px), var(--step));
    background-position: center bottom;
    background-size: 100% auto;
  }
  .statement-line, .statement-line.middle, .statement-line.last { gap: 12px; margin-bottom: 24px; font-size: clamp(32px,6.6vw,40px); }
  .statement-line.last { margin-bottom: 0; }
}
@media (max-width: 599px) {
  .nav-wrap .wordmark img { width: 25px; height: 25px; }
  .nav-wrap .wordmark { min-width: 32px; justify-content: center; }
}
@media (max-width: 389px) {
  .nav-wrap { gap: 3px; padding-inline: 6px; }
  .nav-actions .button, .hero-copy .trial, .view-switch button { padding-inline: 7px; font-size: 9px; }
}
@media (max-width: 359px) {
  .hero-copy .built-for { column-gap: 3px; letter-spacing: -.3px; }
  .hero-copy .engine-chip { width: 80px; }
}
@media (max-width: 442px) {
  .hero-copy .built-for { font-size: 9px; gap: 4px; }
  .engine-chip { width: 88px; }
}


.discovery-tabs { gap: 12px; }
.discovery-tabs button { position: relative; }
.selection-corners { display: none; pointer-events: none; }
.discovery-tabs button[aria-selected=true] {
  color: var(--ink); background: #fff; border: var(--frame-stroke);
  border-radius: 0; box-shadow: none;
}
.discovery-tabs button[aria-selected=true] img { filter: brightness(0); }
.discovery-tabs button[aria-selected=true] .selection-corners { display: inline; }
.view-switch a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 99px; font: 11px/1.25 var(--mono); color: #425146;
}
.view-switch a:hover { background: #e9eee7; }
.view-switch .current-view { background: white; box-shadow: inset 0 0 0 1px #949d94; color: var(--ink); }
@media (max-width: 760px) { .discovery-tabs { gap: 12px 8px; } }

@media (min-width: 600px) and (max-width: 1040px),
       (min-width: 1041px) and (max-width: 1376px) and (pointer: coarse) {
  .meadow-backdrop {
    inset: 0;
    --inner: calc(50% + var(--step));
    --middle: calc(var(--inner) + var(--step));
    --outer: calc(var(--middle) + var(--step));
    background-position: center 42%;
    background-size: cover;
    clip-path: polygon(
      var(--inner) 0, 100% 0, 100% var(--grass-bottom),
      50% var(--grass-bottom), 50% calc(5 * var(--step)),
      var(--inner) calc(5 * var(--step)), var(--inner) calc(4 * var(--step)),
      var(--middle) calc(4 * var(--step)), var(--middle) calc(3 * var(--step)),
      var(--outer) calc(3 * var(--step)), var(--outer) calc(2 * var(--step)),
      var(--middle) calc(2 * var(--step)), var(--middle) var(--step),
      var(--inner) var(--step)
    );
  }
}

@media (min-width: 761px) and (max-width: 1200px) {
  .hero-copy .built-for { font-size: 10px; gap: 4px; }
}

.discovery-intro > p { color: #595e5b; }
@media (max-width: 760px) {
  .statement-line, .statement-line.middle, .statement-line.last {
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    text-align: left;
    font-size: clamp(27px, 5vw, 38px);
  }
  .statement-line.middle { justify-content: flex-end; }
  .statement-line > .statement-title, .statement-line.middle > .statement-title {
    order: 0;
    width: auto;
    min-width: 0;
    text-align: left;
  }
  .statement-line .mini-scene { margin: 0; width: clamp(184px, 31vw, 236px); }
  .statement-line .growth-scene { width: clamp(144px, 23vw, 184px); }

  .discovery-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: safe center;
    width: max-content;
    max-width: 100%;
    border-radius: 0;
    overflow-x: auto;
    padding: 8px;
    gap: 8px;
  }
  .discovery-tabs button { flex: none; min-height: 36px; font-size: 10px; padding: 8px 12px; }
}

@media (max-width: 479px) {
  .statement-line, .statement-line.middle, .statement-line.last { gap: 12px; }
  .statement-line .mini-scene { zoom: .8; width: min(54vw, 220px); }
  .statement-line .growth-scene { width: min(45vw, 180px); }
  .statement-line .query { font-size: 8px; padding-left: 4px; padding-right: 20px; }
  .statement-line .query .send-arrow { width: 14px; height: 14px; top: 6px; right: 2px; }
  .discovery-tabs { scroll-padding-inline: 8px; }
}
