/* PIGEON Innovations — shared styles */
:root {
  --paper: #f3f5f5;
  --panel: #ffffff;
  --ink: #13262b;
  --muted: #536a70;
  --rule: #d3dcdd;
  --teal: #105a66;        /* company teal: text, buttons */
  --teal-ink: #ffffff;
  --cyan: #0098b0;        /* product cyan: mark, accents (not body text) */
  --slate: #6f929a;       /* grey-teal from company logo */
  --violet: #0d4852;      /* hover shade of company teal */
  --ok: #107a86;
  --focus: #0098b0;
  --measure: 68ch;
  --radius-sm: 4px;
  --radius-lg: 10px;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1a1d; --panel: #16252a; --ink: #e6eff0; --muted: #9db3b8;
    --rule: #2a3e44; --teal: #4fc3d6; --teal-ink: #07181c; --cyan: #4fc3d6;
    --slate: #6f929a; --violet: #8ad6e3; --ok: #4fc3d6; --focus: #8ad6e3;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; }
.skip:focus { left: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 1.15rem; }
.brand .mark { width: 40px; height: 40px; flex: none; color: var(--cyan); }
.brand-text { font-family: var(--display); font-weight: 800; letter-spacing: .02em; }
.brand-text small { font-family: var(--display); letter-spacing: .04em; }
.brand small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: var(--radius-sm); padding: .45rem .7rem; font: inherit; font-weight: 600; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; top: 4.25rem; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1.5rem 1rem; }
  .nav li a { display: block; padding: .6rem 0; }
  .site-header { position: relative; }
}

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; max-width: 16ch; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 800; max-width: 22ch; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 52ch; }
.muted { color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: .92em; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn { display: inline-block; padding: .8rem 1.25rem; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; border: 2px solid var(--teal); }
.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn-quiet { color: var(--teal); background: transparent; }
.btn-quiet:hover { color: var(--violet); border-color: var(--violet); }

/* Sections */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
section + section { border-top: 1px solid var(--rule); }
.page-head { padding-bottom: 2.5rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* The delivery receipt */
.receipt {
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem 1.2rem; font-family: var(--mono); font-size: .84rem; line-height: 1.55;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(29,34,48,.45);
  position: relative; overflow: hidden;
}
.receipt::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}
.receipt-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); border-bottom: 1px dashed var(--rule); padding-bottom: .7rem; margin-bottom: .7rem; flex-wrap: wrap; }
.receipt-head strong { color: var(--ink); font-weight: 600; }
.receipt ol { list-style: none; margin: 0; padding: 0; }
.receipt li { display: grid; grid-template-columns: 1.3rem 1fr auto; gap: .5rem; padding: .28rem 0; align-items: baseline; }
.receipt .path { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt .hash { color: var(--muted); }
.receipt .mark { color: var(--ok); font-weight: 700; }
.receipt-foot { border-top: 1px dashed var(--rule); margin-top: .7rem; padding-top: .7rem; display: grid; gap: .15rem; color: var(--muted); }
.receipt-foot .status { color: var(--ok); font-weight: 700; }
.receipt-caption { font-size: .9rem; color: var(--muted); margin-top: .8rem; }

/* One orchestrated moment: files verify in sequence */
@media (prefers-reduced-motion: no-preference) {
  .receipt li .mark, .receipt .status { opacity: 0; animation: verify .35s ease-out forwards; }
  .receipt li:nth-child(1) .mark { animation-delay: .5s; }
  .receipt li:nth-child(2) .mark { animation-delay: .85s; }
  .receipt li:nth-child(3) .mark { animation-delay: 1.2s; }
  .receipt li:nth-child(4) .mark { animation-delay: 1.55s; }
  .receipt li:nth-child(5) .mark { animation-delay: 1.9s; }
  .receipt .status { animation-delay: 2.4s; }
}
@keyframes verify { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* Environments strip */
.environments { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding: 1.5rem 0; margin: 0; list-style: none; color: var(--muted); font-weight: 600; }
.environments li::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; border: 2px solid var(--cyan); margin-right: .55rem; vertical-align: middle; }

/* Reasons: alternating prose rows, not a card grid */
.reasons { display: grid; gap: 3rem; margin-top: 2.5rem; }
.reason { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 2rem; }
.reason h3 { font-size: 1.35rem; border-left: 4px solid var(--teal); padding-left: .9rem; }
.reason:nth-child(even) h3 { border-color: var(--cyan); }
@media (max-width: 760px) { .reason { grid-template-columns: 1fr; gap: .5rem; } }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--panel); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 700; background: var(--paper); }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

/* Steps (a real sequence) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; max-width: 60rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; }
.steps li::before {
  content: counter(step); width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: var(--teal-ink); background: var(--teal);
}
.steps h3 { margin: .35rem 0 .3rem; }
.steps p { margin: 0; }

/* Two-column lists */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; margin-top: 2rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.split ul { padding-left: 1.2rem; margin: 0; }
.split li { margin-bottom: .55rem; }

/* Bulleted points, held to a readable measure */
.points { max-width: var(--measure); padding-left: 1.2rem; margin: 1.25rem 0 0; }
.points li { margin-bottom: .6rem; }

/* Callout */
.callout { border-left: 4px solid var(--cyan); background: var(--panel); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; max-width: 60rem; }
.callout p:last-child { margin-bottom: 0; }

/* CTA band */
.cta { background: #0d3f48; color: #f3f5f5; position: relative; overflow: hidden; }
.cta .wrap { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: #c6d9dc; }
.cta .btn-primary { background: #fff; color: #0d3f48; border-color: #fff; }
.cta .btn-primary:hover { background: transparent; color: #fff; border-color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta { background: #0b2a30; }
}

/* Forms */
form { display: grid; gap: 1.1rem; max-width: 38rem; }
label { font-weight: 600; display: grid; gap: .35rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .92rem; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--panel);
  border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: .7rem .8rem; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--focus); }
textarea { min-height: 9rem; resize: vertical; }
button.btn { font: inherit; font-weight: 700; cursor: pointer; justify-self: start; }
.form-note { font-size: .95rem; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside h3 { margin-top: 0; }
.contact-aside dl { margin: 0; }
.contact-aside dt { font-weight: 700; margin-top: 1rem; }
.contact-aside dd { margin: .15rem 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

.hero-figure { margin: 0; }
.after-table { margin-top: 1rem; }
section.flush { padding-top: 0; border-top: 0; }

/* Point-to-point endpoints motif (from the PIGEON logo) */
.p2p { position: absolute; width: clamp(140px, 18vw, 240px); fill: none; stroke: #42b0c3; stroke-width: 14; stroke-linecap: round; opacity: .28; pointer-events: none; }
.p2p-a { top: -40px; right: 14%; }
.p2p-b { bottom: -50px; right: -30px; }
@media (max-width: 720px) { .p2p-a { display: none; } }

/* Product lockup */
.lockup { display: flex; align-items: center; gap: 1.1rem; color: var(--cyan); margin-bottom: 1.75rem; }
.lockup-mark { width: 72px; height: auto; }
.lockup-word { width: 180px; height: auto; color: var(--slate); }
