/* Prime Pharmacy Group — careers site.
   Direction: Above the Door (approved by Kavita Nadan, 14 Sept 2026).

   Prime is a local, community-strip pharmacy group, not a warehouse chain —
   the one thing a competitor's scale can never feel like. The system borrows
   the shopfront: a bright daytime ground, the brand's three colours as a
   literal awning stripe rather than a dominant wash, confident
   signage-adjacent display type, and thick painted-sign borders instead of
   soft shadows and pills. */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Public+Sans:wght@400;500;600;700&display=swap');

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: light;   /* one theme only */
  --paper: #FFFDF8;
  --paper-strong: #F7F2E7;
  --ink: #241C33;
  --body: #453B57;
  --muted: #655C70;
  --line: #E7DFCB;

  --purple: #4c3484;
  --purple-tint: #EDE6F7;
  --blue: #24abe3;
  --blue-ink: #166A8C;    /* blue darkened for text on blue-tint */
  --blue-tint: #DFF3FB;
  --green: #6FA82E;
  --green-ink: #48701C;   /* green darkened for text on green-tint */
  --green-tint: #EBF5DB;

  --on-purple: #FFFDF8;
  --on-purple-muted: #C9B9E6;

  --bad: #C0392B;

  --display: 'Bricolage Grotesque', 'Public Sans', system-ui, sans-serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1160px;
  --pad: clamp(1.25rem, 5vw, 3.5rem);
  --section-y: clamp(3.25rem, 7vw, 5.5rem);
  --r: 12px;
  --bw: 3px;
}

/* ------------------------------------------------------------------ base */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--body); font-family: var(--sans);
       font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: var(--section-y); }
.cool { background: var(--paper-strong); }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.01em;
             text-wrap: balance; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 5.8vw, 4.1rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); line-height: 1.05; }
h3 { font-size: 1.22rem; line-height: 1.22; font-weight: 700; }
p { margin: 0 0 1.05rem; }
.g { color: var(--purple); }

p a { color: var(--purple); text-decoration: underline; text-decoration-color: var(--green);
      text-underline-offset: 2px; }
p a:hover { text-decoration-color: currentColor; }

/* The awning stripe: the brand's three colours as shopfront canvas. */
.awning { height: 12px;
  background: repeating-linear-gradient(120deg,
    var(--purple) 0 42px, var(--blue) 42px 84px, var(--green) 84px 126px, var(--paper) 126px 148px); }

/* Section label. `.index-tag` is the name in the approved direction;
   `.eyebrow` is the same thing under the older name, still used across the
   interior pages. Both are kept so neither markup set has to churn. */
.index-tag, .eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display);
  font-size: 0.85rem; font-weight: 700; color: var(--purple); margin: 0 0 1.1rem;
  letter-spacing: 0; text-transform: none;
}

/* --------------------------------------------------------------- buttons */

.btn { font-family: var(--display); font-size: 1rem; font-weight: 700; display: inline-flex;
       align-items: center; gap: 0.6rem; padding: 0.78rem 1.5rem; border-radius: 8px;
       text-decoration: none; border: var(--bw) solid var(--ink); cursor: pointer;
       transition: transform .14s ease, background .14s ease, box-shadow .14s ease; }
.btn-primary { background: var(--purple); color: var(--on-purple); border-color: var(--purple); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }

/* Inverted button for dark bands. `.btn-white` is the older name. */
.btn-invert, .btn-white { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-invert:hover, .btn-white:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--on-purple-muted); }

/* Text link with a painted underline. `.btn-ghost` is the older name. */
.btn-text, .btn-ghost {
  font-family: var(--display); font-size: 0.98rem; font-weight: 700; color: var(--purple);
  text-decoration: none; border: none; border-bottom: 2.5px solid var(--green); border-radius: 0;
  background: none; padding: 0 0 1px; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-text:hover, .btn-ghost:hover { color: var(--ink); }

.arrow { transition: transform .14s ease; }
.btn:hover .arrow, .btn-text:hover .arrow, .btn-ghost:hover .arrow, .go:hover .arrow,
.door:hover .go .arrow { transform: translateX(3px); }

/* On the purple and ink bands, text links flip to paper. */
.manifesto .btn-text, .manifesto .btn-ghost,
.final:not(.stage) .btn-text, .final:not(.stage) .btn-ghost,
.doc-band .btn-text, .doc-band .btn-ghost { color: var(--on-purple); border-color: var(--on-purple-muted); }
.manifesto .index-tag, .manifesto .eyebrow,
.final:not(.stage) .index-tag, .final:not(.stage) .eyebrow,
.doc-band .index-tag, .doc-band .eyebrow { color: var(--on-purple-muted); }

/* ------------------------------------------------------------------- nav */

nav { position: sticky; top: 0; z-index: 20; background: var(--paper); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-logo { height: 34px; width: auto; display: block; }
.footer-logo { height: 27px; }

/* The site is light only, so the colour logo always shows. The reversed asset
   stays in the markup for anything that later needs it on a dark band. */
.logo-dark { display: none; }
/* Dark theme. Opt-in only — applied when the visitor presses the toggle, never
   from the system setting, so everyone lands on the light design first. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #211B2E; --paper-strong: #292236; --ink: #F5F1FA; --body: #D3C9E3; --muted: #9A8FB0;
  --line: #3C3450;
  --purple: #A78BFA; --purple-tint: #2E2646;
  --blue: #5BC0EB; --blue-ink: #8AD3F2; --blue-tint: #1B2E3A;
  --green: #9BC15C; --green-ink: #B4D182; --green-tint: #24301C;
  --on-purple: #211B2E; --on-purple-muted: #2E2545;
  --bad: #FF8A7A;
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
:root[data-theme="dark"] .final:not(.stage) p { color: #4C3E6B; }

/* Theme toggle */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
                flex: none; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
                color: var(--muted); cursor: pointer; padding: 0;
                transition: color .16s ease, border-color .16s ease, background .16s ease; }
.theme-toggle:hover { color: var(--purple); border-color: var(--purple); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.nav-links { display: flex; align-items: center; gap: 1.7rem; font-family: var(--display);
             font-size: 0.95rem; font-weight: 700; }
.nav-links a:not(.btn) { color: var(--body); text-decoration: none; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--purple); }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }
.nav-actions .btn { padding: 0.55rem 1.1rem; font-size: 0.86rem; }
.nav-toggle { display: none; }
.nav-links-cta { display: none; }

@media (max-width: 900px) {
  nav .wrap { position: relative; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px;
                width: 38px; height: 38px; border: none; background: none; cursor: pointer; padding: 0; flex: none; }
  .nav-toggle-bar { display: block; width: 20px; height: 2px; background: var(--ink);
                    margin-inline: auto; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column;
               align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
               padding: 0.5rem var(--pad) 1rem; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav-links-cta { display: inline-flex; margin-top: 0.9rem; align-self: flex-start; }
}

/* ------------------------------------------------------------------ hero */

.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
              align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero .lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--body); margin-top: 1.3rem; max-width: 40ch; }
.hero-cta { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; margin-top: 2rem; }
@media (max-width: 840px) { .hero .wrap { grid-template-columns: 1fr; } }

.shot { position: relative; border-radius: 14px; overflow: hidden; border: var(--bw) solid var(--ink); }
.shot img { width: 100%; aspect-ratio: 5 / 5.2; object-fit: cover; object-position: 62% 30%; display: block; }
.shot .cap { position: absolute; left: 14px; bottom: 14px; z-index: 2; background: var(--paper);
             border: 2.5px solid var(--ink); border-radius: 8px; padding: 0.5rem 0.9rem;
             font-family: var(--display); font-size: 0.85rem; font-weight: 700; color: var(--ink);
             display: inline-flex; align-items: center; gap: 0.5rem; }
.shot .cap b { color: var(--purple); }
.shot .cap i { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); flex: none; }

/* Interior page hero */
.page-hero .wrap { padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { font-size: clamp(1.05rem, 1.9vw, 1.28rem); color: var(--body); margin-top: 1.3rem; max-width: 54ch; }
.page-hero.compact .wrap { padding-block: clamp(2rem, 4vw, 3rem); }
.page-hero.compact h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); max-width: 22ch; }
.page-hero.compact .lead { font-size: clamp(1rem, 1.6vw, 1.15rem); margin-top: 1rem; }

/* ---------------------------------------------------------------- strips */

.strip { background: var(--ink); color: var(--paper); }
.strip .wrap { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3rem);
               padding-block: 0.9rem; flex-wrap: wrap; text-align: center; font-family: var(--display); }
.strip b { font-size: 1rem; font-weight: 700; }
.strip .sep { opacity: 0.4; }

/* ------------------------------------------------- text layout + columns */

.split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.narrow-media .wrap { grid-template-columns: 1.15fr 0.85fr; }
.split.rev .media { order: -1; }
.split .body p:last-child { margin-bottom: 0; }
.split .body strong { color: var(--purple); }
@media (max-width: 840px) {
  .split .wrap, .split.narrow-media .wrap { grid-template-columns: 1fr; }
  .split.rev .media { order: 0; }
}
.media { position: relative; }

.why .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.why .lede { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--ink);
             font-weight: 700; line-height: 1.2; }
.why .body p:last-child { margin-bottom: 0; }
.why .body strong { color: var(--purple); }
@media (max-width: 840px) { .why .wrap { grid-template-columns: 1fr; } }

.prose { max-width: 62ch; }
.prose p { color: var(--body); }
.prose h2 { margin: 2.25rem 0 0.9rem; }
.prose h2:first-child { margin-top: 0; }
.lede-lg { font-family: var(--display); font-size: clamp(1.25rem, 2.3vw, 1.6rem); line-height: 1.22;
           color: var(--ink); font-weight: 700; max-width: 36ch; }

/* ---------------------------------------------------------------- cards  */

/* Feature cards: benefits, values, programs. */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
            gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); }
.features.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .features.two { grid-template-columns: 1fr; } }

.feature { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r);
           padding: 1.8rem 1.6rem; }
.cool .feature { background: var(--paper-strong); }
.feature .ficon { width: 46px; height: 46px; border-radius: 10px; background: var(--purple-tint);
                  color: var(--purple); display: grid; place-items: center; margin-bottom: 1.15rem;
                  font-family: var(--display); font-weight: 800; font-size: 0.95rem; }
.feature .ficon svg { width: 22px; height: 22px; }
/* Rotate the brand's three colours across each row of cards. */
.feature:nth-child(3n+2) .ficon { background: var(--blue-tint); color: var(--blue-ink); }
.feature:nth-child(3n+3) .ficon { background: var(--green-tint); color: var(--green-ink); }
.feature h3 { color: var(--ink); margin-bottom: 0.5rem; }
.feature h3 a { color: inherit; text-decoration: none; }
.feature h3 a:hover { color: var(--purple); }
.feature p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* Persona doors */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
         gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); }
.door { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r);
        padding: 2rem 1.75rem; text-decoration: none; color: var(--body); display: flex;
        flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.cool .door { background: var(--paper-strong); }
.door:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--purple); }
.tag { display: inline-flex; align-self: flex-start; font-family: var(--display); font-size: 0.76rem;
       font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--purple);
       background: var(--purple-tint); border: none; padding: 0.3rem 0.7rem; border-radius: 999px;
       margin-bottom: 1.1rem; }
.door:nth-child(3n+2) .tag { color: var(--blue-ink); background: var(--blue-tint); }
.door:nth-child(3n+3) .tag { color: var(--green-ink); background: var(--green-tint); }
.door h3 { margin-bottom: 0.6rem; color: var(--ink); }
.door p { font-size: 0.96rem; color: var(--muted); margin: 0 0 1.5rem; }
.go { font-family: var(--display); font-size: 0.9rem; font-weight: 700; color: var(--purple);
      margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; }

/* --------------------------------------------------------------- pathway */

.pathway-head { max-width: 46ch; margin: 0 0 clamp(2.25rem, 5vw, 3.25rem); }
.pathway { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stage { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 10px; padding: 1.5rem 1.3rem; }
.cool .stage { background: var(--paper-strong); }
.stage .node { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
               border-radius: 50%; background: var(--purple-tint); color: var(--purple);
               font-family: var(--display); font-weight: 800; font-size: 0.95rem; margin-bottom: 1rem; }
.stage:nth-child(3n+2) .node { background: var(--blue-tint); color: var(--blue-ink); }
.stage:nth-child(3n+3) .node { background: var(--green-tint); color: var(--green-ink); }
.stage.final { background: var(--purple); border-color: var(--purple); }
.stage.final .node { background: var(--paper); color: var(--purple); }
.stage.final h3, .stage.final p { color: var(--on-purple); }
.stage h3 { margin-bottom: 0.35rem; font-size: 1.08rem; }
.stage p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.pathway-proof { margin-top: clamp(2rem, 4vw, 2.75rem); font-family: var(--display); font-size: 1.08rem;
                 color: var(--ink); font-weight: 700; }
.pathway-proof .g { color: var(--purple); }

/* Six-stage variant: the retail pathway. */
.pathway.six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .pathway.six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .pathway, .pathway.six { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- people, credits */

.credit-group { margin-top: clamp(2.25rem, 4vw, 3rem); }
.credit-group h3 { font-family: var(--display); color: var(--purple); font-size: 0.85rem; font-weight: 700;
                   letter-spacing: 0; text-transform: none; margin-bottom: 1.1rem; }
.credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.credit-card { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 10px;
               padding: 1.3rem; display: flex; align-items: flex-start; gap: 0.9rem; }
.cool .credit-card { background: var(--paper-strong); }
.credit-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--purple-tint);
                       color: var(--purple); display: grid; place-items: center; font-family: var(--display);
                       font-weight: 800; font-size: 0.82rem; flex: none; }
.credit-card:nth-child(3n+2) .avatar { background: var(--blue-tint); color: var(--blue-ink); }
.credit-card:nth-child(3n+3) .avatar { background: var(--green-tint); color: var(--green-ink); }
.who { min-width: 0; }
.credit-card .name { font-family: var(--display); font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.credit-card .role { font-size: 0.84rem; color: var(--muted); margin: 0.15rem 0 0; }
.credit-card .story { font-size: 0.8rem; color: var(--muted); font-style: italic; margin: 0.45rem 0 0; }

/* ----------------------------------------------------------------- bands */

.manifesto { background: var(--purple); color: var(--on-purple); text-align: center; }
.manifesto h2 { color: var(--on-purple); max-width: 18ch; margin-inline: auto; }
.manifesto p { color: var(--on-purple-muted); max-width: 54ch; margin: 0 auto 1rem; font-size: 1.08rem; }
.manifesto .close { color: var(--paper); font-family: var(--display); font-size: 1.2rem; font-weight: 700; margin-top: 1.4rem; }

.group .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 840px) { .group .wrap { grid-template-columns: 1fr; } }
.group-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.group-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.9rem; color: var(--body); }
.group-list li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 10px; height: 10px;
                         border-radius: 50%; background: var(--green); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 10px; padding: 1.5rem 1.4rem; }
.cool .stat { background: var(--paper-strong); }
.stat .n { font-family: var(--display); font-size: clamp(2.1rem, 4.3vw, 2.75rem); font-weight: 800;
           color: var(--purple); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 0.86rem; color: var(--muted); margin-top: 0.55rem; line-height: 1.4; }

.final:not(.stage) { background: var(--ink); color: var(--paper); text-align: center; }
.final:not(.stage) .index-tag, .final:not(.stage) .eyebrow { justify-content: center; }
.final:not(.stage) h2 { color: var(--paper); max-width: 22ch; margin-inline: auto; }
.final:not(.stage) p { color: #C9BEDB; max-width: 48ch; margin: 0 auto 2rem; }
.final:not(.stage) .hero-cta { justify-content: center; margin-top: 0; }
.final:not(.stage) .btn-invert, .final:not(.stage) .btn-white { border-color: var(--paper); }

footer { background: var(--paper-strong); color: var(--muted); border-top: var(--bw) solid var(--ink); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
               gap: 1.25rem; padding-block: 1.8rem; }
.foot-note { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.02em;
             text-transform: uppercase; opacity: 0.75; }

/* ------------------------------------------------------ talent pool form */

.form-layout .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .form-layout .wrap { grid-template-columns: 1fr; } }

.form-card { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r);
             padding: clamp(1.5rem, 3vw, 2.4rem); }
.cool .form-card, .cool .aside-card { background: var(--paper-strong); }
.form-note { background: var(--purple-tint); border: 2px solid var(--purple); border-radius: 10px;
             padding: 0.9rem 1.15rem; font-size: 0.94rem; color: var(--ink); margin-bottom: 1.6rem; }

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: var(--display); font-size: 0.88rem; font-weight: 700;
               color: var(--ink); margin-bottom: 0.4rem; }
.field .opt { font-family: var(--sans); font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 8px; padding: 0.75rem 0.9rem;
  transition: border-color .14s ease, box-shadow .14s ease; }
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--purple) 50%),
                    linear-gradient(135deg, var(--purple) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border: 2px solid var(--purple); box-shadow: 3px 3px 0 var(--purple); }
.field.bad input, .field.bad select, .field.bad textarea { border: 2px solid var(--bad); }
.field .err { display: none; font-size: 0.84rem; font-weight: 700; color: var(--bad); margin-top: 0.35rem; }
.field.bad .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 1.6rem; }
.form-actions .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.consent { font-size: 0.85rem; color: var(--muted); margin: 1rem 0 0; max-width: 46ch; }
.form-fail { display: none; margin-top: 1.1rem; font-size: 0.92rem; font-weight: 700; color: var(--bad); }
.form-fail.show { display: block; }
.form-live.hide { display: none; }

.aside-card { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 1.8rem 1.7rem; }
.aside-card h3 { margin-bottom: 1rem; }
.aside-card .group-list { margin-top: 0; }
.aside-card .group-list li { font-size: 0.95rem; color: var(--muted); }

.success { display: none; }
.success.show { display: block; }
.success .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--purple);
                 color: var(--on-purple); display: grid; place-items: center; margin-bottom: 1.3rem; }
.success .tick svg { width: 26px; height: 26px; }
.success h2 { margin-bottom: 0.9rem; }

/* ---------------------------------------------------- gated document page */

.doc-band { background: var(--purple); color: var(--on-purple); }
.doc-band .wrap { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.doc-band h1 { color: var(--on-purple); max-width: 22ch; }
.doc-band p { color: var(--on-purple-muted); max-width: 56ch; margin-top: 1.2rem; }

.phase { border: var(--bw) solid var(--ink); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.2rem);
         margin-bottom: 1.25rem; background: var(--paper); }
.phase-head { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.phase-head .n { font-family: var(--display); font-size: 0.76rem; font-weight: 800; letter-spacing: 0;
                 text-transform: none; color: var(--purple); background: var(--purple-tint);
                 border-radius: 999px; padding: 0.3rem 0.75rem; }
.phase .quote { font-size: 1.05rem; font-weight: 600; color: var(--ink); font-style: italic; margin: 0.9rem 0 1.4rem; }
.phase h4 { font-family: var(--display); font-size: 0.82rem; font-weight: 800; letter-spacing: 0;
            text-transform: none; color: var(--purple); margin: 1.4rem 0 0.6rem; }
.phase ul { margin: 0; padding-left: 1.15rem; }
.phase li { margin-bottom: 0.4rem; }
.gate { margin-top: 1.5rem; background: var(--green-tint); border: 2px solid var(--green); border-radius: 10px;
        padding: 0.85rem 1.1rem; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 0.96rem; }
.scorecard { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.scorecard .sc { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 10px; padding: 1.4rem 1.5rem; }
.scorecard .sc h4 { font-size: 0.98rem; color: var(--ink); font-weight: 700; margin: 0 0 0.6rem; }
.scorecard .sc ul { margin: 0; padding-left: 1.1rem; font-size: 0.93rem; color: var(--muted); }
.doc-print { margin-top: 2.5rem; }

@media print {
  nav, footer, .doc-print, .nav-toggle, .awning { display: none !important; }
  .phase, .scorecard .sc { break-inside: avoid; }
}

/* --------------------------------------------------------------- a11y    */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .door, .arrow, .nav-links a, .feature, .field input, .field select, .field textarea { transition: none; }
  .btn-primary:hover, .btn-invert:hover, .btn-white:hover, .door:hover { transform: none; }
}
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
