/* ─────────────────────────────────────────────
   Inner pages. Shared components on top of base.css and home.css.
   Page groups add their own file in /assets/css/.
   ───────────────────────────────────────────── */

/* ── Nav: the links need a wider breakpoint ─── */
.menu a[aria-current="page"] { color: var(--ink); }
.menu a[aria-current="page"]::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--purple); }
.overlay-nav a[aria-current="page"] { color: var(--lav); }
@media (max-width: 1100px) {
  .head-in { grid-template-columns: 1fr auto; }
  .menu, .head-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 901px) and (max-width: 1100px) { .head-in { height: 72px; } .overlay { inset: 72px 0 0; } }

/* Footer with five columns */
.foot-grid-5 { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .foot-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid-5 > div:first-child { grid-column: 1 / -1; } }

/* ── Page hero ────────────────────────────────── */
/* Default is paper. Add .page-hero-dark or .page-hero-purple for colour. */
.page-hero { padding: 72px 0 88px; border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.page-hero h1 { margin-top: 16px; font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.04; max-width: 18ch; }
.page-hero .lead { margin-top: 22px; }
.page-hero .hero-ctas { margin-top: 30px; }
.page-hero-aside { padding: 24px 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.page-hero-dark { background: var(--ink); color: #fff; border-bottom: 0; }
.page-hero-dark .lead { color: var(--on-dark-muted); }
.page-hero-dark h1 span { color: var(--lav); }
.page-hero-purple h1 span { color: #fff; text-decoration: underline; text-decoration-color: var(--lav); text-decoration-thickness: .08em; text-underline-offset: .12em; }
.page-hero-dark .page-hero-aside { background: rgba(255, 255, 255, .06); border-color: var(--on-dark-line); }
.page-hero-purple { background: var(--purple); color: #fff; border-bottom: 0; }
.page-hero-purple .lead { color: #fff; }
.page-hero-purple .label { color: #fff; }
.page-hero-dark :focus-visible { outline-color: var(--lav); }
.page-hero-purple :focus-visible { outline-color: #fff; }
.page-hero-dark .btn-line, .page-hero-purple .btn-line { color: #fff; border-color: rgba(255, 255, 255, .35); }
.page-hero-dark .btn-line:hover, .page-hero-purple .btn-line:hover { border-color: #fff; }
@media (max-width: 900px) { .page-hero { padding: 48px 0 64px; } .page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* Breadcrumb */
.crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--faint); }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.crumb li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumb [aria-current] { color: var(--ink); font-weight: 600; }
.page-hero-dark .crumb { color: rgba(255, 255, 255, .72); }
.page-hero-purple .crumb { color: #fff; }
.page-hero-dark .crumb [aria-current], .page-hero-purple .crumb [aria-current] { color: #fff; }
nav[aria-label="Breadcrumb"] + .label { margin-top: 28px; }

/* ── Feature grid ─────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.features-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { padding: 28px 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.feature .ms { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 22px; background: var(--wp-soft); color: var(--purple); }
.feature-hs .ms { background: var(--hs-soft); color: var(--hs-ink); }
.feature-care .ms { background: var(--care-soft); color: var(--care-ink); }
.feature h3 { margin-top: 20px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: .97rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features, .features-2 { grid-template-columns: minmax(0, 1fr); } }

/* ── Split: heading left, content right ────────── */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.split-head h2 { margin-top: 14px; }
.split-head p:not(.label) { margin-top: 18px; color: var(--muted); }
.sec-ink .split-head p:not(.label), .sec-purple .split-head p:not(.label) { color: var(--on-dark-muted); }
@media (min-width: 961px) { .split-head.is-sticky { position: sticky; top: 104px; } }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* Simple definition-style rows */
.rows-list { border-top: 1px solid var(--line-2); }
.rows-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows-list strong { font-weight: 650; }
.rows-list span { color: var(--muted); }
.sec-ink .rows-list, .sec-ink .rows-list li { border-color: var(--on-dark-line); }
.sec-ink .rows-list span { color: var(--on-dark-muted); }
@media (max-width: 560px) { .rows-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ── Prose (notes, legal) ─────────────────────── */
.prose { max-width: 68ch; font-size: 1.05rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.2; }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--purple); text-underline-offset: 3px; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--paper-2); font: 400 .88em var(--code); }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: 12px; background: var(--ink); color: #EDEBF5; font: 400 .85rem/1.7 var(--code); }
.prose pre code { padding: 0; background: none; color: inherit; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--purple); color: var(--muted); }
.prose table { width: 100%; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }

/* ── Forms ────────────────────────────────────── */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px;
  background: var(--card); color: var(--text); font: 400 1rem var(--font); transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--purple); outline-offset: 1px; border-color: var(--purple); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.choice { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 999px; cursor: pointer; font-weight: 500; }
.choice input:checked + span { background: var(--purple); border-color: var(--purple); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 2px; }
.form-note { padding: 14px 16px; border-radius: 12px; font-size: .95rem; }
.form-note-ok { background: var(--care-soft); color: var(--care-ink); }
.form-note-warn { background: var(--hs-soft); color: var(--hs-ink); }

/* ── Small CTA band for the end of inner pages ── */
.cta-band { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px 40px; padding: 40px 44px; border-radius: 24px; background: var(--purple); color: #fff; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 22ch; }
.cta-band p { margin-top: 10px; color: #fff; max-width: 52ch; }
.cta-band :focus-visible { outline-color: #fff; }
@media (max-width: 600px) { .cta-band { padding: 32px 22px; } .cta-band .btn { width: 100%; } }
.page-hero .mark::after { transform: scaleX(1); }


/* ── Header: floating bar, transparent over the hero, solid once scrolled ── */
.head {
  position: sticky; top: 12px; width: min(1240px, calc(100% - 24px)); margin: 12px auto -84px;
  border: 1px solid transparent; border-radius: 18px; background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.head-in { height: 64px; padding: 0 20px; }
.head.is-scrolled {
  background: rgba(255, 255, 255, .88); border-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .3);
}
/* The first section slides under the bar, so it gets extra room on top */
main > :first-child { padding-top: 168px; }
@media (max-width: 900px) { main > :first-child { padding-top: 128px; } }
/* Mobile menu opens below the floating bar */
.overlay { inset: 0; padding-top: 96px; }
.head:has(.menu-btn[aria-expanded="true"]) { background: var(--ink); border-color: rgba(255, 255, 255, .1); }
.head:has(.menu-btn[aria-expanded="true"]) .brand,
.head:has(.menu-btn[aria-expanded="true"]) .menu-btn { color: #fff; }

/* Over a dark hero, before scrolling: light text */
html[data-hero-tone="dark"] .head:not(.is-scrolled) .brand { color: #fff; }
html[data-hero-tone="dark"] .head:not(.is-scrolled) .menu a { color: #fff; }
html[data-hero-tone="dark"] .head:not(.is-scrolled) .menu a:hover,
html[data-hero-tone="dark"] .head:not(.is-scrolled) .menu a[aria-current="page"] { color: #fff; }
html[data-hero-tone="dark"] .head:not(.is-scrolled) .menu a[aria-current="page"]::after { background: var(--lav); }
html[data-hero-tone="dark"] .head:not(.is-scrolled) .head-cta { background: var(--paper); border-color: var(--paper); color: var(--ink); }
html[data-hero-tone="dark"] .head:not(.is-scrolled) .menu-btn { color: #fff; }
html[data-hero-tone="dark"] .head:not(.is-scrolled) :focus-visible { outline-color: var(--lav); }

/* Header text fades with the bar, so contrast holds mid-transition */
.head .brand, .head .menu a, .head .menu-btn, .head .head-cta { transition: color .3s, background-color .3s, border-color .3s; }

/* Agency pricing callout (pricing page) */
.sec-tight { padding: 88px 0; }
@media (max-width: 700px) { .sec-tight { padding: 56px 0; } }
.agency-band {
  margin-top: 64px; scroll-margin-top: 110px;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px 56px; align-items: center;
  padding: 44px 48px; border-radius: 24px; background: var(--ink); color: #fff;
}
.agency-band h2 { margin-top: 12px; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.agency-band-copy p:not(.label) { margin-top: 14px; color: var(--on-dark-muted); max-width: 52ch; }
.agency-band-list { display: grid; gap: 14px; }
.agency-band-list li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.agency-band-list .ms { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--lav); font-size: 20px; }
.agency-band .btn { grid-column: 1; justify-self: start; }
.agency-band :focus-visible { outline-color: var(--lav); }
@media (max-width: 860px) {
  .agency-band { grid-template-columns: minmax(0, 1fr); padding: 32px 22px; }
  .agency-band .btn { width: 100%; }
}

/* Trademark notice in the footer stays a readable measure */
.foot-bottom small { display: block; max-width: 46rem; text-wrap: balance; }

/* Example project ranges (pricing page) */
.rcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rcard { display: flex; flex-direction: column; padding: 28px 22px 30px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.rcard:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .3); }
.rcard-plat { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.rcard-plat .dot + .dot { margin-left: -2px; }
.rcard-plat .dot:last-of-type { margin-right: 4px; }
.rcard h3 { margin-top: 20px; min-height: 1.2em; font-size: 1.38rem; line-height: 1.2; }
@media (max-width: 600px) { .rcard h3 { min-height: 0; } }
.rcard-price { margin-top: 16px; font-weight: var(--dw); font-size: 2.4rem; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); }
.rcard-price > span:not(.price) { display: block; margin-top: 6px; font-family: var(--font); font-weight: 500; font-size: 1.08rem; letter-spacing: 0; color: var(--muted); }
.rcard-desc { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; line-height: 1.55; color: var(--muted); }
.rcard-custom { background: var(--ink); border-color: var(--ink); color: #fff; }
.rcard-custom .rcard-plat { color: var(--lav); }
.rcard-custom .rcard-plat .ms { font-size: 18px; }
.rcard-custom .rcard-price { color: #fff; }
.rcard-custom .rcard-price > span:not(.price), .rcard-custom .rcard-desc { color: var(--on-dark-muted); }
.rcard-custom .rcard-desc { border-top-color: var(--on-dark-line); }
.rcard-custom .btn { margin-top: auto; align-self: flex-start; }
.rcard-custom .rcard-desc { margin-bottom: 22px; }
.rcard-custom :focus-visible { outline-color: var(--lav); }
@media (max-width: 1100px) { .rcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rcards { grid-template-columns: minmax(0, 1fr); } .rcard-custom .btn { width: 100%; } }

/* Notes under the project ranges: one quiet line of small print */
.rnotes { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.rnotes li { display: inline-flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--faint); }
.rnotes .ms { flex: none; font-size: 17px; color: var(--purple); }

/* Small links under a notes strip */
.rlinks { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; }
.rlinks a { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 600; color: var(--purple); text-decoration: none; }
.rlinks a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rlinks .ms { font-size: 16px; transition: transform .25s var(--ease); }
.rlinks a:hover .ms { transform: translateX(3px); }

/* Three-up variant (retainers on the pricing page) and an agency band that opens a section */
.rcards.rcards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .rcards.rcards-3 { grid-template-columns: minmax(0, 1fr); } }
.agency-band.agency-band-top { margin-top: 0; }
