/* StudSheet marketing site. Dark drawing-desk ground, paper Sheets, tape-measure yellow for the one action. */

@font-face { font-family: 'Big Shoulders'; src: url(fonts/big-shoulders-800.woff2) format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(fonts/barlow-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(fonts/barlow-600.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(fonts/plex-mono-500.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
/* Fallbacks sized like the web fonts, so nothing moves when they arrive. */
@font-face { font-family: 'Barlow Fallback'; src: local('Arial'), local('Helvetica'), local('Liberation Sans'); size-adjust: 87%; ascent-override: 115%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: 'Display Fallback'; src: local('Arial Narrow Bold'), local('ArialNarrow-Bold'), local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'); font-weight: 800; size-adjust: 76%; ascent-override: 130%; descent-override: 28%; line-gap-override: 0%; }
@font-face { font-family: 'Mono Fallback'; src: local('Courier New'), local('CourierNewPSMT'), local('Liberation Mono'); size-adjust: 100%; ascent-override: 102%; descent-override: 27%; line-gap-override: 0%; }

:root {
  --ink: #121310;
  --ink-2: #181915;
  --ink-3: #20211d;
  --line: #2c2d28;
  --line-2: #3f403a;
  --bone: #ecece4;
  --text-2: #c8c8bf;
  --mute: #a3a399;
  --dim: #85857b;
  --tape: #f6c400;
  --tape-hi: #ffd43a;
  --tape-ink: #1a1600;
  --mark: #d23f2c;
  --mark-hi: #ff6e5a;
  --hook: #b8bcc0;
  --paper: #ffffff;
  --paper-2: #f4f4f0;
  --p-ink: #161613;
  --p-ink2: #44443e;
  --p-mute: #64645c;
  --p-line: #d6d6cf;
  --p-line2: #b9b9b0;
  --ok: #23704a; --ok-bg: #e2f0e7; --ok-d: #66c891;
  --warn: #a95300; --warn-bg: #fbebd7; --warn-d: #f2a25a;
  --stop: #ae2219; --stop-bg: #f8e0dc; --stop-d: #ff7b6f;
  --info-d: #9db4cf;
  --f-display: 'Big Shoulders', 'Display Fallback', 'Arial Narrow', Impact, sans-serif;
  --f-body: 'Barlow', 'Barlow Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', 'Mono Fallback', ui-monospace, Menlo, Consolas, monospace;
  --gut: 16px;
  --maxw: 1240px;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gut: 32px; } }
@media (min-width: 1200px) { :root { --gut: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 17px/1.55 var(--f-body);
  font-feature-settings: 'kern';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--tape-hi); }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left)); padding-right: max(var(--gut), env(safe-area-inset-right)); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--tape); color: var(--tape-ink); padding: 10px 14px; font-weight: 600; border-radius: 4px; }
.skip:focus { top: 8px; }

/* ---- Buttons and store slots ------------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  background: var(--tape); color: var(--tape-ink);
  font: 600 18px/1 var(--f-body); text-decoration: none;
  border: 0; border-radius: 4px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.btn:hover { background: var(--tape-hi); color: var(--tape-ink); }
.btn:focus-visible { outline-color: var(--bone); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--tape); box-shadow: inset 0 0 0 1.5px var(--tape); }
.btn-ghost:hover { background: rgba(246, 196, 0, .1); color: var(--tape-hi); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.soon {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 52px; padding: 6px 16px;
  border: 1px dashed var(--line-2); border-radius: 8px;
  color: var(--bone); font: 600 17px/1.1 var(--f-body); white-space: nowrap;
}
.soon small { font: 500 10px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 3px; }
@media (max-width: 419px) {
  .hero .ctas .btn, .end .ctas .btn { width: 100%; }
  .stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .soon { padding: 6px 10px; font-size: 16px; min-width: 0; }
  .soon small { font-size: 9px; letter-spacing: .06em; }
}
.badge { display: inline-flex; text-decoration: none; }
.badge img { height: 52px; width: auto; display: block; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fine { color: var(--mute); font-size: 15px; }

/* ---- Header ----------------------------------------------------------------------------------- */

.top { position: sticky; top: 0; z-index: 5; background: rgba(18, 19, 16, .92); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .top { background: rgba(18, 19, 16, .78); backdrop-filter: blur(10px); } }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--bone); }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo span { font: 800 25px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.logo:hover { color: var(--bone); }
.top nav { display: none; gap: 26px; margin-left: auto; }
.top nav a { color: var(--mute); text-decoration: none; font: 600 15px/1 var(--f-body); }
.top nav a:hover { color: var(--bone); }
.top .btn-sm { margin-left: auto; }
@media (min-width: 900px) { .top nav { display: flex; } .top .btn-sm { margin-left: 8px; } }
@media (max-width: 359px) { .logo span { font-size: 21px; } .top .btn-sm { padding: 0 10px; font-size: 14px; } }

/* ---- Hero ------------------------------------------------------------------------------------- */

.hero { padding: 36px 0 56px; }
.hero-in { display: grid; gap: 36px; }
.hero-copy { container-type: inline-size; min-width: 0; }
.hero h1 { font: 800 clamp(48px, 15.5vw, 92px)/.86 var(--f-display); letter-spacing: .004em; }
@supports (font-size: 1cqi) { .hero h1 { font-size: min(19.6cqi, 124px); } }
.hero h1 span { display: block; white-space: nowrap; }
.hero .lede { margin-top: 22px; max-width: 34em; font-size: 19px; line-height: 1.5; color: var(--text-2); }
.hero .ctas { margin-top: 28px; }
.hero .fine { margin-top: 14px; }
.hero-fig { margin: 0; min-width: 0; }
.hero-fig figcaption { margin: 10px 0 0; font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
@media (min-width: 960px) {
  .hero { padding: 64px 0 84px; }
  .hero-in { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 56px; align-items: center; }
}

/* The wall drawing (inch units; built by build.mjs) */
.wall { display: block; width: 100%; height: auto; overflow: visible; }
.wall .hl { stroke: var(--line-2); stroke-width: .32; }
.wall .edge { stroke: var(--dim); stroke-width: .3; }
.wall .plate, .wall .stud { fill: #262721; stroke: var(--bone); stroke-width: .3; }
.wall .stud { fill: #2e2c1c; }
.wall .mark { stroke: var(--mark-hi); stroke-width: .4; fill: none; }
.wall .ext, .wall .dl { stroke: var(--mute); stroke-width: .22; }
.wall .tk { stroke: var(--bone); stroke-width: .42; }
.wall .dt { fill: var(--bone); font-family: var(--f-mono); font-weight: 500; font-size: 3.4px; text-anchor: middle; }
.wall .dt-big { fill: var(--tape); font-size: 4.4px; }
.wall .blade { fill: var(--tape); }
.wall .bt { stroke: var(--tape-ink); stroke-width: .24; }
.wall .sb { fill: var(--mark); }
.wall .st { fill: #fff; font-family: var(--f-mono); font-weight: 500; font-size: 2.5px; text-anchor: middle; }
.wall .ft { fill: var(--mark); font-family: var(--f-mono); font-weight: 500; font-size: 2.6px; text-anchor: middle; }
.wall .hook { fill: var(--hook); }
.wall .cs { fill: var(--tape); }
.wall .hub { fill: var(--ink); }
@media (max-width: 640px) {
  .wall .dt { font-size: 5px; }
  .wall .dt-big { font-size: 6px; }
}

/* One page-load sequence: the tape runs out, each stud lands on its 16″ mark, the dimensions settle. */
.motion .wall .ground { animation: w-fade .6s ease-out both; }
.motion .wall .plate { transform-box: fill-box; transform-origin: 0 50%; animation: w-grow .55s cubic-bezier(.3, .7, .2, 1) .1s both; }
.motion .wall .blade-reveal { transform-box: fill-box; transform-origin: 0 50%; animation: w-grow 2.4s linear .45s both; }
.motion .wall .case { animation: w-run 2.4s linear .45s both; }
.motion .wall .mark { animation: w-fade .2s ease-out var(--t) both; }
.motion .wall .stud { transform-box: fill-box; animation: w-drop .6s cubic-bezier(.2, 1.3, .4, 1) calc(var(--t) + .1s) both; }
.motion .wall .d1 { animation: w-fade .5s ease-out 3.05s both; }
.motion .wall .d2 { animation: w-fade .5s ease-out 3.3s both; }
.motion .wall .d3 { animation: w-fade .5s ease-out 3.5s both; }
.motion .readouts dd { animation: w-settle .5s ease-out 3.6s both; }
.motion .readouts div:nth-child(3) dd { animation: none; }
@keyframes w-fade { from { opacity: 0; } }
@keyframes w-grow { from { transform: scaleX(0); } }
@keyframes w-run { from { transform: translateX(-144px); } }
@keyframes w-drop { 0% { opacity: 0; transform: translateY(-16px); fill: #f6c400; } 55% { fill: #f6c400; } 100% { opacity: 1; transform: none; } }
@keyframes w-settle { from { opacity: .25; } }

.readouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 0; border-top: 1px solid var(--line-2); }
.readouts div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.readouts dt { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.readouts dd { margin: 4px 0 0; }
.readouts b { display: block; font: 500 22px/1.15 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--bone); white-space: nowrap; }
.readouts div:nth-child(3) b { color: var(--tape); }
.readouts span { display: block; font-size: 13px; line-height: 1.35; color: var(--mute); }
@media (min-width: 420px) { .readouts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .readouts div:nth-child(n+4) { border-bottom: 0; } }

/* ---- Modules (the repeated section pattern) --------------------------------------------------- */

.mod { padding: 64px 0; border-top: 1px solid var(--line); }
.mod-id {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding-bottom: 16px; margin-bottom: 32px; border-bottom: 1px solid var(--line);
  font: 500 12px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.mod-id .code { color: var(--bone); }
.mod-id .read { margin-left: auto; color: var(--dim); }
.callout { position: relative; display: grid; grid-template-rows: 1fr 1fr; width: 40px; height: 40px; flex: none; border: 1.5px solid var(--bone); border-radius: 50%; }
.callout::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--bone); }
.callout i { display: grid; place-items: center; font: 500 11px/1 var(--f-mono); font-style: normal; letter-spacing: 0; color: var(--bone); }
.callout i:first-child { padding-top: 3px; }
.callout i:last-child { padding-bottom: 3px; }
.mod-intro { display: grid; gap: 16px; margin-bottom: 36px; }
.mod-intro h2 { font: 800 clamp(42px, 11vw, 80px)/.92 var(--f-display); letter-spacing: .003em; max-width: 12em; text-wrap: balance; }
.mod-intro h2 span { display: block; }
.mod-intro .lede { font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 36em; }
@media (max-width: 520px) { .mod-id .read { margin-left: 54px; width: 100%; } }
@media (min-width: 900px) {
  .mod { padding: 96px 0; }
  .mod-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: end; margin-bottom: 48px; }
  .mod-intro h2 { font-size: clamp(54px, 5.6vw, 80px); }
}
.sub { font: 500 12px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
.note { margin-top: 20px; max-width: 46em; font-size: 15px; color: var(--mute); }

/* Title block: the key/value rows at the end of a module */
.spec { display: grid; grid-template-columns: 1fr; margin: 40px 0 0; border: 1px solid var(--line-2); }
.spec div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.spec div:last-child { border-bottom: 0; }
.spec dt { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.spec dd { margin: 5px 0 0; font: 600 16px/1.4 var(--f-body); color: var(--bone); }
@media (min-width: 640px) {
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec div { border-right: 1px solid var(--line); }
  .spec div:last-child { border-bottom: 1px solid var(--line); }
}
@media (min-width: 1000px) {
  .spec { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
  .spec div, .spec div:last-child { border-bottom: 0; }
  .spec div:last-child { border-right: 0; }
}

/* ---- Stamps (DIY OK / PRO STEP / PRO JOB) ----------------------------------------------------- */

.stamp {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 4px 10px; border: 2.5px solid currentColor; border-radius: 3px;
  outline: 1px solid currentColor; outline-offset: 2px;
  font: 800 16px/1.15 var(--f-display); letter-spacing: .12em; white-space: nowrap;
  transform: rotate(-2deg);
}
.stamp .ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.stamp-diy { color: var(--ok); background: var(--ok-bg); }
.stamp-step { color: var(--warn); background: var(--warn-bg); }
.stamp-pro { color: var(--stop); background: var(--stop-bg); }
.stamp-sm { padding: 2px 6px; border-width: 1.5px; outline-offset: 1.5px; font-size: 13px; letter-spacing: .1em; transform: none; gap: 4px; }
.stamp-sm .ic { width: 12px; height: 12px; }
.mod .stamp-sm.stamp-diy { color: var(--ok-d); background: rgba(102, 200, 145, .08); }
.mod .stamp-sm.stamp-step { color: var(--warn-d); background: rgba(242, 162, 90, .08); }
.mod .stamp-sm.stamp-pro { color: var(--stop-d); background: rgba(255, 123, 111, .08); }

/* ---- The example Sheets (paper on the desk) --------------------------------------------------- */

.set-bar { display: grid; gap: 12px; margin-bottom: 16px; }
html:not(.js) .tabs { display: none; }
.tabs { display: grid; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.tabs button, .units button {
  appearance: none; border: 0; margin: 0; cursor: pointer;
  background: transparent; color: var(--mute);
  font: 600 16px/1.25 var(--f-body); text-align: left;
  padding: 11px 16px; min-height: 48px;
}
.tabs button + button { border-top: 1px solid var(--line-2); }
.tabs button span { display: block; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.tabs button:hover, .units button:hover { color: var(--bone); background: var(--ink-3); }
.tabs button[aria-selected='true'], .units button[aria-pressed='true'] { background: var(--bone); color: var(--p-ink); }
.tabs button[aria-selected='true'] span { color: var(--p-mute); }
.units { display: inline-grid; grid-auto-flow: column; justify-self: start; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.units button { font-size: 15px; padding: 8px 14px; min-height: 44px; text-align: center; }
.units button + button { border-left: 1px solid var(--line-2); }
.tabs button:focus-visible, .units button:focus-visible { outline-offset: -4px; }
.units[hidden] { display: none; }
.js .units[hidden] { display: inline-grid; }
@media (min-width: 720px) {
  .tabs { display: flex; }
  .tabs button { flex: 1 1 0; }
  .tabs button + button { border-top: 0; border-left: 1px solid var(--line-2); }
}
@media (min-width: 1000px) { .set-bar { grid-template-columns: 1fr auto; align-items: end; } .tabs { max-width: 760px; } }

.sheet { background: var(--paper); color: var(--p-ink); padding: 5px; border: 1px solid var(--p-line2); border-radius: 2px; box-shadow: 0 28px 60px -32px rgba(0, 0, 0, .9); }
.js .sheet { display: none; }
.js .sheet.is-on { display: block; }
.sheet :focus-visible { outline-color: var(--p-ink); }
.sheet + .sheet { margin-top: 24px; }
.sheet-u { border: 1px solid var(--p-line2); padding: 18px 14px; }
.sheet-u[hidden] { display: none; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--p-ink); }
.sheet-no { font: 500 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--p-mute); }
.sheet h3 { margin-top: 6px; font: 800 clamp(30px, 8vw, 42px)/.95 var(--f-display); }
.sheet-top { display: grid; gap: 18px; margin: 18px 0 26px; }
.sheet-dr { margin: 0; border: 1px solid var(--p-line); padding: 10px; background: var(--paper); min-width: 0; }
.sheet-dr svg { display: block; width: 100%; height: auto; }
.sheet-dr figcaption { margin-top: 8px; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--p-mute); }
.side { display: grid; gap: 18px; align-content: start; min-width: 0; }
.tools ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.tools li { padding: 7px 0; border-bottom: 1px solid var(--p-line); font-size: 15px; line-height: 1.3; }
.tools-more { margin-top: 8px; font-size: 14px; color: var(--p-mute); }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; margin: 0; border: 1.5px solid var(--p-ink); }
.figs div { padding: 12px 14px; border-bottom: 1px solid var(--p-line); }
.figs div:nth-child(odd) { border-right: 1px solid var(--p-line); }
.figs div:nth-last-child(-n+2):nth-child(odd), .figs div:last-child { border-bottom: 0; }
.figs dt { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--p-mute); }
.figs dd { margin: 4px 0 0; }
.figs b { display: block; font: 500 clamp(22px, 6vw, 30px)/1.1 var(--f-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.figs span { display: block; font-size: 14px; line-height: 1.35; color: var(--p-ink2); }
@media (min-width: 900px) {
  .sheet-u { padding: 26px 28px; }
  .sheet-top { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; }
}

.buy { width: 100%; border-collapse: collapse; font-size: 15px; }
.buy caption { text-align: left; padding-bottom: 10px; font: 800 26px/1 var(--f-display); letter-spacing: .03em; text-transform: uppercase; }
.buy caption span { display: inline-block; margin-left: 8px; font: 500 11px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--p-mute); vertical-align: 3px; }
.buy th { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--p-mute); text-align: left; padding: 8px 16px 8px 0; border-bottom: 1.5px solid var(--p-ink); }
.buy td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--p-line); vertical-align: top; }
.buy .q { font: 500 15px/1.4 var(--f-mono); width: 21%; }
.buy .n { font-weight: 600; width: 27%; }
.buy .n small { display: block; font-weight: 400; font-size: 14px; color: var(--p-mute); }
.buy .w { line-height: 1.5; color: var(--p-ink2); }
.js .buy.has-more:not(.open) tr.more { display: none; }
.more-btn { margin-top: 12px; appearance: none; background: none; border: 0; padding: 8px 0; cursor: pointer; font: 600 15px/1.2 var(--f-body); color: var(--p-ink); text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.more-btn[hidden] { display: none; }
.js .more-btn[hidden] { display: inline-block; }
@media (max-width: 719px) {
  .buy thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .buy tr { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--p-line); }
  .buy td { display: block; padding: 0; border: 0; width: auto !important; }
  .buy .w { margin-top: 4px; font-size: 14.5px; }
  .js .buy.has-more:not(.open) tr.more { display: none; }
}

.tblock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; border: 1.5px solid var(--p-ink); font: 600 15px/1.3 var(--f-body); }
.tblock div { padding: 10px 12px; border-right: 1px solid var(--p-line); }
.tblock div:nth-child(3) { border-right: 0; }
.tblock span { display: block; font: 500 10px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--p-mute); margin-bottom: 3px; }
.tb-link { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; background: var(--p-ink); color: var(--paper); text-decoration: none; font: 600 16px/1 var(--f-body); }
.tb-link:hover { background: #000; color: var(--tape-hi); }
.tb-link:focus-visible { outline-color: var(--p-ink); }
@media (min-width: 720px) {
  .tblock { grid-template-columns: repeat(3, auto) 1fr; }
  .tblock div:nth-child(3) { border-right: 1px solid var(--p-line); }
  .tb-link { grid-column: auto; justify-self: end; }
}

/* ---- Sheet index and trades ------------------------------------------------------------------- */

.index { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-2); }
.index li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ix-n { font: 500 13px/1 var(--f-mono); color: var(--dim); }
.ix-name { font: 600 17px/1.25 var(--f-body); }
.ix-name small { display: block; font-weight: 400; font-size: 13.5px; color: var(--mute); margin-top: 2px; }
@media (min-width: 900px) {
  .index { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(11, auto); grid-auto-flow: column; column-gap: 48px; }
}
.legend { display: grid; gap: 10px; margin: 22px 0 0; }
.legend div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.legend dd { margin: 0; font-size: 15px; color: var(--mute); }
@media (min-width: 900px) { .legend { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .legend div { grid-template-columns: auto 1fr; } }
.trades-wrap { margin-top: 48px; }
.trades { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trades li { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 3px; font-size: 15px; color: var(--text-2); }

/* ---- Pros ------------------------------------------------------------------------------------- */

.pros { display: grid; gap: 40px; }
.feats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.feats li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.feats h3 { font: 600 19px/1.3 var(--f-body); }
.feats p { margin-top: 4px; color: var(--mute); font-size: 16px; max-width: 34em; }
.pros-shots { position: relative; padding-bottom: 72px; padding-right: 18%; }
.pros-shots .dev-phone { position: absolute; right: 0; bottom: 0; width: 36%; }
.pros-shots .dev-phone figcaption { display: none; }
@media (min-width: 1000px) {
  .pros { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .pros-shots { position: sticky; top: 96px; padding-right: 14%; }
  .pros-shots .dev-phone { width: 30%; }
}

/* ---- Device frames ---------------------------------------------------------------------------- */

.dev { margin: 0; min-width: 0; }
.dev .scr { overflow: hidden; background: #000; }
.dev img { display: block; width: 100%; height: auto; }
.dev figcaption { margin-top: 12px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.dev-phone .scr { border: 7px solid #070706; border-radius: 30px; box-shadow: 0 0 0 1px #46473f, 0 30px 60px -24px rgba(0, 0, 0, .85); }
.dev-tab .scr { border: 11px solid #070706; border-radius: 20px; box-shadow: 0 0 0 1px #46473f, 0 30px 60px -28px rgba(0, 0, 0, .85); }
.dev-web .bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #23241f; border: 1px solid #46473f; border-bottom: 0; border-radius: 10px 10px 0 0; }
.dev-web .bar i { width: 10px; height: 10px; border-radius: 50%; background: #4a4b44; flex: none; }
.dev-web .bar span { margin: 0 auto; padding: 3px 14px; border-radius: 4px; background: var(--ink); font: 500 12px/1.3 var(--f-mono); color: var(--mute); transform: translateX(-17px); }
.dev-web .scr { border: 1px solid #46473f; border-radius: 0 0 10px 10px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .85); }

.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; align-items: end; }
.screens .dev-web, .screens .dev-tab, .screens .plat { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .screens { grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 56px 28px; }
  .screens .dev-web { grid-column: 1 / 15; grid-row: 1; }
  .screens .dev-phone:nth-of-type(3) { grid-column: 15 / 20; grid-row: 1; }
  .screens .dev-phone:nth-of-type(4) { grid-column: 20 / 25; grid-row: 1; }
  .screens .plat { grid-column: 1 / 10; grid-row: 2; align-self: center; }
  .screens .dev-tab { grid-column: 11 / 25; grid-row: 2; }
}
.plat { margin: 0; border: 1px solid var(--line-2); }
.plat div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.plat div:last-child { border-bottom: 0; }
.plat dt { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.plat dd { margin: 5px 0 0; font: 600 16px/1.4 var(--f-body); }

/* ---- Community -------------------------------------------------------------------------------- */

.marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.marks li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.marks p { margin-top: 10px; color: var(--text-2); max-width: 30em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px; font: 500 12px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-pro { color: var(--ok-d); }
.chip-team { color: var(--tape); }
.chip-found { color: var(--info-d); }
@media (min-width: 900px) {
  .marks { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
}

/* ---- US + Canada ------------------------------------------------------------------------------ */

.cmp { width: 100%; border-collapse: collapse; }
.cmp caption { text-align: left; font: 500 12px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding-bottom: 14px; }
.cmp thead th { text-align: left; font: 600 16px/1.3 var(--f-body); padding: 0 20px 12px 0; border-bottom: 1px solid var(--line-2); vertical-align: bottom; }
.cmp thead th span { display: block; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.cmp tbody th, .cmp td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.cmp tbody th { font: 600 17px/1.3 var(--f-body); width: 22%; }
.cmp tbody th small { display: block; margin-top: 3px; font-weight: 400; font-size: 13.5px; color: var(--mute); }
.cmp td b { display: block; font: 500 20px/1.25 var(--f-mono); color: var(--bone); }
.cmp td small { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--mute); max-width: 42em; }
@media (max-width: 759px) {
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tr { display: grid; padding: 16px 0; border-bottom: 1px solid var(--line); gap: 12px; }
  .cmp tbody th, .cmp td { display: block; padding: 0; border: 0; width: auto; }
  .cmp td::before { content: attr(data-l); display: block; margin-bottom: 4px; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
}

/* ---- Advertise -------------------------------------------------------------------------------- */

.ads { display: grid; gap: 16px; }
.ad { padding: 22px; border: 1px solid var(--line-2); }
.ad h3 { font: 800 30px/1 var(--f-display); letter-spacing: .01em; }
.ad p { margin-top: 10px; color: var(--text-2); }
.rules { margin: 0; padding: 4px 0 0 20px; color: var(--text-2); }
.rules li + li { margin-top: 10px; }
.rules li::marker { color: var(--tape); }
#advertise .ctas { margin-top: 32px; }
@media (min-width: 900px) { .ads { grid-template-columns: 1fr 1fr 1.2fr; gap: 24px; } .rules { padding: 22px 0 0 40px; } }

/* ---- FAQ -------------------------------------------------------------------------------------- */

.faq { max-width: 880px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font: 600 19px/1.35 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 500 24px/1 var(--f-mono); color: var(--tape); }
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--tape-hi); }
.faq p { padding: 0 0 22px; max-width: 64ch; color: var(--text-2); }

/* ---- 404 ------------------------------------------------------------------------------------- */

.lost { border-top: 0; min-height: 60vh; }
.lost h1 { font: 800 clamp(48px, 12vw, 120px)/.9 var(--f-display); max-width: 10em; }
.lost .lede { margin-top: 18px; font-size: 19px; color: var(--text-2); }
.lost .ctas { margin-top: 28px; }

/* ---- End and footer --------------------------------------------------------------------------- */

.end { padding: 72px 0 80px; border-top: 1px solid var(--line); background: var(--ink-2); }
.end h2 { font: 800 clamp(64px, 18vw, 168px)/.86 var(--f-display); margin-bottom: 28px; }
@media (min-width: 900px) { .end { padding: 112px 0; } .end-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; } .end h2 { margin-bottom: 0; } }
.foot { padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 15px; color: var(--mute); }
.foot-in { display: grid; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--text-2); }
.foot .copy { color: var(--dim); font-size: 14px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: auto 1fr; align-items: center; } .foot nav { justify-content: flex-end; } .foot .copy { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .top, .stores, .ctas, .skip { display: none; }
  body { background: #fff; color: #000; }
}
