/* Originally Brand's components.css (design archive: workstreams/01-brand/), now owned here: edit this file.
   The one change from Brand's version, permitted by PRD §0.4: `.hotspot[aria-current="true"]` is added beside
   each of the three `.hotspot[aria-expanded="true"]` selectors (open-chip state), because the open flag is a
   link and axe rejects aria-expanded on links. */
/* Vinal St Labs components: reference implementation of the B5 style guide.
   Requires tokens.css. Class names are suggestions; the build may rename them, the values should not change.
   Mark images (marks/*.svg, fill=currentColor) are used as CSS masks so they take the current text colour. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-paper); color: var(--c-pencil); font: var(--w-body) var(--t-body)/var(--lh-body) var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-spruce); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--c-pencil); }
h1, h2, h3, .display { font-family: var(--f-display); color: var(--c-spruce); margin: 0 0 var(--s-4); }
.display { font-size: var(--t-display); line-height: var(--lh-display); letter-spacing: var(--tr-display); font-weight: var(--w-display); }
h1 { font-size: var(--t-h1); line-height: var(--lh-h1); letter-spacing: var(--tr-h1); font-weight: var(--w-display); }
h2 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); font-weight: var(--w-heading); }
h3 { font-size: var(--t-h3); line-height: var(--lh-h3); font-weight: var(--w-heading); color: var(--c-pencil); }
p { margin: 0 0 var(--s-4); max-width: var(--reading-max); }
.lede { font-size: var(--t-lede); line-height: var(--lh-lede); }
.small, small { font-size: var(--t-small); line-height: var(--lh-small); color: var(--c-pencil-soft); }
.label { font: var(--w-mono) var(--t-label)/var(--lh-label) var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--c-pencil-soft); }
.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* highlighter: survey yellow behind ONE phrase per page (hero) */
.hl { background: linear-gradient(transparent 56%, var(--c-yellow) 56%, var(--c-yellow) 92%, transparent 92%); padding: 0 .08em; color: inherit; }

/* ---------- hand-drawn marks ---------- */
.mark { display: inline-block; background: currentColor; -webkit-mask: var(--src) center/contain no-repeat; mask: var(--src) center/contain no-repeat; vertical-align: middle; }
/* usage: <span class="mark" style="--src:url(marks/check.svg);width:22px;height:20px" aria-hidden="true"></span> */

/* ---------- tape ----------
   The logo is the only tape strip on any page. The hero tape was removed on 2026-10-07: it matched the logo's size and weight and weakened both.
   No text sits on flagging pink; the outlined logo wordmark is the only lettering on it. */

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; padding: 10px 20px; border-radius: var(--r-control);
  font: var(--w-strong) 16px/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: transform var(--m-ui), box-shadow var(--m-ui); }
.btn-primary { background: var(--c-pencil); color: var(--c-white); border: 1.5px solid var(--c-pencil); box-shadow: var(--sh-button); }
.btn-primary:hover { color: var(--c-white); transform: translate(-2px, -2px); box-shadow: var(--sh-button-hover); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--c-pink); }
.btn-secondary { background: var(--c-paper-raised); color: var(--c-pencil); border: var(--rule-pencil); }
.btn-secondary:hover { color: var(--c-pencil); box-shadow: var(--sh-card); transform: translate(-1px, -1px); }
.btn-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: var(--w-strong); color: var(--c-spruce); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--c-paper-raised); color: var(--c-pencil-soft); border: 1.5px dashed var(--c-pencil-soft); box-shadow: none; transform: none; cursor: not-allowed; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky-cta); background: var(--c-paper); border-bottom: var(--rule-pencil); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 72px; }
.site-header .logo img { height: 40px; width: auto; }
.site-header nav { display: flex; gap: var(--s-5); align-items: center; }
.site-header nav a:not(.btn) { color: var(--c-pencil); text-decoration: none; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
.site-header nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
@media (max-width: 699px) {
  .site-header .wrap { min-height: 60px; } .site-header .logo img { height: 30px; }
  .site-header nav a:not(.btn) { display: none; }
  .site-header .btn { padding: 8px 14px; font-size: 15px; }
}

/* ---------- section head (grid band) ---------- */
.section-head { padding: var(--s-6) 0 var(--s-5); margin-bottom: var(--s-6); border-bottom: var(--rule-heavy); }
.section-head .label { display: block; margin-bottom: var(--s-2); color: var(--c-pencil); }
.section-head h2 { margin: 0; }
@media (max-width: 699px) { .section-head { padding-inline: var(--gutter); } } /* phones: line up with the content below instead of the screen edge */

/* ---------- annotation chip (map labels, captions) ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--c-paper-raised); border: var(--rule-pencil); border-radius: var(--r-chip); padding: 3px 8px;
  font: var(--w-mono) 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c-pencil); white-space: nowrap; }
/* number box: typeset station number, read before the name. Hand-drawn digits are retired for v1 (see spike-hand-annotation.md). */
.chip .n { display: inline-block; min-width: calc(2ch + 8px); margin-left: -5px; padding: 1px 4px; border-radius: var(--r-chip); background: var(--c-pencil); color: var(--c-paper-raised);
  font-weight: var(--w-mono-strong); letter-spacing: 0; text-align: center; font-variant-numeric: tabular-nums; }
.chip.num-only { padding: 3px; } .chip.num-only .n { margin-left: 0; }   /* number-only chips below 1200px (UX decision); the name lives on the active flag, cards and legend */
.chip b { font-weight: var(--w-mono-strong); color: var(--c-pink-deep); }

/* ---------- offering tag ---------- */
.tag { display: inline-block; font: var(--w-mono-strong) 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-pink-deep); border: 1.5px solid currentColor; border-radius: var(--r-chip); padding: 5px 7px; }

/* ---------- hero pitch card (sits over the map) ---------- */
.pitch { position: relative; background: var(--c-paper); border: var(--rule-pencil); border-radius: var(--r-panel); box-shadow: var(--sh-panel); padding: var(--s-6); max-width: 560px; z-index: var(--z-pitch-card); }
.pitch .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); }
.pitch .sig { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-4); border-top: var(--rule-dashed); color: var(--c-pencil-soft); font-size: var(--t-small); }
.pitch .sig .photo { width: 44px; height: 44px; border-radius: 50%; flex: none; border: var(--rule-pencil); background: var(--c-grid) center/cover; }
@media (max-width: 699px) { .pitch { box-shadow: none; border: 0; border-radius: 0; padding: var(--s-6) var(--gutter) var(--s-6); max-width: none; } }

/* ---------- map hotspot ---------- */
.hotspot { position: absolute; display: flex; align-items: flex-end; gap: 4px; min-width: 44px; min-height: 44px; transform: translate(-6px, -100%); text-decoration: none; z-index: var(--z-hotspot); }
.hotspot .flag { width: 30px; height: auto; }
.hotspot .chip { margin-bottom: 18px; }
.hotspot.flip { flex-direction: row-reverse; transform: translate(calc(-100% + 24px), -100%); }
.hotspot:hover .chip, .hotspot[aria-expanded="true"] .chip, .hotspot[aria-current="true"] .chip { background: var(--c-pencil); color: var(--c-white); }
.hotspot:hover .chip b, .hotspot[aria-expanded="true"] .chip b, .hotspot[aria-current="true"] .chip b { color: var(--c-white); }
.hotspot:hover .chip .n, .hotspot[aria-expanded="true"] .chip .n, .hotspot[aria-current="true"] .chip .n { background: var(--c-paper-raised); color: var(--c-pencil); }

/* ---------- vignette card ---------- */
.vignette { background: var(--c-paper-raised); border: var(--rule-pencil); border-radius: var(--r-panel); box-shadow: var(--sh-panel); padding: var(--s-5); max-width: 380px; position: relative; z-index: var(--z-vignette); }
.vignette .close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--c-pencil); display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.vignette h3 { margin: var(--s-3) 0 var(--s-2); color: var(--c-spruce); }
.vignette p { font-size: 16.5px; line-height: 1.55; margin-bottom: var(--s-3); }
.vignette .timeback { display: flex; gap: var(--s-3); align-items: flex-start; font-weight: var(--w-strong); color: var(--c-pencil); }
.vignette .timeback .mark { flex: none; width: 26px; height: 20px; margin-top: 2px; color: var(--c-spruce); }
.vignette .actions { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.vignette .foot { margin-top: var(--s-4); padding-top: var(--s-3); border-top: var(--rule-dashed); }

/* ---------- offering card ---------- */
.offering { background: var(--c-paper-raised); border: var(--rule-pencil); border-radius: var(--r-control); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); text-decoration: none; color: inherit; transition: transform var(--m-ui), box-shadow var(--m-ui); }
.offering:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-card); color: inherit; }
.offering .hand { height: 38px; color: var(--c-spruce); }
.offering .hand .mark { height: 100%; }
.offering p { margin: 0; }
.offering .eg { font-size: var(--t-small); color: var(--c-pencil-soft); border-top: var(--rule-dashed); padding-top: var(--s-3); margin-top: auto; }
.offerings { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- principles checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.checklist li { display: grid; grid-template-columns: 30px 1fr; gap: var(--s-3); align-items: start; max-width: var(--reading-max); }
.checklist .mark { width: 28px; height: 26px; color: var(--c-spruce); }

/* ---------- engagement shape (pilot → running → retainer) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); counter-reset: s; }
.steps li { list-style: none; border-top: var(--rule-heavy); padding-top: var(--s-4); }
.steps .label { color: var(--c-pencil); }
@media (max-width: 699px) { .steps { grid-template-columns: 1fr; } }

/* ---------- form ---------- */
.field { display: grid; gap: 6px; margin-bottom: var(--s-5); }
.field label { font: var(--w-mono-strong) 13px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c-pencil); }
.field .hint { font-size: var(--t-small); color: var(--c-pencil-soft); }
.input { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--c-paper-raised); border: var(--rule-pencil); border-radius: var(--r-control); font: var(--w-body) 17px/1.45 var(--f-body); color: var(--c-pencil); }
textarea.input { min-height: 140px; resize: vertical;
  background-image: linear-gradient(transparent calc(1.45em + 11px), var(--c-grid) calc(1.45em + 11px), var(--c-grid) calc(1.45em + 12px), transparent calc(1.45em + 12px)); background-size: 100% calc(1.45em); background-position: 0 -1px; }
.input::placeholder { color: var(--c-pencil-soft); }
.input:focus-visible { outline: 3px solid var(--c-harbor); outline-offset: 2px; }
.field.error .input { border-color: var(--c-pink-deep); border-width: 2px; }
.field .msg { display: flex; gap: 6px; align-items: center; font-size: var(--t-small); font-weight: var(--w-strong); color: var(--c-pencil); }
.field .msg .mark { width: 14px; height: 14px; color: var(--c-pink-deep); }
.booking { border: var(--rule-pencil); border-radius: var(--r-control); background: var(--c-paper-raised); padding: var(--s-5); }

/* ---------- footer ---------- */
.site-footer { border-top: var(--rule-heavy); padding: var(--s-7) 0 var(--s-8); }
.site-footer .wrap { display: grid; gap: var(--s-5); grid-template-columns: 1.2fr 1fr 1fr; }
.site-footer img.logo { height: 34px; width: auto; }
@media (max-width: 699px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- sticky phone CTA (U1) ---------- */
.sticky-cta { display: none; }
@media (max-width: 699px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky-cta); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--c-paper); border-top: var(--rule-pencil); }
  .sticky-cta .btn { flex: 1; }
}
.vignette p.label { font-size: var(--t-label); line-height: var(--lh-label); margin-bottom: 0; }
