/* MeshMatch Studio beta page. Follows app/ui/brand/README.md and the brochure: navy and brass, section
   names hung in a left margin, one woven-canvas plate per section, numbers set like a spec sheet.
   Light only, on purpose: the page is the brochure's paper, with navy bands. */
:root {
  --paper: #FAFAF8;
  --ink: #141A27;
  --ink-2: #343B4A;
  --navy: #16223A;
  --navy-2: #1E2C49;
  --brass: #A27D36;
  --brass-text: #8A6A2B;
  --brass-lt: #CBA862;
  --pale: #EEE5CF;
  --slate: #5C6475;
  --rule: #E2E1DB;
  --mist: #F1F1EE;
  --on-navy: #E9ECF2;
  --on-navy-2: #A9B2C4;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, serif;
  --label: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: 20px;
  --max: 1120px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.55;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
p { margin: 0; }
img, canvas { display: block; max-width: 100%; }
a { color: var(--brass-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.navy :focus-visible, .hero :focus-visible, .foot :focus-visible { outline-color: var(--brass-lt); }
h1, h2, h3 { font-family: var(--display); font-stretch: 116%; font-weight: 620; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.08; }
h3 { font-size: 18px; line-height: 1.25; font-weight: 600; font-stretch: 108%; letter-spacing: 0; }
.label { font-family: var(--label); font-size: 12px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--brass-text); line-height: 1.5; margin: 0; }
.mono { font-family: var(--label); font-size: 12.5px; letter-spacing: 0.03em; color: var(--slate); }
.lede { font-size: clamp(18px, 2vw, 20px); line-height: 1.5; color: var(--slate); max-width: 44em; margin-top: 16px; }
.small { font-size: 15px; color: var(--slate); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
body { min-height: 100vh; display: flex; flex-direction: column; }      /* short pages keep the footer at the bottom */
body > main { flex: 1 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 20; }
.skip:focus { left: 8px; color: #fff; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(250, 250, 248, .97); border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.lockup { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.lockup img { width: 30px; height: 30px; }
.lockup .word { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 18px; letter-spacing: -0.005em; line-height: 1; }
.lockup .studio { display: block; font-family: var(--label); font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-text); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { display: none; font-family: var(--display); font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--brass-text); }
@media (min-width: 860px) { .nav a:not(.btn) { display: inline; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1.5px solid var(--navy); border-radius: 10px; background: var(--navy); color: #fff; cursor: pointer; }
.btn:hover { background: #0E1729; border-color: #0E1729; color: #fff; }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--pale); color: var(--navy); border-color: var(--navy); }
.btn.brass { background: var(--brass-lt); border-color: var(--brass-lt); color: var(--navy); }
.btn.brass:hover { background: #DCC084; border-color: #DCC084; color: var(--navy); }
.btn.on-navy { background: transparent; border-color: rgba(233, 236, 242, .55); color: #fff; }
.btn.on-navy:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn.is-off, .btn.is-off:hover { background: transparent; border: 1.5px dashed rgba(233, 236, 242, .5); color: var(--on-navy); cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* hero */
.hero { background: var(--navy); color: var(--on-navy); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 44px; padding-bottom: 0; }
.hero .label { color: var(--brass-lt); }
.hero h1 { font-size: clamp(42px, 7.4vw, 76px); line-height: 1; color: #fff; font-stretch: 120%; font-weight: 640; letter-spacing: -0.02em; margin-top: 18px; }
.hero h1 span { color: var(--brass-lt); }
.hero .sub { margin-top: 22px; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--on-navy-2); max-width: 32em; }
.hero .fine { margin-top: 18px; font-family: var(--label); font-size: 12.5px; letter-spacing: 0.03em; color: var(--on-navy-2); }
.hero figure { margin: 0 calc(-1 * var(--gutter)); position: relative; }
.hero .tag { position: absolute; left: var(--gutter); bottom: 16px; background: var(--navy); color: var(--on-navy); padding: 7px 11px;
  font-family: var(--label); font-size: 11.5px; letter-spacing: 0.05em; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: 56px; padding-top: 64px; padding-bottom: 64px; }
  .hero figure { margin: 0; }
  .hero .tag { left: 16px; }
}

/* plates: woven canvas pictures drawn by weave.js */
.plate { position: relative; background: #DCD8CF; overflow: hidden; }
.plate canvas { width: 100% !important; height: auto !important; }
.plate.hero-plate { aspect-ratio: 1 / 1; }
.plate.pair-plate { aspect-ratio: 316.8 / 255; }
.plate.stitch-plate { aspect-ratio: 235 / 205; }
.plate.back-plate { aspect-ratio: 816 / 307.2; }
.plate.corner-plate { min-height: 260px; }
@media (min-width: 1000px) { .plate.corner-plate { aspect-ratio: 662.4 / 260; min-height: 0; } }
figure { margin: 0; }
.cap { margin-top: 10px; font-size: 15px; color: var(--slate); line-height: 1.45; }
.cap b { font-family: var(--display); font-stretch: 108%; font-weight: 600; color: var(--ink); margin-right: 8px; }

/* sections: the name hangs in a left margin column, as in the brochure */
.sec { padding: 64px 0; border-top: 1px solid var(--rule); }
.sec > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 40px; }
.sec .body > * + * { margin-top: 28px; }
.sec .body > h2 + .lede { margin-top: 16px; }
@media (min-width: 900px) {
  .sec { padding: 88px 0; }
  .sec > .wrap { grid-template-columns: 150px minmax(0, 1fr); }
  .sec > .wrap > .label { padding-top: 12px; }
}

.pair { display: grid; gap: 24px; }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-bottom: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { border-top: 1px solid var(--ink); padding-top: 10px; }
.fact .n { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 30px; letter-spacing: -0.01em; line-height: 1.1; white-space: nowrap; }
.fact .n small { font-size: 16px; font-weight: 500; }
.fact p { font-size: 15px; line-height: 1.45; color: var(--slate); margin-top: 6px; }
.two { display: grid; gap: 24px 40px; }
@media (min-width: 720px) { .two { grid-template-columns: 1fr 1fr; } }
.two h3 { margin-bottom: 6px; }
.two p, .feat p, .steps p { font-size: 16px; color: var(--ink-2); }

/* steps */
.steps { list-style: none; margin-bottom: 0; padding: 0; counter-reset: s; }
.steps > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; border-top: 1px solid var(--rule); counter-increment: s; }
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps > li::before { content: counter(s); font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: 32px; line-height: 1; color: var(--brass); grid-row: span 3; }
.steps .where { font-family: var(--label); font-size: 12px; letter-spacing: 0.04em; color: var(--slate); }
.steps .where b { font-weight: 500; color: var(--ink); }
.steps h3 { margin: 2px 0 4px; }
@media (min-width: 760px) {
  .steps > li { grid-template-columns: 44px 170px minmax(0, 1fr); column-gap: 20px; }
  .steps > li::before { grid-row: auto; }
  .steps .where b { display: block; }
  .steps h3 { margin-top: 0; }
  .steps > li > div { grid-column: 3; }
  .steps > li > .where { grid-column: 2; }
}
.once { background: var(--navy); color: var(--on-navy); padding: 22px 24px; display: grid; gap: 8px 24px; }
.once .label { color: var(--brass-lt); }
.once p:not(.label) { font-size: 16.5px; }
@media (min-width: 760px) { .once { grid-template-columns: 170px 1fr; } .once .label { padding-top: 4px; } }

/* features */
.feat { display: grid; gap: 22px 40px; }
@media (min-width: 720px) { .feat { grid-template-columns: 1fr 1fr; } }
.feat .label { font-size: 11px; margin-bottom: 4px; }
.feat h3 { margin-bottom: 4px; }

/* results */
.headline { display: grid; gap: 28px 40px; align-items: start; }
@media (min-width: 720px) { .headline { grid-template-columns: minmax(0, 1fr) 300px; } }
.big { font-family: var(--display); font-stretch: 118%; font-weight: 600; font-size: clamp(76px, 13vw, 124px); line-height: 0.95; letter-spacing: -0.03em; white-space: nowrap; }
.big small { font-size: 0.38em; letter-spacing: 0; color: var(--brass); }
.headline p { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 26em; }
.legend { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.legend li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: center; font-size: 14.5px; color: var(--slate); line-height: 1.35; }
.sw { width: 14px; height: 14px; border-radius: 50%; }
.sw.dot { background: var(--navy); }
.sw.ring { border: 2px solid var(--brass); }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; }
.spec th { font-family: var(--label); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-text);
  text-align: left; padding: 0 0 8px; border-bottom: 1px solid var(--ink); }
.spec td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 16px; }
.spec td.r { font-family: var(--label); font-size: 13.5px; color: var(--ink); padding-right: 0; width: 42%; }
.spec td.r.miss { color: #A23A2C; }
.note { font-size: 15.5px; color: var(--slate); max-width: 44em; }

/* who, compare */
.scroll { overflow-x: auto; }
.cmp th { font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: 14px; text-align: center; padding: 0 6px 10px; vertical-align: bottom; line-height: 1.25; border-bottom: 1px solid var(--ink); }
.cmp th:first-child, .cmp td:first-child, .cmp tbody th { text-align: left; padding-left: 0; }
.cmp td, .cmp tbody th { font-family: var(--text); font-stretch: 100%; font-size: 15px; font-weight: 400; padding: 11px 6px; border-bottom: 1px solid var(--rule); text-align: center; color: var(--slate); vertical-align: middle; }
.cmp tbody th { color: var(--ink); width: 40%; }
.cmp .mm { background: var(--mist); color: var(--ink); font-weight: 600; }
.cmp thead .mm { color: var(--navy); padding-top: 10px; }
@media (max-width: 520px) { .cmp th { font-size: 12px; } .cmp td, .cmp tbody th { font-size: 13.5px; padding: 9px 4px; } .cmp tbody th { width: 34%; } }
.status { display: grid; gap: 20px 32px; }
@media (min-width: 720px) { .status { grid-template-columns: 1fr 1fr; } }
.status .label { margin-bottom: 4px; }
.status p:not(.label) { font-size: 16px; color: var(--ink-2); }

/* download band */
.navy { background: var(--navy); color: var(--on-navy); border-top: 0; }
.navy h2 { color: #fff; }
.navy h2 span { color: var(--brass-lt); }
.navy .label { color: var(--brass-lt); }
.navy .lede { color: var(--on-navy-2); }
.navy a:not(.btn), .hero a:not(.btn) { color: var(--brass-lt); }
.navy a:not(.btn):hover, .hero a:not(.btn):hover { color: #fff; }
.dl-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
.dl { background: var(--navy-2); border: 1px solid rgba(233, 236, 242, .16); padding: 22px; display: grid; gap: 6px; align-content: start; }
.dl.yours { border-color: var(--brass-lt); }
.dl h3 { color: #fff; font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl .chip { display: none; font-family: var(--label); font-stretch: 100%; font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); background: var(--brass-lt); padding: 3px 8px; }
.dl.yours .chip { display: inline-block; }
.dl .meta { font-family: var(--label); font-size: 12.5px; letter-spacing: 0.02em; color: var(--on-navy-2); min-height: 2.8em; }
.dl .btn { margin-top: 8px; width: 100%; }
.navy .small { color: var(--on-navy-2); }

/* waitlist: while <body class="waitlist">, the download section is a signup and the downloads are hidden */
body.waitlist .dl-only, body:not(.waitlist) .wl-only { display: none !important; }
.wl-form { margin-top: 28px; max-width: 36em; display: grid; gap: 12px; }
.wl-row { display: flex; flex-wrap: wrap; gap: 12px; }
.wl-row input { flex: 1 1 16em; min-width: 0; min-height: 48px; padding: 12px 16px; font-family: var(--text); font-size: 17px;
  color: var(--ink); background: #fff; border: 1.5px solid var(--brass-lt); border-radius: 10px; }
.wl-row input::placeholder { color: var(--slate); }
.wl-row .btn { flex: 0 0 auto; }
@media (max-width: 479px) { .wl-row .btn { flex: 1 1 100%; } }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-status:empty { display: none; }
.navy .wl-status { font-family: var(--display); font-size: 16px; font-weight: 600; color: #fff; }
.navy .wl-status.err { color: #F4C7C3; }
.wl-form.done .wl-row { display: none; }
.needs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px 32px; }
@media (min-width: 720px) { .needs { grid-template-columns: 1fr 1fr; } }
.needs li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.45; }
.needs li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--brass-lt); transform: rotate(45deg); }
.sec:not(.navy) .needs li::before { background: var(--brass); }
.install { display: grid; gap: 16px; }
@media (min-width: 860px) { .install { grid-template-columns: 1fr 1fr; } }
.os { border-top: 1px solid rgba(233, 236, 242, .3); padding-top: 16px; }
.os h3 { color: #fff; margin-bottom: 10px; }
.os ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 16px; line-height: 1.5; }
.os ol li::marker { font-family: var(--label); font-size: 13px; color: var(--brass-lt); }
.os b { color: #fff; font-weight: 600; }
.os .small { margin-top: 12px; }

/* beta key */
.key { display: grid; gap: 24px 40px; align-items: start; }
@media (min-width: 760px) { .key { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.key > div > * + * { margin-top: 14px; }
.key .mail { font-family: var(--display); font-stretch: 116%; font-weight: 600; font-size: clamp(20px, 3vw, 26px); color: var(--ink); text-decoration: none; }
.key .mail:hover { color: var(--brass-text); }
.card { background: var(--mist); padding: 22px 24px; }
.card h3 { margin-bottom: 10px; }
.card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; color: var(--ink-2); }

/* first steps, faq, privacy */
.first { list-style: none; margin-bottom: 0; padding: 0; display: grid; gap: 20px 40px; counter-reset: f; }
@media (min-width: 720px) { .first { grid-template-columns: 1fr 1fr; } }
.first li { counter-increment: f; border-top: 1px solid var(--ink); padding-top: 10px; }
.first li::before { content: "0" counter(f); font-family: var(--label); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--brass-text); }
.first h3 { margin: 2px 0 4px; }
.first p { font-size: 16px; color: var(--ink-2); }
.faq { display: grid; gap: 22px 40px; margin: 0; }
@media (min-width: 720px) { .faq { grid-template-columns: 1fr 1fr; } }
.faq dt { font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: 17px; margin-bottom: 3px; }
.faq dd { margin: 0; font-size: 16px; color: var(--ink-2); }
.privacy { background: var(--mist); padding: 24px; border-left: 3px solid var(--brass); }
.privacy h3 { margin-bottom: 8px; }
.privacy p { font-size: 16.5px; color: var(--ink-2); max-width: 46em; }
.privacy p + p { margin-top: 10px; }

/* footer */
.foot { background: var(--navy); color: var(--on-navy-2); padding: 44px 0 48px; font-size: 14px; line-height: 1.6; }
.foot .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot .lockup { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--display); font-size: 15px; }
.foot a { color: var(--on-navy); }
.foot a:hover { color: #fff; }
.foot .legal { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); max-width: 62em; }

/* terms page */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5.5vw, 52px); line-height: 1.04; font-stretch: 120%; margin-top: 14px; }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc p, .doc li { font-size: 17px; color: var(--ink-2); }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.doc .lede { color: var(--slate); }

@media print { .top, .btns { display: none; } .hero, .navy, .foot, .once { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
