/* The v3 layout (templates/v3.tmpl, tool_v3.tmpl). Every colour, family and
   radius is a design token the site's config writes to :root (the build
   pack's tokens.css names); nothing here belongs to one brand. One switch at
   768px: the 1440 board above it (content 1200, gutter 120), the 390 board
   below it (content 342, gutter 24). Logical properties, so rtl mirrors. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.v3 { margin: 0; background: var(--kit-color-ground); color: var(--kit-color-ink); font-family: var(--kit-font-body), ui-sans-serif, system-ui, sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
:where(.v3) a { color: inherit; }
:where(.v3) :is(h1, h2, h3) { margin: 0; font-family: var(--kit-font-display), ui-sans-serif, system-ui, sans-serif; font-weight: var(--font-weight-brand); letter-spacing: var(--font-letter-spacing-brand); color: inherit; }
:where(.v3) p { margin: 0; }
.v3 [hidden] { display: none !important; }
.v3 :focus-visible { outline: 2px solid var(--kit-color-ink); outline-offset: 2px; }
.v3-narrow { display: none; }
.v3-mono, .v3w-spec, .v3-note { font-family: var(--kit-font-mono), ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.4; color: var(--kit-color-ink-muted); }
.v3-i { flex: none; }

/* Buttons: pills. */
.v3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius-full);
  font: 600 16px/1 var(--kit-font-body), system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.v3-btn-ink { background: var(--kit-color-ink); color: var(--color-on-primary); box-shadow: var(--shadow-y4-b14); }
.v3-btn-raised { background: var(--kit-color-raised); color: var(--kit-color-ink); border-color: rgb(20 20 20 / .2); }
.v3-btn-line { background: var(--kit-color-raised); color: var(--kit-color-ink); border-color: var(--kit-color-edge); }
.v3-btn-sm { height: 32px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.v3-btn-wide { width: 100%; }
.v3-btn:disabled { opacity: .55; cursor: default; }
.v3w .v3-btn-ink, .v3-buy .v3-btn-ink, .tp-dialog .v3-btn-ink { box-shadow: none; }

/* Nav. */
.v3-nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 16px 32px; border-bottom: 1px solid rgb(20 20 20 / .1); }
.v3-lockup { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: var(--font-weight-brand) 18px/1.2 var(--kit-font-display), sans-serif; letter-spacing: var(--font-letter-spacing-brand); color: var(--kit-color-ink); }
.v3-lockup img { display: block; border-radius: var(--radius-md); }
.v3-nav-links { position: absolute; inset-inline-start: 50%; transform: translateX(-50%); display: flex; gap: 32px; }
[dir=rtl] .v3-nav-links { transform: translateX(50%); }
.v3-nav-links a { font-size: 14px; font-weight: 500; text-decoration: none; color: rgb(20 20 20 / .9); }
.v3-nav-end { display: flex; align-items: center; gap: 24px; }
.v3-nav .ts-acct { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.v3-nav .tp-link { font-weight: 500; text-decoration: none; }
.v3-burger { display: none; }
.v3-top { background: var(--kit-color-accent); }

/* S0 hero. */
.v3-hero { position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--kit-color-accent) 0%, var(--kit-color-accent) 50%, var(--kit-color-ground) 86%); }
.v3-hero::before { content: ""; position: absolute; inset: 0; background: url(/static/v3/dotgrid-24.png) 0 0 / 24px 24px; opacity: .5; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, #000 100%); mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, #000 100%); }
.v3-hero-in { position: relative; max-width: 1440px; margin: 0 auto; padding: 86px 120px 160px; text-align: center; }
.v3-eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px 0 4px; border-radius: var(--radius-full); background: rgb(255 255 255 / .9); border: 1px solid rgb(20 20 20 / .1);
  font-size: 14px; font-weight: 600; }
.v3-badges { display: inline-flex; }
.v3-badges img { width: 28px; height: 28px; object-fit: contain; margin-inline-start: -8px; }
.v3-badges img:first-child { margin-inline-start: 0; }
.v3-hero h1 { margin: 26px auto 0; max-width: 1300px; font-size: 96px; line-height: 1; text-wrap: balance; }
.v3-hero h1, .v3-close h2 { max-inline-size: 11.5em; }
.v3-lead { margin: 30px auto 0; max-width: 720px; font-size: 20px; line-height: 1.5; }
.v3-ctas { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.v3-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; height: 24px; padding: 0 12px; border-radius: var(--radius-full); background: var(--kit-color-raised); }
.v3-loose { position: absolute; z-index: 2; pointer-events: none; height: auto; filter: drop-shadow(0 4px 12px rgb(17 17 17 / .1)); }
.v3-loose-hero-low-start { inset-inline-start: 22px; bottom: 38px; width: 160px; transform: rotate(-9deg); }
.v3-loose-hero-high-end { inset-inline-start: 1246px; top: 502px; width: 150px; transform: rotate(11deg); }

/* The tool window. */
.v3w { position: relative; z-index: 1; width: 100%; max-width: 1200px; min-height: 700px; margin: 84px auto 0; text-align: start; background: var(--kit-color-raised);
  border: 1px solid var(--kit-color-line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-y24-b64); }
.v3w-bar { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 48px; border-bottom: 1px solid var(--kit-color-line); }
.v3w-file { display: none; align-items: center; gap: 12px; min-width: 0; }
.v3w:not([data-state=idle]) .v3w-file { display: flex; }
.v3w-thumb { width: 32px; height: 32px; object-fit: cover; border-radius: var(--radius-md); }
.v3w-file strong { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.v3w-file span { font-size: 13px; color: var(--kit-color-ink-muted); white-space: nowrap; }
.v3w-chips { display: flex; gap: 8px; margin-inline-start: auto; }
.v3w-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--radius-full); background: var(--kit-color-surface); font-size: 13px; font-weight: 500; white-space: nowrap; }
.v3w-chip-ok { display: none; background: var(--kit-color-success-soft); color: var(--kit-color-success); }
.v3w[data-state=result] .v3w-chip-ok { display: inline-flex; }
.v3w:not([data-state=idle]) .v3w-chip-idle { display: none; }
.tp-modes, .v3-seg { display: flex; gap: 0; padding: 4px; height: 40px; background: var(--kit-color-surface); border-radius: var(--radius-lg); }
.tp-mode, .v3-seg button { flex: 1; padding: 0 16px; border: 0; border-radius: var(--radius-md); background: none; font: 500 14px/1 var(--kit-font-body), sans-serif; color: var(--kit-color-ink-muted); cursor: pointer; white-space: nowrap; }
.tp-mode[aria-selected=true], .v3-seg button[aria-pressed=true] { background: var(--kit-color-raised); color: var(--kit-color-ink); font-weight: 600; box-shadow: var(--shadow-y1-b3); }
.v3w-body { display: grid; grid-template-columns: 320px minmax(0, 736px); column-gap: 48px; justify-content: space-between; padding: 40px 48px 48px; }
.v3w-body-one { grid-template-columns: 1fr; }
.v3w-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.v3w-label { display: block; margin: 0; padding: 0; font-size: 13px; font-weight: 500; line-height: 18px; color: var(--kit-color-ink-muted); }
.v3w-gap { margin-top: 24px; }
.v3w-box { display: grid; place-items: center; align-content: center; gap: 6px; width: 100%; height: 240px; border-radius: var(--radius-lg); border: 1px solid var(--kit-color-line); background: var(--kit-color-surface); overflow: hidden; text-align: center; }
.tp-drop { border: 1.5px dashed var(--kit-color-edge); cursor: pointer; padding: 16px; }
.tp-drop[data-over], .v3w-stage[data-over] { border-color: var(--kit-color-ink); background-color: var(--kit-color-accent-soft); }
.tp-drop strong { font-size: 15px; font-weight: 600; }
.tp-drop span { font-size: 13px; color: var(--kit-color-ink-muted); }
.tp-file-name:empty { display: none; }
.v3-icon-box { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border: 1px solid var(--kit-color-edge); border-radius: var(--radius-md); background: var(--kit-color-raised); color: var(--kit-color-ink); }
.tp-upload input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v3w-submit { height: 46px; border: 1px solid var(--kit-color-edge); border-radius: var(--radius-full); background: var(--kit-color-raised); font: 600 16px/1 var(--kit-font-body), sans-serif; cursor: pointer; }
.v3w[data-auto] .v3w-submit { display: none; }
.v3w-source img { width: 100%; height: 100%; object-fit: cover; }
.v3w-source p { padding: 16px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.tp-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--kit-color-ink-muted); }
.v3w-stage { position: relative; display: grid; place-items: center; width: 100%; height: 548px; margin: 0; border: 1px solid var(--kit-color-line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--kit-color-raised) url(/static/v3/checker-light.png) 0 0 / 20px 20px; }
.v3w-sticker { width: 440px; max-width: 80%; height: auto; max-height: 86%; object-fit: contain; filter: drop-shadow(0 4px 12px rgb(17 17 17 / .1)); }
.v3w-spec { position: absolute; inset-inline-start: 16px; bottom: 16px; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--kit-color-line); border-radius: var(--radius-full); background: var(--kit-color-raised); }
.v3w-spec:empty, .v3w-spec b:empty { display: none; }
.v3w-stage-work { align-content: center; gap: 14px; text-align: center; }
.v3w-stage-work strong { font-size: 15px; font-weight: 600; }
.v3w-stage-work .v3w-spec { position: static; }
.v3w-stage-work .v3w-spec:has(b:empty) { display: none; }
.tp-spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--kit-color-line); border-top-color: var(--kit-color-ink); animation: tp-spin .9s linear infinite; }
@keyframes tp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tp-spin { animation-duration: 4s; } html { scroll-behavior: auto; } }
.tp-stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.tp-stages { display: grid; gap: 16px; align-content: start; min-width: 0; }
.tp-pick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; }
.tp-variant { display: grid; gap: 8px; padding: 8px; border: 1.5px solid var(--kit-color-line); border-radius: var(--radius-lg); background: var(--kit-color-raised); font: inherit; font-size: 13px; color: var(--kit-color-ink); cursor: pointer; text-align: start; }
.tp-variant img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #111; border-radius: var(--radius-md); }
.tp-variant[aria-checked=true] { border-color: var(--kit-color-ink); font-weight: 600; }
.v3 .tp-msg { margin: 16px 48px 0; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--kit-color-surface); font-size: 14px; overflow-wrap: anywhere; }
.v3 .tp-msg[data-kind=ok] { background: var(--kit-color-success-soft); color: var(--kit-color-success); font-weight: 500; }
.tp-link { padding: 0; border: 0; background: none; font: inherit; color: var(--kit-color-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: start; }
.tp-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-full); background: var(--kit-color-raised); font-size: 13px; font-weight: 500; }
/* The prompt form. */
.v3w textarea, .v3 input[type=email] { width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--kit-color-ink); background: var(--kit-color-surface); border: 1px solid var(--kit-color-line); border-radius: var(--radius-lg); resize: vertical; }
.tp-presets { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tp-presets legend { float: left; width: 100%; margin-bottom: 8px; }
.tp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tp-chip span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-full); background: var(--kit-color-surface); font-size: 13px; font-weight: 500; cursor: pointer; }
.tp-chip input:checked + span { background: var(--kit-color-ink); color: var(--color-on-primary); }
.tp-chip input:focus-visible + span { outline: 2px solid var(--kit-color-ink); outline-offset: 2px; }
.tp-try { font-size: 13px; color: var(--kit-color-ink-muted); }
.tp-try .tp-link { margin-inline-end: 8px; color: var(--kit-color-ink-muted); }
/* Error and out-of-previews panels. */
.v3w-err { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 548px; padding: 32px; text-align: center; border: 1.5px dashed var(--kit-color-danger); border-radius: var(--radius-lg); background: var(--kit-color-danger-soft); }
.v3w-err .v3-icon-box { color: var(--kit-color-danger); margin: 0; }
.v3w-err strong { font-size: 16px; font-weight: 600; }
.v3w-err > span { font-size: 15px; color: var(--kit-color-ink-muted); }
.v3w-err .v3-btn { margin: 10px 0 6px; }
.v3w-out { display: grid; gap: 12px; max-width: 640px; min-height: 548px; align-content: center; margin: 0 auto; }
.v3w-out .v3w-chip { justify-self: start; }
.v3w-out h2 { font-size: 32px; line-height: 1.1; }
.v3w-out > p { font-size: 15px; line-height: 1.55; color: var(--kit-color-ink-muted); }
.v3w-out > p.v3-mono { font-size: 12px; }
.v3w-out-pack { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border-radius: var(--radius-lg); background: var(--kit-color-surface); }
.v3w-out-pack strong { display: block; font-size: 15px; font-weight: 600; }
/* Dialogs. */
.tp-dialog { width: min(480px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--kit-color-line); border-radius: var(--radius-2xl); background: var(--kit-color-raised); color: var(--kit-color-ink); box-shadow: var(--shadow-y24-b64); }
.tp-dialog::backdrop { background: rgb(17 17 17 / .5); }
.tp-dialog h2 { font-family: var(--kit-font-body), sans-serif; font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.tp-dialog > p { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--kit-color-ink-muted); }
.tp-x { position: absolute; inset-block-start: 12px; inset-inline-end: 16px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--kit-color-ink); cursor: pointer; }
.v3-pay-item { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.v3-pay-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--kit-color-line); }
.v3-pay-item:has(img[hidden]) { display: none; }
.tp-packs { display: grid; gap: 8px; margin: 16px 0; }
.tp-pack input { position: absolute; opacity: 0; pointer-events: none; }
.tp-pack > span, .v3-pack { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 12px 22px; border: 1px solid var(--kit-color-line); border-radius: var(--radius-lg); background: var(--kit-color-raised); color: var(--kit-color-ink); font: inherit; text-align: start; cursor: pointer; }
.tp-pack strong, .v3-pack strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.tp-pack small, .v3-pack small { display: block; font-size: 13px; color: var(--kit-color-ink-muted); }
.tp-pack em, .v3-pack em { margin-inline-start: auto; font: var(--font-weight-brand) 32px/1 var(--kit-font-display), sans-serif; letter-spacing: -.02em; font-style: normal; }
.v3-radio { flex: none; width: 20px; height: 20px; border: 2px solid var(--kit-color-ink); border-radius: 50%; background: var(--kit-color-raised); }
.tp-pack input:checked + span, .v3-pack[aria-pressed=true] { border: 2px solid var(--kit-color-ink); padding: 11px 21px; }
.tp-pack input:checked + span .v3-radio, .v3-pack[aria-pressed=true] .v3-radio { box-shadow: inset 0 0 0 3px var(--kit-color-raised); background: var(--kit-color-ink); }
.tp-pack[data-off] > span { opacity: .6; cursor: default; }
.tp-dialog .tp-note { margin-top: 10px; }
.tp-inline { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 16px; }
.tp-dialog .tp-msg { margin: 12px 0 0; }

/* Sections. */
.v3-in { max-width: 1440px; margin: 0 auto; padding: 0 120px; }
.v3-sec { padding: 112px 0 160px; }
.v3-band { background: var(--kit-color-band); padding-bottom: 116px; }
.v3-head { display: flex; justify-content: space-between; gap: 24px; min-height: 128px; margin-bottom: 80px; }
.v3-head h2, .v3-faq-head h2 { max-width: 760px; font-size: 64px; line-height: 1; text-wrap: balance; white-space: pre-line; }
.v3-head p { flex: none; width: 416px; padding-top: 6px; font-size: 17px; line-height: 1.5; color: var(--kit-color-ink-muted); }
.v3-card { background: var(--kit-color-raised); border: 1px solid var(--kit-color-line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-y16-b48); }
.v3-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.v3-steps .v3-card { min-height: 520px; padding: 16px 16px 32px; }
.v3-visual { position: relative; height: 300px; border-radius: var(--radius-lg); overflow: hidden; background: var(--kit-color-surface); }
.v3-visual-cut { background: var(--kit-color-raised) url(/static/v3/checker-light.png) 0 0 / 20px 20px; }
.v3-cut { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px 12px 0; object-position: 60% 100%; }
.v3-inset { position: absolute; inset-inline-start: 16px; bottom: 16px; width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--kit-color-raised); box-shadow: var(--shadow-y2-b8); }
.v3-tag { position: absolute; top: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--radius-full); background: var(--kit-color-raised); font-size: 12px; font-weight: 500; }
.v3-mock-drop { cursor: pointer; position: absolute; inset: 24px; display: grid; justify-items: center; align-content: center; gap: 4px; border: 1.5px dashed var(--kit-color-edge); border-radius: var(--radius-lg); background: var(--kit-color-raised); text-align: center; }
.v3-mock-drop strong { font-size: 14px; font-weight: 600; }
.v3-mock-drop > span { font-size: 12px; color: var(--kit-color-ink-muted); }
.v3-mock-drop .v3-file-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; margin-top: 14px; padding: 0 12px 0 4px; border-radius: var(--radius-full); background: var(--kit-color-surface); font-size: 13px; font-weight: 500; color: var(--kit-color-ink); }
.v3-file-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.v3-visual-spread { background: var(--kit-color-surface); }
.v3-spread { position: absolute; height: 46%; width: auto; filter: drop-shadow(0 4px 12px rgb(17 17 17 / .14)); }
.v3-spread-0 { inset-inline-start: 9%; top: 8%; transform: rotate(-7deg); }
.v3-spread-1 { inset-inline-start: 56%; top: 5%; transform: rotate(8deg); }
.v3-spread-2 { inset-inline-start: 16%; top: 51%; transform: rotate(5deg); }
.v3-spread-3 { inset-inline-start: 58%; top: 50%; transform: rotate(-6deg); }
.v3-card-text { padding: 33px 16px 0; }
.v3-card-text .v3-mono { display: block; }
.v3-card-text h3, .v3-pair h3 { margin-top: 8px; font-size: 20px; line-height: 1.25; }
.v3-card-text p, .v3-pair p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--kit-color-ink-muted); }
/* Examples. */
.v3-compare { height: 585px; margin: 0; border: 1px solid var(--kit-color-line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-y16-b48);
  background: var(--kit-color-raised) url(/static/v3/checker-light.png) 0 0 / 20px 20px; }
.v3-compare img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v3-compare .cmp-after img { filter: drop-shadow(0 4px 12px rgb(17 17 17 / .12)); }
/* The compare slider: two real pictures stacked, the top one clipped at --pos.
   Drag anywhere on it, or focus the handle and use the arrow keys (v3.js). */
.cmp { position: relative; overflow: hidden; direction: ltr; touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: ew-resize; --pos: 50%; }
.cmp-after, .cmp-before { position: absolute; inset: 0; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 44px; margin-left: -22px; padding: 0; border: 0; background: none; cursor: ew-resize; touch-action: none; }
.cmp-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--kit-color-raised); box-shadow: 0 0 0 .5px rgb(17 17 17 / .15); }
.cmp-handle i { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 36px; height: 36px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--kit-color-raised); color: var(--kit-color-ink); box-shadow: var(--shadow-y2-b8); }
.cmp-handle:focus-visible { outline: none; }
.cmp-handle:focus-visible i { outline: 2px solid var(--kit-color-ink); outline-offset: 2px; }
.cmp .v3-tag { pointer-events: none; }
.v3-compare .v3-tag { top: 24px; height: 28px; padding: 0 12px; font-size: 13px; }
.v3-tag-ink { inset-inline-start: 24px; background: var(--kit-color-ink); color: var(--color-on-primary); }
.v3-tag-accent { inset-inline-start: auto; inset-inline-end: 50px; background: var(--kit-color-accent); color: var(--kit-color-on-accent); }
.v3-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.v3-pair { margin: 0; padding: 16px 16px 24px; }
.v3-pair-media { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 260px; }
.v3-pair-media img { display: block; width: 100%; height: 100%; }
.v3-before { object-fit: cover; border-radius: var(--radius-lg); min-height: 0; }
.v3-after { display: block; min-height: 0; border-radius: var(--radius-lg); background: var(--kit-color-raised) url(/static/v3/checker-light.png) 0 0 / 20px 20px; }
.v3-after img { object-fit: contain; padding: 10px; filter: drop-shadow(0 4px 12px rgb(17 17 17 / .12)); }
.v3-pair figcaption { padding: 12px 8px 0; }
/* Pricing. */
.v3-pricing { padding-bottom: 114px; }
.v3-head-center { display: block; min-height: 0; margin-bottom: 84px; text-align: center; }
.v3-head-center h2 { max-width: 1000px; margin: 0 auto; }
.v3-head-center p { width: auto; max-width: 560px; margin: 19px auto 0; padding: 0; }
.v3-price-panel { display: grid; grid-template-columns: 520px 440px; max-width: 960px; margin: 0 auto; border: 1px solid var(--kit-color-line); border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-y16-b48); background: var(--kit-color-raised); }
.v3-includes { padding: 44px 48px; }
.v3-includes h3 { font: 600 16px/1.5 var(--kit-font-body), sans-serif; letter-spacing: 0; }
.v3-includes ul { margin: 6px 0 0; padding: 0; list-style: none; }
.v3-includes li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 17px; line-height: 1.5; }
.v3-includes .v3-i { margin-top: 3px; }
.v3-buy { padding: 48px; background: var(--kit-color-accent-soft); }
.v3-buy .v3-pack + .v3-pack { margin-top: 12px; }
.v3-buy .v3-btn { margin-top: 28px; }
.v3-fine { margin-top: 14px; font-size: 12px; line-height: 1.4; text-align: center; color: var(--kit-color-ink-muted); }
.v3-pending { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--kit-color-ink-faint); }
/* Developers. */
.v3-dev { background: var(--kit-color-ink); color: var(--kit-color-ground); padding-bottom: 67px; }
.v3-dev .v3-head { margin-bottom: 83px; }
.v3-dev .v3-head p { color: rgb(255 255 255 / .8); }
.v3-term { max-width: 760px; border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius-2xl); background: var(--kit-color-scrim); overflow: hidden; }
.v3-term-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; padding: 0 16px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.v3-term-bar [role=tablist] { display: flex; gap: 4px; }
.v3-term-bar button, .v3-term-chip { height: 24px; padding: 0 8px; border: 0; border-radius: var(--radius-full); background: none; font: 400 12px/1 var(--kit-font-mono), ui-monospace, monospace; color: rgb(255 255 255 / .5); }
.v3-term-bar button { cursor: pointer; }
.v3-term-bar button[aria-selected=true], .v3-term-chip { background: rgb(255 255 255 / .1); color: var(--kit-color-ground); }
.v3-term-chip { display: inline-flex; align-items: center; color: rgb(255 255 255 / .8); }
.v3-term pre { margin: 0; padding: 20px 24px 24px; overflow-x: auto; font: 400 14px/1.6 var(--kit-font-mono), ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--kit-color-ground); white-space: pre; -webkit-user-select: text; user-select: text; }
.v3-term code { font: inherit; }
.v3-term pre[data-prompt]::before { content: "$ "; color: rgb(255 255 255 / .5); }
.v3-dev-more { margin-top: 20px; font-size: 14px; color: rgb(255 255 255 / .8); }
/* FAQ. */
.v3-faq { padding-bottom: 96px; }
.v3-faq-in { display: grid; grid-template-columns: minmax(0, 1fr) 600px; column-gap: 120px; }
.v3-faq-head p { max-width: 380px; margin-top: 30px; font-size: 17px; line-height: 1.5; color: var(--kit-color-ink-muted); }
.v3-qa { padding: 24px 0; border-top: 1px solid var(--kit-color-line); }
.v3-qa h3 { font-size: 20px; line-height: 1.25; }
.v3-qa p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--kit-color-ink-muted); }
.v3-qa .v3-pending { color: var(--kit-color-ink-faint); font-size: 13px; }
/* Close. */
.v3-close { background: var(--kit-color-accent); overflow: hidden; }
.v3-close-in { position: relative; max-width: 1440px; min-height: 640px; margin: 0 auto; padding: 128px 120px 0; text-align: center; }
.v3-close h2 { margin: 0 auto; max-width: 1100px; font-size: 80px; line-height: 1; text-wrap: balance; max-inline-size: 13em; }
.v3-close .v3-lead { margin-top: 24px; }
.v3-close .v3-ctas { margin-top: 24px; }
.v3-loose-close-start { inset-inline-start: 96px; top: 380px; width: 150px; transform: rotate(-12deg); }
.v3-loose-close-end { inset-inline-start: 1196px; top: 330px; width: 150px; transform: rotate(9deg); }
/* Footer. */
.v3-foot { background: var(--kit-color-ground); }
.v3-foot-top { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 160px); padding: 80px 0 22px; min-height: 236px; }
.v3-foot-brand p { margin-top: 4px; font-size: 13px; color: var(--kit-color-ink-muted); }
.v3-foot-col { display: grid; align-content: start; gap: 12px; }
.v3-foot-col strong { font-size: 14px; font-weight: 600; line-height: 18px; }
.v3-foot-col a { font-size: 13px; line-height: 17px; color: var(--kit-color-ink-muted); text-decoration: none; }
.v3-foot-bar { display: flex; justify-content: space-between; gap: 16px; height: 64px; padding-top: 16px; border-top: 1px solid var(--kit-color-line); font-size: 12px; color: var(--kit-color-ink-muted); }
.v3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.v3 a.v3-btn:hover, .v3 a.v3-lockup:hover { text-decoration: none; }
/* Legal pages in the same shell. */
.v3-legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.v3-legal h1 { font-size: 48px; line-height: 1; }
.v3-legal h2 { margin-top: 32px; font-family: var(--kit-font-body), sans-serif; font-size: 18px; font-weight: 600; letter-spacing: 0; }
.v3-legal p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--kit-color-ink-muted); }
.v3-legal .ts-lead { font-size: 17px; }
.v3-legal .ts-pending { padding: 12px 16px; border-radius: var(--radius-lg); background: var(--kit-color-accent-soft); color: var(--kit-color-ink); }

/* The 390 board. */
@media (max-width: 1239px) and (min-width: 769px) {
  .v3-in, .v3-hero-in, .v3-close-in { padding-inline: 32px; }
  .v3-loose { display: none; }
  .v3-hero h1 { font-size: 72px; } .v3-close h2 { font-size: 60px; }
  .v3-head h2, .v3-faq-head h2 { font-size: 48px; }
  .v3-head p { width: 340px; }
  .v3-nav-links { gap: 20px; }
  .v3w-body { grid-template-columns: 280px minmax(0, 1fr); column-gap: 32px; padding-inline: 32px; }
  .v3w-bar { padding: 0 32px; }
  .v3-faq-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 48px; }
  .v3-price-panel { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .v3-wide { display: none; } .v3-narrow { display: inline; }
  .v3-nav { padding: 12px 16px; height: 56px; }
  .v3-nav-links { display: none; position: absolute; z-index: 5; top: 56px; inset-inline: 0; transform: none; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: var(--kit-color-accent); border-bottom: 1px solid rgb(20 20 20 / .1); }
  .v3-nav-links[data-open=true] { display: flex; }
  .v3-nav-links a { padding: 12px 0; font-size: 16px; }
  .v3-nav-end { gap: 12px; }
  .v3-nav .ts-acct .tp-link { display: none; }
  .v3-nav .ts-acct:has(.tp-pill) .tp-link { display: none; }
  .v3-burger { display: grid; gap: 5px; width: 32px; height: 32px; padding: 6px; align-content: center; border: 0; background: none; cursor: pointer; }
  .v3-burger i { display: block; height: 2px; border-radius: 1px; background: var(--kit-color-ink); }
  .v3-hero-in { padding: 24px 24px 64px; }
  .v3-loose { display: none; }
  .v3-eyebrow { height: 28px; padding: 0 10px 0 3px; gap: 8px; font-size: 12px; }
  .v3-badges img { width: 22px; height: 22px; margin-inline-start: -6px; }
  .v3-hero h1 { margin-top: 20px; font-size: 46px; line-height: 1.04; }
  .v3-lead { margin-top: 16px; font-size: 16px; }
  .v3-ctas { flex-direction: column; gap: 12px; margin-top: 16px; }
  .v3-ctas .v3-btn { width: 100%; }
  .v3-note { display: flex; justify-content: center; height: auto; margin-top: 24px; padding: 0 24px; background: none; font-size: 11px; text-align: center; }
  .v3-note .v3-i { display: none; }
  .v3w { min-height: 0; margin-top: 32px; }
  .v3w-bar { height: 60px; padding: 0 16px; }
  .v3w-file strong { max-width: 150px; font-size: 14px; }
  .v3w-file span, .v3w-chip-time { display: none !important; }
  .v3w-chip { height: 24px; padding: 0 8px; font-size: 12px; }
  .v3w-thumb { width: 28px; height: 28px; }
  .tp-modes { height: 36px; } .tp-mode { padding: 0 10px; font-size: 13px; }
  .v3w-body { display: flex; flex-direction: column-reverse; gap: 16px; padding: 0 16px 16px; }
  .v3w-body.v3w-body-one { padding-top: 16px; }
  .tp-form.v3w-body { flex-direction: column; }
  .tp-form .v3w-stage { display: none; }
  .tp-form .v3w-side { padding-top: 16px; }
  .v3w-stage { height: 260px; }
  .v3w-sticker { width: 200px; }
  .v3w-box { height: 180px; }
  .v3w-source, #tp-result .v3w-side > .v3w-label:first-child { display: none; }
  .v3w-gap { margin-top: 0; }
  .v3w-spec { inset-inline-start: 10px; bottom: 10px; height: 24px; padding: 0 8px; font-size: 11px; max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; }
  .v3 .tp-msg { margin: 12px 16px 0; }
  .v3w-err, .v3w-out { min-height: 260px; padding: 20px; }
  .v3w-out { padding: 8px 0; } .v3w-out h2 { font-size: 24px; }
  .v3w-out-pack { flex-direction: column; align-items: stretch; }
  .v3-in { padding: 0 24px; }
  .v3-sec, .v3-band, .v3-pricing, .v3-dev, .v3-faq { padding: 64px 0; }
  .v3-head, .v3-dev .v3-head { display: block; min-height: 0; margin-bottom: 32px; }
  .v3-head h2, .v3-faq-head h2 { font-size: 36px; }
  .v3-head p, .v3-head-center p { width: auto; margin-top: 16px; padding: 0; font-size: 16px; }
  .v3-steps { grid-template-columns: 1fr; gap: 16px; }
  .v3-steps .v3-card { min-height: 0; padding: 12px 12px 24px; }
  .v3-visual { height: 200px; }
  .v3-mock-drop .v3-file-chip { display: none; }
  .v3-inset { width: 64px; height: 64px; }
  .v3-card-text { padding: 20px 8px 0; }
  .v3-compare { height: 214px; }
  .v3-compare .v3-tag { display: none; }
  .v3-pairs { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .v3-pair { padding: 12px 12px 20px; }
  .v3-pair-media { height: 150px; }
  .v3-pair figcaption { padding: 12px 0 0; }
  .v3-price-panel { display: flex; flex-direction: column-reverse; }
  .v3-buy { padding: 24px; } .v3-includes { padding: 24px; }
  .v3-includes li { font-size: 16px; }
  .tp-pack em, .v3-pack em { font-size: 28px; }
  .v3-term pre { padding: 16px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .v3-term-chip { display: none; }
  .v3-term-bar button { white-space: nowrap; }
  .v3-faq-in { display: flex; flex-direction: column; }
  .v3-faq-head { display: contents; }
  .v3-faq-head h2 { order: 0; margin-bottom: 20px; }
  .v3-faq-list { order: 1; }
  .v3-faq-head p { order: 2; margin-top: 32px; font-size: 16px; }
  .v3-qa { padding: 20px 0; } .v3-qa h3 { font-size: 16px; font-family: var(--kit-font-body), sans-serif; font-weight: 600; letter-spacing: 0; }
  .v3-close-in { min-height: 0; padding: 64px 24px; }
  .v3-close h2 { font-size: 40px; }
  .v3-close .v3-lead { margin-top: 16px; }
  .v3-close .v3-btn-raised { display: none; }
  .v3-foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; padding: 40px 0 24px; }
  .v3-foot-brand { grid-column: 1 / -1; }
  .v3-foot-bar { height: auto; padding: 16px 0 32px; flex-wrap: wrap; }
  .v3-legal h1 { font-size: 36px; }
}
.v3-copy { display: block; margin: 0 16px 16px auto; height: 28px; padding: 0 12px; border: 1px solid rgb(255 255 255 / .2); border-radius: var(--radius-full); background: none; color: inherit; font: 500 12px/1 var(--kit-font-body), sans-serif; cursor: pointer; }
.sp-code .v3-copy { margin: 12px 0 0 auto; border-radius: var(--radius-kit-control); }
/* Nothing may be wider than the phone before the fonts arrive (a fallback face
   is wider, and an overflowing line shifted the whole page when it swapped). */
html, body.v3 { overflow-x: clip; }
.v3-eyebrow { max-width: 100%; }
.v3-eyebrow > span:not(.v3-badges) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A drawn shirt (a flat silhouette in a shirt color, never a photo): the art on it is the tool's real output. Shared by the split and dtf layouts. */
.sp-shirt, .sp-compare { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--kit-color-edge) center / 100% 100% no-repeat; }
.sp-shirt-dark, .sp-compare { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M30 14 39 10q11 13 22 0l9 4 22 13-8 15-10-5v50q0 2-2 2H28q-2 0-2-2V37l-10 5-8-15z' fill='%23151515'/%3E%3C/svg%3E"); }
.sp-shirt-light { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M30 14 39 10q11 13 22 0l9 4 22 13-8 15-10-5v50q0 2-2 2H28q-2 0-2-2V37l-10 5-8-15z' fill='%23F7F7F5' stroke='%23C9C5BD' stroke-width='.4'/%3E%3C/svg%3E"); }
.sp-shirt img, .sp-compare img { position: absolute; left: 31%; top: 25%; width: 38%; height: 38%; object-fit: contain; }
.v3-legal pre.ts-code { margin: 14px 0 0; padding: 16px; overflow-x: auto; border-radius: var(--radius-lg); background: var(--kit-color-scrim); color: var(--kit-color-ground); font: 400 13px/1.6 var(--kit-font-mono), ui-monospace, monospace; }
.v3-legal code { font-family: var(--kit-font-mono), ui-monospace, monospace; font-size: .92em; }
.v3-term:has([role=tab]:only-child) .v3-term-chip { display: none; }

/* Guides (templates/guide.tmpl), in every layout's inner-page shell. */
.ts-crumbs { font-size: 14px; margin: 0 0 12px; }
.ts-guide-steps { margin: 24px 0 0; padding-inline-start: 22px; }
.ts-guide-steps li { margin-top: 10px; font-size: 16px; line-height: 1.55; }
.ts-guide-fig { display: grid; gap: 10px; margin: 28px 0 0; }
.ts-guide-pair { grid-template-columns: 1fr 1fr; }
.ts-guide-fig img { display: block; width: 100%; height: 100%; max-height: 360px; object-fit: contain; border-radius: 12px; }
.ts-guide-pair > img { object-fit: cover; }
.ts-guide-out { display: block; border-radius: 12px; background: #1b1b1b; padding: 12px; }
.ts-guide-fig figcaption { grid-column: 1 / -1; font-size: 13px; opacity: .75; }
.ts-guide-try { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 0; padding: 18px 20px; border: 1px solid rgb(128 128 128 / .3); border-radius: 12px; }
.ts-guide-try span { font-size: 16px; font-weight: 600; }
.ts-guide-try a { margin: 0; text-decoration: none; }
.ts-guide-table { margin: 24px 0 0; border-collapse: collapse; width: 100%; font-size: 15px; }
.ts-guide-table th, .ts-guide-table td { padding: 8px 12px; border-bottom: 1px solid rgb(128 128 128 / .3); text-align: start; }
.ts-guide h3 { margin: 20px 0 0; font-size: 16px; }
.ts-guide-list { list-style: none; margin: 24px 0 0; padding: 0; }
.ts-guide-list a { display: block; padding: 16px 0; border-top: 1px solid rgb(128 128 128 / .3); text-decoration: none; }
.ts-guide-list strong { display: block; font-size: 18px; } .ts-guide-list span { display: block; margin-top: 4px; font-size: 15px; opacity: .8; }
.ts-guide-more { margin-top: 28px; }
.v3-legal .ts-guide h3 { font-family: var(--kit-font-body), sans-serif; font-weight: 600; letter-spacing: 0; }
.v3-legal .ts-guide-steps li, .v3-legal .ts-guide-table { color: var(--kit-color-ink); }
.v3-legal .ts-guide-try .v3-btn { color: var(--color-on-primary, #fff); }
