/* SketchTwin front page, the look of 16–17/11: a bright room, black bars, yellow for the action, turquoise for the
   accent, the builder's grid as the page's own material. Second pass 17/11: the type is bold and straight (the thin
   face with an underline, a tilted yellow word and little numbers read "like a notebook" to him), with a fixed-width face only
   for file names and item numbers (the small Latin labels above each title were template chrome and said the obvious: gone). He picked type 1 of three (Heebo, the logo's face) on 17/11.
   The turquoise is the logo's own, measured from the picture he chose (#1af4cd, its wall #0b7a61), and it always
   sits on black, as in the logo: the bar, the footer, the headline's word. A darker turquoise as text on the
   light page read "a kind of green" to him, so on the light page the small labels are ink. */
:root {
  --ink: #070809; --soft: #43494c; --paper: #eef2f1; --sheet: #f7f9f8; --brand: #1af4cd; --brand-wall: #0b7a61; --label: #2b3336; --mark: #e6ff3d;
  --rule: rgba(7, 8, 9, .14); --pad: max(24px, 4vw); --cell: 24px; --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --grid-major: #b9d0ca; --grid-minor: #dfe9e6; --ground: #7d9690; /* the 3D viewer reads these three */
}
:root { --disp: "Rubik"; --body: "IBM Plex Sans Hebrew"; --dw: 700; --dl: 300; --strong: 600; --dtrack: -.03em; --dsize: clamp(40px, 4.7vw, 76px); --dlh: 1.02; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
/* the type, his pick of 17/11 evening ("2, Rubik"): Rubik for the headlines, IBM Plex Sans Hebrew for the text; the logo's word keeps Heebo */
body { font: 400 16px/1.5 var(--body), system-ui, sans-serif; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
[id] { scroll-margin-top: 84px; }

/* ---------------------------------------------------------------- the bar */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 var(--pad); pointer-events: none; color: #f4f7f6; }
.nav::before { content: ""; position: absolute; z-index: -1; inset: 8px max(8px, calc(var(--pad) - 16px)); border-radius: 15px; background: var(--ink); pointer-events: auto; transition: box-shadow .3s; }
.nav > * { pointer-events: auto; }
.nav.solid::before { box-shadow: 0 10px 30px rgba(7, 8, 9, .24); }
.logo { display: inline-flex; align-items: center; font: 800 21px/1 "Heebo", sans-serif; letter-spacing: -.01em; direction: ltr; }
.logo b { color: var(--brand); font-weight: 800; }
.logo img { height: 34px; width: auto; flex: none; margin-right: 9px; }
.nav nav { display: flex; gap: 26px; font-size: 15.5px; margin-inline-start: 14px; }
.nav nav a { opacity: .78; }
.nav nav a:hover { opacity: 1; }
.acts { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.enter { background: none; border: 0; padding: 0; cursor: pointer; font-size: 15.5px; }
.cta { border: 0; border-radius: 10px; background: var(--mark); color: #070809; font-weight: var(--strong); padding: 0 22px; height: 48px; cursor: pointer; white-space: nowrap; }
.nav .cta { height: 38px; padding: 0 16px; font-size: 15px; border-radius: 9px; background: none; color: #f4f7f6; box-shadow: inset 0 0 0 1.5px rgba(244, 247, 246, .42); transition: background .3s, color .3s, box-shadow .3s; }
.nav.past .cta { background: var(--mark); color: #070809; box-shadow: none; }   /* yellow only once the tool with the same button has left the screen */

/* ---------------------------------------------------------------- the top screen */
.hero { position: relative; min-height: calc(100vh - 68px); display: flex; align-items: stretch; padding: 0 var(--pad) 7vh; pointer-events: none; }
#scene { position: absolute; inset: -68px 0 0 0; z-index: 0; pointer-events: auto; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, #000 86%, transparent 100%); }
#scene canvas { display: block; width: 100% !important; height: 100% !important; }
#scene.over { cursor: grab; } #scene.drag { cursor: grabbing; }
.say { position: relative; z-index: 3; width: min(580px, 43vw); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 28px; padding: clamp(30px, 7.6vh, 86px) 0 clamp(8px, 3.4vh, 40px); }
.say > * > * { pointer-events: auto; }
.ask { --askw: min(900px, 62vw); width: var(--askw); margin-inline-start: calc((100vw - var(--sbw, 0px) - var(--askw)) / 2 - var(--pad)); text-align: center; }   /* centred on the page, not on its column (--sbw: the scrollbar, set by the script) */
.promise { width: 100%; }
h1 { margin: 0 0 20px; font: var(--dw) var(--dsize)/var(--dlh) var(--disp), sans-serif; letter-spacing: var(--dtrack); color: var(--ink); pointer-events: none; }
h1 span { display: block; }
h1 .l1 { font-weight: var(--dl); }
/* the word "3D" is drawn, not filled, the way an architect draws a block: straight on, no perspective. The front face is an
   ink outline over a nearly clear face; the depth is the same outline eleven times, faint, stepping back up and away. */
h1 em { display: inline-block; position: relative; z-index: 0; font-style: normal; white-space: nowrap; margin-inline-start: .02em;
  color: rgba(238, 242, 241, .8); -webkit-text-stroke: max(2.4px, .046em) var(--ink); paint-order: stroke fill; }
h1 em .deep { position: absolute; inset: 0; z-index: -1; }
h1 em .deep i { position: absolute; inset: 0; font-style: normal; color: transparent; -webkit-text-stroke: max(.9px, .013em) rgba(26, 244, 205, .5); paint-order: normal;
  transform: translate(calc(var(--i) * -.021em), calc(var(--i) * -.017em)); }
h1 em .deep i:first-child { -webkit-text-stroke-color: rgba(7, 8, 9, .5); }
h1 em .deep i::before { content: attr(data-t); }
h1 .l3 { display: flex; align-items: center; gap: 9px; margin-top: .66em; font: 500 clamp(16px, 1.45vw, 21px)/1.2 var(--body), sans-serif; letter-spacing: 0; color: var(--ink); }
h1 .l3 .dl, .got .dl { flex: none; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .32; transition: opacity .4s; }   /* the download arrow: full once the files are ready */
.got { display: none; }   /* a phone shows this line above the files, not under the headline */
h1[data-stage="3"] .l3 .dl, h1[data-stage="3"] ~ .got .dl { opacity: 1; animation: drop .9s cubic-bezier(.3, 1.4, .5, 1) 1; }
@keyframes drop { 0% { transform: translateY(-7px); } 100% { transform: none; } }
.sub { margin: 16px 0 0; font-size: 17.5px; line-height: 1.55; color: var(--soft); }
p, dd { text-wrap: pretty; }                      /* no lonely last word in a paragraph */
.sub, .free, .ans, .end-h { text-wrap: balance; }   /* short statements break into even lines */
.sub b { color: var(--ink); font-weight: var(--strong); }
/* the tool: three ways in, a photo, a link, or words; one field, one button */
.tool { display: flex; align-items: center; gap: 6px; text-align: start; padding: 6px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), 0 16px 36px rgba(7, 8, 9, .1); }   /* a white field, not a second black bar under the nav */
.tool .modes { flex: none; display: flex; gap: 2px; padding-inline-start: 4px; }   /* beside the field, not above it: one line */
.tool .modes button { height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--soft); font-size: 15px; cursor: pointer; white-space: nowrap; transition: color .25s, background .25s; }
.tool .modes button[aria-pressed="true"] { background: var(--ink); color: var(--brand); font-weight: var(--strong); }
.tool .bar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border-radius: 11px; background: var(--paper); }
.tool .link { flex: 1; position: relative; height: 52px; min-width: 0; }
.tool .link input { position: absolute; inset: 0; width: 100%; border: 0; background: none; outline: 0; padding: 0 16px; }
.tool .hold { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 16px; opacity: .72; pointer-events: none; white-space: nowrap; overflow: hidden; }
.tool .link:focus-within .hold, .tool .link.has .hold { display: none; }
.tool .bar .cta { margin: 4px; height: 44px; }
.free { margin: 4px 0 0; font-size: 15.5px; color: var(--soft); }
/* the build, as three short lines that fill: the photo is in, the model is being built, the files are ready */
.files { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.files li { display: grid; justify-items: center; gap: 9px; font-size: 14px; color: #1f2427; text-align: center; opacity: .3; transform: translateY(7px); transition: opacity .45s, transform .45s; }
.files.ready li { opacity: 1; transform: none; }
.files.ready li:nth-child(2) { transition-delay: .09s; } .files.ready li:nth-child(3) { transition-delay: .18s; } .files.ready li:nth-child(4) { transition-delay: .27s; }
.doc { position: relative; display: grid; place-items: end center; width: 42px; height: 51px; padding-bottom: 8px; border-radius: 5px; background: var(--ink); color: #f4f7f6; font: 700 12px/1 "Heebo", sans-serif; font-style: normal; direction: ltr; clip-path: polygon(0 0, 66% 0, 100% 26%, 100% 100%, 0 100%); }
.doc::after { content: ""; position: absolute; top: 0; right: 0; width: 34%; height: 26%; background: var(--brand); }

/* the other models, one under the other on the left; the small models themselves are drawn in the room, behind these */
.shelf { --n: 3; position: absolute; z-index: 4; left: var(--pad); top: calc(50% - 34px); transform: translateY(-50%); display: grid; gap: 8px; direction: ltr; pointer-events: auto; }
.shelf::before { content: attr(aria-label); direction: rtl; text-align: left; font-size: 13px; color: var(--soft); padding-bottom: 2px; }
.slot { position: relative; display: grid; grid-template-rows: 1fr auto; width: 136px; height: min(176px, calc((100vh - 68px - 210px) / var(--n))); padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); transition: opacity .5s; }
.slot[disabled] { opacity: 0; cursor: default; }
.slot .pad { position: relative; min-height: 0; }
.slot .pad::before, .slot .pad::after { content: ""; position: absolute; width: 13px; height: 13px; border: solid var(--label); opacity: .5; transition: transform .25s, opacity .25s, border-color .25s; }
.slot .pad::before { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.slot .pad::after { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.slot:hover .pad::before, .slot:focus-visible .pad::before { transform: translate(-4px, -4px); opacity: 1; border-color: var(--ink); }
.slot:hover .pad::after, .slot:focus-visible .pad::after { transform: translate(4px, 4px); opacity: 1; border-color: var(--ink); }
.slot:focus-visible { outline: 0; }
.slot .pad img { display: none; }
.slot .tag { display: flex; align-items: baseline; gap: 7px; width: max-content; max-width: 212px; padding-top: 5px; font-size: 13px; line-height: 1.25; }
.slot .tag b { font-weight: 400; }   /* the whole name, on two lines if it must: a cut name reads as careless */

.plate { position: absolute; z-index: 4; left: 31%; bottom: 20px; transform: translateX(-50%); text-align: center; pointer-events: none; white-space: nowrap; }
.what { margin: 0; font-size: 14.5px; color: var(--soft); }
.what b { font-size: 16.5px; font-weight: var(--strong); color: var(--ink); margin-left: 12px; }
.hint { margin: 3px 0 0; font-size: 13.5px; color: #5b6367; transition: opacity .6s; }
.hint.off { opacity: 0; }

/* ---------------------------------------------------------------- the sections */
.sec { position: relative; padding: clamp(84px, 9.5vw, 156px) var(--pad) 0; }
.sec > * { max-width: 1320px; margin-inline: auto; }
.sh { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 0 clamp(28px, 5vw, 90px); margin-bottom: clamp(34px, 4.4vw, 60px); }
h2 { margin: 0; font: var(--dw) calc(var(--dsize) * .74)/1.06 var(--disp), sans-serif; letter-spacing: var(--dtrack); max-width: 17ch; text-wrap: balance; }
.lead { margin: 0 0 .35em; font-size: 17.5px; line-height: 1.55; color: var(--soft); max-width: 50ch; }

.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .1, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.on { opacity: 1; transform: none; }

/* a sheet of the grid: its squares light under the pointer, one square at a time, like the floor up top */
.gridbox { position: relative; background-color: var(--sheet);
  background-image: linear-gradient(var(--grid-minor) 1px, transparent 1px), linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); box-shadow: inset 0 0 0 1px rgba(7, 8, 9, .07); }
.gridbox .hot { position: absolute; left: 0; top: 0; width: calc(var(--cell) - 1px); height: calc(var(--cell) - 1px); background: var(--mark); opacity: 0; pointer-events: none; transition: opacity .35s;
  box-shadow: var(--cell) 0 0 rgba(230, 255, 61, .5), calc(var(--cell) * -1) 0 0 rgba(230, 255, 61, .5), 0 var(--cell) 0 rgba(230, 255, 61, .5), 0 calc(var(--cell) * -1) 0 rgba(230, 255, 61, .5),
    var(--cell) var(--cell) 0 rgba(230, 255, 61, .2), calc(var(--cell) * -1) var(--cell) 0 rgba(230, 255, 61, .2), var(--cell) calc(var(--cell) * -1) 0 rgba(230, 255, 61, .2), calc(var(--cell) * -1) calc(var(--cell) * -1) 0 rgba(230, 255, 61, .2); }
.gridbox.lit .hot { opacity: 1; }
.print { padding: 7px; background: #fff; border-radius: 4px; box-shadow: 0 16px 34px rgba(7, 8, 9, .16), 0 0 0 1px rgba(7, 8, 9, .06); }
.pill { position: absolute; z-index: 1; display: grid; place-items: center; height: 36px; padding: 0 16px; border-radius: 10px; font-size: 15px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill.dark { background: var(--ink); color: #f4f7f6; box-shadow: none; }

/* the problem and the answer */
/* the first section: a black stage. The product photo and the model built from it, across the whole width. */
.stage { margin-top: clamp(30px, 4vw, 70px); padding-bottom: clamp(70px, 7.5vw, 124px); background: var(--ink); color: #f4f7f6; overflow: hidden; }
.stage h2 { color: #fff; }
.stage .lead { color: rgba(244, 247, 246, .76); font-size: clamp(17.5px, 1.45vw, 21px); max-width: 46ch; }
.pair { margin: 0; display: grid; grid-template-columns: minmax(0, .8fr) clamp(46px, 6vw, 96px) minmax(0, 1.45fr); align-items: center; }
.pair .from, .pair .built { position: relative; }
.pair .from img { display: block; width: 100%; height: auto; border-radius: 14px; }
.pair .to { justify-self: center; width: 60%; height: 1.5px; background: var(--brand); position: relative; }
.pair .to::after { content: ""; position: absolute; left: -1px; top: -4.5px; width: 10px; height: 10px; border: solid var(--brand); border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); }
.pair .built { display: grid; place-items: center; padding: 4% 0 7%; }
.pair .deck { position: absolute; inset: 8% -22% -4% -22%; transform-origin: 50% 100%; transform: perspective(560px) rotateX(58deg);
  background-image: linear-gradient(rgba(26, 244, 205, .7) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(26, 244, 205, .7) 1.5px, transparent 1.5px); background-size: 64px 64px; background-position: center bottom;
  -webkit-mask-image: radial-gradient(58% 64% at 50% 58%, #000 30%, transparent 78%); mask-image: radial-gradient(58% 64% at 50% 58%, #000 30%, transparent 78%); }
.pair .built img { position: relative; z-index: 1; display: block; width: 88%; height: auto; filter: drop-shadow(0 34px 26px rgba(0, 0, 0, .55)); }
.pair .tag { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; padding: 4px 10px 5px; border-radius: 7px; background: rgba(7, 8, 9, .74); color: #f4f7f6; font-size: 13.5px; }
.pair .tag.on { top: 0; background: var(--brand); color: var(--ink); font-weight: var(--strong); }
.outcome { display: flex; align-items: end; justify-content: space-between; gap: clamp(24px, 4vw, 70px); margin-top: clamp(26px, 3vw, 46px); padding-top: clamp(22px, 2.4vw, 32px); border-top: 1px solid rgba(255, 255, 255, .17); }
.outcome .ans { margin: 0; font: var(--strong) clamp(21px, 2vw, 30px)/1.35 var(--body), sans-serif; max-width: 27ch; }
.facts { display: flex; gap: clamp(22px, 3vw, 48px); margin: 0; }
.facts dt { margin-bottom: 4px; font-size: 13.5px; color: rgba(244, 247, 246, .6); }
.facts dd { margin: 0; font-size: 17px; font-weight: 500; white-space: nowrap; }

/* how it works */
.steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 40px); }
.fig { aspect-ratio: 4 / 3; margin: 0 0 20px; border-radius: 18px; overflow: hidden; }
.steps .n { display: block; margin-bottom: 8px; font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--label); }
.steps b { display: block; margin-bottom: 6px; font: var(--strong) 22px/1.25 var(--body), sans-serif; }
.steps p { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.55; max-width: 38ch; }
.f-photo .print { position: absolute; z-index: 1; width: 40%; right: 13%; top: 11%; transition: transform .5s cubic-bezier(.2, .7, .1, 1); }
.f-photo:hover .print { transform: translateY(-5px); }
.f-photo .pill.dark { left: 13%; top: 30%; }
.f-photo .pill:not(.dark) { left: 22%; bottom: 20%; }
.f-dims svg { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; }
.f-dims polygon { stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.f-dims .top { fill: #fff; } .f-dims .fl { fill: #f4f7f6; } .f-dims .fr { fill: #dce7e4; }
.f-dims .hid { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; opacity: .3; }
.f-dims .dm { stroke: var(--label); stroke-width: 1.5; } .f-dims .dt { fill: var(--label); }
.f-dims text { font: 500 14px var(--mono); fill: var(--ink); text-anchor: middle; }
.f-dims .unit { position: absolute; z-index: 1; left: 16px; bottom: 12px; font-size: 13px; color: var(--soft); }
.f-model img { position: absolute; z-index: 1; inset: 4% 8% 4% 8%; width: 84%; height: 92%; object-fit: contain; }
.f-model .pill { left: 16px; bottom: 14px; }

/* the files: a black tray, the same black as the start bar */
.tray { list-style: none; margin: 0 auto; padding: 6px clamp(18px, 2.8vw, 44px); border-radius: 24px; background: var(--ink); color: #f4f7f6; }
.tray li { display: grid; grid-template-columns: 46px minmax(0, 330px) minmax(0, 1fr); align-items: center; gap: clamp(14px, 2vw, 30px); padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .13); }
.tray li:first-child { border-top: 0; }
.tray .doc { background: #f4f7f6; color: var(--ink); }
.tray .fname { font: 500 15px/1.35 var(--mono); text-align: right; overflow-wrap: anywhere; }
.tray span { color: rgba(244, 247, 246, .76); font-size: 16.5px; line-height: 1.55; }
.tray .main { padding: 32px 0; }
.tray .main .fname { font-size: 18px; color: var(--mark); }

/* the library: two rows of models that never stop */
.wall { --w: 232px; display: grid; gap: 14px; max-width: none !important; margin-inline: calc(var(--pad) * -1) !important; direction: ltr; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.wall .row { display: flex; gap: 14px; width: max-content; animation: drift 80s linear infinite; }
.wall .row:nth-child(2) { animation-direction: reverse; animation-duration: 96s; }
.wall:hover .row, .wall.held .row { animation-play-state: paused; }
.wall .tile { flex: none; width: var(--w); aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; cursor: zoom-in; }
.wall .tile.away { visibility: hidden; }
/* a wall picture, opened: the same picture grown from its place, then the live model, straight on the screen
   (17/11: he asked for it without the box around it). The page behind goes pale and soft, so dark models stay readable. */
.zoom { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(7, 8, 9, 0); pointer-events: none; cursor: zoom-out; transition: background .45s; }
.zoom.on { background: rgba(238, 242, 241, .95); pointer-events: auto; }   /* no blur: in the check pictures the model came out washed over a blurred layer, and a blur of the whole page is heavy */
.zoom-card { position: relative; width: min(96vw, 1280px, calc(84vh * 4 / 3)); aspect-ratio: 4 / 3; opacity: 0; transform-origin: 0 0; transition: transform .46s cubic-bezier(.2, .7, .1, 1); }
.zoom.on .zoom-card, .zoom.closing .zoom-card { opacity: 1; }
.zoom-pic, .zoom-view { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; transition: opacity .35s; }
.zoom-pic { object-fit: contain; }
.zoom-view { opacity: 0; cursor: grab; }
.zoom-view canvas { display: block; width: 100% !important; height: 100% !important; }
.zoom.live .zoom-view { opacity: 1; } .zoom.live .zoom-pic { opacity: 0; }
.zoom-what { display: flex; gap: 18px; margin: 0; color: var(--ink); font-size: 15px; opacity: 0; transition: opacity .3s; }
.zoom-what span:last-child { opacity: .62; }
.zoom.live .zoom-what { opacity: 1; }
html.zoomed { overflow: hidden; }
.wall .tile img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2, .7, .1, 1); }
.wall .tile:hover img { transform: scale(1.1); }
@keyframes drift { to { transform: translateX(calc(-50% - 7px)); } }

/* plans */
/* the month/year choice lives inside the one plan it applies to */
.phd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 36px; margin: 0 0 10px; }
.bill { display: flex; width: fit-content; gap: 3px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .11); }
.bill button { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border: 0; border-radius: 7px; background: none; color: rgba(244, 247, 246, .82); cursor: pointer; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.bill button i { font-style: normal; font-size: 12px; padding: 2px 6px 3px; border-radius: 5px; background: rgba(26, 244, 205, .18); color: var(--brand); }
.bill button[aria-pressed="true"] { background: var(--mark); color: var(--ink); }
.bill button[aria-pressed="true"] i { background: var(--ink); color: var(--mark); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); align-items: stretch; }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; padding: 0 clamp(18px, 1.8vw, 28px) clamp(18px, 1.8vw, 28px); border-radius: 24px; background: var(--sheet); box-shadow: inset 0 0 0 1px rgba(7, 8, 9, .09); overflow: hidden; }
.plan .stack { display: grid; place-items: end center; height: 190px; margin: 0 calc(clamp(18px, 1.8vw, 28px) * -1) 22px; padding-bottom: 22px; overflow: hidden; }
.plan .stack svg { position: relative; z-index: 1; overflow: visible; }
.blk { opacity: 0; transform: translateY(-7px); transition: opacity .35s, transform .5s cubic-bezier(.2, .9, .2, 1); transition-delay: calc(var(--d) * 34ms + 250ms); }
.on .blk, html:not(.js) .blk { opacity: 1; transform: none; }
.plan h3 { margin: 0; font: var(--strong) 20px/1.2 var(--body), sans-serif; }
.amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; }
.amt b { font: var(--dw) clamp(44px, 4.2vw, 66px)/1 var(--disp), sans-serif; letter-spacing: var(--dtrack); }
.amt s { font: 500 clamp(22px, 2vw, 30px)/1 var(--disp), sans-serif; color: rgba(244, 247, 246, .62); text-decoration-thickness: 2px; text-decoration-color: var(--mark); }
.amt > span { flex-basis: 100%; font-size: 15px; color: var(--soft); }
.amt > span.per { margin-top: 2px; font-size: 16px; font-weight: var(--strong); color: var(--ink); }   /* the price per model: what a larger plan saves (his word, 19/11) */
.plan.best .amt > span.per { color: #f4f7f6; }
.amt > span.star { font-size: 13.5px; }
.incl { list-style: none; display: grid; align-content: start; gap: 9px; margin: 6px 0 24px; padding: 16px 0 0; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.35; }
.incl li { position: relative; padding-inline-start: 25px; }
.incl li::before { content: ""; position: absolute; inset-inline-start: 3px; top: .34em; width: 11px; height: 6px; border: solid currentColor; border-width: 0 0 1.7px 1.7px; transform: rotate(-45deg); }
.incl li b { font-weight: var(--strong); }
.incl li small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--soft); }
.plan.best .incl li small { color: rgba(244, 247, 246, .72); }
.plan.best .incl li.plus b { color: var(--brand); }   /* the second half of the offer: the main library, free, on top of the builds */
.plan.best .incl { border-top-color: rgba(255, 255, 255, .17); }
.plan.best .incl li::before { border-color: var(--brand); }
.plan .cta, .plan .btn { width: 100%; }
.plan .cta { box-shadow: inset 0 0 0 1.5px var(--ink); }
.plan.best { background: var(--ink); color: #f4f7f6; box-shadow: none; }
.plan.best .stack { background: radial-gradient(60% 80% at 50% 100%, rgba(26, 244, 205, .16), transparent 70%); }
.plan.best .amt b { color: var(--mark); }
.plan.best .amt > span { color: rgba(244, 247, 246, .78); }
.flag { position: absolute; z-index: 2; top: 16px; inset-inline-start: 16px; padding: 4px 11px 5px; border-radius: 8px; background: var(--mark); color: var(--ink); font-size: 14px; font-weight: var(--strong); }
[data-bill="m"] .y, [data-bill="y"] .m { display: none; }
.btn { display: grid; place-items: center; height: 48px; padding: 0 20px; border: 0; border-radius: 10px; background: none; box-shadow: inset 0 0 0 1.5px currentColor; cursor: pointer; white-space: nowrap; font-weight: var(--strong); }
.btn.primary { background: var(--mark); color: var(--ink); box-shadow: none; }
.btn.ink { background: var(--ink); color: #f4f7f6; box-shadow: none; }
/* offices: the fourth plan, a full card laid on its side (as a thin grey strip it read "poor" to him) */
.office { display: grid; grid-template-columns: minmax(230px, .9fr) minmax(0, 1fr) minmax(0, 1.05fr) auto; align-items: center; gap: 0 clamp(20px, 2.8vw, 48px); margin-top: clamp(12px, 1.6vw, 22px) !important; padding-inline-end: clamp(18px, 1.8vw, 28px); border-radius: 24px; background: var(--sheet); box-shadow: inset 0 0 0 1px rgba(7, 8, 9, .09); overflow: hidden; }
.office .stack { display: grid; place-items: center; align-self: stretch; min-height: 204px; overflow: hidden; }
.office .stack svg { position: relative; z-index: 1; width: auto; height: 152px; overflow: visible; }
.office .blk { transition-delay: calc(var(--d) * 11ms + 250ms); }
.office h3 { margin: 0 0 10px; font: var(--strong) 20px/1.2 var(--body), sans-serif; }
.office .amt { margin: 0; }
.office .amt b { font-size: clamp(36px, 3.5vw, 56px); white-space: nowrap; }
.office .incl { margin: 0; padding: 0; border-top: 0; }
.terms { margin: 20px auto 0; font-size: 15px; color: var(--soft); line-height: 1.6; }

/* questions */
.qa { margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 6vw, 110px); }
.qa > div { padding: 24px 0 28px; border-top: 1px solid var(--rule); }
.qa dt { margin-bottom: 8px; font: var(--strong) 20px/1.3 var(--body), sans-serif; }
.qa dd { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.6; max-width: 54ch; }

/* the end: the start bar once more, on a floor of the same grid */
.end { position: relative; overflow: hidden; margin-top: clamp(60px, 7vw, 110px); padding: clamp(60px, 7vw, 110px) var(--pad) clamp(190px, 19vw, 290px); display: grid; justify-items: center; text-align: center; }
.end > :not(.floor) { position: relative; z-index: 1; }
.end-h { margin: 0 0 28px; font: var(--dw) calc(var(--dsize) * .74)/1.06 var(--disp), sans-serif; letter-spacing: var(--dtrack); max-width: 16ch; }
.end .tool { width: min(860px, 100%); text-align: start; }
.floor { position: absolute; left: -30%; right: -30%; bottom: -24px; height: 760px; transform-origin: 50% 100%; transform: perspective(460px) rotateX(63deg);
  background-image: linear-gradient(var(--grid-major) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--grid-major) 1.5px, transparent 1.5px); background-size: 60px 60px; background-position: center bottom;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 82%); mask-image: linear-gradient(to top, #000 0%, transparent 82%); }

.foot { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 30px; padding: 34px var(--pad) 44px; background: var(--ink); color: #f4f7f6; }
.foot nav { display: flex; gap: 22px; justify-content: flex-end; font-size: 15.5px; }
.foot p { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: rgba(244, 247, 246, .6); }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 26px; transform: translate(-50%, 16px); opacity: 0; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #f4f7f6; font-size: 15.5px; transition: opacity .3s, transform .3s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .blk { transition: none; }
  .wall .row { animation: none; }
}

@media (max-width: 1279px) {   /* no room for one line: the three ways sit above the field */
  .tool { display: block; }
  .tool .modes { padding: 1px 1px 6px; }
  .tool .modes button { height: 34px; border-radius: 9px; }
}
@media (max-width: 1099px) {
  .outcome { flex-direction: column; align-items: stretch; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan .stack { height: 150px; }
  .office { grid-template-columns: minmax(200px, .8fr) minmax(0, 1fr) auto; }
  .office .incl { display: none; }
}
@media (max-width: 899px) {
  :root { --pad: 16px; }
  .nav { height: 60px; gap: 12px; }
  .nav::before { inset: 6px 8px; }
  .nav nav, .enter, .hint, .shelf::before { display: none; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 0 16px 34px; }
  #scene { order: 0; position: relative; inset: auto; height: max(60vh, 440px); margin: -22px -16px 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 86%, transparent 100%); }
  .plate { order: 1; position: static; transform: none; margin: 2px 0 12px; text-align: start; white-space: normal; }
  .shelf { order: -1; position: relative; left: auto; top: auto; transform: none; grid-auto-flow: column; justify-content: center; align-items: start; gap: 10px; height: 0; margin: 26px 0 0; }   /* the samples stand in the room, in a row above the main model, as on the desktop */
  .say, .promise { display: contents; }   /* on a phone the headline comes first, then the tool, then the model */
  h1 { order: -3; margin: 18px 0 20px; }
  h1 .l3 { display: none; }
  .ask { order: -2; width: auto; margin-inline-start: 0; text-align: start; }
  .got { order: 3; display: flex; align-items: center; gap: 9px; margin: 14px 0 14px; font: 500 17px/1.2 var(--body), sans-serif; color: var(--ink); }
  .files { order: 4; }
  .end { margin-top: 20px; padding-top: 48px; padding-bottom: 150px; }
  .slot { width: 78px; height: auto; grid-template-rows: 70px auto; }
  .slot .tag { width: auto; max-width: 100%; font-size: 12px; }
  :root { --dsize: 11.5vw; }
  .sub { font-size: 17px; margin-bottom: 16px; }
  .tool .modes button { flex: 1; padding: 0 6px; }
  .tool .bar { flex-wrap: wrap; }
  .tool .link { flex: 1 1 100%; }
  .tool .bar .cta { flex: 1 1 calc(100% - 8px); }
  .files { gap: 14px; justify-content: space-between; }
  .sh { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pair .to { width: 1.5px; height: 34px; margin: 12px 0; }
  .pair .to::after { left: -4.5px; top: auto; bottom: -1px; transform: rotate(-45deg); }
  .facts { flex-wrap: wrap; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .tray li { grid-template-columns: 46px minmax(0, 1fr); }
  .tray span { grid-column: 1 / -1; }
  .wall { --w: 168px; }
  .office { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0 16px 18px; }
  .office .stack { margin: 0 -16px; min-height: 150px; }
  .office .stack svg { height: 112px; }
  .office .incl { display: grid; }
  .qa { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot nav { justify-content: flex-start; flex-wrap: wrap; }
}
@media (min-width: 620px) and (max-width: 899px) {   /* a tablet held upright: the phone's order, with room for three steps across */
  :root { --dsize: 64px; }
  .files { justify-content: flex-start; gap: 34px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .steps b { font-size: 19px; }
  .steps p { font-size: 15.5px; }
}

/* ---------------------------------------------------------------- the sign-in card (19/11) */
.signin { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(7, 8, 9, .62); }
.signin[hidden] { display: none; }
.si-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); width: min(880px, 100%); max-height: calc(100vh - 32px); border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.si-form { position: relative; display: grid; align-content: center; gap: 14px; padding: 44px 40px 36px; overflow-y: auto; }
.si-x { position: absolute; top: 14px; inset-inline-start: 14px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: none; font-size: 24px; line-height: 1; cursor: pointer; }
.si-x:hover { background: var(--paper); }
.si-form h2 { margin: 0; font: var(--dw) 34px/1.05 var(--disp), sans-serif; letter-spacing: var(--dtrack); }
.si-sub { margin: -4px 0 8px; font-size: 16px; color: var(--soft); }
.si-g { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); font: inherit; font-size: 16.5px; font-weight: var(--strong); cursor: pointer; transition: background .2s; }
.si-g:hover { background: var(--paper); }
.si-sep { display: flex; align-items: center; gap: 12px; margin: 4px 0; font-size: 14.5px; color: var(--soft); }
.si-sep::before, .si-sep::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.si-mail { display: grid; gap: 8px; }
.si-mail input { height: 52px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--paper); font: inherit; font-size: 16.5px; text-align: left; }
.si-mail input:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; background: #fff; }
.si-mail .btn { height: 52px; font-size: 16.5px; }
.si-note { min-height: 21px; margin: 0; font-size: 14.5px; color: var(--soft); }
.si-legal { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--soft); }
.si-legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.si-legal a:hover { text-decoration-color: currentColor; }
.si-shot { display: grid; align-content: center; justify-items: center; gap: 18px; padding: 34px 28px; box-shadow: inset 1.5px 0 0 var(--ink); }
.si-mark { position: relative; width: 100%; height: 340px; cursor: grab; }   /* the logo's S, built in 3D inside its size box (19/11) */
.si-mark canvas { display: block; width: 100% !important; height: 100% !important; }
.si-given { max-width: 100%; margin: 0; padding: 12px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); font: 500 15px/1.45 var(--mono); overflow-wrap: anywhere; text-align: start; }
.si-cap { margin: 0; font-size: 15.5px; color: var(--soft); text-align: center; }
@media (max-width: 760px) {
  .si-box { grid-template-columns: minmax(0, 1fr); }
  .si-shot { display: none; }
  .si-form { padding: 46px 22px 26px; }
  .si-form h2 { font-size: 28px; }
}
