/* porticogov.io — the public site, in the Portico brand (Brand/Brand Colours.png).
   Black anchor, pastel lilac primary accent, pink secondary, slate for depth,
   soft yellow as an accent only, off-white ground. Pastels are never text:
   links take a deep lilac derived from the swatch (7.6:1 on white). */

:root {
  --black: #0B0C0C;
  --lilac: #C6B8E8;
  --pink: #F0BFCB;
  --slate: #6E8299;
  --yellow: #FCEBA1;
  --ground: #F9F8F6;
  --panel: #FFFFFF;
  --tint: #F1EEF8;           /* lilac at ~25% on the ground */
  --rule: #DCD8D0;
  --muted: #4A5262;
  --link: #5B48A8;
  --link-hover: #3E3080;
  --radius: 10px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--black);
  font: 18px/1.6 "Atkinson Hyperlegible", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--yellow); color: var(--black); padding: 8px 12px; z-index: 10; }
.preview-bar { background: var(--yellow); text-align: center; font-weight: 700; padding: 6px; font-size: 15px; }

/* Header */
.site-header { background: var(--panel); }
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand img { display: block; height: 40px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1; }
.site-nav a { color: var(--black); text-decoration: none; font-weight: 700; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--lilac); }
.band { display: flex; height: 6px; }
.band span { flex: 1; }
.band span:nth-child(1) { background: var(--lilac); }
.band span:nth-child(2) { background: var(--pink); }
.band span:nth-child(3) { background: var(--slate); }
.band span:nth-child(4) { background: var(--yellow); }
.notice { background: var(--black); color: #fff; font-size: 15px; padding: 8px 0; }

/* Buttons: black primary, lilac secondary — both carry dark or white text, never pastel text. */
.btn {
  display: inline-block; background: var(--black); color: #fff; border: 2px solid var(--black);
  padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 17px;
  cursor: pointer; font-family: inherit;
}
.btn:hover { background: #2a2c2c; color: #fff; }
.btn--secondary { background: var(--lilac); border-color: var(--lilac); color: var(--black); }
.btn--secondary:hover { background: #b6a5e0; color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.hero { padding: 88px 0 72px; background: linear-gradient(180deg, var(--panel) 0%, var(--ground) 100%); }
.hero--short { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); line-height: 1.06; letter-spacing: -0.015em; margin: 0 0 20px; max-width: 18ch; text-wrap: balance; }
.lede { font-size: 1.3rem; color: var(--muted); max-width: 60ch; margin: 0; }
.section { padding: 64px 0; }
.section--tinted { background: var(--tint); }
.section h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.4rem); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
.section-lede { color: var(--muted); max-width: 62ch; margin: 0 0 32px; font-size: 1.15rem; }
.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 6px; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.5em; }

.grid { display: grid; gap: 20px; }
/* Columns as the editor chose them on wide screens; one column on a phone. */
.grid--2, .grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { background: var(--panel); border-radius: var(--radius); padding: 24px; border-top: 5px solid var(--lilac); }
.grid .feature:nth-child(4n + 2) { border-top-color: var(--pink); }
.grid .feature:nth-child(4n + 3) { border-top-color: var(--slate); }
.grid .feature:nth-child(4n + 4) { border-top-color: var(--yellow); }
.feature h3 { margin: 0 0 8px; font-size: 1.2rem; }
.feature p { margin: 0; color: var(--muted); }
.feature--link { display: block; color: inherit; text-decoration: none; }
.feature--link:hover h3 { text-decoration: underline; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { counter-increment: step; background: var(--panel); border-radius: var(--radius); padding: 24px 24px 24px 76px; position: relative; }
.step::before {
  content: counter(step); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--black); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.step:nth-child(4n + 2)::before { background: var(--lilac); color: var(--black); }
.step:nth-child(4n + 3)::before { background: var(--pink); color: var(--black); }
.step:nth-child(4n + 4)::before { background: var(--yellow); color: var(--black); }
.step h3 { margin: 0 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

.panel { background: var(--black); color: #fff; border-radius: 16px; padding: 40px; }
.panel h2 { color: #fff; }
.panel a:not(.btn) { color: var(--lilac); }
.panel .prose { color: #E7E5F0; }

details.faq { background: var(--panel); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 10px; }
details.faq summary { font-weight: 700; cursor: pointer; }

.figure { margin: 0; }
.figure img { border-radius: var(--radius); }
.figure figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }

.pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: start; }
.price-card { background: var(--panel); border-radius: 16px; padding: 28px; border: 2px solid transparent; }
.price-card--featured { border-color: var(--black); box-shadow: 0 0 0 6px var(--lilac); }
.price-card h3 { margin: 0 0 6px; }
.price { font-size: 2rem; font-weight: 700; margin: 0 0 8px; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 16px 0 24px; }
.ticks li { padding-left: 28px; position: relative; margin: 6px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 3px solid var(--slate); border-bottom: 3px solid var(--slate); transform: rotate(-45deg); }

.table-wrap { overflow-x: auto; background: var(--panel); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
th { background: var(--tint); }

/* Enquiry forms */
.enquiry { display: grid; gap: 16px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field textarea {
  font: inherit; padding: 10px 12px; border: 2px solid var(--black); border-radius: 8px; background: var(--panel); width: 100%;
}
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 15px; color: var(--muted); margin: 0; }
.form-status { font-weight: 700; margin: 0; min-height: 1.6em; }

/* Footer */
.site-footer { background: var(--panel); border-top: 1px solid var(--rule); padding: 40px 0; margin-top: 32px; font-size: 16px; }
.site-footer__inner { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }
.site-footer__legal { grid-column: 1 / -1; color: var(--muted); margin: 0; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .site-header__inner { flex-wrap: wrap; gap: 12px; padding: 12px 24px; }
  .site-header__login { display: none; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .panel { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
