/* v7 product: carried over from the prototype's site.css in its cascade order, colours bound to tokens.
   Generated as a starting point by the port, then edited: the sales form's rules are gone with the form,
   the shots' own drawing (frame, terminal, app window, dashboard) is in css/v7/shots.css, and the moved
   style attributes, the frame's measures and the motion rules are at the end. */

.hero__copy { display: grid; gap: 20px; justify-items: start; max-width: 760px; }
.hero__copy .btn-row { margin-top: 12px; }
.more-link { margin-top: 32px; }
.hiw { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; margin-top: 64px; }
@media (max-width: 960px) {
  .hiw { grid-template-columns: 1fr; gap: 24px; }
}
.checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 22px; color: var(--fg-2); }
.checks .ico { width: 18px; height: 18px; color: var(--fg); margin-top: 2px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 20px 0; text-align: left; font-size: 17px; line-height: 24px; font-weight: 500; color: var(--fg); }
.qa__q i { position: relative; width: 14px; height: 14px; flex: none; color: var(--fg-3); transition: transform 240ms var(--ease); }
.qa__q i::before, .qa__q i::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1.5px; background: currentColor; border-radius: 1px; }
.qa__q i::after { transform: rotate(90deg); transition: transform 240ms var(--ease); }
.qa__q[aria-expanded='true'] i::after { transform: rotate(0deg); }
.qa__q:hover i { color: var(--fg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease); }
.qa__a.is-open { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding-bottom: 22px; font-size: 15px; line-height: 24px; color: var(--fg-3); max-width: 680px; }
.qa__a a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-interactive); }
.close { background: var(--bg); padding-block: 112px 120px; }
.close__copy { display: grid; gap: 18px; justify-items: start; align-content: start; }
.close__title { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.15; font-weight: 700; color: var(--fg); }
@media (max-width: 960px) {
  .close { padding-block: 72px; }
}
@media (max-width: 560px) {
  .close { padding-block: 56px; }
}
.int-mark { width: 52px; height: 52px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--fg); box-shadow: 0 1px 2px color-mix(in srgb, var(--lt-foreground-primary-strong) 5%, transparent); transition: transform 220ms var(--ease); }
.int-mark img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
.int-mark .ico { width: 26px; height: 26px; }
.close__copy .checks { margin-top: 6px; }
.close__cta { align-items: center; gap: 24px; margin-top: 12px; }
[data-page='product'] .close__title { font-size: clamp(32px, 2.9vw, 40px); }
.pent { display: grid; align-content: center; min-height: calc(100svh - var(--nav-h)); background: var(--bg); color: var(--fg); padding-block: 112px; }
/* The prototype's white wash over the dark band: the dark mode's strongest foreground is that white */
.pent .label-chip { background: color-mix(in srgb, var(--fg-strong) 10%, transparent); border-color: color-mix(in srgb, var(--fg-strong) 14%, transparent); color: var(--fg); }
[data-page='product'] .close__title { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.15; }
[data-std] .checks li { font: var(--t-body); }
.s-sec { position: relative; border-top: 1px solid var(--line); background: var(--bg); }
.s-col { width: min(1280px, calc(100% - 32px)); margin-inline: auto; border-inline: 1px solid var(--line); }
.s-head { display: grid; justify-items: start; gap: 20px; padding: 96px var(--cell) 56px; border-bottom: 1px solid var(--line); }
.s-headline { font: var(--t-headline); letter-spacing: var(--tr-headline); color: var(--fg); }
.s-headline-col { font: var(--t-headline-col); letter-spacing: var(--tr-headline-col); color: var(--fg); }
.s-lead { font: var(--t-lead); color: var(--fg-3); max-width: 560px; }
.s-title { font: var(--t-title); color: var(--fg); }
.s-body { font: var(--t-body); color: var(--fg-3); }
.s-cells { display: grid; gap: 1px; background: var(--line); }
.s-cells + .s-cells, .s-cells + .s-more { border-top: 1px solid var(--line); }
.s-cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.s-cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: var(--cell); background: var(--bg); color: var(--fg); }
.s-cell > .int-mark { margin-bottom: 16px; width: 44px; height: 44px; border-radius: 12px; }
.s-cell > .int-mark img { width: 24px; height: 24px; }
.s-cell > .int-mark .ico { width: 22px; height: 22px; }
.s-cell--link { transition: background 160ms ease; }
.s-cell--link:hover { background: var(--bg-soft); }
.s-more { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px var(--cell); }
.s-head + .s-more { border-top: 0; }
.s-label { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.s-label > .s-label__head { display: grid; align-content: start; justify-items: start; gap: 20px; padding: 96px var(--cell) 72px; border-right: 1px solid var(--line); }
.s-label > .s-label__body { min-width: 0; padding: 80px var(--cell) 72px; }
.s-label .qa__q { font: var(--t-title); }
.s-label .qa__a p { font: var(--t-body); color: var(--fg-3); }
.s-label .qas > .qa:first-child { border-top: 0; }
.s-close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.s-close > .close__copy { padding: 96px var(--cell); }
.s-close .close__title { font: var(--t-close); letter-spacing: var(--tr-headline); }
.s-sec.close { padding-block: 0; }
.s-sec.pent { display: block; min-height: 0; padding-block: 0; }
.s-cell .link-arrow { margin-top: 16px; }
.s-stage { overflow: hidden; padding: 56px 0 0 56px; background: var(--bg-soft); }
.s-stage + .s-more { border-top: 1px solid var(--line); }
@media (max-width: 1023px) {
  .s-cells--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-close { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .s-cells--4 { grid-template-columns: minmax(0, 1fr); }
  .s-cells--4.s-cells--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-cells--tiles > .s-cell { padding: 24px 20px; }
  .s-label { grid-template-columns: minmax(0, 1fr); }
  .s-label > .s-label__head { padding: 64px var(--cell) 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .s-label > .s-label__body { padding: 32px var(--cell) 56px; }
  .s-stage { padding: 32px 0 0 var(--cell); }
  .s-head { padding: 64px var(--cell) 40px; }
  .s-close > .close__copy { padding: 64px var(--cell); }
}
.site[data-page='product'] #close { border-top: 0; padding-block: 112px 120px; }
.site[data-page='product'] #close > .s-close { width: min(1200px, calc(100% - 2 * var(--gutter))); border-inline: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 80px; align-items: start; }
.site[data-page='product'] #close > .s-close > .close__copy { padding: 0; }
@media (max-width: 1023px) {
  .site[data-page='product'] #close { padding-block: 72px; }
  .site[data-page='product'] #close > .s-close { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .site[data-page='product'] #close { padding-block: 56px; }
}
.site[data-frame] main > .s-sec:not(.close) { padding-block: 0; border-top: 0; }
.site[data-frame] main > .s-sec:not(.close) > .s-col { width: var(--frame-w); max-width: none; border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site[data-frame] main > .s-sec:not(.close) .s-head { padding: 120px var(--frame-pad) 56px; border: 0; }
.site[data-frame] main > .s-sec:not(.close) .s-head + * { margin-inline: var(--frame-pad); padding-bottom: 120px; }
.site[data-frame] #jobs .s-head { border-bottom: 1px solid var(--line); }
.site[data-frame] #jobs .ptx { display: grid; grid-template-columns: 320px minmax(0, 1fr); margin: 0; padding: 0; }
.site[data-frame] .ptx__rail { padding: 40px 0; }
.site[data-frame] .ptx__tabs { position: sticky; top: calc(var(--nav-h) + 40px); }
.site[data-frame] .ptx__tabs ol { display: grid; margin: 0; padding: 0; list-style: none; }
.site[data-frame] .ptx__tab { position: relative; display: block; padding: 6px 24px 6px var(--frame-pad); text-align: left; font: 400 18px/26px var(--sans); color: color-mix(in srgb, var(--fg) 25%, var(--bg)); transition: color 140ms ease; }
.site[data-frame] .ptx__tab:hover { color: var(--fg-3); }
.site[data-frame] .ptx__tab[aria-current='true'] { color: var(--fg); }
.site[data-frame] .ptx__panel + .ptx__panel { border-top: 1px solid var(--line); }
.site[data-frame] .ptx__tab[aria-current='true']::before { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--fg); }
.site[data-frame] .ptx__body { min-width: 0; border-left: 1px solid var(--line); }
.site[data-frame] .ptx__lead { display: grid; justify-items: start; gap: 20px; padding: 72px 56px; border-bottom: 1px solid var(--line); }
.site[data-frame] .ptx__lead p { max-width: 600px; font: 500 20px/30px var(--sans); color: var(--fg-3); text-wrap: pretty; }
.site[data-frame] .ptx__lead strong { font-weight: 500; color: var(--fg); }
@media (max-width: 1100px) {
  .site[data-frame] #jobs .ptx { grid-template-columns: 240px minmax(0, 1fr); }
  .site[data-frame] .ptx__tab { padding-left: 32px; font-size: 16px; line-height: 24px; }
}
@media (max-width: 760px) {
  .site[data-frame] main > .s-sec:not(.close) > .s-col { border-inline: 0; }
  .site[data-frame] main > .s-sec:not(.close) .s-head { padding-top: 72px; padding-bottom: 40px; }
  .site[data-frame] main > .s-sec:not(.close) .s-head + * { padding-bottom: 72px; }
  .site[data-frame] #jobs .ptx { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .site[data-frame] .ptx__rail { display: none; }
  .site[data-frame] .ptx__body { border-left: 0; }
  .site[data-frame] .ptx__lead { padding: 32px var(--frame-pad); }
  .site[data-frame] .ptx__lead p { font-size: 18px; line-height: 28px; }
}
.site[data-frame] .ptx__demo { position: relative; height: 460px; overflow: hidden; background: var(--bg-sunken); }
@media (max-width: 760px) {
  .site[data-frame] .ptx__lead { padding: 32px var(--frame-pad); }
  .site[data-frame] .ptx__demo { height: 440px; }
}
.site[data-page='product'] #how-it-works .s-col > * { margin: 0; padding: 0; }
.site[data-page='product'] #how-it-works .hiw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.site[data-page='product'] #how-it-works .hiw__head { display: grid; align-content: start; justify-items: start; padding: 120px var(--frame-pad); }
.site[data-page='product'] #how-it-works .hiw__head .s-headline { margin-top: 24px; }
.site[data-page='product'] #how-it-works .hiw__lead { max-width: 460px; margin-top: 24px; }
.site[data-page='product'] #how-it-works .hiw__steps { display: grid; align-content: start; padding: 120px 56px; border-left: 1px solid var(--line); background: var(--bg-sunken); }
.site[data-page='product'] #how-it-works .hiw__steps ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site[data-page='product'] #how-it-works .hiw-step { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 1px 2px color-mix(in srgb, var(--lt-foreground-primary-strong) 6%, transparent); }
.site[data-page='product'] #how-it-works .hiw-step__n { font: 400 12px/24px var(--mono); color: var(--fg-4); }
.site[data-page='product'] #how-it-works .hiw-step__body { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.site[data-page='product'] #how-it-works .hiw-step__body p { margin: 0; font: var(--t-body); color: var(--fg); }
.site[data-page='product'] #how-it-works .hiw-step__t { display: inline-flex; flex: none; align-items: center; height: 22px; margin-top: 0; padding-inline: 8px; border-radius: 6px; background: var(--bg-sunken); font: 500 12px/16px var(--sans); color: var(--fg-2); }
.site[data-page='product'] :is(#for-engineers, #for-security, #record) .s-head { border-bottom: 1px solid var(--line); }
.site[data-page='product'] :is(#for-engineers, #for-security, #record) .s-head + .s-stage { margin: 0; padding: 56px; border: 0; border-radius: 0; background: var(--bg-sunken); }
.site[data-page='product'] #record .rec-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.site[data-page='product'] #record .rec-tab { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; margin: 0; padding: 28px 32px 32px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; text-align: left; color: var(--fg-3); cursor: pointer; transition: background-color 150ms, color 150ms; }
.site[data-page='product'] #record .rec-tab + .rec-tab { border-left: 1px solid var(--line); }
.site[data-page='product'] #record .rec-tab__icon { display: inline-flex; margin-bottom: 10px; color: var(--fg-3); }
.site[data-page='product'] #record .rec-tab__icon svg { width: 20px; height: 20px; }
.site[data-page='product'] #record .rec-tab__name { font: 500 16px/24px var(--sans); color: var(--fg-2); }
.site[data-page='product'] #record .rec-tab__body { font: var(--t-small); color: var(--fg-3); }
.site[data-page='product'] #record .rec-tab:hover .rec-tab__name { color: var(--fg); }
.site[data-page='product'] #record .rec-tab:focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; }
.site[data-page='product'] #record .rec-tab[aria-selected='true'] :is(.rec-tab__icon, .rec-tab__name) { color: var(--fg); }
.site[data-page='product'] #record .rec-tab[aria-selected='true'] .rec-tab__body { color: var(--fg-2); }
.site[data-page='product'] #record .rec-tab__bar { position: absolute; top: -1px; right: 0; left: 0; height: 2px; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; }
.site[data-page='product'] #record .rec-tabs.is-auto .rec-tab[aria-selected='true'] .rec-tab__bar { animation-name: rec-fill; animation-duration: 7s; animation-timing-function: linear; animation-fill-mode: forwards; }
.site[data-page='product'] #record .rec-tabs:not(.is-auto) .rec-tab[aria-selected='true'] .rec-tab__bar { transform: scaleX(1); }
.site[data-page='product'] #record :is(.rec-tabs.is-paused, .s-stage:hover ~ .rec-tabs, .rec-tabs:hover) .rec-tab__bar { animation-play-state: paused; }
.site[data-page='product'] :is(#how-it-works, #enterprise, #integrations) .s-cells { padding-bottom: 0; }
.site[data-page='product'] :is(#enterprise, #integrations) .s-more { margin: 0; padding: 32px var(--frame-pad) 120px; border: 0; }
.site[data-page='product'] #enterprise .s-cells { margin: 0; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; }
.site[data-page='product'] #enterprise .s-cell { padding: 32px 32px 40px; background: none; }
.site[data-page='product'] #enterprise .s-cell + .s-cell { border-left: 1px solid var(--line); }
.site[data-page='product'] #integrations .s-cells { margin: 0; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; }
.site[data-page='product'] #integrations .s-cell { padding: 32px 32px 40px; border: 0; border-radius: 0; background: none; }
.site[data-page='product'] #integrations .s-cell:not(:nth-child(4n + 1)) { border-left: 1px solid var(--line); }
.site[data-page='product'] #integrations .s-cell:nth-child(n + 5) { border-top: 1px solid var(--line); }
@media (max-width: 1023px) {
  .site[data-page='product'] #enterprise .s-cell:nth-child(odd) { border-left: 0; }
  .site[data-page='product'] #enterprise .s-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .site[data-page='product'] #integrations .s-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site[data-page='product'] #integrations .s-cell:not(:nth-child(4n + 1)) { border-left: 0; }
  .site[data-page='product'] #integrations .s-cell:nth-child(even) { border-left: 1px solid var(--line); }
  .site[data-page='product'] #integrations .s-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .site[data-page='product'] #enterprise .s-cells { grid-template-columns: minmax(0, 1fr); }
  .site[data-page='product'] #enterprise .s-cell { padding: 24px var(--frame-pad); border-left: 0; }
  .site[data-page='product'] #enterprise .s-cell + .s-cell { border-top: 1px solid var(--line); border-left: 0; }
  .site[data-page='product'] #integrations .s-cell { padding: 24px 20px; }
}
@media (max-width: 1100px) {
  .site[data-page='product'] #record .rec-tab { padding-inline: 20px; }
  .site[data-page='product'] #how-it-works .hiw__steps { padding: 72px 40px; }
}
@media (max-width: 760px) {
  .site[data-page='product'] #how-it-works .hiw { grid-template-columns: minmax(0, 1fr); }
  .site[data-page='product'] #how-it-works .hiw__head { padding: 72px var(--frame-pad) 40px; }
  .site[data-page='product'] #how-it-works .hiw__steps { padding: 24px var(--frame-pad); border-left: 0; border-top: 1px solid var(--line); }
  .site[data-page='product'] #how-it-works .hiw-step__body { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site[data-page='product'] :is(#for-engineers, #for-security, #record) .s-head + .s-stage { padding: 24px 20px; overflow-x: auto; }
  .site[data-page='product'] :is(#enterprise, #integrations) .s-more { padding-bottom: 72px; }
  .site[data-page='product'] #record .rec-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 220px; overflow-x: auto; scrollbar-width: none; }
  .site[data-page='product'] #record .rec-tabs::-webkit-scrollbar { display: none; }
  .site[data-page='product'] #record .rec-tab { padding: 20px 20px 24px; }
}
.tn-hero { position: relative; height: clamp(680px, calc(100svh - var(--nav-h)), 940px); overflow: hidden; background: var(--bg); }
.tn-stage { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 60% 0%; pointer-events: none; }
/* The turn is shot 19, a flat 900 x 700 frame (css/v7/agent-shot.css), tilted here. It plays its own scenes and
   keeps its newest line near the middle of the frame, so the plane is lifted to put that line in the hero's upper
   third, clear of the copy, and scaled so its 15px type reads at the size the old hero's did */
.tn-plane { --s: 1.3; position: absolute; top: -250px; left: calc(50% - 360px); width: 900px; transform-origin: 50% 0; transform: rotateX(20deg) rotateZ(-4deg) scale(var(--s)); }
.tn-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--lt-background-canvas) 0%, transparent) 36%, color-mix(in srgb, var(--lt-background-canvas) 88%, transparent) 56%, var(--lt-background-canvas) 66%); }
.tn-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 64px; }
.tn-copy .hero__copy { max-width: 1100px; }
.tn-copy .t-display { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.125; }
.tn-copy .t-lead { max-width: 760px; }
@media (max-width: 960px) {
  .tn-plane { --s: 0.72; left: calc(50% - 324px); transform-origin: 0 0; }
  .tn-copy { bottom: 40px; }
}
@media (max-width: 560px) {
  .tn-hero { height: 720px; }
  .tn-plane { --s: 0.38; left: 16px; transform-origin: 0 0; }
  .tn-copy .t-display { font: var(--t-display); letter-spacing: var(--tr-display); }
  .tn-hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--lt-background-canvas) 0%, transparent) 24%, color-mix(in srgb, var(--lt-background-canvas) 90%, transparent) 44%, var(--lt-background-canvas) 54%); }
}
.tn-hero { height: clamp(600px, calc(100svh - var(--nav-h) - 90px), 850px); }
.tn-copy .t-lead { text-wrap: pretty; }
/* On a phone the hero is the screen, at most 720px, so its actions are always above the fold */
@media (max-width: 560px) {
  .tn-hero { height: clamp(600px, calc(100svh - var(--nav-h)), 720px); }
}
@keyframes rec-fill {to { transform: scaleX(1); }}

/* ── The frame's measures: the prototype set them on .site[data-frame], which the port leaves to no page ── */
.site[data-frame] { --frame-w: min(1280px, calc(100% - 32px)); --frame-pad: 40px; }
@media (max-width: 760px) {
  .site[data-frame] { --frame-w: 100%; --frame-pad: var(--gutter); }
}

/* Until the sales form has a real endpoint the close has no form column, so the copy takes the row */
.site[data-page='product'] #close > .s-close:not(:has(.close__form)) { grid-template-columns: minmax(0, 1fr); }
.site[data-page='product'] #close > .s-close:not(:has(.close__form)) .close__title { max-width: 880px; }

/* ── Motion: the agents' marquee runs only while on screen (js/v7/product.js marks .is-away) ── */
/* A tablet drops the contents rail: the demos take the full width, at nearly twice the scale the rail left them */
@media (max-width: 1023px) {
  .site[data-frame] #jobs .ptx { grid-template-columns: minmax(0, 1fr); }
  .site[data-frame] .ptx__rail { display: none; }
  .site[data-frame] .ptx__body { border-left: 0; }
}

/* How it works stacks below 1024: two columns there left the headline a word a line and the steps 70px wide */
@media (min-width: 761px) and (max-width: 1023px) {
  .site[data-page='product'] #how-it-works .hiw { grid-template-columns: minmax(0, 1fr); }
  .site[data-page='product'] #how-it-works .hiw__head { padding: 96px var(--frame-pad) 48px; }
  .site[data-page='product'] #how-it-works .hiw__steps { padding: 48px var(--frame-pad); border-left: 0; border-top: 1px solid var(--line); }
}

/* On a phone the demo panel takes the height of its shot */
@media (max-width: 760px) {
  .site[data-frame] .ptx__demo { height: auto; }
}

/* The dashboard's view tabs on a phone are a swipe row that snaps each cell to the gutter and fades at the
   right edge, so the next one shows it is there */
@media (max-width: 760px) {
  .site[data-page='product'] #record .rec-tabs { scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter) var(--gutter-r); padding-inline: var(--gutter) var(--gutter-r); -webkit-mask-image: linear-gradient(90deg, black calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, black calc(100% - 40px), transparent); }
  .site[data-page='product'] #record .rec-tab { scroll-snap-align: start; }
}

/* The hero on a tablet and a phone: not the tilted plane at a third of its size, but the turn (shot 19) held flat
   at a size that reads, above the copy. Below a 560px slot the shot reflows itself (css/v7/agent-shot.css). */
@media (max-width: 1023px) {
  .tn-hero { display: flex; flex-direction: column; height: auto; }
  .tn-hero::before { display: none; }
  .tn-stage { position: relative; inset: auto; flex: 1 0 auto; display: flex; align-items: center; perspective: none; padding: 72px var(--gutter-r) 0 var(--gutter); }
  .tn-plane { position: relative; top: auto; left: auto; width: 100%; max-width: 600px; transform: none; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, black 82%, transparent); mask-image: linear-gradient(180deg, black 82%, transparent); }
  /* The shot keeps its newest line at about 60% of its height and leaves the rest for the next one, so the
     plane shows the top 70% of it (the margin is a share of the width: the frame is 7:9 here, 4:5 below 560) */
  .tn .ashot--hero { margin-bottom: -23%; }
  .tn-copy { position: relative; bottom: auto; padding-block: 40px 48px; }
}
@media (max-width: 560px) {
  .tn .ashot--hero { margin-bottom: -37%; }
}
/* A short phone (320 x 640 and the like) has no room for the turn above the copy, so the copy and its actions
   take the screen */
@media (max-width: 760px) and (max-height: 700px) {
  .tn-stage { display: none; }
}
@media (max-width: 760px) {
  .tn-stage { padding-top: 24px; }
  .tn-copy { padding-block: 32px 40px; }
}

/* The dashboard's view tabs on a tablet: five columns squeezed each cell's line to five rows, so they are the
   phone's swipe row here too, each cell wide enough for its line in two or three rows, the next one peeking */
@media (min-width: 761px) and (max-width: 1023px) {
  .site[data-page='product'] #record .rec-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 248px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--frame-pad); padding-inline: var(--frame-pad); -webkit-mask-image: linear-gradient(90deg, black calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, black calc(100% - 48px), transparent); }
  .site[data-page='product'] #record .rec-tabs::-webkit-scrollbar { display: none; }
  .site[data-page='product'] #record .rec-tab { scroll-snap-align: start; padding: 24px 24px 28px; }
}

/* Vertical rhythm on a phone: a head and its content sat 72px apart; they come down to the 40 to 56px a
   phone's sections use */
@media (max-width: 760px) {
  .site[data-frame] main > .s-sec:not(.close) .s-head { padding-top: 56px; padding-bottom: 32px; }
  .site[data-frame] main > .s-sec:not(.close) .s-head + * { padding-bottom: 56px; }
  .site[data-frame] .ptx__lead { padding-top: 24px; }
  .site[data-page='product'] #how-it-works .hiw__head { padding-top: 56px; }
  .site[data-page='product'] :is(#enterprise, #integrations) .s-more { padding-bottom: 56px; }
}

/* A headline's second tone balances on its own on a phone, so neither part ends on a word alone */
@media (max-width: 760px) {
  .site[data-page='product'] main :is(h1, h2) .tone-2 { display: block; text-wrap: balance; }
}

/* The agents' letter marks (Antigravity, Hermes Agent) come up to the 12px floor on a phone and a tablet */
@media (max-width: 1023px) {
  .site[data-page='product'] .hiw-agent__word { font-size: 12px; }
}
/* At 320 a headline takes one step down, as the display does in site.css, so "Then every change" keeps
   its line rather than leaving a word alone */
@media (max-width: 360px) {
  .site[data-page='product'] :is(main .s-headline, .close__title) { font-size: 28px; line-height: 36px; }
}

/* ── Product shots from Figma (css/v7/figma-shots.css holds the shared frame and its phone crop) ────────────
   A panel or stage that holds a shot gives it the whole width and no fill of its own: the shot carries its
   frame's lit stage. The fixed height of the drawn views' panel would cut a shot short, so it goes too. */
.site[data-frame] .ptx__demo.ptx__demo--image { height: auto; }
.site[data-page='product'] :is(#for-engineers, #for-security, #record) .s-head + .s-stage--image { padding: 0; overflow: visible; background: none; }

/* 07 Fixed in the turn (frames 365-3979, 365-4141, focused 12 Nov): the card alone on the sunken grey, whole on a phone */
.fshot--07 { --iw: 912; --ih: 545; --fx: 0; --fy: 0; --fw: 912; --fh: 545; }
/* 08 False positives settled (frames 365-4303, 365-4493, focused 12 Nov): the card alone on the sunken grey, whole on a phone */
.fshot--08 { --iw: 1072; --ih: 554; --fx: 0; --fy: 0; --fw: 1072; --fh: 554; }
/* 09 Dashboard (frames 193-958, 194-810, 194-1309, 195-931, 195-1375): on a phone, the left of each view's
   main pane, its title and the first columns that say what the view holds */
.fshot--09 { --iw: 1270; --ih: 876; --fx: 316; --fy: 92; --fw: 452; --fh: 596; }

/* 07's states are the two sides of the switch drawn in the frame, so that switch can be pressed: each side
   has a button over it (placed in the frame's 1x pixels), which shows that side and holds it */
.fshot__hits { position: absolute; inset: 0; z-index: 1; }
.fshot__hit { position: absolute; left: calc(100% * var(--bx) / var(--iw)); top: calc(100% * var(--by) / var(--ih)); width: calc(100% * var(--bw) / var(--iw)); height: calc(100% * var(--bh) / var(--ih)); margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; font-size: 0; color: transparent; cursor: pointer; transition: background-color 150ms ease; }
/* The drawn switch is 23px tall on a phone, so each side takes taps a little above and below it */
.fshot__hit::after { content: ''; position: absolute; inset: -8px 0; }
.fshot__hit:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.fshot__hit:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.fshot--07 .fshot__hit--without { --bx: 78; --by: 42; --bw: 135; --bh: 32; }
.fshot--07 .fshot__hit--with { --bx: 213; --by: 42; --bw: 116; --bh: 32; }
@media (max-width: 560px) {
  .fshot__hits { inset: auto; left: calc(-100% * var(--fx) / var(--fw)); top: calc(-100% * var(--fy) / var(--fh)); width: calc(100% * var(--iw) / var(--fw)); height: calc(100% * var(--ih) / var(--fh)); }
}

/* 09's views follow the tabs under it (js/v7/product.js), so with no script it shows the first, the overview,
   as the first tab is the one selected */
.fshot--09:not(.is-live) .fshot__state:last-child { opacity: 0; }
.fshot--09:not(.is-live) .fshot__state:first-child { opacity: 1; }

/* ══ Product to the website standard, with Home as the bar (Johnny, 11 Nov; the skill leotrace-website) ═══════
   Layout only: the copy, the shots and the animations are the page's own. As on Home: quieter rails, heads 96
   above and 40 below, sections ending 96 under their content, no section labels (What it does keeps its own,
   as Home's What we do does, until Johnny decides), and two statements at the headline size (What it does and
   the record); every other head is a column headline, and a head that runs on keeps its grey half inline. ═══ */
.site[data-page='product'] main > .s-sec:not(.close) > .s-col { border-inline-color: var(--line-faint); }
.site[data-page='product'] .agents-band { border-top: 0; }
.site[data-page='product'] main > .s-sec:not(.close) .s-head { gap: 16px; padding: 96px var(--frame-pad) 40px; }
.site[data-page='product'] main > .s-sec:not(.close) .s-head + * { padding-bottom: 96px; }
.site[data-page='product'] main .s-headline { font: var(--t-headline-col); letter-spacing: var(--tr-headline-col); text-wrap: balance; }
.site[data-page='product'] :is(#jobs, #record) .s-headline { font: var(--t-headline); letter-spacing: var(--tr-headline); }
.site[data-page='product'] main .s-headline--run .tone-2 { display: inline; }
.site[data-page='product'] main .s-lead { max-width: 520px; }

/* The hero's display at the standard's leading */
.site[data-page='product'] .tn-copy .t-display { line-height: 1; letter-spacing: var(--tr-display); }

/* How it works (Johnny, 11 Nov): a split head, the title left and the line right from one top line, then the
   five steps as one row of keylined cells on the rail (a set is a grid): a line above them and lines between,
   each step's number, its sentence and, where it has one, its time along the foot */
.site[data-page='product'] #how-it-works .hiw { grid-template-columns: minmax(0, 1fr); }
.site[data-page='product'] #how-it-works .hiw__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 64px; row-gap: 16px; padding: 96px var(--frame-pad) 48px; }
.site[data-page='product'] #how-it-works .hiw__head .s-headline { margin-top: 0; }
.site[data-page='product'] #how-it-works .hiw__lead { max-width: 520px; margin-top: 0; }
.site[data-page='product'] #how-it-works .hiw__steps { padding: 0; border-top: 1px solid var(--line); border-left: 0; background: none; }
.site[data-page='product'] #how-it-works .hiw__steps ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.site[data-page='product'] #how-it-works .hiw-step { display: flex; flex-direction: column; gap: 12px; padding: 32px 24px 40px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.site[data-page='product'] #how-it-works .hiw-step:first-child { padding-left: var(--frame-pad); }
.site[data-page='product'] #how-it-works .hiw-step + .hiw-step { border-left: 1px solid var(--line); }
.site[data-page='product'] #how-it-works .hiw-step__body { flex: 1; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 16px; }
.site[data-page='product'] #how-it-works .hiw-step__t { margin-top: auto; }
/* The steps settle 70ms apart */
.site[data-page='product'] #how-it-works .hiw-step { transition: opacity 500ms var(--settle), transform 500ms var(--settle); }
.site[data-page='product'] #how-it-works .hiw__steps.reveal.is-pre .hiw-step { opacity: 0; transform: translateY(12px); }
.site[data-page='product'] #how-it-works .hiw-step:nth-child(2) { transition-delay: 70ms; }
.site[data-page='product'] #how-it-works .hiw-step:nth-child(3) { transition-delay: 140ms; }
.site[data-page='product'] #how-it-works .hiw-step:nth-child(4) { transition-delay: 210ms; }
.site[data-page='product'] #how-it-works .hiw-step:nth-child(5) { transition-delay: 280ms; }
/* A tablet: the row would squeeze each step to a few words a line, so the steps stack as rows */
@media (max-width: 1023px) {
  .site[data-page='product'] #how-it-works .hiw__steps ol { grid-template-columns: minmax(0, 1fr); }
  .site[data-page='product'] #how-it-works .hiw-step, .site[data-page='product'] #how-it-works .hiw-step:first-child { flex-direction: row; align-items: baseline; gap: 16px; padding: 20px var(--frame-pad); }
  .site[data-page='product'] #how-it-works .hiw-step + .hiw-step { border-left: 0; border-top: 1px solid var(--line); }
  .site[data-page='product'] #how-it-works .hiw-step__body { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .site[data-page='product'] #how-it-works .hiw-step__t { margin-top: 0; }
}
/* What it does keeps its structure, as Home's What we do: the head cell with its line and its own room, the
   tab column on the rail, the panels split by lines; a tab not chosen is quiet but readable */
.site[data-page='product'] main > #jobs .s-head { gap: 20px; padding: 120px var(--frame-pad) 56px; }
.site[data-page='product'] main > #jobs .s-head + * { padding-bottom: 0; }
.site[data-page='product'] .ptx__tab { color: var(--fg-4); }
.site[data-page='product'] .ptx__tab:hover { color: var(--fg-2); }

/* For engineers: the head and lead over the shot. For security engineers: a split head, the title left and
   the copy right from one top line, the shot full width under them, so the two do not repeat one shape. Each
   shot runs edge to edge on its own lit stage, as before */
.site[data-page='product'] main > #for-security .s-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 64px; }

/* The enterprise band: a column head over its four keylined cells (a set stays a grid), a line above and below
   them and lines between, then its one call to action (Johnny, 11 Nov); the integrations' link, 96 above the
   section's end */
.site[data-page='product'] #enterprise .s-cells > .s-cell { padding: 40px var(--frame-pad) 48px; }
.site[data-page='product'] :is(#enterprise, #integrations) .s-more { padding-bottom: 96px; }
/* The three shot sections are open: the sunken stage under each head needs no line of its own */
.site[data-page='product'] :is(#for-engineers, #for-security, #record) .s-head { border-bottom: 0; }

/* The FAQ: the head over the questions, the list at full width with a line above it and under each row (a
   short list beside its head left a dead block) */
.site[data-page='product'] .s-label { grid-template-columns: minmax(0, 1fr); }
.site[data-page='product'] .s-label > .s-label__head { gap: 16px; padding: 96px var(--frame-pad) 40px; border-right: 0; }
.site[data-page='product'] .s-label > .s-label__body { padding: 0 var(--frame-pad) 96px; }
.site[data-page='product'] .s-label .qas > .qa:first-child { border-top: 1px solid var(--line); }
.site[data-page='product'] .qa__a p { padding-bottom: 24px; }

/* The close: one tone, its copy starting level with the form's first field */
.site[data-page='product'] #close { padding-block: 96px; }
.site[data-page='product'] #close > .s-close { gap: 64px; }
.site[data-page='product'] #close > .s-close > .close__copy { gap: 16px; padding-top: 32px; }
.site[data-page='product'] #close .checks { gap: 8px; }
.site[data-page='product'] #close .close__form { padding: 32px; }
.site[data-page='product'] #close .form-fields .field { gap: 8px; }

/* Motion: hovers and the answers' opening within 160ms; a set of cells settles 70ms apart */
.site[data-page='product'] .int-mark { transition-duration: 150ms; }
.site[data-page='product'] .qa__a { transition-duration: 160ms; }
.site[data-page='product'] .qa__q i, .site[data-page='product'] .qa__q i::after { transition-duration: 160ms; }
.site[data-page='product'] :is(#enterprise, #integrations) .s-cells > .s-cell { transition: opacity 500ms var(--settle), transform 500ms var(--settle), background-color 150ms ease; }
.site[data-page='product'] :is(#enterprise, #integrations) .s-cells.reveal.is-pre > .s-cell { opacity: 0; transform: translateY(12px); }
.site[data-page='product'] :is(#enterprise, #integrations) .s-cells > .s-cell:nth-child(2) { transition-delay: 70ms; }
.site[data-page='product'] :is(#enterprise, #integrations) .s-cells > .s-cell:nth-child(3) { transition-delay: 140ms; }
.site[data-page='product'] :is(#enterprise, #integrations) .s-cells > .s-cell:nth-child(4) { transition-delay: 210ms; }
.site[data-page='product'] :is(#enterprise, #integrations) .s-cells > .s-cell:nth-child(n + 5) { transition-delay: 280ms; }

@media (max-width: 760px) {
  .site[data-page='product'] main > .s-sec:not(.close) .s-head { padding: 64px var(--frame-pad) 24px; }
  .site[data-page='product'] main > .s-sec:not(.close) .s-head + * { padding-bottom: 64px; }
  .site[data-page='product'] #how-it-works .hiw__head { grid-template-columns: minmax(0, 1fr); padding: 64px var(--frame-pad) 24px; }
  .site[data-page='product'] #how-it-works .hiw-step, .site[data-page='product'] #how-it-works .hiw-step:first-child { flex-direction: column; gap: 8px; padding: 20px var(--frame-pad); }
  .site[data-page='product'] #how-it-works .hiw-step__body { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site[data-page='product'] main > #jobs .s-head { padding: 64px var(--frame-pad) 40px; }
  .site[data-page='product'] main > #for-security .s-head { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .site[data-page='product'] #enterprise .s-cells > .s-cell { padding: 24px var(--frame-pad); }
  .site[data-page='product'] .s-label > .s-label__head { padding: 64px var(--frame-pad) 24px; border-bottom: 0; }
  .site[data-page='product'] .s-label > .s-label__body { padding: 0 var(--frame-pad) 64px; }
  .site[data-page='product'] :is(#enterprise, #integrations) .s-more { padding-bottom: 64px; }
  .site[data-page='product'] #close { padding-block: 64px; }
  .site[data-page='product'] #close > .s-close > .close__copy { padding-top: 0; }
  .site[data-page='product'] #close .close__form { padding: 24px; }
}
/* The record (Johnny, 12 Nov): the pull requests from every business unit, then the code behind one, the shot
   Enterprise uses (48). The image is the card alone on the sunken grey, so the stage carries that grey and the card
   sits on it at its real size, its text at 13px as in the app */
.fshot--48 { --iw: 1222; --ih: 587; }
.site[data-page='product'] #record .s-head + .s-stage--image { padding-bottom: 0; background: var(--bg-sunken); }
.site[data-page='product'] #record .s-stage--image > .fshot--48 { width: min(100%, calc(var(--iw) * 1px)); margin-inline: auto; padding-top: 56px; aspect-ratio: auto; background: none; }
@media (max-width: 560px) {
  .site[data-page='product'] #record .fshot.fshot--48 { display: grid; aspect-ratio: auto; padding-top: 24px; }
  .site[data-page='product'] #record .fshot--48 .fshot__state { position: static; width: 100%; }
}

/* 07 and 08 (focused, 12 Nov) sit on the same grey stage as the record: the card at its real size, centred, with
   the room for its shadow in the image; the shot keeps its own proportions so 07's switch stays pressable */
.site[data-page='product'] :is(#for-engineers, #for-security) .s-head + .s-stage--image { padding: 56px 0 0; background: var(--bg-sunken); }
.site[data-page='product'] :is(#for-engineers, #for-security) .s-stage--image > .fshot { width: min(100%, calc(var(--iw) * 1px)); margin-inline: auto; background: none; }
@media (max-width: 560px) {
  .site[data-page='product'] :is(#for-engineers, #for-security) .s-head + .s-stage--image { padding-top: 24px; }
}

/* Phone frames for 07, 08 and the record's 48 (12 Nov): at 560px and below each serves its 400 wide phone image,
   whole, and 07's switch is pressed where the phone frame draws it */
@media (max-width: 560px) {
  .fshot--07 { --iw: 400; --ih: 524; --fx: 0; --fy: 0; --fw: 400; --fh: 524; }
  .fshot--07 .fshot__hit--without { --bx: 43; --by: 43; --bw: 79; --bh: 32; }
  .fshot--07 .fshot__hit--with { --bx: 122; --by: 43; --bw: 116; --bh: 32; }
  .fshot--08 { --iw: 400; --ih: 510; --fx: 0; --fy: 0; --fw: 400; --fh: 510; }
  .fshot--48 { --iw: 400; --ih: 463; }
}
