/* Plain Text Systems LLC — shared styles
   Plaintext / dev-native: system fonts only, near-monochrome, content over chrome. */

/* Dark, on purpose and unconditionally — a warm near-black, like a serious
   software company. We do NOT follow the OS theme: every visitor (and every
   verification reviewer) should see the same intended look. */
:root {
  --bg: #0e0e0d;
  --panel: #161615;
  --ink: #f2f1ee;
  --muted: #9a988f;
  --hairline: #2a2927;
  --accent: #cfd8ff;
  --measure: 680px;   /* reading measure for prose */
  --shell: 1080px;    /* outer page width */

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 56px);
}

/* Keyboard skip-link: offscreen until focused, then anchored top-left. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 10;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--bg);
  background: var(--ink);
  padding: 8px 14px;
  border-radius: 3px;
  text-decoration: none;
  transition: top 0.12s ease-out;
}

.skip-link:focus {
  top: 12px;
}

/* Prose blocks keep a comfortable reading measure inside the wider shell. */
main p,
main ul,
main ol {
  max-width: var(--measure);
}

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

.site-header {
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 13px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* ---- Main ---- */

main {
  padding-top: 56px;
  padding-bottom: 72px;
}

h1 {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 20px 0 32px;
}

/* ---- Hero (8090-style: one large declarative headline) ---- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 88px);
}

.hero-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 clamp(16px, 2vw, 24px);
}

.hero .display {
  font-family: var(--sans);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.hero .tagline {
  font-family: var(--mono);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  padding-bottom: 0.4em;
}

.hero .tagline strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }
}

/* ---- Simple page header (Products and other interior pages) ---- */

.page-head {
  padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
  max-width: var(--measure);
}

.page-head .display {
  font-size: clamp(34px, 5vw, 52px);
  margin: 0;
}

.page-lede {
  font-family: var(--mono);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.7;
  color: var(--muted);
  margin: clamp(18px, 2vw, 26px) 0 0;
}

.products-page {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(32px, 6vw, 64px);
}

/* ---- Section blocks ---- */

.section {
  border-top: 1px solid var(--hairline);
  padding-top: 36px;
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
}

/* The kicker is a deliberate, numbered index column, not a floating label.
   Counter is set per-section via the data-index attribute in markup. */
.section-eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.section-eyebrow::before {
  content: attr(data-index) "  ";
  color: var(--ink);
}

/* Second grid child (body / services / products) sits in the content column. */
.section > .section-eyebrow + * {
  margin: 0;
  min-width: 0;
}

.section-body > p:first-child {
  margin-top: 0;
}

.section-body > p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 28px;
  }
}

/* ---- Services grid ---- */

/* Four services read as a deliberate 2x2 block on wide screens, so "Build"
   pairs into a full second row instead of orphaning beside the index gutter. */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}

@media (max-width: 520px) {
  .services {
    grid-template-columns: 1fr;
  }
}

.service-name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 6px;
}

.service-desc {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

/* ---- Why-not-an-agency contrast block (shares the services rhythm) ---- */

.contrast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px 32px;
}

.contrast-name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 6px;
}

.contrast-desc {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

/* ---- Product card (future-proofed for more products) ---- */

/* Products read as an index of real work, not a template card grid:
   a hairline-separated list, generous, with the link host as a quiet trailing cue. */
.products {
  display: grid;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 24px;
  row-gap: 6px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--ink);
}

.product:first-child {
  border-top: 0;
  padding-top: 0;
}

.product .product-name {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product .product-host {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.product .product-host::after {
  content: "  \2197";
}

.product .product-desc {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--muted);
  max-width: 60ch;
}

.product:hover .product-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product:hover .product-host {
  color: var(--ink);
}

.product:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

h2 {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 44px 0 12px;
}

h3 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  margin: 28px 0 8px;
}

p {
  margin: 0 0 16px;
  max-width: var(--measure);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

strong {
  font-weight: 600;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  word-break: break-word;
}

.lede {
  font-size: 17px;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 32px;
}

/* outbound link arrow */
.out-link::after {
  content: " \2192";
  white-space: nowrap;
}

/* ---- Contact / form ---- */

.contact-email {
  font-family: var(--mono);
  font-size: 15px;
}

form.contact {
  margin-top: 20px;
  max-width: var(--measure);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 10px 12px;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(207, 216, 255, 0.18);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: oklch(0.72 0.14 28);
}

.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px oklch(0.72 0.14 28 / 0.22);
}

/* Visible keyboard focus everywhere, on the dark surface. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"] {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 10px 18px;
  cursor: pointer;
}

button[type="submit"]:hover {
  opacity: 0.88;
}

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: default;
}

.form-status {
  font-family: var(--mono);
  font-size: 13px;
  margin-top: 14px;
  line-height: 1.5;
}

.form-status:empty {
  margin-top: 0;
}

.form-status.ok {
  color: var(--ink);
}

.form-status.err {
  color: oklch(0.72 0.14 28);
}

.form-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}

.form-note a {
  color: var(--muted);
  text-underline-offset: 2px;
}

.form-note a:hover {
  color: var(--ink);
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.site-footer .wrap {
  padding-top: 28px;
  padding-bottom: 40px;
}

.site-footer .legal-name {
  color: var(--ink);
}

.site-footer p {
  margin: 0 0 2px;
}

.site-footer .footer-links {
  margin-top: 14px;
  display: flex;
  gap: 18px;
}

.site-footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 520px) {
  h1 { font-size: 23px; }
  main { padding-top: 40px; }
  .site-header .wrap { flex-direction: column; gap: 12px; }
}

/* ---- Nav CTA (Book a call) ---- */

.site-nav {
  align-items: baseline;
}

.site-nav .nav-cta {
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 5px 12px;
}

.site-nav .nav-cta:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---- Buttons (hero + page CTAs) ---- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 28px);
}

.btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 3px;
  padding: 10px 18px;
  border: 1px solid var(--hairline);
  white-space: nowrap;
}

.btn-primary {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}

.btn-primary:hover {
  opacity: 0.88;
  text-decoration: none;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
  text-decoration: none;
}

/* Hero on the home page carries a big H1 headline instead of the display line. */
.hero .display {
  text-wrap: balance;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* ---- Home services list (distinct rows, not a lookalike card grid) ---- */

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.service-row {
  border-top: 1px solid var(--hairline);
  padding: 20px 0;
  margin: 0;
}

.service-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
}

.service-row-name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service-row-head:hover .service-row-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-row-price {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}

.service-row-desc {
  font-size: 14.5px;
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 62ch;
}

.section-more {
  font-family: var(--mono);
  font-size: 13px;
  margin: 24px 0 0;
}

/* ---- How it works (numbered steps) ---- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  max-width: none;
}

.step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
}

.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--ink);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.step-name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 3px 0 4px;
}

.step-desc {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

/* ---- Footer link wrapping (more links now) ---- */

.site-footer .footer-links {
  flex-wrap: wrap;
  gap: 14px 18px;
}

@media (max-width: 520px) {
  .service-row-head {
    flex-direction: column;
    gap: 4px;
  }
  .service-row-price {
    text-align: left;
  }
}

/* ---- Services hub page ---- */

.services-page {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(24px, 4vw, 36px);
}

/* ---- Interior prose pages (service pages, about) ---- */

.prose-page {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(24px, 4vw, 36px);
  padding-bottom: clamp(24px, 5vw, 48px);
}

.prose-page > *,
.prose-page ul,
.prose-page ol {
  max-width: var(--measure);
}

.small {
  font-size: 13px;
}

/* CTA block that closes a page */
.cta-block {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: clamp(24px, 4vw, 32px);
}

.cta-block > p:first-child {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---- Pricing table ---- */

.table-scroll {
  overflow-x: auto;
  margin: 4px 0 12px;
  max-width: none;
}

.price-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 14.5px;
}

.price-table th,
.price-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.price-table thead th {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--ink);
}

.price-table tbody th {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  padding-right: 28px;
}

.price-table td {
  color: var(--muted);
}

.price-table .price-cell {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  text-align: right;
  padding-right: 0;
}

/* ---- Q&A list (audit "what it answers", FAQ) ---- */

.qa-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  counter-reset: qa;
}

.qa-list > li {
  counter-increment: qa;
  border-top: 1px solid var(--hairline);
  padding: 20px 0;
  margin: 0;
}

.qa-list > li:first-child {
  border-top: 0;
  padding-top: 4px;
}

.qa-q {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 6px;
}

.qa-q::before {
  content: counter(qa) "  ";
  color: var(--muted);
}

.qa-a {
  color: var(--muted);
  margin: 0;
}

/* ---- Blog index ---- */

.blog-index {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(24px, 4vw, 36px);
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.post-list:empty {
  display: none;
}

.post-row {
  border-top: 1px solid var(--hairline);
  padding: 22px 0;
  margin: 0;
}

.post-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.post-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
}

.post-title {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.post-link:hover .post-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-date {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.post-desc {
  font-size: 14.5px;
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 62ch;
}

/* Empty state hides itself automatically once posts exist, via the sibling list. */
.empty-state p:first-child {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

@media (max-width: 520px) {
  .post-link {
    flex-direction: column;
    gap: 4px;
  }
}

/* ---- Blog post ---- */

.post {
  max-width: var(--measure);
}

.post-head {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(24px, 4vw, 36px);
}

.post-head .eyebrow a {
  color: var(--muted);
  text-decoration: none;
}

.post-head .eyebrow a:hover {
  color: var(--ink);
}

.post-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 16px 0 0;
}

.post-body > *:first-child {
  margin-top: 0;
}
