/* ──────────────────────────────────────────────────────────────────────────
   RyanFulfil Partners / Agency Desk — shared stylesheet
   ──────────────────────────────────────────────────────────────────────────
   Used by every page in the partner funnel:
     /for-agencies/, /for-agencies/apply/, /for-agencies/resources/,
     /partners/referral/, /case-studies/multi-store-fulfilment/,
     /legal/partner-terms/, /legal/agency-service-policy/,
     /legal/partner-privacy-and-data/

   The rest of the site inlines its CSS per page. This funnel does not: eight
   pages sharing one visual language drift within a week if each carries its
   own copy of the tokens. Everything shared — reset, type, nav, footer,
   buttons — lives here, so a partner page's own <style> block should be empty
   or close to it.

   Tokens mirror CLAUDE_HANDOFF.md §3. Do not fork them.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --navy:          #0D1F3C;
  --navy-deep:     #09182C;
  --accent:        #2AAEF5;
  --accent-strong: #0877B7;
  --white:         #FFFFFF;
  --surface:       #F0F7FF;
  --surface-warm:  #F7FAFD;
  --text:          #111827;
  --muted:         #52657A;
  --border:        #CBD8E5;
  --border-soft:   #E2E8F0;
  --green:         #16A34A;
  --amber:         #B45309;
  --amber-bg:      #FFF8EC;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ── Reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
main { display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
p  { color: var(--text); }

/* ── Prose rhythm ───────────────────────────────────────────────────────
   The reset above zeroes every margin, which is right for the components but
   wrong for ordinary body copy: a section written as three bare <p> rendered
   as one unbroken wall of text, and an <h3> sat flush against the grid below
   it. Components that already define their own spacing keep it — every one of
   those selectors is more specific than these.
   ────────────────────────────────────────────────────────────────────────── */
.container > p + p,
.container > p + ul, .container > p + ol,
.container > ul + p, .container > ol + p { margin-top: 14px; }
.container > h2 + p, .container > h3 + p, .container > h4 + p,
.container > h3 + ul, .container > h3 + ol,
.container > h3 + div, .container > h3 + table { margin-top: 12px; }
.container > p + h3, .container > ul + h3,
.container > ol + h3, .container > div + h3 { margin-top: 30px; }
.container > * + .ptable-wrap,
.container > * + .figures, .container > * + .steps { margin-top: 20px; }

/* ── Layout helpers ───────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.section { padding: 76px 0; }
.section--tight { padding: 54px 0; }
.section--surface { background: var(--surface); }
.section--warm { background: var(--surface-warm); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255, 255, 255, 0.76); }

.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 12px; color: var(--muted); line-height: 1.75; }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.72); }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section--navy .eyebrow, .hero-partner .eyebrow { color: #7DD3FC; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px;
  border: none; border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.875rem;
  cursor: pointer; white-space: nowrap; gap: 8px;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent-strong); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.btn-on-navy { background: var(--white); color: var(--navy); }
.btn-outline-light { background: rgba(255,255,255,0.06); color: var(--white); border: 1px solid rgba(255,255,255,0.32); }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.textlink { color: var(--accent-strong); font-weight: 600; }
.textlink:hover { text-decoration: underline; }
.section--navy .textlink { color: #7DD3FC; }

/* ── Navigation (shared with the rest of the site) ────────────────────── */
nav[aria-label="Main navigation"] {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.nav-logo {
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem;
  color: var(--navy); white-space: nowrap; flex-shrink: 0;
}
.nav__logo-img { height: 52px; width: auto; display: block; }
.nav__logo-fallback { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--navy); letter-spacing: -0.02em; }
.nav__logo-fallback span { color: var(--accent); }
.nav-links {
  display: flex; gap: 26px; list-style: none;
  font-size: 0.875rem; font-weight: 500; color: var(--text);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-strong); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--navy); padding: 4px; }

@media (max-width: 900px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px; gap: 16px; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-right .btn { display: none; }
  nav[aria-label="Main navigation"] { position: relative; }
}

/* ── Partner hero ─────────────────────────────────────────────────────── */
.hero-partner {
  background-color: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(13,31,60,0.98), rgba(9,24,44,0.95)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 46px);
  color: var(--white);
  padding: 74px 0 64px;
}
.hero-partner h1 { color: var(--white); max-width: 17ch; }
.hero-partner__sub {
  max-width: 62ch; margin-top: 20px;
  color: rgba(255,255,255,0.78);
  font-size: clamp(1rem, 2.2vw, 1.1rem); line-height: 1.75;
}
.hero-partner__clarifier {
  max-width: 62ch; margin-top: 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.06);
  border-radius: 0 8px 8px 0;
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem; line-height: 1.7;
}
.hero-partner .btn-row { margin-top: 28px; }
.hero-partner__proof {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; list-style: none;
}
.hero-partner__proof li {
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 7px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.86);
  font-size: 0.84rem; font-weight: 600;
}
.hero-partner__legend {
  margin-top: 14px;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem; line-height: 1.65;
}
.claim-proof-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.34);
  text-underline-offset: 3px;
}
.claim-proof-link:hover,
.claim-proof-link:focus-visible { color: var(--white); text-decoration-color: var(--accent); }
.evidence-note {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}
.hero-partner .evidence-note { color: rgba(255,255,255,0.68); }

/* ── Generic card grids ───────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
}
.card h3 { margin-bottom: 8px; line-height: 1.4; }
.card p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }
.card--flat { background: var(--surface); border-color: transparent; }
.card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-bottom: 12px;
  border-radius: 7px;
  background: var(--surface); color: var(--accent-strong);
  font-family: var(--font-head); font-weight: 800; font-size: 0.85rem;
}

.pullquote {
  margin-top: 28px; padding: 20px 24px;
  border-left: 4px solid var(--accent-strong);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  font-size: 1.02rem; font-weight: 600; color: var(--navy); line-height: 1.6;
}

/* ── Path cards (Refer / Co-Manage / White Label) ─────────────────────── */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 940px) { .paths { grid-template-columns: minmax(0, 1fr); } }
.path {
  display: flex; flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(13,31,60,0.05);
}
.path--featured { border-color: var(--accent-strong); border-width: 2px; }
.path__tag {
  align-self: flex-start; margin-bottom: 14px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--surface); color: var(--accent-strong);
  font-size: 0.67rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.path--featured .path__tag { background: var(--accent-strong); color: var(--white); }
.path h3 { font-size: 1.22rem; margin-bottom: 6px; }
.path__line { color: var(--navy); font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
.path p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }
.path__facts { list-style: none; margin: 16px 0 20px; display: grid; gap: 9px; }
.path__facts li {
  display: grid; grid-template-columns: auto 1fr; gap: 9px;
  color: var(--muted); font-size: 0.83rem; line-height: 1.55;
}
.path__facts b { color: var(--navy); font-weight: 700; }
.path__facts .k {
  color: var(--accent-strong); font-weight: 800;
}
.path .btn { margin-top: auto; }

/* ── Responsibility split ─────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 780px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split__col {
  padding: 26px 24px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--white);
}
.split__col--ryan { background: var(--navy); border-color: var(--navy); color: var(--white); }
.split__col--ryan h3 { color: var(--white); }
.split__col h3 { font-size: 1.05rem; margin-bottom: 4px; }
.split__col > p { font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; }
.split__col--ryan > p { color: rgba(255,255,255,0.62); }
.owns { list-style: none; display: grid; gap: 10px; }
.owns li {
  position: relative; padding-left: 24px;
  font-size: 0.88rem; line-height: 1.6; color: var(--text);
}
.split__col--ryan .owns li { color: rgba(255,255,255,0.86); }
.owns li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 11px; height: 2px; border-radius: 2px; background: var(--accent-strong);
}
.split__col--ryan .owns li::before { background: var(--accent); }
.split__shared {
  grid-column: 1 / -1;
  padding: 22px 24px; border-radius: 14px;
  background: var(--surface); border: 1px dashed var(--border);
}
.split__shared h3 { font-size: 0.95rem; margin-bottom: 12px; }
.split__shared ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.split__shared li {
  padding: 7px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 600; color: var(--navy);
}

/* ── Numbered process ─────────────────────────────────────────────────── */
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 62px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--white);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 17px;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: 0.85rem;
}
.steps b { display: block; color: var(--navy); font-size: 0.95rem; margin-bottom: 3px; }
.steps span { color: var(--muted); font-size: 0.85rem; line-height: 1.6; }
.steps .who {
  display: inline-block; margin-top: 8px;
  padding: 3px 8px; border-radius: 999px;
  background: var(--surface); color: var(--accent-strong);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}

/* ── Capability chips ─────────────────────────────────────────────────── */
.chips { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .chips { grid-template-columns: minmax(0, 1fr); } }
.chips li {
  padding: 15px 17px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--white);
  font-size: 0.88rem; font-weight: 600; color: var(--navy); line-height: 1.5;
}
.chips li small { display: block; margin-top: 5px; font-weight: 400; font-size: 0.79rem; color: var(--muted); line-height: 1.55; }

/* ── Two-list honesty component (can / may remain visible) ────────────── */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 780px) { .ledger { grid-template-columns: minmax(0, 1fr); } }
.ledger__col { padding: 24px; border-radius: 14px; border: 1px solid var(--border); background: var(--white); }
.ledger__col--yes { border-top: 4px solid var(--green); }
.ledger__col--limit { border-top: 4px solid var(--amber); background: var(--amber-bg); border-color: #F0DFC2; }
.ledger__col h3 { font-size: 1rem; margin-bottom: 6px; }
.ledger__col > p { font-size: 0.82rem; color: var(--muted); margin-bottom: 15px; line-height: 1.6; }
.ledger__list { list-style: none; display: grid; gap: 11px; }
.ledger__list li { position: relative; padding-left: 26px; font-size: 0.87rem; line-height: 1.6; }
.ledger__list li::before {
  position: absolute; left: 0; top: 0; font-weight: 800; font-size: 0.9rem;
}
.ledger__col--yes .ledger__list li::before { content: "\2713"; color: var(--green); }
.ledger__col--limit .ledger__list li::before { content: "!"; color: var(--amber); }
.ledger__list li small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.79rem; line-height: 1.55; }

/* ── Honest-limit / caution box ───────────────────────────────────────── */
.honest {
  margin-top: 24px; padding: 20px 24px;
  border: 1px solid #F0DFC2; border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0; background: var(--amber-bg);
}
.honest h3 { font-size: 0.9rem; color: var(--amber); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 9px; }
.honest p { font-size: 0.88rem; line-height: 1.7; color: var(--text); }
.honest p + p { margin-top: 10px; }

/* ── Fit lists (good fit / not yet) ───────────────────────────────────── */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 780px) { .fit { grid-template-columns: minmax(0, 1fr); } }
.fit__col { padding: 24px; border-radius: 14px; border: 1px solid var(--border); background: var(--white); }
.fit__col h3 { font-size: 1rem; margin-bottom: 14px; }
.fit__col ul { list-style: none; display: grid; gap: 10px; }
.fit__col li { position: relative; padding-left: 26px; font-size: 0.87rem; line-height: 1.6; color: var(--text); }
.fit__col li::before { position: absolute; left: 0; top: -1px; font-size: 1rem; font-weight: 800; }
.fit__col--yes li::before { content: "\2713"; color: var(--green); }
.fit__col--no { background: var(--surface-warm); }
.fit__col--no li::before { content: "\2013"; color: var(--muted); }
.fit__redirect {
  margin-top: 18px; padding: 15px 17px; border-radius: 10px;
  background: var(--surface); font-size: 0.86rem; line-height: 1.65; color: var(--text);
}

/* ── Data table ───────────────────────────────────────────────────────── */
.ptable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--border); }
.ptable { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--white); font-size: 0.87rem; }
.ptable caption { text-align: left; padding: 14px 16px; font-size: 0.82rem; color: var(--muted); background: var(--surface-warm); }
.ptable th, .ptable td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: top; line-height: 1.55; }
.ptable thead th { background: var(--navy); color: var(--white); font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; }
.ptable tbody th { background: var(--surface); color: var(--navy); font-weight: 700; }
.ptable tbody tr:last-child td, .ptable tbody tr:last-child th { border-bottom: none; }

/* ── Proof numbers ────────────────────────────────────────────────────── */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) { .figures { grid-template-columns: minmax(0, 1fr); } }
.figure { padding: 20px 22px; border-radius: 12px; border: 1px solid var(--border); background: var(--white); }
.figure strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); }
.figure span { display: block; margin-top: 5px; font-size: 0.82rem; color: var(--muted); }
.section--navy .figure { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.16); }
.section--navy .figure strong { color: var(--white); }
.section--navy .figure span { color: rgba(255,255,255,0.66); }

/* ── FAQ accordion ────────────────────────────────────────────────────── */
.faq-group { border: 1px solid var(--border); border-radius: 13px; overflow: hidden; background: var(--white); }
.faq-group + .faq-group { margin-top: 16px; }
.faq-group__title {
  padding: 13px 20px; background: var(--surface);
  font-family: var(--font-head); font-weight: 800; font-size: 0.76rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  /* Not --accent-strong (#0877B7): at 12px bold on the --surface panel that is
     4.49:1, a hair under WCAG AA 4.5. This darker blue clears it with margin. */
  color: #076699;
}
.faq-item { border-top: 1px solid var(--border-soft); }
.faq-item:first-of-type { border-top: none; }
.faq-item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 0.93rem; color: var(--navy); line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-strong); }
.faq-item summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0;
  font-family: var(--font-body); font-size: 1.2rem; font-weight: 400; line-height: 1; color: var(--accent-strong);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item__body { padding: 0 20px 18px; }
.faq-item__body p { font-size: 0.89rem; line-height: 1.75; color: var(--muted); }
.faq-item__body p + p { margin-top: 10px; }
.faq-item__body ul { margin: 10px 0 0 18px; }
.faq-item__body li { font-size: 0.89rem; line-height: 1.7; color: var(--muted); margin-bottom: 6px; }

/* ── Resource kit ─────────────────────────────────────────────────────── */
.kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .kit { grid-template-columns: minmax(0, 1fr); } }
.kit__item {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 17px 19px; border: 1px solid var(--border); border-radius: 12px; background: var(--white);
}
.kit__icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--surface); color: var(--accent-strong);
  font-family: var(--font-head); font-weight: 800; font-size: 0.8rem;
}
.kit__item h3 { font-size: 0.94rem; margin-bottom: 4px; }
.kit__item p { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }
.kit__state {
  display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.kit__state--ready { background: #E7F6EC; color: #14532D; }
.kit__state--pilot { background: var(--amber-bg); color: var(--amber); }

/* ── Final CTA band ───────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(145deg, var(--navy) 0%, #17345D 100%);
  color: var(--white); padding: 68px 0;
}
.cta-band h2 { color: var(--white); max-width: 20ch; }
.cta-band p { color: rgba(255,255,255,0.76); max-width: 62ch; margin-top: 14px; line-height: 1.75; }
.cta-band .btn-row { margin-top: 26px; }
.cta-band__note {
  margin-top: 26px; padding: 15px 18px;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.72); font-size: 0.85rem; line-height: 1.7;
  max-width: 68ch;
}

/* ── Enquiry routes ─────────────────────────────────────────────────────
   The readable number and the short link, published together. The number
   links to wa.me because that is the URL lead-attribution.js can enrich
   with page context; the short link redirects with its own message.
   ────────────────────────────────────────────────────────────────────── */
.wa-routes {
  margin-top: 18px; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface);
  font-size: 0.88rem; line-height: 1.7; color: var(--text);
  max-width: 62ch;
}
.wa-routes a { color: var(--accent-strong); font-weight: 700; white-space: nowrap; }
.wa-routes a:hover { text-decoration: underline; }
.wa-routes--light {
  border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
}
.wa-routes--light a { color: #7DD3FC; }
/* ── Forms (application funnel) ───────────────────────────────────────── */
.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
@media (max-width: 1000px) { .form-shell { grid-template-columns: minmax(0, 1fr); gap: 34px; } }

.fieldset { border: none; margin-bottom: 34px; }
.fieldset legend {
  display: block; width: 100%; margin-bottom: 6px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--navy);
}
.fieldset__hint { margin: 10px 0 20px; font-size: 0.84rem; color: var(--muted); line-height: 1.65; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field .req { color: #C2410C; }
.field__hint { display: block; margin-top: 5px; font-size: 0.78rem; color: var(--muted); line-height: 1.55; }
.field input[type="text"], .field input[type="email"], .field input[type="url"],
.field input[type="tel"], .field input[type="number"], .field input[type="date"],
.field select, .field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text); background: var(--white);
}
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(42,174,245,0.18);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #C2410C; box-shadow: 0 0 0 3px rgba(194,65,12,0.14);
}
.field__error { display: none; margin-top: 6px; font-size: 0.79rem; font-weight: 600; color: #C2410C; }
.field__error.is-shown { display: block; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 620px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

.checks { display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.86rem; line-height: 1.6; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent-strong); }
.check span { color: var(--text); }

.form-alert {
  display: none; margin: 0 0 20px; padding: 14px 17px;
  border-radius: 10px; border: 1px solid #F3C9B4; background: #FEF3EE;
  font-size: 0.87rem; line-height: 1.65; color: #7C2D12;
}
.form-alert.is-shown { display: block; }

.form-aside { position: sticky; top: 88px; display: grid; gap: 16px; }
@media (max-width: 1000px) { .form-aside { position: static; } }
.aside-card { padding: 22px; border: 1px solid var(--border); border-radius: 13px; background: var(--white); }
.aside-card--tinted { background: var(--surface); border-color: transparent; }
.aside-card h3 { font-size: 0.95rem; margin-bottom: 10px; }
.aside-card p, .aside-card li { font-size: 0.84rem; line-height: 1.65; color: var(--muted); }
.aside-card ol, .aside-card ul { margin-left: 17px; display: grid; gap: 7px; }

.form-progress {
  margin: 0 0 20px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface);
}
.form-progress__label { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.form-progress__label strong { color: var(--navy); font-size: 0.88rem; }
.form-progress__label span { color: var(--muted); font-size: 0.8rem; font-weight: 700; text-align: right; }
.form-progress__track { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: var(--border); }
.form-progress__fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent-strong); transition: width 180ms ease; }
.form-progress p { margin-top: 9px; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .form-progress__fill { transition: none; } }
@media (max-width: 520px) {
  .form-progress__label { display: grid; gap: 3px; }
  .form-progress__label span { text-align: left; }
}

.routing {
  margin-top: 6px; padding: 17px 19px;
  border-radius: 11px; border: 1px solid var(--border); background: var(--surface);
}
.routing h3 { font-size: 0.86rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 8px; }
.routing p { font-size: 0.87rem; line-height: 1.7; color: var(--text); }
.routing[data-state="hold"] { background: var(--amber-bg); border-color: #F0DFC2; }
.routing[data-state="hold"] h3 { color: var(--amber); }

.submit-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.submit-note { margin-top: 12px; font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.copy-status { margin-top: 10px; font-size: 0.82rem; font-weight: 600; color: var(--green); min-height: 1.2em; }

/* Honeypot — visually hidden, still focusable-free for real users */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Legal document pages ─────────────────────────────────────────────── */
.legal-notice {
  padding: 18px 22px; margin-bottom: 30px;
  border: 1px solid #F0DFC2; border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0; background: var(--amber-bg);
}
.legal-notice h2 { font-size: 0.9rem; color: var(--amber); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.legal-notice p { font-size: 0.87rem; line-height: 1.7; }
.legal-notice p + p { margin-top: 9px; }

.legal-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding: 15px 0 22px; margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem; color: var(--muted);
}
.legal-meta b { color: var(--navy); }

.legal-toc { padding: 20px 24px; border-radius: 12px; background: var(--surface); margin-bottom: 34px; }
.legal-toc h2 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 12px; }
.legal-toc ol { margin-left: 18px; display: grid; gap: 7px; }
.legal-toc li { font-size: 0.87rem; line-height: 1.5; }
.legal-toc a:hover { color: var(--accent-strong); text-decoration: underline; }

.legal-body { max-width: 76ch; }
.legal-body h2 {
  margin-top: 44px; padding-top: 8px; font-size: 1.22rem;
  scroll-margin-top: 84px;
}
.legal-body h3 { margin-top: 26px; font-size: 0.98rem; }
.legal-body p { margin-top: 12px; font-size: 0.93rem; line-height: 1.8; color: var(--text); }
.legal-body ul, .legal-body ol { margin: 12px 0 0 22px; }
.legal-body li { margin-top: 8px; font-size: 0.93rem; line-height: 1.75; }
.legal-body li > ul, .legal-body li > ol { margin-top: 6px; }
.legal-body .defined { font-weight: 700; color: var(--navy); }

/* ── Breadcrumb ───────────────────────────────────────────────────────── */
.crumbs { padding: 16px 0 0; font-size: 0.8rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border); }
.crumbs a:hover { color: var(--accent-strong); text-decoration: underline; }

/* ── Anchor nav for long pages ────────────────────────────────────────── */
.jump {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 0; border-bottom: 1px solid var(--border-soft); background: var(--white);
}
.jump a {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 0.79rem; font-weight: 600; color: var(--navy);
}
.jump a:hover { border-color: var(--accent-strong); color: var(--accent-strong); }

/* ── Footer (shared with the rest of the site) ────────────────────────── */
.footer { background: var(--navy); color: var(--white); padding: 54px 0 26px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px; margin-bottom: 34px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }
.footer__brand-name { margin-bottom: 10px; }
.footer__logo-img { height: 32px; width: auto; display: block; border-radius: 5px; padding: 3px 8px; margin-bottom: 10px; }
.footer__tagline { color: rgba(255,255,255,0.6); font-size: 0.875rem; max-width: 30ch; }
.footer__col h2 {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 14px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__col li a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer__col li a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 0.8rem;
}
.footer__bottom a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer__bottom a:hover { color: var(--white); }

/* ── Print (legal pages get printed and sent to counsel) ──────────────── */
@media print {
  nav[aria-label="Main navigation"], .footer, .jump, .cta-band, .btn { display: none !important; }
  body { color: #000; }
  .legal-body { max-width: none; }
  .legal-notice { border: 1px solid #999; }
}

/* ── Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Browser-only Agency Desk client brief */
.worksheet { display:grid; gap:18px; }
.worksheet__section { padding:24px; border:1px solid var(--border); border-radius:14px; background:var(--white); }
.worksheet__section h2 { font-size:1.25rem; margin-bottom:6px; }
.worksheet__section > p { color:var(--muted); margin-bottom:18px; }
.field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.field-grid .field--wide { grid-column:1 / -1; }
.worksheet label { display:block; font-weight:700; color:var(--navy); margin-bottom:6px; }
.worksheet input,.worksheet select,.worksheet textarea { width:100%; border:1px solid var(--border); border-radius:8px; padding:11px 12px; font:inherit; color:var(--text); background:#fff; }
.worksheet textarea { min-height:92px; resize:vertical; }
.worksheet input:focus,.worksheet select:focus,.worksheet textarea:focus { outline:3px solid rgba(241,91,43,.18); border-color:var(--accent); }
.field-help { display:block; margin-top:5px; color:var(--muted); font-size:.78rem; line-height:1.45; }
.evidence-checklist { display:grid; gap:12px; margin:0; padding:0; list-style:none; }
.evidence-checklist label { display:flex; align-items:flex-start; gap:10px; margin:0; font-weight:600; line-height:1.5; }
.evidence-checklist input[type="checkbox"] { width:auto; flex:0 0 auto; margin-top:.25em; accent-color:var(--accent); }
.result-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.result-grid .card { padding:18px; }
.result-grid .card p { margin-bottom:0; }
.proposal-output { white-space:pre-wrap; min-height:320px; padding:22px; border:1px solid var(--border); border-radius:12px; background:#f8fafc; color:var(--text); font-family:var(--font-body); line-height:1.65; }
.privacy-callout { padding:16px 18px; border-left:4px solid var(--accent); background:#fff7f3; border-radius:8px; }
.action-row { position:sticky; bottom:10px; z-index:5; display:flex; flex-wrap:wrap; gap:10px; padding:14px; border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,.96); box-shadow:0 8px 30px rgba(15,35,61,.12); }
@media (max-width:900px){.result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.field-grid,.result-grid{grid-template-columns:1fr}.field-grid .field--wide{grid-column:auto}.action-row{position:static}}
@media print {
  nav,.breadcrumb,.hero-partner .btn-row,.action-row,.cta-band,.footer,.page-trust,.privacy-callout { display:none !important; }
  .hero-partner { padding:18px 0; background:#fff; color:#111; }
  .hero-partner h1,.hero-partner p { color:#111; max-width:none; }
  .section { padding:14px 0; }
  .worksheet__section { break-inside:avoid; padding:14px; }
  .worksheet input,.worksheet select,.worksheet textarea { border:0; border-bottom:1px solid #999; border-radius:0; padding:4px 0; }
  .proposal-output { border:0; padding:0; }
}
