/* Navy and cream: bold grotesque headings with an italic serif, ruled facts, framed clips. */
:root {
  /* Grain: the tile size sets how coarse it is, the opacity how strong */
  --grain-cream-size: 270px;
  --grain-cream: 0.2;
  --grain-navy-size: 270px;
  --grain-navy: 0.2;
  --navy: #18245f;
  --navy-2: #1d2b6e;
  --ink: #111633;
  --night: #0b1030;
  --peri: #9fb6ff;
  --peri-2: #b9c8ff;
  --blue: #2c47c4;
  --cream: #f5f2ea;
  --cream-2: #ece8de;
  --line: rgba(17, 22, 51, 0.1);
  --text: #3d4466;
  --muted: #6d7391;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shadow: 0 30px 70px -30px rgba(17, 22, 51, 0.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--cream); }
body { position: relative; isolation: isolate; margin: 0; background: var(--cream); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* A fine grain over the whole page, behind everything on it (the navy sections carry their own) */
body::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("shared/grain-light.svg") 0 0 / var(--grain-cream-size) var(--grain-cream-size); opacity: var(--grain-cream); pointer-events: none; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.ico { width: 17px; height: 17px; flex: none; }
code, kbd { font: 500 0.82em var(--mono); padding: 2px 6px; border-radius: 6px; background: rgba(24, 36, 95, 0.08); color: var(--ink); white-space: nowrap; }
kbd { box-shadow: 0 1px 0 rgba(17, 22, 51, 0.15); background: #fff; }
.dark code, .dark kbd, .dev code, .dev kbd { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Dark grainy navy */
.dark { position: relative; background: var(--navy); color: #f4f4f5; isolation: isolate; }
/* Flat navy with a fine grain, one dot per screen pixel */
.dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("shared/grain-dark.svg") 0 0 / var(--grain-navy-size) var(--grain-navy-size); opacity: var(--grain-navy); pointer-events: none; }
.sans { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--blue); }
.dark .serif, .dev .serif { color: var(--peri); }

.btn { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15.5px; transition: transform 0.2s var(--ease), background-color 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* Hero */
.nav { display: flex; align-items: center; gap: 24px; max-width: 1152px; margin: 0 auto; padding: 20px 20px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font: 700 18px var(--display); letter-spacing: -0.02em; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 28px; font-size: 14.5px; color: rgba(255, 255, 255, 0.72); }
.nav nav a { display: inline-flex; align-items: center; gap: 6px; }
.nav nav a:hover { color: #fff; }
.nav nav .ico { width: 15px; height: 15px; }
.hero { display: flow-root; --shot: min(1152px, calc(100vw - 40px)); --spill: calc(var(--shot) * 0.28); }
.hero-in { max-width: 900px; margin: 0 auto; padding: 48px 20px 0; text-align: center; }
.hero-icon { margin: 0 auto 22px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 50px -10px rgba(0, 0, 0, 0.6); }
.hero h1 { color: #fff; line-height: 0.96; }
.hero h1 .sans { display: block; font-size: clamp(46px, 7.3vw, 84px); }
.hero h1 .serif { display: block; font-size: clamp(50px, 8vw, 92px); margin-top: 0.02em; }
.hero-sub { max-width: 560px; margin: 26px auto 0; color: rgba(255, 255, 255, 0.72); font-size: 17.5px; }
.hero-meta { margin-top: 18px; color: rgba(255, 255, 255, 0.55); font-size: 13.5px; }
.hero-meta a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.hero-shot { position: relative; z-index: 1; max-width: 1192px; margin: 56px auto calc(var(--spill) * -1); padding: 0 20px; transform: translateY(var(--lift, 40px)); transition: transform 1.2s var(--ease); }
/* The whole window, no frame, half over the navy and half over the page below */
.hero-shot video { display: block; width: 100%; aspect-ratio: 960 / 600; border-radius: 14px; box-shadow: 0 0 0 1px rgba(17, 22, 51, 0.1), 0 30px 70px -30px rgba(17, 22, 51, 0.45), 0 60px 120px -40px rgba(5, 8, 30, 0.45); background: #ecebf1; }

/* Facts, ruled like the reference's */
main { display: block; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1152px; margin: 0 auto; padding: 44px 20px 56px; }
.hero + main .facts { padding-top: calc(min(1152px, 100vw - 40px) * 0.28 + 64px); }
.facts > div { padding-left: 14px; border-left: 1px solid var(--line); }
.facts b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.facts span { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* The wavy band of features */
/* One navy band, grain and all, cut by a mask: 32 small scallops across the top and bottom edges */
.marquee { --edge: 24px; --scallop: calc(100vw / 32); padding: calc(var(--edge) + 20px) 0; margin: 8px 0 40px; overflow: hidden;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14Q11.25 5 22.5 14T45 14V28H0Z'/%3E%3C/svg%3E") 0 0 / var(--scallop) var(--edge) repeat-x, linear-gradient(#000, #000) 0 var(--edge) / 100% calc(100% - 2 * var(--edge)) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14Q11.25 23 22.5 14T45 14V0H0Z'/%3E%3C/svg%3E") 0 100% / var(--scallop) var(--edge) repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14Q11.25 5 22.5 14T45 14V28H0Z'/%3E%3C/svg%3E") 0 0 / var(--scallop) var(--edge) repeat-x, linear-gradient(#000, #000) 0 var(--edge) / 100% calc(100% - 2 * var(--edge)) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14Q11.25 23 22.5 14T45 14V0H0Z'/%3E%3C/svg%3E") 0 100% / var(--scallop) var(--edge) repeat-x; }
.marquee-track { display: flex; align-items: center; gap: 24px; width: max-content; padding-left: 24px; animation: slide 60s linear infinite; font: 600 24px/32px var(--display); letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.9); white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--peri); font-size: 14px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Feature rows */
.row { display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: 64px; max-width: 1152px; margin: 0 auto; padding: 56px 20px; }
.row-flip { grid-template-columns: 1.15fr 0.85fr; }
.row > * { min-width: 0; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow kbd { letter-spacing: 0; text-transform: none; font-size: 11px; color: var(--ink); }
.eyebrow-light { color: var(--peri); }
h2 { color: var(--ink); font: 700 clamp(34px, 4.2vw, 51px)/1.02 var(--display); letter-spacing: -0.035em; }
h2 .serif { font-size: 1.07em; }
.dark h2, .dev h2 { color: #fff; }
.row-copy > p { max-width: 460px; margin-top: 18px; font-size: 16.5px; }
.row-copy kbd { font-size: 0.78em; }
.row-media { padding: 14px; border-radius: 22px; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.6) inset; }
.row-media video, .card-media video, .band-media video { width: 100%; aspect-ratio: 960 / 560; border-radius: 12px; background: #ecebf1; box-shadow: 0 0 0 1px rgba(17, 22, 51, 0.08); }
.frame-lilac { background: linear-gradient(140deg, #e7e3ee, #d9d2f1 60%, #ecdcef); }
.frame-sky { background: linear-gradient(140deg, #e4edfb, #cfe0f6 60%, #e2f2ee); }
.frame-peach { background: linear-gradient(140deg, #f6e6da, #f3d5c4 60%, #f2dcdc); }
.frame-mint { background: linear-gradient(140deg, #e2f1ea, #cfe9de 60%, #e3ecf6); }
.frame-night { background: linear-gradient(140deg, #1d2b6e, #111633); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: #fff; box-shadow: 0 1px 0 rgba(17, 22, 51, 0.15); color: var(--ink); font-size: 13.5px; font-weight: 500; }
.tags span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); }

/* The theme editor you can use */
.themes { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; max-width: 1152px; margin: 40px auto; padding: 56px 20px; }
.themes > * { min-width: 0; }
.themes-copy > p { max-width: 430px; margin-top: 18px; font-size: 16.5px; }
.themes-hints { margin-top: 24px; display: grid; gap: 10px; }
.themes-hints li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 14.5px; }
.themes-hints li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); translate: 0 -2px; }
.themes-hints b { color: var(--ink); }
/* Framed like the clips above; the editor floats over the board as the app's popover does */
.themes-stage { position: relative; padding: 14px; border-radius: 22px; background: linear-gradient(140deg, #e7e3ee, #d9d2f1 60%, #ecdcef); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.6) inset; }

.mini { position: relative; aspect-ratio: 960 / 560; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 24px 50px -18px rgba(17, 22, 51, 0.5); font: 12px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--body); --side-text: #2a2340; --side-text-2: rgba(42, 35, 64, 0.6); --side-select: rgba(255, 255, 255, 0.5); --page: rgba(246, 245, 250, 0.95); --page-text: #1d1d1f; --lane: rgba(60, 50, 90, 0.06); --card: #fff; }
.mini[data-dark] { --side-text: #f1eefb; --side-text-2: rgba(241, 238, 251, 0.6); --side-select: rgba(255, 255, 255, 0.14); --page: rgba(40, 39, 46, 0.96); --page-text: #f2f2f7; --lane: rgba(255, 255, 255, 0.05); --card: #1f1e24; }
.mini-bg, .mini-grain { position: absolute; inset: 0; transition: background 0.25s ease; }
.mini-grain { background: url("shared/grain.svg"); mix-blend-mode: multiply; opacity: 0; }
.mini[data-dark] .mini-grain { mix-blend-mode: screen; }
.mini-lights { position: absolute; top: 12px; left: 13px; display: flex; gap: 6px; }
.mini-lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mini-lights i:nth-child(2) { background: #febc2e; }
.mini-lights i:nth-child(3) { background: #28c840; }
.mini-side { position: absolute; left: 0; top: 0; bottom: 0; width: 124px; padding: 38px 9px 0; color: var(--side-text); transition: color 0.2s; }
.mini-search { display: flex; justify-content: space-between; height: 24px; padding: 0 9px; margin-bottom: 8px; border-radius: 8px; background: var(--side-select); color: var(--side-text-2); line-height: 24px; font-size: 11px; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.4); }
.mini-row { display: flex; align-items: center; gap: 7px; height: 22px; padding: 0 8px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row.on { background: var(--side-select); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.4); }
.mini-row i { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.mini-head { margin: 9px 8px 1px; color: var(--side-text-2); font-size: 10px; font-weight: 600; }
.mini-page { position: absolute; left: 124px; top: 7px; right: 7px; bottom: 7px; border-radius: 10px; background: var(--page); color: var(--page-text); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08); overflow: hidden; transition: background 0.2s; }
.mini-headbar { display: flex; white-space: nowrap; gap: 5px; height: 36px; align-items: center; padding: 0 12px; border-bottom: 0.5px solid rgba(127, 127, 140, 0.2); font-size: 12px; }
.mini-headbar span { opacity: 0.6; }
/* Lanes at a real width: two fit, the third runs off, and the board scrolls sideways as in the app */
.mini-lanes { display: grid; grid-template-columns: repeat(4, minmax(76px, 1fr)); gap: 7px; padding: 9px 9px 4px; height: calc(100% - 36px); overflow-x: auto; overscroll-behavior-x: contain; }
.mini-lanes::-webkit-scrollbar { height: 9px; }
.mini-lanes::-webkit-scrollbar-track { background: transparent; }
.mini-lanes::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 9px; background: rgba(0, 0, 0, 0.22) padding-box; }
.mini[data-dark] .mini-lanes::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.28) padding-box; }
@supports not selector(::-webkit-scrollbar) { .mini-lanes { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.25) transparent; } }
.mini-lanes div { border-radius: 8px; background: var(--lane); padding: 7px; }
.mini-lanes p { margin-bottom: 7px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.mini-lanes i { display: block; height: 46px; margin-bottom: 6px; border-radius: 7px; background: var(--card); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.07); }
.mini-lanes i.short { height: 34px; }

/* Hangs past the window's right edge where the page has room, so the lanes stay in view */
.editor { position: absolute; right: calc(18px - clamp(0px, (100vw - 1160px) * 0.55, 128px)); top: 50%; z-index: 2; translate: 0 -50%; scale: 0.74; transform-origin: right center; width: 254px; padding: 10px; border-radius: 18px; background: rgba(236, 235, 240, 0.96); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 22px 50px -16px rgba(17, 22, 51, 0.45); color: #3a3a44; user-select: none; -webkit-user-select: none; }
.editor button { border: 0; background: none; cursor: pointer; }
/* A handwritten "Try it out!" with an arrow drawn down to the editor; it draws itself in when the section shows */
.try-note { position: absolute; left: -196px; top: -118px; width: 210px; height: 130px; color: var(--blue); pointer-events: none; }
.try-note span { position: absolute; left: -14px; top: -28px; font: 600 38px/1 Caveat, "Bradley Hand", cursive; white-space: nowrap; rotate: -7deg; }
.try-note svg { position: absolute; inset: 0; overflow: visible; }
.try-note path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.7s cubic-bezier(0.45, 0, 0.25, 1) 0.5s; }
.try-note .try-head { transition-duration: 0.25s; transition-delay: 1.15s; }
.try-note span { opacity: 0; transition: opacity 0.5s ease 0.2s; }
.themes-stage.is-in .try-note path { stroke-dashoffset: 0; }
.themes-stage.is-in .try-note span { opacity: 1; }
.ed-pad { padding: 8px 6px 6px; border-radius: 14px; background: rgba(0, 0, 0, 0.045); }
.ed-modes { display: flex; justify-content: center; gap: 10px; }
.ed-modes button { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 9px; color: #6b6b75; transition: background-color 0.2s, color 0.2s; }
.ed-modes button svg { width: 18px; height: 18px; }
.ed-modes button[aria-checked="true"] { background: rgba(0, 0, 0, 0.07); color: #1d1d1f; }
.ed-field { position: relative; width: 222px; height: 186px; margin: 4px auto 0; touch-action: none; cursor: crosshair; }
.ed-field canvas { width: 100%; height: 100%; }
.ed-handle { position: absolute; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3); translate: -50% -50%; cursor: grab; transition: border-width 0.15s; }
.ed-handle[data-selected] { border-width: 5px; }
.ed-count { display: flex; justify-content: center; gap: 30px; margin-top: 2px; }
.ed-count button { width: 30px; height: 26px; font-size: 20px; line-height: 1; color: #6b6b75; border-radius: 8px; }
.ed-count button:hover:not(:disabled) { background: rgba(0, 0, 0, 0.06); }
.ed-count button:disabled { opacity: 0.3; cursor: default; }
.ed-presets { display: grid; grid-template-columns: 16px 1fr 16px; align-items: center; gap: 4px; margin: 12px 0 10px; }
.ed-presets > button { color: #8a8a93; font-size: 18px; line-height: 1; padding: 0; }
#swatches { display: flex; justify-content: space-between; }
#swatches button { width: 19px; height: 19px; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15); transition: transform 0.15s; }
#swatches button:hover { transform: scale(1.15); }
.ed-bottom { display: flex; align-items: center; gap: 12px; }
.ed-wave { position: relative; flex: 1; height: 34px; padding: 0 6px; border-radius: 17px; background: rgba(0, 0, 0, 0.06); color: #b9b9c1; cursor: ew-resize; touch-action: none; }
.ed-wave svg { width: 100%; height: 100%; }
.ed-wave i { position: absolute; top: -5px; width: 16px; height: 44px; margin-left: -8px; border-radius: 9px; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); }
.ed-dial { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px dotted #b9b9c1; cursor: grab; touch-action: none; }
.ed-dial i { position: absolute; inset: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); rotate: var(--turn, -150deg); }
.ed-dial i::after { content: ""; position: absolute; left: 50%; top: -11px; width: 4px; height: 11px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }

/* Two cards */
.only { max-width: 1152px; margin: 0 auto; padding: 56px 20px 88px; }
.only-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.card { padding: 14px 14px 26px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.card-media { padding: 12px; border-radius: 16px; }
.card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 12px 0; color: var(--ink); font: 700 24px/1.15 var(--display); letter-spacing: -0.03em; }
.card h3 kbd { font-size: 12px; }
.card p { margin: 10px 12px 0; font-size: 15.5px; }

/* Your data */
.band-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1152px; margin: 0 auto; padding: 104px 20px; }
.band-in > * { min-width: 0; }
.band-copy > p { max-width: 480px; margin-top: 18px; color: rgba(255, 255, 255, 0.72); font-size: 16.5px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 34px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; column-gap: 10px; }
.checks svg { grid-row: span 2; width: 20px; height: 20px; color: var(--peri); translate: 0 2px; }
.checks b { color: #fff; font-size: 15px; font-weight: 600; }
.checks span { color: rgba(255, 255, 255, 0.55); font-size: 13.5px; line-height: 1.45; }
.band-media video { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 120px -30px rgba(5, 8, 30, 0.75); }

/* And the rest */
.rest { max-width: 1152px; margin: 0 auto; padding: 104px 20px 40px; }
.rest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 32px; margin-top: 44px; }
.rest-grid > div { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
.rest-grid svg { grid-row: span 2; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #fff; color: var(--blue); box-shadow: 0 1px 0 rgba(17, 22, 51, 0.15); }
.rest-grid b { color: var(--ink); font-size: 15px; font-weight: 600; }
.rest-grid span { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Benchmark */
.bench { max-width: 1152px; margin: 0 auto; padding: 72px 20px 40px; text-align: center; }
.bench .eyebrow { justify-content: center; }
.bench-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.bench-grid div { padding: 26px 12px 22px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(17, 22, 51, 0.15); }
.bench-grid b { display: block; color: var(--ink); font: 700 clamp(30px, 3.6vw, 44px)/1 var(--display); letter-spacing: -0.035em; }
.bench-grid span { display: block; margin-top: 8px; color: var(--blue); font: italic 19px var(--serif); }
.bench-note { margin-top: 18px; color: var(--muted); font-size: 13px; }

/* Developers */
.dev { max-width: 1152px; margin: 0 auto; padding: 56px 20px; color: #f4f4f5; }
.dev-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 48px 40px; border-radius: 22px; background: var(--navy); box-shadow: var(--shadow); position: relative; isolation: isolate; overflow: hidden; }
.dev-in::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("shared/grain-dark.svg") 0 0 / var(--grain-navy-size) var(--grain-navy-size); opacity: var(--grain-navy); pointer-events: none; }
.dev-in > * { min-width: 0; }
.dev-copy > p { margin-top: 18px; color: rgba(255, 255, 255, 0.72); font-size: 15.5px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pills span { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); font-size: 13px; }
.dev-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; color: #fff; font-weight: 600; font-size: 14.5px; }
.dev-link svg { width: 16px; height: 16px; }
.term { border-radius: 12px; background: var(--night); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -25px rgba(0, 0, 0, 0.7); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: auto; margin-right: auto; translate: -24px 0; color: rgba(255, 255, 255, 0.4); font-size: 12px; }
.term pre { margin: 0; padding: 8px 18px 22px; overflow-x: auto; color: #e7e9ff; font: 13px/1.85 var(--mono); }
.term .c { color: rgba(255, 255, 255, 0.4); }
.term .ok { color: #7ee2a8; }

/* FAQ, two columns, answers open */
.faq { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; max-width: 1152px; margin: 0 auto; padding: 72px 20px 104px; }
.faq > * { min-width: 0; }
.faq-side > p { margin-top: 16px; color: var(--muted); }
.faq-side a { color: var(--blue); font-weight: 500; }
.faq-list dt { padding-top: 22px; color: var(--ink); font-weight: 600; font-size: 16px; }
.faq-list dd { padding: 8px 0 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.faq-list dt:first-child { padding-top: 0; }

/* Download */
.get { padding: 104px 20px 0; text-align: center; }
.get-icon { margin: 0 auto 22px; border-radius: 17px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 50px -10px rgba(0, 0, 0, 0.6); }
.get h2 { font-size: clamp(42px, 5.4vw, 67px); }
.get h2 .serif { font-size: 1.07em; }
.get-sub { max-width: 480px; margin: 20px auto 0; color: rgba(255, 255, 255, 0.72); font-size: 17px; }
.get-meta { margin-top: 20px; color: rgba(255, 255, 255, 0.5); font-size: 13px; line-height: 1.8; }
.get-meta a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; margin: 52px auto 0; text-align: left; }
.steps li { padding: 20px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-size: 12px; }
.steps b { display: block; margin-top: 18px; color: #fff; font-size: 15px; }
.steps p { margin-top: 4px; color: rgba(255, 255, 255, 0.55); font-size: 13.5px; line-height: 1.5; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; max-width: 1152px; margin: 88px auto 0; padding: 24px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.5); font-size: 13px; }
.foot span { display: inline-flex; align-items: center; gap: 8px; }
.foot img { border-radius: 4px; }
.foot nav { display: flex; gap: 18px; }
.foot a:hover { color: #fff; }

/* Coming into view */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* Narrower screens */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .row, .row-flip, .themes, .band-in, .dev-in, .faq { grid-template-columns: 1fr; gap: 32px; }
  .row-flip .row-media { order: 2; }
  .rest-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .bench-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .row, .row-flip, .themes, .only, .rest, .bench, .faq { padding-left: 16px; padding-right: 16px; }
  .nav { padding: 16px; }
  .hero-in { padding-top: 32px; }
  .hero { --shot: calc(100vw - 24px); }
  .hero-shot { padding: 0 12px; margin-top: 40px; }
  .hero-shot video { border-radius: 9px; }
  .facts { padding: 32px 16px 40px; gap: 18px; }
  .hero + main .facts { padding-top: calc((100vw - 24px) * 0.28 + 40px); }
  .only-grid, .checks, .rest-grid, .steps { grid-template-columns: 1fr; }
  .band-in { padding: 72px 16px; }
  .dev { padding: 40px 12px; }
  .dev-in { padding: 32px 20px; }
  .row-media, .themes-stage { padding: 10px; border-radius: 18px; }
  .editor { position: relative; right: auto; top: auto; translate: none; scale: 1; margin: -36px auto 2px; }
  .try-note { display: none; }
  /* A phone is too narrow for the window's usual shape: taller, with a compact sidebar, and the lanes scroll */
  .mini { aspect-ratio: auto; height: 330px; }
  .mini-side { width: 108px; padding: 34px 7px 0; }
  .mini-page { left: 108px; }
  .mini-row { height: 21px; font-size: 11.5px; }
  .mini-search { font-size: 10.5px; padding: 0 7px; }
  .marquee { --edge: 16px; }
  .marquee-track { font-size: 20px; line-height: 28px; }
  .foot { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .try-note path { stroke-dashoffset: 0; transition: none; }
  .try-note span { opacity: 1; transition: none; }
  .hero-shot { transform: none; transition: none; }
}
