/* Plumbytes Software LP — site styles */

:root {
  --paper: #f4f1f6;
  --panel: #ffffff;
  --ink: #221a24;
  --ink-soft: #4a4050;
  --muted: #74687a;
  --plum: #4e2244;
  --plum-bright: #8a3d78;
  --plum-tint: #ebe0ea;
  --rule: #d9cfdc;
  --rule-strong: #b9a9bf;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--plum-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum); }

:focus-visible { outline: 3px solid var(--plum-bright); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 44em; }
.small { font-size: .92rem; color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--plum); color: #fff; padding: 8px 12px; border-radius: var(--radius);
}
.skip:focus { left: 8px; z-index: 100; }

/* ---------- header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--plum); text-decoration: none;
}
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 8px; letter-spacing: -0.01em;
}
.brand-sub { font-family: var(--sans); font-size: .82rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--plum-bright); }
.nav-cta { color: var(--plum) !important; border-bottom: 0 !important; }
.nav-toggle {
  display: none; font: inherit; font-size: .95rem; background: none; border: 1px solid var(--rule-strong);
  color: var(--ink); padding: 7px 14px; border-radius: var(--radius); cursor: pointer;
}

/* ---------- buttons ---------- */
.button {
  display: inline-block; font: inherit; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: var(--radius); text-decoration: none; cursor: pointer;
  background: var(--plum); color: #fff; border: 1px solid var(--plum);
}
.button:hover { background: var(--plum-bright); border-color: var(--plum-bright); color: #fff; }
.button.ghost { background: transparent; color: var(--plum); border-color: var(--rule-strong); }
.button.ghost:hover { background: var(--plum-tint); color: var(--plum); border-color: var(--plum); }
.button.light { background: #fff; color: var(--plum); border-color: #fff; }
.button.light:hover { background: var(--plum-tint); border-color: var(--plum-tint); color: var(--plum); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 80px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start;
}
.hero-copy h1 { margin-bottom: .55em; max-width: 14em; }
.hero-copy .lede { margin-bottom: 0; }

.registry {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  margin-top: 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(78, 34, 68, .06);
}
.registry-band { position: absolute; left: 0; top: 0; right: 0; height: 8px; background: var(--plum); }
.registry h2 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; color: var(--muted); margin: 6px 0 18px; }
.registry dl { margin: 0; }
.registry dl > div {
  display: grid; grid-template-columns: 9.5em 1fr; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--rule);
}
.registry dl > div:first-child { border-top: 0; padding-top: 0; }
.registry dt { color: var(--muted); font-size: .92rem; }
.registry dd { margin: 0; font-size: .98rem; color: var(--ink); }
.registry-link { display: inline-block; margin-top: 18px; font-size: .95rem; }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--plum-tint); }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section-foot { margin-top: 36px; }

.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.two-col > div:first-child p { color: var(--ink-soft); }

/* service rows */
.service-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.service-rows > li {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px;
  padding: 34px 0; border-bottom: 1px solid var(--rule-strong);
}
.row-title h3 { margin: 0; font-size: 1.55rem; }
.row-body p { margin-bottom: 14px; color: var(--ink-soft); }
.inline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.inline-list li {
  font-size: .9rem; color: var(--plum); background: var(--plum-tint);
  padding: 5px 11px; border-radius: 999px;
}

/* steps (a true sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 0 0 26px 64px; margin: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--plum); color: #fff;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500;
  display: grid; place-items: center;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: var(--rule-strong);
}
.steps h3 { margin: 6px 0 6px; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* principles */
.principles { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.principles > div { border-top: 2px solid var(--plum); padding-top: 14px; }
.principles dt { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; }
.principles dd { margin: 0; color: var(--ink-soft); }

/* cta band */
.cta-band { background: var(--plum); color: #fff; padding: 72px 0; }
.cta-inner h2, .cta-inner p { max-width: 30em; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 1.1rem; }
.cta-band a:not(.button) { color: #fff; }
.cta-band .button { margin-top: 10px; }

/* ---------- inner pages ---------- */
.page-head { padding: 64px 0 24px; }
.page-head h1 { max-width: 14em; }
.page-head + .section { padding-top: 40px; }

.service-detail h2 { margin-bottom: .6em; }
.service-detail h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.check-list li:last-child { border-bottom: 1px solid var(--rule); }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--plum-bright);
}
.section.alt .check-list li { border-color: var(--rule-strong); }

.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.models > div { border-top: 2px solid var(--plum); padding-top: 16px; }
.models h3 { margin-bottom: .4em; }
.models p { color: var(--ink-soft); margin: 0; }
.terms-note { margin-top: 48px; max-width: 48em; }
.terms-note h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--muted); }
.terms-note p { color: var(--ink-soft); margin: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.contact-details h2, .contact-form-wrap h2 { font-size: 1.4rem; margin-bottom: 20px; }
.contact-details dl { margin: 0 0 20px; }
.contact-details dl > div { padding: 12px 0; border-top: 1px solid var(--rule); }
.contact-details dt { color: var(--muted); font-size: .9rem; margin-bottom: 2px; }
.contact-details dd { margin: 0; }
address { font-style: normal; }

.contact-form-wrap { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .95rem; margin-bottom: 6px; color: var(--ink-soft); }
.optional { color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 11px 12px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum-bright); outline: none; box-shadow: 0 0 0 3px var(--plum-tint); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-error { color: #8a1c1c; font-size: .95rem; }

/* legal pages */
.legal { max-width: 46em; }
.legal h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 1.4em 0 .4em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 10px 0 20px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.legal-table th { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--panel); border-top: 1px solid var(--rule); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr)); gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 30em; margin: 16px 0 0; }
.footer-col h2 { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; color: var(--ink-soft); }
.footer-col a { color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--plum); text-decoration: underline; }
.footer-col address { color: var(--ink-soft); line-height: 1.5; }
.footer-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .88rem; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-legal p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 52px 0 60px; }
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-rows > li { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .models { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 60px 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 12px var(--gutter) 20px; flex-direction: column; align-items: flex-start; gap: 8px;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: 10px 0; border-bottom: 0 !important; }
  .site-nav a[aria-current="page"] { color: var(--plum); }
  .brand-sub { display: none; }
  .registry { padding: 26px 20px 22px; }
  .registry dl > div { grid-template-columns: 1fr; gap: 2px; }
  .principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-form-wrap { padding: 24px 18px; }
  .legal-table, .legal-table thead, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; }
  .legal-table thead { display: none; }
  .legal-table td { border-bottom: 0; padding: 4px 0; }
  .legal-table tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .legal-table td:first-child { color: var(--ink); font-weight: 600; }
}
