/* nobordermarket.org — hand-written, no framework */
:root {
  --bg: #ffffff; --bg-alt: #f5f7f6; --ink: #111816; --muted: #4f5b57; --line: #e1e6e4;
  --brand: #0f766e; --brand-dark: #0b5f58; --brand-soft: #e7f4f2; --accent: #f5a524;
  --radius: 16px; --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.i { width: 1.2em; height: 1.2em; flex: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #5eb8ad; outline-offset: 2px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 28px; } }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }

/* Header */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-alt); }
.nav .gh { display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 560px) { .nav a { padding: 8px 8px; font-size: .9rem; } .nav .gh span { display: none; } }
@media (max-width: 400px) { .hd-in { gap: 8px; } .logo { font-size: .98rem; gap: 8px; } .logo svg { width: 28px; height: 28px; } .nav a { padding: 8px 6px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.2; }
.btn:hover { border-color: #c5cdca; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.deploy img { height: 32px; width: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { padding-block: 56px 32px; background: radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 70%), #fff; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .hero { padding-block: 88px 56px; } }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); max-width: 15ch; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 56ch; margin-bottom: 28px; }
.hero-note { font-size: .9rem; color: var(--muted); margin-top: 16px; }
.shots { position: relative; padding-bottom: 8%; }
.shot-desk { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(16,40,35,.28); }
.shot-phone { position: absolute; width: 30%; right: -2%; bottom: 0; border-radius: 18px; border: 6px solid #111; box-shadow: 0 24px 50px -16px rgba(0,0,0,.35); background: #111; }

/* Sections */
.sec { padding-block: 56px; }
@media (min-width: 900px) { .sec { padding-block: 80px; } }
.sec-alt { background: var(--bg-alt); }
.sec-h { max-width: 720px; margin-bottom: 32px; }
.sec-h h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.sec-h p { color: var(--muted); font-size: 1.08rem; }
.steps { display: grid; gap: 20px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-flex; width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; }
.features { display: grid; gap: 20px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); align-items: center; justify-content: center; margin-bottom: 14px; }
.feature .ico .i { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.langs li { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .95rem; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.split img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 40px -18px rgba(16,40,35,.25); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .i { color: var(--brand); margin-top: .2em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 0 0 1.4em; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg-alt); font-size: .85rem; color: var(--muted); font-weight: 700; }
.principles { display: grid; gap: 20px; }
@media (min-width: 860px) { .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.principles div { border-top: 3px solid var(--brand); padding-top: 14px; }
.principles h3 { font-size: 1.05rem; }
.principles p { color: var(--muted); font-size: .96rem; margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.final { text-align: center; }
.final .cta { justify-content: center; }

/* Docs */
.docs { display: grid; gap: 32px; padding-block: 32px 64px; }
@media (min-width: 980px) { .docs { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; } }
.side { font-size: .95rem; }
@media (min-width: 980px) { .side { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; } }
.side p { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.side ul { list-style: none; padding: 0; margin: 0 0 20px; }
.side a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.side a:hover { background: var(--bg-alt); }
.side a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
@media (max-width: 979px) { .side details > summary { cursor: pointer; font-weight: 700; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; list-style: none; } .side details[open] > summary { margin-bottom: 10px; } }
@media (min-width: 980px) { .side details > summary { display: none; } }
.doc { max-width: 760px; min-width: 0; }
.doc h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); }
.doc .intro { font-size: 1.12rem; color: var(--muted); }
.doc h2 { font-size: 1.45rem; margin-top: 2em; padding-top: .3em; scroll-margin-top: 80px; }
.doc h3 { font-size: 1.15rem; margin-top: 1.6em; scroll-margin-top: 80px; }
.anchor { float: left; margin-left: -1em; padding-right: .3em; color: #b8c2bf; text-decoration: none; opacity: 0; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }
@media (hover: none) { .anchor { display: none; } }
.doc ul, .doc ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.doc li { margin-bottom: .35em; }
.doc img { border-radius: 12px; border: 1px solid var(--line); margin: 8px 0 20px; }
code { font-family: var(--mono); font-size: .88em; background: #eef2f1; padding: 2px 6px; border-radius: 6px; }
.code { position: relative; margin: 0 0 1.4em; }
pre { margin: 0; padding: 16px 18px; background: #0f1a18; color: #e7f0ee; border-radius: 12px; overflow-x: auto; font-size: .9rem; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.copy { position: absolute; top: 8px; right: 8px; font: inherit; font-size: .8rem; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #e7f0ee; cursor: pointer; }
.callout { border-radius: 12px; padding: 14px 18px; margin: 0 0 1.4em; background: var(--bg-alt); border-inline-start: 4px solid #9aa7a3; }
.callout > :last-child { margin-bottom: 0; }
.callout-t { font-weight: 800; margin-bottom: .3em; }
.callout.tip { background: var(--brand-soft); border-color: var(--brand); }
.callout.warn { background: #fff5e6; border-color: #d98a00; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager a { display: grid; text-decoration: none; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; max-width: 48%; }
.pager a:hover { border-color: #c5cdca; }
.pager small { color: var(--muted); }
.pager .next { margin-inline-start: auto; text-align: end; }
.toc { font-size: .92rem; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 28px; }
.toc p { font-weight: 800; margin: 0 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ul { margin: 0; padding-inline-start: 1.1em; }
.toc li { margin: 2px 0; }

/* Page (about, privacy, partners, downloads) */
.page { max-width: 760px; padding-block: 48px 72px; }
.page h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
.page h2 { font-size: 1.4rem; margin-top: 1.8em; }
.page h3 { font-size: 1.05rem; margin-top: 1.4em; }
.page-wide { max-width: 980px; }
.page .intro { font-size: 1.12rem; color: var(--muted); }
.page h2 .muted { font-size: .9rem; font-weight: 600; }
.dl-langs li { padding: 0; }
.dl-langs a { display: block; padding: 6px 12px; text-decoration: none; color: var(--ink); }
.dl-langs a:hover { color: var(--brand-dark); }

/* Wide tables become stacked cards on phones */
@media (max-width: 600px) {
  .stack table, .stack tbody, .stack tr, .stack td { display: block; width: 100%; }
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .stack tr:last-child { border-bottom: 0; }
  .stack td { border: 0; padding: 3px 14px; }
  .stack td::before { content: attr(data-label); display: block; font-size: .76rem; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
  .stack td:empty { display: none; }
  .stack td:first-child { font-weight: 700; }
  .talk-ex td:first-child { font-weight: 400; }
}

/* Tools on the home page */
.sec-tools { padding-block: 48px 8px; }
.tools { display: grid; gap: 16px; }
@media (min-width: 640px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tool { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tool:hover { border-color: #b9c9c4; box-shadow: 0 16px 30px -22px rgba(16,40,35,.45); }
.tool .ico { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); align-items: center; justify-content: center; margin-bottom: 12px; }
.tool .ico .i { width: 24px; height: 24px; }
.tool h3 { font-size: 1.1rem; }
.tool p { color: var(--muted); margin: 0; font-size: .97rem; }
.tools-more { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; color: var(--muted); }
.tools-more .i { color: var(--brand); margin-top: .25em; }

/* NoBorder Talk page */
.talk-shots { max-width: 560px; margin-inline: auto; align-items: start; }
.talk-shots img { border-radius: 22px; border: 6px solid #111; background: #111; box-shadow: 0 24px 50px -18px rgba(0,0,0,.35); }
.talk-shots img:last-child { margin-top: 48px; }
.talk-ex td { font-size: 1rem; }
.talk-ex td:first-child { color: var(--muted); }

/* Printable pages (partners) */
@media print {
  .hd, .ft, .skip, .anchor { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .page { max-width: none; padding: 0; }
  .page h2 { break-after: avoid; }
  .table-wrap { border: 0; overflow: visible; }
  tr { break-inside: avoid; }
  a { color: #000; }
}

/* Footer */
.ft { border-top: 1px solid var(--line); background: var(--bg-alt); color: var(--muted); font-size: .95rem; }
.ft-in { display: grid; gap: 28px; padding-block: 40px; }
@media (min-width: 860px) { .ft-in { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } }
.ft h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: 10px; }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ft a { color: var(--muted); text-decoration: none; }
.ft a:hover { color: var(--ink); text-decoration: underline; }
.ft-bot { border-top: 1px solid var(--line); padding-block: 18px 28px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (max-width: 420px) { .nav .nav-demo { display: none; } }
@media (max-width: 360px) { .nav .gh { display: none; } }
