/* project5pi.com - "Work Order" PAGE styles (load /assets/p5/chrome.css first: fonts, tokens, header, form, footer) (Omar picked concept B, 2026-11-12).
   One file for every page in the new layout. Header, footer, form and tracking are stamped in by scripts/p5/stamp.mjs.
   Brand marks kept: mint #5DE6C8 (a FILL only on light grounds - 1.37:1 as text), the Project5pi wordmark on its dark
   chip, the pi symbol. Green TEXT on light is #0F766E. */


:root {
  /* page tokens = the chrome tokens in chrome.css (load chrome.css first) */
  --ground: var(--p5-ground); --sheet: var(--p5-sheet); --ink: var(--p5-ink); --ink-2: var(--p5-ink-2); --muted: var(--p5-muted);
  --rule: var(--p5-rule); --rule-faint: var(--p5-rule-faint); --dots: var(--p5-dots); --teal: var(--p5-teal); --mint: var(--p5-mint);
  --chip: var(--p5-chip); --on-dark: #FFFFFF; --on-dark-muted: var(--p5-on-dark-muted);
  --sans: var(--p5-sans); --mono: var(--p5-mono); --pad: var(--p5-pad); --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.p5-dark :focus-visible { outline-color: var(--mint); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- top strip + sheet ---------- */
.p5-sheet { max-width: 1240px; margin: clamp(0px, 2vw, 28px) auto clamp(0px, 3vw, 48px); background-color: var(--sheet);
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, var(--rule-faint) 39px 40px);
  box-shadow: 0 1px 0 #C9CEC8, 0 18px 40px rgba(17, 20, 18, .08); }

/* ---------- type ---------- */
.eyebrow { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); }
.p5-dark .eyebrow { color: var(--mint); }
.h1 { margin: 0; font-size: clamp(52px, 9vw, 128px); line-height: .88; font-weight: 900; font-stretch: 72%; letter-spacing: -.02em; text-transform: uppercase; }
.h1-page { font-size: clamp(44px, 7vw, 96px); }
.h2 { margin: 0; font-size: clamp(30px, 3.8vw, 50px); line-height: 1.02; font-weight: 800; font-stretch: 80%; text-transform: uppercase; }
.h3 { margin: 0; font-size: clamp(28px, 3.4vw, 46px); line-height: 1; font-weight: 900; font-stretch: 75%; text-transform: uppercase; }
.mint-fill { background: var(--mint); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { margin: 26px 0 0; max-width: 660px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }

/* ---------- layout ---------- */
.p5-section { padding: clamp(40px, 6vw, 80px) var(--pad); }
.p5-section + .p5-section { padding-top: 0; }
.p5-section-head { margin-bottom: 26px; }
.p5-section-head .h2 { max-width: 900px; }
.p5-section-head p { margin: 10px 0 0; max-width: 700px; color: var(--ink-2); }
.p5-hero { display: flex; flex-wrap: wrap; gap: 40px; padding: clamp(36px, 6vw, 80px) var(--pad); }
.p5-hero > .main { flex: 999 1 540px; min-width: 0; }
.p5-hero > aside { flex: 1 1 300px; align-self: flex-start; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 22px; }
.row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.crumbs { padding: 14px var(--pad) 0; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--dots); }
.crumbs a { color: var(--muted); }

/* ---------- buttons + links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; font-family: var(--sans);
  font-weight: 800; font-size: 17px; padding: 13px 22px; border-radius: 6px; border: 2px solid var(--ink); cursor: pointer; line-height: 1.2; }
.btn-mint { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.btn-mint:hover { background: #7FF0DA; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--mint); }
.btn-dark:hover { background: #26302C; color: var(--mint); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--rule-faint); color: var(--ink); }
.link-mono { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }

/* ---------- order summary (hero aside) ---------- */
.p5-summary { background: var(--sheet); border: 2px dashed var(--ink); border-radius: 10px; padding: 22px 24px; font-family: var(--mono); font-size: 14px; }
.p5-summary h2 { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.p5-summary dl { margin: 0; }
.p5-summary .r { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); padding: 9px 0; }
.p5-summary dt { color: var(--muted); }
.p5-summary dd { margin: 0; text-align: right; }
.p5-summary .r:last-child { border-top: 2px solid var(--ink); font-weight: 700; }
.p5-summary a { color: var(--ink); }

/* ---------- short answer (AEO) ---------- */
.p5-answer { border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 22px; background: var(--sheet); max-width: 860px; }
.p5-answer .label { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--teal); }
.p5-answer p { margin: 0; font-size: 18px; }

/* ---------- line items (doors) ---------- */
.p5-door { border-top: 3px solid var(--ink); padding: 26px 0 30px; display: flex; flex-wrap: wrap; gap: 28px; }
.p5-door:last-child { border-bottom: 3px solid var(--ink); }
.p5-door > .body { flex: 999 1 460px; min-width: 0; }
.p5-door > .example { flex: 1 1 280px; align-self: flex-start; }
.p5-door-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.p5-door-head .h3 { display: flex; align-items: baseline; gap: 14px; }
.p5-door-head .h3 a { color: inherit; text-decoration: none; }
.p5-door-head .h3 a:hover { color: var(--teal); }
.p5-check { display: inline-block; flex: none; width: 24px; height: 24px; border: 3px solid var(--ink); border-radius: 4px; background: var(--mint); transform: translateY(1px); }
.p5-num { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--muted); }
.p5-from { font-family: var(--mono); font-size: 18px; font-weight: 700; }
.p5-door .desc { margin: 12px 0 18px; font-size: 19px; color: var(--ink-2); }
.p5-lines { margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 15px; }
.p5-lines li { display: flex; gap: 10px; padding: 7px 0; }
.p5-lines li .leader { flex-grow: 1; border-bottom: 2px dotted var(--dots); margin-bottom: 6px; min-width: 16px; }
.p5-lines li .price { white-space: nowrap; }
.p5-lines li a { color: var(--ink); }
.p5-lines.big { font-size: 16px; }
.p5-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- example boxes ---------- */
.p5-example { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--sheet); overflow: hidden; }
.p5-example img { display: block; width: 100%; height: 230px; object-fit: cover; object-position: top; }
.p5-example .cap { margin: 0; padding: 10px 12px; border-top: 2px solid var(--ink); font-family: var(--mono); font-size: 12px; }
.p5-example.pad { padding: 14px; }
.p5-example .tag { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.thread { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.35; }
.bubble { margin: 0; max-width: 84%; padding: 8px 11px; border-radius: 12px; }
.bubble.out { align-self: flex-end; background: var(--ink); color: #FFFFFF; border-bottom-right-radius: 2px; }
.bubble.in { align-self: flex-start; background: var(--rule-faint); border-bottom-left-radius: 2px; }
.bubble.done { align-self: flex-end; background: var(--mint); color: var(--ink); font-weight: 600; border-bottom-right-radius: 2px; }
.invoice { position: relative; font-size: 14px; }
.invoice .amt { margin: 6px 0 10px; font-size: 32px; font-weight: 800; }
.invoice .r { margin: 0; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; padding: 3px 0; }
.invoice .r:first-of-type { border-top: 1px dashed var(--dots); padding-top: 8px; }
.stamp { display: inline-block; border: 3px solid var(--teal); color: var(--teal); font-family: var(--mono); font-weight: 700; letter-spacing: .08em; padding: 1px 9px; background: var(--sheet); }
.invoice .stamp { position: absolute; right: 2px; top: 34px; transform: rotate(-12deg); font-size: 22px; }

/* ---------- work cards ---------- */
.p5-work { position: relative; text-decoration: none; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--sheet); display: flex; flex-direction: column; }
.p5-work:hover { color: var(--ink); box-shadow: 4px 4px 0 var(--mint); }
.p5-work img { display: block; width: 100%; height: 190px; object-fit: cover; object-position: top; }
.p5-work .meta { padding: 14px 16px; border-top: 2px solid var(--ink); font-family: var(--mono); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.p5-work .meta b { font-weight: 400; color: var(--muted); }
.p5-work .stamp { position: absolute; top: 14px; right: 12px; transform: rotate(8deg); font-size: 15px; }
.p5-work.video img { object-position: center 35%; }

/* ---------- steps, callout, faq ---------- */
.p5-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.p5-steps li { display: flex; gap: 14px; align-items: flex-start; }
.p5-steps .n { flex: none; font-family: var(--mono); font-weight: 700; font-size: 15px; background: var(--ink); color: var(--mint); padding: 4px 9px; border-radius: 4px; }
.p5-steps strong { display: block; font-size: 20px; }
.p5-steps span.t { color: var(--ink-2); }
.p5-callout { border: 2px dashed var(--ink); border-radius: 10px; padding: 22px 24px; }
.p5-callout .k { margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.p5-callout .big { margin: 12px 0 0; font-family: var(--mono); font-size: 28px; font-weight: 700; }
.p5-faq details { border-top: 2px solid var(--ink); padding: 16px 0; }
.p5-faq details:last-child { border-bottom: 2px solid var(--ink); }
.p5-faq summary { font-size: 20px; font-weight: 700; cursor: pointer; list-style-position: outside; }
.p5-faq summary .q { font-family: var(--mono); color: var(--muted); font-size: 15px; margin-right: 6px; }
.p5-faq details p { margin: 8px 0 0; color: var(--ink-2); max-width: 760px; }

/* ---------- price tables ---------- */
.p5-table-wrap { overflow-x: auto; border-top: 3px solid var(--ink); }
.p5-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.p5-table caption { text-align: left; padding: 18px 0 10px; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--teal); text-transform: uppercase; }
.p5-table th, .p5-table td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.p5-table th[scope="col"] { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.p5-table td.price { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.p5-table a { color: var(--ink); }

/* ---------- dark band (page sections) ---------- */
.p5-dark { background: var(--ink); color: var(--on-dark); }
.p5-dark a { color: var(--on-dark); }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .p5-door .desc { font-size: 17px; }
  .p5-lines { font-size: 14px; }
  .p5-lines li { flex-wrap: wrap; }
  .p5-lines li .leader { display: none; }
  .p5-lines li .price { margin-left: auto; }
}
@media print { .p5-sheet { box-shadow: none; background-image: none; } }
