/* Pageseam · direction C, "The Stitched Link". No frameworks, no trackers. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #161616;
  --paper: #F3EFE6;
  --surface: #FFFFFF;
  --stone: #5A5852;
  --link: #23408E;
  --link-hover: #1B3375;
  --on-link: #FFFFFF;
  --blue-soft: #E3E8F5;
  --rule: #D8D2C6;
  --on-ink: #F3EFE6;
  --ph-bg: #FFF0B8;
  --ph-ink: #5C4300;
  --ph-line: #C99A00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3EFE6;
    --paper: #161616;
    --surface: #1F1E1C;
    --stone: #B8B2A6;
    --link: #9DB2F0;
    --link-hover: #B4C4F4;
    --on-link: #10172E;
    --blue-soft: #1C2236;
    --rule: #3A3833;
    --on-ink: #161616;
    --ph-bg: #3D3108;
    --ph-ink: #FFE58A;
    --ph-line: #B08A10;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: break-word;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 760; font-stretch: 72%; line-height: .98; letter-spacing: -.005em; text-wrap: balance; margin: 0 0 16px; }
h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); line-height: .94; }
h2 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4rem); }
h3 { font-size: clamp(1.4rem, 1.15rem + .8vw, 1.8rem); line-height: 1.02; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding: 0; }
strong { font-weight: 700; }

a { color: var(--link); text-decoration: underline dashed; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { text-decoration-style: solid; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--link); outline-offset: 3px;
}

.wrap {
  max-width: 78rem; margin: 0 auto;
  padding-left: max(clamp(20px, 4vw, 48px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(20px, 4vw, 48px), env(safe-area-inset-right, 0px));
}
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header: the same bar as the home page */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 4rem; }
.logo { height: 23px; width: auto; }
.brand { flex: none; display: block; text-decoration: none; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; font-size: .97rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.site-head .badge { margin-left: auto; }
@media (max-width: 760px) {
  .nav a:not(.keep) { display: none; }
  .logo { height: 20px; }
  .site-head .btn-sm { padding-inline: .95em; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: .75em 1.45em;
  border: 0; border-radius: 999px;
  background: var(--link); color: var(--on-link);
  font: inherit; font-weight: 650; line-height: 1.1; text-align: center;
  text-decoration: none; cursor: pointer; transition: background-color .15s;
}
.btn:hover { background: var(--link-hover); color: var(--on-link); text-decoration: none; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 2.5rem; padding: .55em 1.1em; font-size: .95rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }

/* Type helpers */
.eyebrow { font-size: 15px; font-weight: 600; color: var(--stone); margin: 0 0 16px; }
.lede { font-size: 1.125rem; max-width: 40em; }
.muted { color: var(--stone); }
.small { font-size: 14px; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* Placeholders that must stay visible until filled */
.ph {
  display: inline; padding: 1px 6px; border: 1px dashed var(--ph-line); border-radius: 2px;
  background: var(--ph-bg); color: var(--ph-ink);
  font-size: 0.85em; font-weight: 700; letter-spacing: 0; line-height: 1.5;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
h1 .ph, h2 .ph { font-size: 0.45em; vertical-align: middle; }

/* Sections */
.section { padding: 64px 0; border-top: 1.5px solid var(--rule); }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-head { max-width: 760px; margin-bottom: 32px; }
.band { background: var(--blue-soft); }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 80px 0 96px; } .hero-grid { grid-template-columns: 1.08fr 1fr; gap: 56px; } }
.hero h1 { margin-bottom: 12px; }
.hero .tag-line { margin: 0 0 24px; }

/* The seam: ad -> page schematic */
.seam { margin: 0; }
.seam-row { display: grid; grid-template-columns: 1fr 28px 0.72fr; align-items: center; }
@media (min-width: 600px) { .seam-row { grid-template-columns: 1fr 56px 0.68fr; } }
.seam-ad { position: relative; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--surface); }
.seam-ad img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 1px; }
.seam-line { height: 0; border-top: 2px dashed var(--link); }
.seam-page { border: 1.5px solid var(--ink); border-radius: 12px; background: var(--surface); padding: 10px 8px 14px; }
.seam-page .bar-top { height: 6px; width: 34%; margin: 0 auto 8px; border-radius: 3px; background: var(--rule); }
.seam-page img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.seam-page .b { height: 8px; border-radius: 1px; background: var(--ink); margin-top: 10px; width: 78%; }
.seam-page .b.s { background: var(--stone); width: 34%; height: 6px; margin-top: 7px; }
.seam-page .b.btn-b { width: 100%; height: 18px; border-radius: 2px; margin-top: 12px; }
.seam-page .b.r { background: var(--rule); width: 100%; height: 5px; margin-top: 8px; }
.seam figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--stone); }

/* Badges on demo work */
.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--blue-soft); color: var(--link);
  font-size: 14px; font-weight: 650; line-height: 1.3;
}
.on-img { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px); }

/* 10 / 2 / 1 strip */
.strip { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.strip ul { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.strip li { padding: 24px 8px; text-align: center; }
.strip li + li { border-left: 1.5px solid var(--rule); }
.strip .n { display: block; font-size: clamp(2.25rem, 8vw, 3.5rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.strip .l { display: block; margin-top: 8px; font-size: 14px; color: var(--stone); line-height: 1.3; }

/* Lists with dash markers */
.dash { list-style: none; }
.dash li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.dash li::before { content: "\2013"; position: absolute; left: 0; color: var(--stone); }

/* Pricing */
.cards { display: grid; gap: 16px; }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1.5px solid var(--rule); border-radius: 2px; padding: 24px; display: flex; flex-direction: column; }
@media (min-width: 768px) { .card { padding: 28px; } }
.card h3 { margin-bottom: 8px; }
.price { font-size: 2.5rem; font-weight: 700; line-height: 1; margin: 8px 0 4px; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; }
.price small { font-size: 0.95rem; font-weight: 400; color: var(--stone); letter-spacing: 0; }
.card .dash { margin: 20px 0 24px; font-size: 16px; }
.card .btn { margin-top: auto; }
.card-key { border-color: var(--ink); }
.sample-box { display: grid; gap: 24px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 2px; padding: 24px; }
@media (min-width: 900px) { .sample-box { grid-template-columns: 1.3fr 1fr; padding: 32px; align-items: start; } }
.sample-box .dash { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin-top: 32px; }
.prices-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prices-table th, .prices-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prices-table th { font-weight: 700; border-bottom: 1.5px solid var(--ink); }
.prices-table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
/* Below 640px each row becomes a block: name, what's included and price, one under the other (#723, 24/10) */
@media (max-width: 639px) {
  .prices-table { min-width: 0; }
  .prices-table thead { position: absolute; left: -9999px; }
  .prices-table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .prices-table tbody tr:first-child { border-top: 1.5px solid var(--ink); }
  .prices-table th, .prices-table td { display: block; padding: 0; border-bottom: 0; }
  .prices-table td { margin-top: 4px; }
}

/* Steps */
.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
.steps li { counter-increment: s; position: relative; padding: 16px 0 0 52px; border-top: 1.5px solid var(--rule); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 14px;
  font-weight: 700; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums lining-nums; color: var(--link);
}

/* Two columns */
.cols { display: grid; gap: 40px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Facts */
.facts { list-style: none; display: grid; gap: 16px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts li { background: var(--surface); border: 1.5px solid var(--rule); border-radius: 2px; padding: 20px; }
.facts strong { display: block; margin-bottom: 6px; }

/* Work samples */
.work-note { border-left: 3px solid var(--link); padding: 4px 0 4px 16px; margin: 0 0 32px; max-width: 760px; }
.grid-demo { columns: 2; column-gap: 12px; }
@media (min-width: 900px) { .grid-demo { columns: 3; column-gap: 20px; } }
.grid-demo .tile { break-inside: avoid; margin-bottom: 20px; }
.tile { margin: 0; }
.tile .frame { position: relative; border: 1.5px solid var(--rule); border-radius: 2px; overflow: hidden; background: var(--surface); }
.tile figcaption { font-size: 13px; line-height: 1.45; color: var(--stone); margin-top: 8px; }
.grid-secoes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; margin-top: 24px; }
@media (min-width: 900px) { .grid-secoes { grid-template-columns: 1fr 1fr 2.2fr; gap: 20px; } }
.grid-secoes .wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .grid-secoes .wide { grid-column: auto; } }
.sub-h { margin-top: 56px; }
.crop-390 { aspect-ratio: 390 / 560; object-fit: cover; object-position: top; width: 100%; }

/* FAQ */
.faq details { border-top: 1.5px solid var(--rule); }
.faq details:last-child { border-bottom: 1.5px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.0625rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding: 0 0 20px; margin: 0; max-width: 46em; }

/* Form */
.form-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
form .field { margin-bottom: 20px; }
form label { display: block; font-weight: 700; margin-bottom: 6px; }
form .hint { display: block; font-weight: 400; font-size: 14px; color: var(--stone); }
form input[type="text"], form input[type="email"], form input[type="url"] {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--ink); border-radius: 2px;
}
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.5; margin: 8px 0 24px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--link); }
.consent label { font-weight: 400; margin: 0; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-box { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 2px; padding: 24px; }
@media (min-width: 768px) { .form-box { padding: 32px; } }

/* Footer: the same as the home page */
.site-foot { border-top: 1px solid var(--rule); padding-block: 3rem; font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; }
.site-foot p { margin: 0; }
.site-foot a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.site-foot a:hover { text-decoration-thickness: 2px; }
.foot-brand { display: flex; flex-direction: column; gap: .75rem; }
.foot-brand img { width: auto; height: 24px; }
.foot-brand p, .site-foot small { color: var(--stone); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.site-foot small { font-size: .9rem; }

/* Long-form pages (terms, privacy) */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: clamp(2.4rem, 1.6rem + 3.5vw, 4rem); }
.doc h2 { font-size: clamp(1.4rem, 1.15rem + .8vw, 1.8rem); line-height: 1.02; margin-top: 40px; }
.doc ol.clauses { list-style: none; counter-reset: c; }
.doc ol.clauses > li { counter-increment: c; margin-bottom: 18px; }
.doc .review { background: var(--ph-bg); color: var(--ph-ink); border: 1px dashed var(--ph-line); border-radius: 2px; padding: 12px 16px; margin: 0 0 32px; font-size: 15px; }

/* Private sample pages */
.declare { border-radius: 12px; background: var(--blue-soft); padding: 18px 22px; margin: 24px 0 48px; font-size: 1.0625rem; }
.declare p { margin: 0; }
.pair { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); align-items: start; }
@media (min-width: 900px) { .pair { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pair.before { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .pair.before { grid-template-columns: repeat(4, 1fr); } }
.pair .tile .frame img { width: 100%; }
.video-box { max-width: 420px; }
.video-box video { width: 100%; border: 1.5px solid var(--rule); border-radius: 2px; background: #000; }
/* Sample pages on desktop: no empty band between the note and "Before" (#723, 24/10) */
@media (min-width: 900px) { .doc .section { padding: 64px 0; } .doc .section > h2:first-child { margin-top: 0; } }
