/* The simple pages: privacy and terms (long prose), the 404 page and the
   /booked thank-you page. They share the home page's header and footer
   (base.css), so the whole site reads as one piece. */

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1 0 auto; padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(64px, 9vw, 104px); }

/* Header links on these pages get full-size touch targets */
.page .site-nav { gap: 4px 24px; }
.page .site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.page .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

.page-title { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.025em; overflow-wrap: anywhere; hyphens: auto; }
.page-eyebrow { margin-bottom: 16px; }
.page-lede { margin-top: 20px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Placeholder notice (privacy and terms) ---------- */

.placeholder-notice {
  display: flex; flex-direction: column; gap: 6px; margin: 0 0 40px; padding: 18px 20px;
  background: #FFF1EA; border: 2px dashed var(--accent-dark); border-radius: var(--radius-sm); color: var(--ink);
}
.placeholder-notice strong {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #9A3412;
}
.placeholder-notice p { font-size: 15px; color: var(--text-2); }

/* A gap Matt has to fill in, such as [BUSINESS ADDRESS] */
.gap {
  background: #FFE1D2; color: var(--ink); border-radius: 4px; padding: 0 4px;
  font-family: var(--font-mono); font-size: 0.86em; font-weight: 600; letter-spacing: 0.02em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Long prose ---------- */

.prose { max-width: 760px; }
.prose .page-title { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.prose .prose-updated { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.prose h2 {
  margin: 44px 0 12px; font-size: clamp(22px, 2.4vw, 26px); font-weight: 700; line-height: 1.25; letter-spacing: -0.005em;
}
.prose h3 { margin: 24px 0 8px; font-size: 18px; font-weight: 700; }
.prose p { margin: 0 0 14px; color: var(--text-2); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--text-2); }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent-dark); }
.prose a { text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose code {
  font-family: var(--font-mono); font-size: 0.88em; background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px; padding: 0 4px; color: var(--ink);
}
.prose-intro { font-size: 19px; line-height: 1.5; }

/* Contents list at the top of a long page */
.prose-toc {
  margin: 0 0 8px; padding: 20px 24px; background: var(--paper); border: var(--border); border-radius: var(--radius);
}
.prose-toc h2 { margin: 0 0 10px; font-size: 15px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.prose-toc ol { margin: 0; padding-left: 20px; columns: 2 260px; column-gap: 32px; }
.prose-toc li { break-inside: avoid; margin: 0 0 6px; }
.prose-toc li + li { margin-top: 0; }
/* Inline links (not inline-block), so the number lines up with the first line when a title wraps */
.prose-toc li { padding: 4px 0; }
.prose-toc a { display: inline; }

/* ---------- 404 ---------- */

.notfound { max-width: 780px; }
.notfound .page-title { margin-top: 4px; }
.notfound-note { margin-top: 28px; }

/* ---------- /hire/pay, /hire/paid (server/views/hire-pay.html, Phase 2 step 1) ---------- */
.pay { max-width: 760px; }
.pay-form { margin-top: 28px; }
.pay-alert { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: var(--paper); border: var(--border); font-weight: 600; }
.pay-small { margin-top: 16px; color: var(--text-3); font-size: 15px; max-width: 640px; }
.pay-next { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.pay-h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.pay .page-actions { margin-top: 8px; }

/* ---------- /booked ---------- */

.booked { max-width: 860px; }
.booked-check {
  display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 24px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent);
}
.booked-check svg { width: 32px; height: 32px; }

.booked-agenda { margin-top: 40px; display: flex; flex-direction: column; gap: 4px; }
.booked-agenda h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; margin-bottom: 8px; }
.booked-steps { margin: 0; padding: 0; list-style: none; counter-reset: booked; }
.booked-steps li {
  counter-increment: booked; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px;
  padding: 18px 0; border-top: 1px solid var(--line-soft);
}
.booked-steps li:first-child { border-top: none; }
.booked-steps li::before {
  content: counter(booked, decimal-leading-zero); grid-row: span 2;
  font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--accent-dark); padding-top: 2px;
}
.booked-steps strong { font-size: 18px; font-weight: 700; }
.booked-steps span { color: var(--text-3); }

.booked-note { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.booked-note p { color: var(--text-2); }
.booked-note .booked-terms { padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- /proposal/<ref> (server/views/proposal.html, build S26) ----------
   Mobile first: one column, the face and name on top, the big "Start now" button full width. */

.proposal { max-width: 820px; }
.proposal-who { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.proposal-face { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: var(--border); background: var(--paper); flex: none; }
.proposal-who-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.proposal-who .page-eyebrow { margin-bottom: 4px; }
.proposal-name { font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.proposal-role { font-size: 14px; color: var(--text-3); }
.proposal-title { font-size: clamp(36px, 5.5vw, 64px); }
.proposal-intro { margin: 32px 0 0; display: flex; flex-direction: column; gap: 12px; }
.proposal-intro blockquote { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--text-2); }
.proposal-intro figcaption { font-size: 14px; color: var(--accent-dark); }
.proposal-section { margin-top: 44px; }
.proposal-h2 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; margin-bottom: 16px; }
.proposal-deliverables { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: deliverable; }
.proposal-deliverable { counter-increment: deliverable; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; }
.proposal-deliverable-h { font-size: 20px; line-height: 1.25; }
.proposal-deliverable-h::before { content: counter(deliverable, decimal-leading-zero) "  "; font-family: var(--font-mono); font-size: 15px; color: var(--accent-dark); }
.proposal-deliverable p { color: var(--text-2); }
.proposal-measure { padding-top: 10px; border-top: 1px solid var(--line-soft); }
.proposal-measure .mono { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.proposal-questions { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.proposal-questions li { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.proposal-questions li:first-child { border-top: none; padding-top: 0; }
.proposal-price { margin-top: 44px; display: flex; flex-direction: column; gap: 12px; }
.proposal-price p { color: var(--on-ink-2); }
.proposal-price-eyebrow { color: var(--accent-light); }
.proposal-price-h { font-size: clamp(40px, 6vw, 64px); line-height: 1; color: var(--on-ink); }
.proposal-price-h span { font-size: 0.4em; font-weight: 600; color: var(--on-ink-2); }
.proposal-fraction { font-weight: 700; color: var(--on-ink) !important; }
.proposal-engineers { margin-top: 28px; font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 720px; }
.proposal-start { margin-top: 32px; display: flex; flex-direction: column; gap: 4px; }
.proposal-form { margin: 0; }
.proposal-cta { min-height: 68px; font-size: 22px; }
.proposal-reply { font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; padding: 20px 24px; border: var(--border); border-radius: var(--radius); background: var(--paper); }
.page-proposal .pay-next { margin-top: 28px; }
@media (min-width: 720px) {
  .proposal-face { width: 128px; height: 128px; }
  .proposal-cta { max-width: 420px; }
}

/* Build S51: "How month one will look", the call's two worked examples as static cards, each with
   an "Example" tag. The resting state is the finished one (every tick showing); the stagger below
   only runs on screen for people who haven't asked for less motion. */
.proposal-month-lede { font-size: 18px; color: var(--text-2); margin: -6px 0 18px; }
.proposal-examples { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.proposal-example { display: flex; flex-direction: column; gap: 14px; padding: 20px; min-width: 0; }
.proposal-example-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.proposal-example-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--on-ink);
}
.proposal-trigger {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent-dark);
  padding: 4px 10px; border-radius: 999px; background: #FFF1EA; border: 1px solid #FFD3BF; min-width: 0;
}
.proposal-trigger svg { width: 15px; height: 15px; flex: none; }
.proposal-example-h { font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.proposal-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.proposal-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--text-2); line-height: 1.4; overflow-wrap: anywhere; }
.proposal-tick {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.proposal-tick svg { width: 13px; height: 13px; }
.proposal-artifact { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ground); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.proposal-artifact-label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.proposal-artifact-label svg { width: 16px; height: 16px; flex: none; color: var(--text-2); }
.proposal-artifact-subject { font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.proposal-artifact-subject .mono { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.proposal-artifact-body { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 15px; color: var(--text-2); overflow-wrap: anywhere; }
.proposal-artifact-calendar { background: var(--paper); border-left: 4px solid var(--accent); }
.proposal-artifact-calendar .proposal-artifact-body p:first-child { font-weight: 700; color: var(--text); }
.proposal-report { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ink); color: var(--on-ink); }
.proposal-report-face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--accent); }
.proposal-report-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.proposal-report-from { font-size: 12px; color: var(--accent-light); }
.proposal-how { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 10px; }
.proposal-how li { counter-increment: how; display: grid; grid-template-columns: 34px 1fr; gap: 8px; color: var(--text-2); line-height: 1.45; }
.proposal-how li::before { content: counter(how, decimal-leading-zero); font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--accent-dark); padding-top: 2px; }
.proposal-keep { margin-top: 18px; font-size: 15px; color: var(--muted); }
@media (min-width: 760px) {
  .proposal-examples { grid-template-columns: 1fr 1fr; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .proposal-steps .proposal-tick { animation: proposal-tick 0.45s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(0.5s + var(--example, 0) * 0.5s + var(--step, 0) * 0.45s); }
  .proposal-report { animation: proposal-rise 0.5s ease-out both; animation-delay: calc(0.7s + var(--example, 0) * 0.5s + var(--steps, 4) * 0.45s); }
}
@keyframes proposal-tick { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes proposal-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Build S51: the print version (/proposal/<ref>/print) and the browser's Save as PDF from any
   proposal page. No buttons or links that only work on screen, each example on one page. The A4 page
   rule is in server/views/proposal.html (Build S51 review: every page that loads this file printed A4). */
.page-proposal-print .proposal-start, .page-proposal-print .page-actions { display: none; }
.page-proposal-print .proposal-keep-print { padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--text-2); }
@media print {
  .page-proposal { background: #fff; font-size: 12pt; }
  .page-proposal .skip-link, .page-proposal .proposal-start, .page-proposal .proposal-keep,
  .page-proposal .page-actions { display: none !important; }
  .page-proposal .page-main { padding-top: 0; }
  .page-proposal .wrap { max-width: none; padding: 0; }
  .page-proposal .proposal { max-width: none; }
  .page-proposal * { animation: none !important; transition: none !important; }
  .page-proposal .proposal-example, .page-proposal .proposal-deliverable, .page-proposal .proposal-price,
  .page-proposal .proposal-intro, .page-proposal .proposal-how, .page-proposal .proposal-questions li { break-inside: avoid; page-break-inside: avoid; }
  .page-proposal .proposal-h2 { break-after: avoid; page-break-after: avoid; }
  .page-proposal .proposal-examples { grid-template-columns: 1fr; }
  .page-proposal .proposal-example, .page-proposal .proposal-report, .page-proposal .proposal-example-tag,
  .page-proposal .proposal-tick, .page-proposal .proposal-price, .page-proposal .proposal-trigger { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page-proposal .site-footer { display: none !important; }
  .page-proposal .proposal-title { font-size: 34pt; hyphens: manual; -webkit-hyphens: manual; }
  .page-proposal .proposal-price-h { font-size: 36pt; }
}

/* ---------- Phones ---------- */

@media (max-width: 600px) {
  .page .site-header .wrap { padding-top: 12px; padding-bottom: 10px; row-gap: 4px; }
  .page .logo { font-size: 15px; }
  .page .site-nav { gap: 0 18px; font-size: 15px; }
  .page-actions .btn { flex: 1 1 100%; white-space: normal; text-align: center; padding-top: 10px; padding-bottom: 10px; }
  .booked-agenda { padding: 22px 20px; }
  .prose-toc { padding: 18px 20px; }
}
