/*
  Progress Claims eXpress: the one stylesheet for index.html and 404.html.
  The Content Security Policy in site/vercel.json allows same-origin stylesheets,
  images and fonts only, so every style lives here: no style attributes and no
  style elements in the pages.

  Design: theme "Site drawing" with logo A ("Arrow X"), chosen by Paul on
  27 November 2026 from the Claude Design canvas. Light scheme only.
  Contrast was checked for every text and background pair against WCAG AA
  (4.5:1 for body text). The lowest is muted text on paper, 6.22:1.
  Amber is never text on white; text on amber is navy (7.78:1).
*/

/* Fonts: served from /fonts, each under the SIL Open Font Licence (the OFL files beside them). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("fonts/archivo-latin-600-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin-400-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens: the "Site drawing" theme. */

:root {
  color-scheme: only light;
  --ink: #0e2235;
  --ink-raised: #1c3a56;
  --text: #2b3a4a;
  --muted: #4d5e6e;
  --paper: #f5f7f9;
  --paper-light: #fafbfc;
  --surface: #ffffff;
  --rule: #d5dde5;
  --rule-soft: #e3e9ef;
  --rule-2: #c9d3dc;
  --on-ink: #ffffff;
  --on-ink-muted: #b8c4d0;
  --on-ink-label: #9fb0c0;
  --accent: #f2a41c;
  --accent-hover: #e0920c;
  --on-accent: var(--ink);
  --accent-on-dark: var(--accent);
  --link: #0b4f82;
  --link-hover: #0b2f4f;
  --focus: var(--ink);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3.5rem, 7vw, 6rem);
  --card-pad: clamp(1rem, 4vw, 1.5rem);
}

/* Base */

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

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

body {
  margin: 0;
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-head);
}

/*
  The heading is 40 px to 64 px as designed. Below about 380 px wide it scales
  with the viewport (to 33.6 px at 320 px), so "subcontractors," fits the line.
*/
h1 {
  font-size: clamp(2rem, 10.5vw, clamp(2.5rem, 5.2vw, 4rem));
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.875rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

/* The Inter rule allows 400 to 600, so bold text uses 600. */
strong {
  font-weight: 600;
}

svg {
  flex-shrink: 0;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 0.125em;
}

/* An email address can break at any character, so it never widens a narrow column. */
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

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

/* On navy the focus ring is amber. */
.on-ink :focus-visible {
  outline-color: var(--accent);
}

/* main takes focus from the skip link; it is not a control, so it shows no ring. */
#main:focus {
  outline: none;
}

[id] {
  scroll-margin-top: 1rem;
}

/* Skip link: off screen until it has focus. */

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  background-color: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Layout: a 20 px side gutter on small screens, up to 48 px. */

.wrap {
  width: 100%;
  max-width: 75rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.num {
  font-variant-numeric: tabular-nums;
}

/* Card titles: the claim card header and the Good to know strip, in sentence case. */
.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
  background-color: var(--surface);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 0.875rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}

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

.brand:hover .brand-name {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-tag {
  flex: none;
  padding: 1px 6px;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem clamp(1rem, 2.5vw, 1.75rem);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--text);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.25em;
}

.signin {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5625rem 1.125rem;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.signin:hover {
  background-color: var(--paper);
  color: var(--ink);
}

/* Buttons. The transparent border shows in forced colours mode, where the fill is dropped. */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  max-width: 100%;
  min-height: 3rem;
  padding: calc(0.75rem - 2px) calc(1.375rem - 2px);
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.button-accent {
  background-color: var(--accent);
  color: var(--on-accent);
}

.button-accent:hover {
  background-color: var(--accent-hover);
  color: var(--on-accent);
}

.button-ink {
  background-color: var(--ink);
  color: var(--on-ink);
}

.button-ink:hover {
  background-color: var(--ink-raised);
  color: var(--on-ink);
}

/* Hero: paper, with a rule below. */

.hero {
  border-bottom: 1px solid var(--rule);
  background-color: var(--paper);
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 27.5rem), 1fr));
  gap: 3.5rem;
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.lead {
  max-width: 34em;
  font-size: 1.1875rem;
}

.hero-price {
  max-width: 34em;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background-color: var(--surface);
  font-size: 1rem;
}

.hero-price strong {
  color: var(--ink);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.cta-note {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The claim card beside the hero text. */

.claim-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background-color: var(--surface);
  box-shadow: 0 1px 2px rgb(14 34 53 / 0.06), 0 18px 44px rgb(14 34 53 / 0.1);
}

.claim-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem var(--card-pad);
  border-bottom: 1px solid var(--rule);
  background-color: var(--paper-light);
}

.claim-card-head .card-title {
  color: var(--ink);
}

.claim-card-scope {
  color: var(--muted);
  font-size: 0.875rem;
}

.timeline {
  margin: 0;
  padding: 1.5rem var(--card-pad) 0.25rem;
  list-style: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1.375rem minmax(0, 1fr) auto;
  column-gap: 1rem;
}

/* The rail: a dot, then a line down to the next dot. Drawn with borders so it shows in forced colours. */
.timeline-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-rail::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border: 7px solid var(--ink);
  border-radius: 50%;
}

.timeline-rail::after {
  content: "";
  flex: 1;
  width: 0;
  min-height: 28px;
  margin: 6px 0;
  border-left: 2px solid var(--rule);
}

.timeline-schedule .timeline-rail::before {
  border-width: 3px;
  background-color: var(--surface);
}

.timeline-payment .timeline-rail::before {
  border-color: var(--accent);
}

.timeline-payment .timeline-rail::after {
  content: none;
}

.timeline-text {
  padding-bottom: 1.375rem;
}

.timeline-title {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}

.timeline-desc {
  color: var(--muted);
  font-size: 0.9375rem;
}

.timeline-date {
  padding-top: 3px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
}

.claim-card-note {
  padding: 0.875rem var(--card-pad);
  border-top: 1px dashed var(--rule-2);
  color: var(--muted);
  font-size: 0.875rem;
}

/*
  The navy strip. Each cell draws its right and bottom rules and reaches 1 px
  past its track, so the strip clips the outer ones in any number of columns.
*/
.claim-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  background-color: var(--ink);
  color: var(--on-ink);
  list-style: none;
}

.claim-strip li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 -1px -1px 0;
  padding: 1rem var(--card-pad);
  border-right: 1px solid rgb(255 255 255 / 0.14);
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Sections */

.section {
  background-color: var(--surface);
  font-size: 1rem;
}

.section-paper {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background-color: var(--paper);
}

.section-last {
  border-bottom: 0;
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-block: var(--section-pad);
}

/* What PCX does */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20.625rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.75rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background-color: var(--paper);
  color: var(--ink);
}

/* Price */

.price-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23.75rem), 1fr));
  gap: 2rem;
  align-items: start;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 18px;
  background-color: var(--ink);
  color: var(--on-ink);
}

/*
  The price bands on the navy card. The headings and the band labels wrap and
  the figures do not, so the three columns fit the card from 320 px wide with
  no scroll.
*/
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.price-table caption {
  padding-bottom: 0.75rem;
  color: var(--on-ink);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.price-table th,
.price-table td {
  padding: 0.75rem 0 0.75rem 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.16);
  text-align: right;
  vertical-align: baseline;
}

.price-table th:first-child {
  padding-left: 0;
  text-align: left;
}

.price-table thead th {
  padding-top: 0;
  border-bottom-color: rgb(255 255 255 / 0.22);
  color: var(--on-ink-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  vertical-align: bottom;
}

.price-table tbody th {
  color: var(--on-ink);
  font-weight: 600;
}

.price-table td {
  white-space: nowrap;
}

.price-table td:nth-child(2) {
  color: var(--on-ink);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.price-table td:last-child {
  color: var(--accent-on-dark);
  font-size: 0.9375rem;
}

.price-table tbody tr:last-child > * {
  border-bottom: 0;
}

.price-terms {
  padding-top: 1.125rem;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  color: var(--on-ink-muted);
  font-size: 0.9375rem;
}

.price-card .button {
  align-self: flex-start;
}

.price-points {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-points li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.price-points li:first-child {
  padding-top: 0;
}

.price-points li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* Cancellation and refunds: square bullets, drawn with a border so they show in forced colours. */

.bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 27.5rem), 1fr));
  column-gap: 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding: 1.125rem 0 1.125rem 1.625rem;
  border-top: 1px solid var(--rule);
}

.bullets li::before {
  content: "";
  position: absolute;
  top: 1.75rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border: 0.25rem solid var(--ink);
}

/* Good to know */

.notice {
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
}

.notice-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem var(--card-pad);
  background-color: var(--ink);
  color: var(--on-ink);
}

.notice-body {
  padding: 0.5rem var(--card-pad) 1.5rem;
}

/*
  Each item draws a rule above itself and sits 1 px high, so the list clips the
  rule on the first row: rules show between rows in one column or two.
*/
.notice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 27.5rem), 1fr));
  column-gap: 3rem;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.notice-list li {
  margin-top: -1px;
  padding-block: 1.125rem;
  border-top: 1px solid var(--rule-soft);
}

/* About and Contact */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23.75rem), 1fr));
  gap: 3rem;
  padding-block: var(--section-pad);
}

.split-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.intro {
  color: var(--ink);
  font-size: 1.125rem;
}

.contact-list {
  margin: 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background-color: var(--surface);
  list-style: none;
}

.contact-list li {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list a {
  font-weight: 600;
}

/* Footer: navy, with a title block like the corner of a drawing. */

.site-footer {
  background-color: var(--ink);
  color: var(--rule-2);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-block: 3.5rem 2.5rem;
}

/*
  The cells use the same reach-and-clip rule as the claim strip. They wrap as
  flex items and grow to fill each row, so a short last row has no empty cell
  and the lines fall only between cells.
*/
.title-block {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 4px;
}

.title-cell {
  display: flex;
  flex: 1 1 13.75rem;
  flex-direction: column;
  gap: 2px;
  margin: 0 -1px -1px 0;
  padding: 0.875rem 1.25rem;
  border-right: 1px solid rgb(255 255 255 / 0.22);
  border-bottom: 1px solid rgb(255 255 255 / 0.22);
}

.title-brand {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1.125rem;
  color: var(--on-ink);
}

.title-brand-name {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.title-label {
  color: var(--on-ink-label);
  font-size: 0.8125rem;
}

.title-value {
  color: var(--on-ink);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2.5rem;
}

.footer-notes {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  max-width: 46em;
}

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

/* The two addresses share a line and wrap onto two at narrow widths, so each is a 44 px target. */
.footer-notes a {
  display: inline-block;
  padding-block: 0.6875rem;
}

.footer-copy {
  align-self: flex-end;
  color: var(--on-ink-label);
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
}

/* The page has no motion; this keeps it that way if any is added. */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Print: no navigation or buttons, and the navy blocks keep their colours. */

@media print {
  .skip-link,
  .site-nav,
  .button {
    display: none;
  }

  .on-ink,
  .timeline-rail {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .claim-card,
  .feature,
  .price-card,
  .price-points li,
  .bullets li,
  .notice-list li,
  .contact-list,
  .title-block {
    break-inside: avoid;
  }
}
