/* Direction: Above the Door.
   Prime is a local, community-strip pharmacy group, not a warehouse chain —
   this is the one thing Chemist Warehouse's scale can never feel like. The
   system borrows the shopfront: a bright daytime ground (not the near-black
   rut), the brand's three colours as a literal awning stripe rather than a
   dominant background wash, and confident hand-signage-adjacent display type.
   Bricolage Grotesque for display (real character, not the training-data
   default), Public Sans for body. Buttons carry a thick painted-sign border
   instead of a flat fill or a rounded pill. */

@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');

:root {
  --paper: #FFFDF8;
  --paper-strong: #F7F2E7;
  --ink: #241C33;
  --body: #453B57;
  --muted: #7A7089;
  --line: #E7DFCB;

  --purple: #4c3484;
  --purple-tint: #EDE6F7;
  --blue: #24abe3;
  --blue-tint: #DFF3FB;
  --green: #6FA82E;
  --green-tint: #EBF5DB;

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

  --display: 'Bricolage Grotesque', sans-serif;
  --sans: 'Public Sans', sans-serif;

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

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #211B2E; --paper-strong: #292236; --ink: #F5F1FA; --body: #D3C9E3; --muted: #9A8FB0;
    --line: #3C3450;
    --purple: #A78BFA; --purple-tint: #2E2646;
    --blue: #5BC0EB; --blue-tint: #1B2E3A;
    --green: #9BC15C; --green-tint: #24301C;
    --on-purple: #211B2E; --on-purple-muted: #4C3E6B;
  }
}

* { 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); }

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; }

.awning { height: 12px; background: repeating-linear-gradient(120deg, var(--purple) 0 42px, var(--blue) 42px 84px, var(--green) 84px 126px, var(--paper) 126px 148px); }

.index-tag { 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; }
.manifesto .index-tag { color: var(--on-purple-muted); }
.manifesto .btn-text, .final .btn-text { color: var(--on-purple); border-color: var(--on-purple-muted); }

.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: 3px solid var(--ink); cursor: pointer;
       transition: transform .14s ease, background .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); }
.btn-invert { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-invert:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--on-purple-muted); }
.btn-text { font-family: var(--display); font-size: 0.98rem; font-weight: 700; color: var(--purple); text-decoration: none;
            border-bottom: 2.5px solid var(--green); padding-bottom: 1px; display: inline-flex; align-items: center; gap: 0.5rem; }
.on-purple .btn-text { color: var(--on-purple); border-color: var(--on-purple-muted); }
.arrow { transition: transform .14s ease; }
.btn:hover .arrow, .btn-text:hover .arrow { transform: translateX(3px); }

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; }
.brand-logo { height: 34px; width: auto; display: block; }
.footer-logo { height: 27px; }
nav .logo-dark { display: none; }
footer .logo-light { display: none; }
@media (prefers-color-scheme: dark) {
  nav .logo-light { display: none; } nav .logo-dark { display: block; }
  footer .logo-dark { display: none; } footer .logo-light { 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 .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 .g { color: var(--purple); }
.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: 3px 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); }

.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; }

section { padding-block: var(--section-y); }
.cool { background: var(--paper-strong); }

.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 strong { color: var(--purple); }
@media (max-width: 840px) { .why .wrap { grid-template-columns: 1fr; } }

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

/* Pathway: four shopfronts in a row, each stage "opens for business" */
.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: 3px 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(2) .node { background: var(--blue-tint); color: var(--blue); }
.stage:nth-child(3) .node { background: var(--green-tint); color: var(--green); }
.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); }
@media (max-width: 720px) { .pathway { grid-template-columns: 1fr; } }

.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: 3px solid var(--ink); border-radius: 12px; padding: 2rem 1.75rem; text-decoration: none; color: var(--body);
        display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.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;
       color: var(--purple); background: var(--purple-tint); padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 1.1rem; }
.door:nth-child(2) .tag { color: var(--blue); background: var(--blue-tint); }
.door:nth-child(3) .tag { color: var(--green); 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; }

.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: 3px 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; }
.stat .l { font-size: 0.86rem; color: var(--muted); margin-top: 0.55rem; line-height: 1.4; }

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

footer { background: var(--paper-strong); color: var(--muted); border-top: 3px 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; }

.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; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .door, .arrow { transition: none; }
}
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
