/* Johns Creek Screens: screen builder (/build/).
   Same look as the homepage: deep "stage" black for screens, warm paper for choices, one signal accent.
   Type: Geist (display and text), Instrument Serif italic (one accent phrase), Geist Mono (labels and links). */

:root {
  --ink: #0b0b0d;
  --ink-2: #121215;
  --ink-3: #1a1a1f;
  --ink-line: rgba(255, 255, 255, .1);
  --on-ink: #f3f0ea;
  --on-ink-2: #aaa69e;
  --on-ink-3: #7c786f;

  --paper: #f3efe8;
  --paper-2: #ece6dc;
  --card: #fdfcf9;
  --text: #141416;
  --text-2: #57534c;
  --text-3: #6d685f;
  --line: #dcd4c7;

  --accent: #ff5a2c;
  --accent-hi: #ff7149;
  --accent-deep: #c2380f;

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --nav-h: 64px;
  --panel-w: clamp(400px, 35vw, 520px);
  --pad: clamp(24px, 2.8vw, 44px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.panel :focus-visible { outline-color: var(--accent-deep); }   /* the bright accent is under 3:1 on paper */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--on-ink); color: var(--ink); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons (as on the homepage) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: #170a04; }
.btn-accent:hover { background: var(--accent-hi); }
.btn-light { background: var(--on-ink); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ink { background: var(--text); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-md { height: 42px; padding: 0 18px; font-size: 14px; gap: 8px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--ink-line); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 18px; padding: 0 var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--on-ink); text-decoration: none; }
.mark { width: 28px; height: 28px; flex: none; }
.mark .dot { fill: var(--accent); }
.wm { font-weight: 600; font-size: 17px; letter-spacing: -.025em; white-space: nowrap; }
.wm em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.16em; letter-spacing: 0; }
.crumb { display: inline-flex; align-items: center; gap: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-ink-2); white-space: nowrap; }
.crumb::before { content: ""; width: 1px; height: 18px; background: rgba(255, 255, 255, .16); }
.links { margin-left: auto; display: flex; gap: 28px; }
.links a { color: var(--on-ink-2); text-decoration: none; font-size: 14px; transition: color .2s ease; }
.links a:hover { color: var(--on-ink); }
.nav-cta { margin-left: 10px; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--panel-w) minmax(0, 1fr); align-items: start; }

/* ---------- The choices (paper) ---------- */
.panel { background: var(--paper); color: var(--text); padding: 40px var(--pad) 48px; min-height: calc(100vh - var(--nav-h)); }
.label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-2);
}
.label::before { content: ""; width: 28px; height: 1.5px; background: var(--accent-deep); flex: none; }
.intro h1 {
  margin-top: 18px;
  font-weight: 600; font-size: clamp(34px, 3.1vw, 46px); line-height: 1; letter-spacing: -.045em; text-wrap: balance;
}
.intro h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: -.012em; color: var(--accent-deep); }
.intro .lead { margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--text-2); max-width: 30em; text-wrap: pretty; }

.steps { margin-top: 30px; counter-reset: s; }
.step { padding: 26px 0 28px; border-top: 1px solid var(--line); }
.step:first-child { border-top-color: var(--text); }
.step-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; min-width: 0; }
.step-h .n { font-family: var(--f-mono); font-size: 12px; color: var(--accent-deep); letter-spacing: .06em; }
.step-h h2 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.step-h .sum { margin-left: auto; min-width: 0; font-size: 13px; color: var(--text-3); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fine { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2); box-shadow: inset 0 0 0 1px rgba(20, 20, 22, .2); white-space: nowrap;
}

/* Choice cards share one pressed look */
.pick {
  position: relative; display: block; width: 100%; padding: 0; border: 0; margin: 0; text-align: left; cursor: pointer;
  background: var(--card); border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 rgba(46, 32, 18, .04);
  transition: box-shadow .25s ease, transform .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pick:hover { box-shadow: inset 0 0 0 1px #c9bfb0, 0 12px 26px -20px rgba(46, 32, 18, .5); transform: translateY(-1px); }
.pick[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--text), 0 16px 32px -22px rgba(46, 32, 18, .6); }
.pick .tick {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--text); color: var(--paper);
  opacity: 0; transform: scale(.6); transition: opacity .25s ease, transform .35s var(--ease);
}
.pick .tick svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pick[aria-checked="true"] .tick { opacity: 1; transform: none; }

/* 01 Business */
.biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bz { overflow: hidden; }
.bz-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  aspect-ratio: 5 / 4; padding: 12px 12px 11px; border-radius: 15px 15px 0 0;
  background: var(--b-bg); color: var(--b-on);
}
.bz-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.bz-tile .bz-mark { width: 28px; height: 28px; flex: none; }
.bz-tile .bz-mark svg { width: 100%; height: 100%; display: block; }
.tag-on { color: var(--b-on); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b-on) 45%, transparent); opacity: .9; }
.bz-name {
  font-family: var(--b-display); font-weight: var(--b-weight); text-transform: var(--b-transform);
  font-size: 18px; line-height: 1.02; letter-spacing: -.01em; overflow-wrap: anywhere;
}
.bz-name.up { letter-spacing: .01em; font-size: 19px; }
.bz-meta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 38px; padding: 8px 8px 8px 11px; font-size: 13px; color: var(--text-2); }
.bz-kind { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz .tick { position: static; flex: none; width: 19px; height: 19px; }
.bz .tick svg { width: 11px; height: 11px; }
.bz[aria-checked="true"] .bz-kind { color: var(--text); }

/* 02 Template */
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tp { padding: 6px 6px 0; }
.tp-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #17171b; display: flex; justify-content: center; }
.tp-screen { position: relative; height: 100%; width: 100%; overflow: hidden; container-type: inline-size; isolation: isolate; }
.tp-thumb.port { aspect-ratio: 4 / 5; background: radial-gradient(80% 90% at 50% 40%, #2a2a30, #141417); }   /* tall screens get tall cards */
.tp-thumb.port .tp-screen { width: auto; aspect-ratio: 9 / 16; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.tp-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 6px 11px; font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.tp-name small { font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.tp .tick { top: 12px; right: 12px; }
.tp-why { display: none; padding: 0 6px 11px; margin-top: -6px; font-size: 12.5px; line-height: 1.3; color: var(--text-3); }
.tp.off { cursor: not-allowed; background: transparent; }
.tp.off:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line); }
.tp.off .tp-thumb { opacity: .4; filter: grayscale(1); }
.tp.off .tp-name { color: var(--text-3); }
.tp.off .tp-why { display: block; }
.tpl-blurb { margin-top: 14px; font-size: 14.5px; color: var(--text-2); min-height: 1.5em; }

/* Live frames (thumbnails and the big preview) */
.frame {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: transparent;
  opacity: 0; transition: opacity .6s ease; z-index: 2; pointer-events: none;
}
.frame.on { opacity: 1; }
.tp-screen::after { /* hold the shimmer while loading */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%);
  background-size: 250% 100%;
}
.tp-screen[data-state="loading"]::after { opacity: 1; animation: sheen 1.8s linear infinite; }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* 03 What's on it */
.sub + .sub { margin-top: 22px; }
.sub-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); }
.sub-h .hint { font-family: var(--f-sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text-3); font-weight: 400; }

.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.ls { padding: 11px 12px 12px; border-radius: 12px; }
.ls b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.ls small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.ls .tick { top: 9px; right: 9px; width: 18px; height: 18px; }
.ls .tick svg { width: 10px; height: 10px; }
.ls[aria-checked="true"] { padding-right: 32px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; position: relative; }
.tile {
  position: relative; display: block; width: 100%; padding: 5px 5px 0; border: 0; text-align: left; cursor: pointer;
  background: var(--card); border-radius: 13px; box-shadow: inset 0 0 0 1px var(--line);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .25s ease, background-color .25s ease;
  touch-action: manipulation;
}
.tile:hover { box-shadow: inset 0 0 0 1px #c9bfb0, 0 10px 22px -18px rgba(46, 32, 18, .5); }
.tile .im { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; background: var(--paper-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease, filter .3s ease; -webkit-user-drag: none; pointer-events: none; }
.tile .lbl { display: block; padding: 8px 5px 10px; font-size: 13px; font-weight: 500; line-height: 1.25; letter-spacing: -.005em; color: var(--text); }
.tile .badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px;
  display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  background: var(--accent); color: #170a04; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.tile[aria-pressed="false"] { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.tile[aria-pressed="false"] img { opacity: .42; filter: grayscale(1); }
.tile[aria-pressed="false"] .lbl { color: var(--text-3); }
.tile[aria-pressed="false"] .badge { background: rgba(253, 252, 249, .92); color: transparent; box-shadow: inset 0 0 0 1.5px rgba(20, 20, 22, .35); }
.tile .grip { position: absolute; top: 10px; right: 10px; z-index: 2; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(11, 11, 13, .55); color: #fff; opacity: 0; transition: opacity .2s ease; }
.tile .grip svg { width: 12px; height: 12px; fill: currentColor; }
.tile:hover .grip, .tile:focus-visible .grip { opacity: 1; }
.tile.dragging { z-index: 10; cursor: grabbing; box-shadow: inset 0 0 0 2px var(--text), 0 24px 40px -16px rgba(46, 32, 18, .55); transition: box-shadow .25s ease; }
.tiles.sorting .tile { cursor: grabbing; }
.tile.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.note { margin-top: 10px; font-size: 13px; color: var(--text-3); }
.note:empty { margin: 0; }
.note.warn { color: var(--accent-deep); }
.also { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); font-size: 13.5px; color: var(--text-2); }

/* 04 Look */
.look { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.row { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.row:nth-child(n+3) { grid-column: 1 / -1; }
.row-k { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); }

.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(20, 20, 22, .06); box-shadow: inset 0 0 0 1px rgba(20, 20, 22, .08);
}
.seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0;
  height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 14.5px; font-weight: 500; color: var(--text-2); letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: var(--text); color: var(--paper); box-shadow: 0 6px 14px -8px rgba(20, 20, 22, .5); }
.seg button:disabled { opacity: .45; cursor: default; }
.seg .shape { width: 18px; height: 18px; stroke-width: 1.5; }
.sw { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--sw-bg, #fff); box-shadow: inset 0 0 0 1px rgba(20, 20, 22, .22); flex: none; }
.sw b { position: absolute; right: 2px; bottom: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--sw-ac, var(--accent)); }
.seg button[aria-checked="true"] .sw { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.seg-speed button { padding: 0 6px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0; }

.toggles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tg {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px;
  min-width: 0; height: 74px; padding: 12px 12px 11px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: left;
  font-size: 14px; font-weight: 500; color: var(--text-2); letter-spacing: -.01em;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.tg span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg .i { width: 19px; height: 19px; stroke-width: 1.5; }
.tg .knob { position: absolute; right: 11px; top: 12px; width: 28px; height: 17px; border-radius: 9px; background: #d6cdbf; transition: background-color .25s ease; }
.tg .knob::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.tg:hover { color: var(--text); box-shadow: inset 0 0 0 1px #c9bfb0; }
.tg[aria-checked="true"] { background: var(--text); color: var(--paper); box-shadow: none; }
.tg[aria-checked="true"] .knob { background: var(--accent); }
.tg[aria-checked="true"] .knob::after { transform: translateX(11px); }

.panel-fine { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

/* ---------- The screen (ink) ---------- */
.stage {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px var(--pad) 18px;
  background:
    radial-gradient(70% 60% at 50% 42%, rgba(255, 118, 70, .085), transparent 70%),
    radial-gradient(50% 40% at 0% 0%, rgba(255, 255, 255, .035), transparent 70%),
    var(--ink);
  min-width: 0;
}
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.now { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; color: var(--on-ink); }
.now #now-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { display: inline-flex; align-items: center; gap: 8px; flex: none; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--on-ink-2); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 44, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 90, 44, 0); } }

.seg-dark { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--ink-line); }
.seg-dark button { color: var(--on-ink-2); }
.seg-dark button:hover { color: var(--on-ink); }
.seg-dark button[aria-checked="true"] { background: var(--on-ink); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
.dev-seg { flex: none; }
.dev-seg button { padding: 0 14px; height: 36px; font-size: 14px; }
.dev-seg .i { width: 18px; height: 18px; stroke-width: 1.5; }

.viewport { position: relative; flex: 1 1 auto; min-height: 0; }
.viewport::before { /* soft light under the device */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 22%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 100%, rgba(255, 200, 170, .07), transparent 70%);
}

/* The live screen floats over the active device's glass, and glides when the device changes */
.layer {
  position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 5; overflow: hidden; isolation: isolate;
  background: #0e0e11; border-radius: 4px;
  transition: left .6s var(--ease), top .6s var(--ease), width .6s var(--ease), height .6s var(--ease), border-radius .6s var(--ease);
}
.layer.instant { transition: none; }
.layer::before { /* a thin progress line while the next screen loads */
  content: ""; position: absolute; left: 0; top: 0; z-index: 6; width: 34%; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 90, 44, 0), var(--accent) 60%, rgba(255, 140, 100, 0));
  opacity: 0; transform: translateX(-100%); transition: opacity .3s ease;
}
.layer[data-state="loading"]::before { opacity: 1; animation: bar 1.15s cubic-bezier(.45, .1, .4, 1) infinite; }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.layer::after { /* glass */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 24%, rgba(255, 255, 255, 0) 40%);
}
.layer .frame { transition: opacity .7s ease; }

/* Placeholder card while a screen loads (or if the player is unavailable) */
.ph {
  position: absolute; inset: 0; z-index: 1; container-type: size;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqmin;
  text-align: center; padding: 6cqmin;
  background:
    radial-gradient(120% 90% at 18% 8%, color-mix(in srgb, var(--tint, #34343c) 55%, transparent) 0%, transparent 62%),
    radial-gradient(90% 80% at 100% 100%, rgba(255, 255, 255, .05), transparent 60%),
    #0f0f12;
  color: rgba(243, 240, 234, .92);
}
.ph .ph-mark { width: clamp(18px, 9cqmin, 64px); height: clamp(18px, 9cqmin, 64px); color: var(--tint-hi, rgba(243, 240, 234, .6)); }
.ph .ph-mark svg { width: 100%; height: 100%; display: block; }
.ph .ph-name { font-family: var(--ph-font, var(--f-serif)); font-weight: var(--ph-weight, 400); text-transform: var(--ph-transform, none); font-size: clamp(16px, 9cqmin, 72px); line-height: 1; letter-spacing: -.01em; }
.ph .ph-path { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-mono); font-size: clamp(9px, 2.4cqmin, 14px); letter-spacing: .04em; color: rgba(243, 240, 234, .5); }
.ph .ph-fail { display: none; flex-direction: column; align-items: center; gap: 10px; margin-top: 1cqmin; font-size: 14px; color: rgba(243, 240, 234, .78); }
.layer[data-state="failed"] .ph-fail, .layer[data-state="missing"] .ph-fail { display: flex; }
.layer[data-state="failed"] .ph-path, .layer[data-state="missing"] .ph-path { display: none; }
.ph .ph-retry {
  height: 36px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--on-ink); color: var(--ink); font-size: 14px; font-weight: 500;
}
.ph .ph-retry:hover { background: #fff; }
.layer[data-state="loading"] .ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .05) 50%, transparent 65%);
  background-size: 250% 100%; animation: sheen 2.4s linear infinite;
}

/* ---------- Devices (sized in % of their own width, so one number scales each) ---------- */
.device {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  container-type: inline-size; z-index: 1;
  transition: opacity .5s ease;
}
.device.enter, .device.leave { opacity: 0; }
.device .scr { position: relative; background: #0e0e11; }

/* TV */
.tv .bezel {
  position: relative; padding: .7cqw .7cqw 1.15cqw; border-radius: 1cqw;
  background: linear-gradient(180deg, #1d1d21 0%, #0c0c0e 18%, #09090a 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(0, 0, 0, .6),
    0 3cqw 6cqw -2cqw rgba(0, 0, 0, .7);
}
.tv .bezel::after { content: ""; position: absolute; left: 50%; bottom: .42cqw; width: .8cqw; height: .22cqw; transform: translateX(-50%); border-radius: 2px; background: rgba(255, 255, 255, .18); }
.tv .scr { aspect-ratio: 16 / 9; border-radius: .25cqw; }
.tv .stand { position: relative; height: 5.2cqw; }
.tv .stand i { position: absolute; left: 50%; transform: translateX(-50%); }
.tv .stand i:first-child { top: 0; width: 5.5cqw; height: 100%; background: linear-gradient(90deg, #121215, #2e2e33 48%, #121215); }
.tv .stand i:last-child { bottom: 0; width: 30cqw; height: 1cqw; border-radius: .9cqw .9cqw .35cqw .35cqw; background: linear-gradient(180deg, #4a4a51, #1a1a1e 70%); box-shadow: 0 1.2cqw 2.4cqw -.6cqw rgba(0, 0, 0, .8); }
.tv.port .bezel { padding: 1.6cqw 1.6cqw 2.3cqw; border-radius: 2cqw; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(0, 0, 0, .6), 0 6cqw 12cqw -4cqw rgba(0, 0, 0, .75); }
.tv.port .bezel::after { bottom: .85cqw; width: 1.8cqw; height: .45cqw; }
.tv.port .scr { aspect-ratio: 9 / 16; border-radius: .5cqw; }

/* Laptop */
.laptop .lid {
  position: relative; margin: 0 6.5cqw; padding: 1.9cqw 1.9cqw 2.3cqw;
  background: #0a0a0b; border-radius: 2.2cqw 2.2cqw .5cqw .5cqw;
  box-shadow: 0 0 0 .26cqw #a7a7ae, 0 0 0 .4cqw #6f6f76, inset 0 0 0 .15cqw #1e1e22;
}
.laptop .lid::before { content: ""; position: absolute; top: .7cqw; left: 50%; width: .5cqw; height: .5cqw; transform: translateX(-50%); border-radius: 50%; background: #1c2528; box-shadow: inset 0 0 0 1px #2c393d; }
.win { position: relative; overflow: hidden; background: #18181b; }
.laptop .win { border-radius: .5cqw; }
.chrome { display: flex; align-items: center; gap: 1.2cqw; height: 3.3cqw; padding: 0 1.4cqw; background: #ebe8e3; border-bottom: 1px solid #d3cec6; }
.chrome .dots { display: flex; gap: .65cqw; flex: none; }
.chrome .dots i { width: .9cqw; height: .9cqw; border-radius: 50%; background: #c9c4bc; }
.chrome .addr {
  flex: 1; min-width: 0; height: 2.2cqw; border-radius: 1.1cqw; background: #fff; margin-right: 3cqw;
  font-family: var(--f-mono); font-size: clamp(6px, 1.08cqw, 13px); line-height: 2.2cqw; color: #3b3a37;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 1.6cqw;
}
.chrome .addr .h { color: #8a857c; }
.laptop .scr { aspect-ratio: 16 / 9; border-radius: 0 0 .5cqw .5cqw; }
.laptop .deck {
  position: relative; height: 2.2cqw;
  background: linear-gradient(180deg, #e6e6ea 0%, #cfcfd4 30%, #a3a3a9 78%, #85858b 100%);
  border-radius: .35cqw .35cqw 3.4cqw 3.4cqw / .35cqw .35cqw 100% 100%;
  box-shadow: 0 2cqw 3cqw -1.4cqw rgba(0, 0, 0, .8);
}
.laptop .deck::before { content: ""; position: absolute; top: 0; left: 50%; width: 15cqw; height: .85cqw; transform: translateX(-50%); border-radius: 0 0 .9cqw .9cqw; background: linear-gradient(180deg, #a9a9af, #cdcdd2); }

/* Tablet */
.tablet .body {
  position: relative; padding: 2.8cqw; border-radius: 3.8cqw; background: #0b0b0c;
  box-shadow: 0 0 0 .3cqw #a4a5ab, 0 0 0 .48cqw #6a6b71, inset 0 0 0 .2cqw #1c1c20, 0 3cqw 6cqw -2cqw rgba(0, 0, 0, .75);
}
.tablet .body::before { content: ""; position: absolute; top: 1.05cqw; left: 50%; width: .75cqw; height: .75cqw; transform: translateX(-50%); border-radius: 50%; background: #1c2528; }
.tablet .win { border-radius: 1cqw; }
.chrome.slim { height: 3.6cqw; justify-content: center; padding: 0 2cqw; }
.chrome.slim .addr { flex: 0 1 60%; height: 2.4cqw; line-height: 2.4cqw; border-radius: 1.2cqw; font-size: clamp(6px, 1.2cqw, 13px); margin: 0; }
.tablet .scr { aspect-ratio: 16 / 9; border-radius: 0 0 1cqw 1cqw; }
.tablet.port .body { padding: 4.6cqw; border-radius: 6.6cqw; }
.tablet.port .body::before { top: 1.8cqw; width: 1.3cqw; height: 1.3cqw; }
.tablet.port .win { border-radius: 2cqw; }
.tablet.port .chrome.slim { height: 6.4cqw; }
.tablet.port .chrome.slim .addr { flex-basis: 78%; height: 4.2cqw; line-height: 4.2cqw; border-radius: 2.1cqw; font-size: clamp(6px, 2.1cqw, 13px); }
.tablet.port .scr { aspect-ratio: 9 / 16; border-radius: 0 0 2cqw 2cqw; }

/* Phone */
.phone .body {
  position: relative; padding: 1.4cqw; border-radius: 7.8cqw; background: #0a0a0b;
  box-shadow: 0 0 0 .42cqw #3b3b41, 0 0 0 .6cqw #18181b, inset 0 0 0 .2cqw #222226, 0 3cqw 5cqw -2cqw rgba(0, 0, 0, .8);
}
.phone .glass { position: relative; display: flex; aspect-ratio: 19.5 / 9; border-radius: 6.6cqw; overflow: hidden; background: #000; }
.phone .side { flex: 1 1 0; position: relative; min-width: 0; }
.phone .island { position: absolute; left: 32%; top: 50%; width: 2.5cqw; height: 12cqw; transform: translateY(-50%); border-radius: 2cqw; background: #000; box-shadow: inset 0 0 0 1px #151517; }
.phone .scr { flex: none; height: 100%; aspect-ratio: 16 / 9; }
.phone .urlbar { display: none; }
.phone.port .body { padding: 3cqw; border-radius: 15.5cqw; }
.phone.port .glass { flex-direction: column; aspect-ratio: 9 / 19.5; border-radius: 12.8cqw; }
.phone.port .scr { width: 100%; height: auto; aspect-ratio: 9 / 16; }
.phone.port .side.top { flex: 4 1 0; }
.phone.port .side.bot { flex: 6 1 0; background: #161618; border-top: 1px solid #222; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.6cqw; }
.phone.port .island { left: 50%; top: 52%; width: 26cqw; height: 7.4cqw; transform: translate(-50%, -50%); border-radius: 4cqw; }
.phone.port .urlbar {
  display: block; max-width: 80%; padding: 0 5cqw; height: 8cqw; line-height: 8cqw; border-radius: 4cqw; background: #2a2a2d;
  font-family: var(--f-sans); font-size: clamp(6px, 3.6cqw, 13px); color: #d6d3cd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.phone.port .homebar { display: block; width: 34cqw; height: 1.2cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .55); }
.phone .homebar { display: none; }

/* ---------- Output: the link ---------- */
.out {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px;
  padding: 16px 16px 16px 20px; border-radius: 22px;
  background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--ink-line);
}
.out-main { min-width: 0; }
.out-k { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--on-ink-2); }
.field {
  display: flex; align-items: center; gap: 10px; margin-top: 9px; padding: 6px 6px 6px 16px; border-radius: 14px;
  background: #060607; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13);
}
.link {   /* the whole link, always: it wraps only between its parts (see renderLink) */
  flex: 1; min-width: 0; padding: 6px 0; font-family: var(--f-mono); font-size: 14px; line-height: 1.5; color: var(--on-ink);
  cursor: text; user-select: all; -webkit-user-select: all;
}
.link .t { white-space: nowrap; }
.link:focus-visible { outline-offset: 6px; }
.link .h { color: var(--on-ink-3); }
.link .s { color: var(--on-ink-2); }
.link .k { color: var(--on-ink); }
.link .q { color: #ffb197; }
.link .q .eq { color: var(--on-ink-3); }
.link .fresh { border-radius: 4px; animation: fresh 1.6s ease-out; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@keyframes fresh { 0% { background: rgba(255, 90, 44, .55); color: #fff; } 100% { background: rgba(255, 90, 44, 0); } }
.copy {
  flex: none; align-self: center; height: 38px; min-width: 76px; padding: 0 16px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--on-ink); color: var(--ink); font-size: 14px; font-weight: 500;
  transition: background-color .2s ease, color .2s ease;
}
.copy:hover { background: #fff; }
.newtab {
  flex: none; align-self: center; display: grid; place-items: center; width: 38px; height: 38px; margin-left: -4px; border-radius: 10px;
  color: var(--on-ink); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: background-color .2s ease;
}
.newtab:hover { background: rgba(255, 255, 255, .16); }
.newtab .i { width: 17px; height: 17px; }
.copy.done { background: var(--accent); color: #170a04; }
.out-row { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.out-note { font-size: 13.5px; line-height: 1.4; color: var(--on-ink-2); }

.qr { display: flex; align-items: center; gap: 14px; }
.qr-code { width: 112px; height: 112px; padding: 8px; border-radius: 12px; background: #fff; flex: none; }
.qr-code svg { width: 100%; height: 100%; display: block; }
.qr figcaption { order: -1; width: 104px; font-size: 13px; line-height: 1.35; color: var(--on-ink-2); text-align: right; }

.after { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 0 4px; font-size: 14px; color: var(--on-ink-2); }
.after a { color: var(--on-ink); text-underline-offset: 4px; text-decoration-color: var(--accent); }
.after a:hover { color: #fff; }

/* Phone-only "see your screen" pill */
.peek {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: none; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 30px -10px rgba(0, 0, 0, .6);
  transform: translate(-50%, 140%); transition: transform .45s var(--ease);
}
.peek.show { transform: translate(-50%, 0); }

.nojs { padding: 24px var(--pad); color: var(--on-ink-2); }
.no-data .out, .no-data .after, .no-data .dev-seg, .no-data .peek { display: none !important; }
.no-data-act { margin-top: 16px; }

/* ---------- Full screen ---------- */
.fs { position: fixed; inset: 0; z-index: 200; background: #000; }
.fs-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.fs-x {
  position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 14px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(11, 11, 13, .82); color: var(--on-ink); font-size: 14px; font-weight: 500;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); opacity: 0; transition: opacity .35s ease;
}
.fs.awake .fs-x, .fs-x:focus-visible { opacity: 1; }
.fs-x kbd { font-family: var(--f-mono); font-size: 11px; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .12); color: var(--on-ink-2); }
@media (pointer: coarse) { .fs-x { opacity: 1; } .fs-x kbd { display: none; } }
.fs-open, .fs-open body { overflow: hidden; }

/* ---------- Schematic thumbnails (drawn from the business's palette until the live thumbnail is in) ---------- */
.sch { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: var(--s-bg); --k: 1cqw; }
.sch.port { --k: 1.78cqw; }
.sch i { display: block; border-radius: calc(var(--k) * .5); }
.sch .pic { background: var(--s-line) center / cover no-repeat; border-radius: 0; }
.sch .pn { display: flex; flex-direction: column; justify-content: center; gap: calc(var(--k) * 2.2); min-width: 0; }
.sch .lb { width: 28%; height: calc(var(--k) * 1.3); background: var(--s-ac); }
.sch .hd { width: 92%; height: calc(var(--k) * 4.4); background: var(--s-ink); }
.sch .hd2 { width: 66%; height: calc(var(--k) * 4.4); background: var(--s-ac); }
.sch .ln { width: 78%; height: calc(var(--k) * 1.7); background: var(--s-mu); opacity: .55; }
.sch .qc { width: calc(var(--k) * 15); height: calc(var(--k) * 8); background: #fff; border-radius: calc(var(--k) * .9); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.sch .wm { width: 30%; height: calc(var(--k) * 2); background: var(--s-ink); }

.sch-spotlight { display: grid; grid-template-columns: 44% 1fr; }
.sch-spotlight .pn { padding: 0 7% 0 6%; }
.sch-spotlight.port { grid-template-columns: 1fr; grid-template-rows: 50% 1fr; }
.sch-spotlight.port .pn { padding: 0 9%; }

.sch-menu { display: grid; grid-template-columns: 60% 1fr; }
.sch-menu .pn { padding: 0 6%; justify-content: center; gap: calc(var(--k) * 1.9); }
.sch-menu .cols { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--k) * 1.6) calc(var(--k) * 3); }
.sch-menu .it { display: flex; justify-content: space-between; gap: calc(var(--k) * 1); }
.sch-menu .it i:first-child { flex: 1; height: calc(var(--k) * 1.8); background: var(--s-ink); opacity: .9; }
.sch-menu .it i:last-child { width: 14%; height: calc(var(--k) * 1.8); background: var(--s-ac); }
.sch-menu.port { grid-template-columns: 1fr; grid-template-rows: 1fr 34%; }
.sch-menu.port .pic { order: 2; }

.sch-welcome { display: grid; grid-template-columns: 54% 1fr; }
.sch-welcome .pn { position: relative; padding: 0 7% 18%; }
.sch-welcome .band { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; border-radius: 0; background: var(--s-ac); }
.sch-welcome .band::after { content: ""; position: absolute; right: 9%; top: 32%; width: 24%; height: 36%; border-radius: calc(var(--k) * .5); background: var(--s-on); opacity: .9; }
.sch-welcome .hr { width: 70%; height: calc(var(--k) * 1.5); background: var(--s-mu); opacity: .45; }
.sch-welcome.port { grid-template-columns: 1fr; grid-template-rows: 40% 1fr; }
.sch-welcome.port .pn { padding: 0 9% 22%; }

.sch-poster .pic { position: absolute; inset: 0; }
.sch-poster::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 45%, transparent 70%); }
.sch-poster .pn { position: absolute; left: 6%; right: 34%; bottom: 10%; z-index: 2; justify-content: flex-end; }
.sch-poster .hd { background: #fff; }
.sch-poster .ln { background: #fff; opacity: .7; }
.sch-poster .qc { position: absolute; right: 6%; bottom: 10%; z-index: 2; width: calc(var(--k) * 11); height: calc(var(--k) * 11); }
.sch-poster.port .pn { right: 8%; left: 8%; bottom: 20%; }
.sch-poster.port .qc { bottom: 6%; right: 8%; width: calc(var(--k) * 12); height: calc(var(--k) * 12); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 1100px) {
  .dev-seg button span { display: none; }
  .dev-seg button { padding: 0 12px; }
}
@media (min-width: 961px) {
  /* Room for two lines of link, so the device doesn't jump as the link grows from one line to two */
  .field { min-height: 66px; }
}
@media (max-height: 820px) and (min-width: 961px) {
  .qr-code { width: 96px; height: 96px; padding: 7px; }
  .out { padding-top: 12px; padding-bottom: 12px; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  /* Small laptops and a landscape iPad: the link gets the full width, and the Open button, note and a smaller QR share
     one row, so the screen keeps most of the height. */
  .out { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k k" "field field" "row qr"; column-gap: 16px; row-gap: 0; padding: 14px 14px 14px 18px; }
  .out-main { display: contents; }
  .out-k { grid-area: k; }
  .field { grid-area: field; }
  .out-row { grid-area: row; gap: 14px; }
  .out-note { font-size: 13px; }
  .qr { grid-area: qr; margin-top: 12px; gap: 10px; }
  .qr-code { width: 76px; height: 76px; padding: 6px; border-radius: 10px; }
  .qr figcaption { width: 88px; font-size: 12px; }
}

/* Stacked: the steps above the preview */
@media (max-width: 960px) {
  :root { --nav-h: 60px; }
  .app { display: block; }
  .panel { min-height: 0; padding-bottom: 36px; }
  .panel-fine { display: none; }
  .stage { position: relative; top: auto; height: auto; padding: 28px var(--pad) 40px; gap: 16px; scroll-margin-top: var(--nav-h); }
  .viewport { flex: none; height: 420px; }
  .dev-seg button span { display: inline; }
  .stage-top { flex-direction: column; align-items: stretch; gap: 14px; }
  .dev-seg { width: 100%; }
  .out { grid-template-columns: minmax(0, 1fr) auto; }
  .qr figcaption { order: -1; text-align: right; width: 104px; }
  .peek { display: inline-flex; }
}
@media (min-width: 641px) and (max-width: 960px) {
  .intro .lead { max-width: 36em; }
  .bz-tile { aspect-ratio: 2 / 1; }
  .bz-name { font-size: 22px; }
  .bz-name.up { font-size: 23px; }
  .tpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lists { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .look { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row:nth-child(3), .row:nth-child(4) { grid-column: auto; }
}
@media (max-width: 640px) {
  .crumb { display: none; }
  .out { grid-template-columns: minmax(0, 1fr); padding: 16px; border-radius: 20px; }
  .qr { justify-content: flex-start; padding-top: 4px; }
  .qr figcaption { order: 1; text-align: left; width: auto; }
  .out-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .out-row .btn { width: 100%; height: 48px; }
  .out-note { text-align: center; }
  .after { flex-direction: column; align-items: center; text-align: center; padding: 0; gap: 6px; }
}
@media (max-width: 560px) {
  :root { --pad: 16px; }
  body { font-size: 15.5px; }
  .nav-cta { height: 34px; padding: 0 14px; font-size: 13px; }
  .wm { font-size: 16px; }
  .panel { padding-top: 28px; }
  .label { font-size: 11px; letter-spacing: .15em; gap: 10px; }
  .label::before { width: 18px; }
  .intro h1 { font-size: 34px; }
  .intro .lead { font-size: 15.5px; }
  .steps { margin-top: 24px; }
  .step { padding: 22px 0 24px; }
  .biz-grid { gap: 8px; }
  .bz-tile { padding: 10px 10px 9px; aspect-ratio: 1 / 1; }
  .bz-tile .bz-mark { width: 24px; height: 24px; }
  .bz-name { font-size: 15.5px; }
  .bz-name.up { font-size: 16px; }
  .bz-meta { padding: 7px 8px 7px 10px; min-height: 34px; font-size: 12.5px; }
  .bz .tick { width: 18px; height: 18px; }
  .tpl-grid { gap: 8px; }
  .tp { padding: 5px 5px 0; }
  .tp-name { padding: 8px 4px 9px; font-size: 14px; }
  .tp-name small { display: none; }
  .tiles { gap: 8px; }
  .tile .lbl { font-size: 12.5px; padding: 7px 4px 9px; }
  .tile .badge { top: 9px; left: 9px; min-width: 22px; height: 22px; font-size: 11px; }
  .look { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .row:nth-child(n+3) { grid-column: auto; }
  .tg { height: 70px; padding: 11px 11px 10px; font-size: 13.5px; }
  .tg .knob { right: 9px; top: 11px; }
  .dev-seg button { gap: 6px; padding: 0 6px; font-size: 13.5px; }
  .dev-seg .i { width: 16px; height: 16px; }
  /* The link gets the field's full width; Copy and the new-tab button sit under it */
  .field { flex-wrap: wrap; gap: 8px; padding: 8px 8px 8px 14px; }
  .link { flex: 1 1 100%; font-size: 13px; padding: 4px 0 2px; }
  .copy { flex: 1 1 auto; height: 40px; }
  .newtab { width: 40px; height: 40px; margin-left: 0; }
}
/* The smallest phones: three business cards still fit side by side, names unbroken, Sample tags whole. */
@media (max-width: 374px) {
  .nav-cta { padding: 0 10px; }
  .wm { font-size: 15px; }
  .bz-tile { padding: 8px 8px 8px; }
  .bz-tile .bz-mark { width: 20px; height: 20px; }
  .bz-top .tag { height: 15px; padding: 0 4px; font-size: 7.5px; letter-spacing: .08em; }
  .bz-name { font-size: 12.5px; overflow-wrap: normal; }
  .bz-name.up { font-size: 13.5px; }
  .bz-meta { padding: 7px 6px 7px 8px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .layer, .device, .frame, .peek, .pick, .tile { transition: none !important; }
  .live i, .link .fresh, .tp-screen[data-state="loading"]::after, .layer[data-state="loading"]::before, .tile.shake { animation: none !important; }
}
