/* Inner pages: maps the older component styles (styles.css, home.css) onto DESIGN.md.
   Loaded last. Header, footer and the "what makes us different" section come from nv-base.css. */
:root {
  --white: #ffffff; --paper: #F3F5F2; --paper-deep: #E8EDEA;
  --ink: #252B29; --ink-body: #3E4744; --ink-soft: #4A5451; --line: #E4E8E6;
  --sage: #526B66; --sage-deep: #2F4541; --sage-soft: #DCE6E1; --sage-mid: #B9C8C3;
  --gold: #DCE6E1; --gold-deep: #2F4541; --accent-band: #2F4541;
  --night: #2F4541; --night-2: #3A524D; --night-line: #4A625D; --night-text: #ffffff; --night-soft: #DCE6E1;
  --serif: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--sans);
}
body { background: var(--bg); font-family: var(--body); font-size: 18px; color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; font-variation-settings: normal; letter-spacing: -0.025em; }
h3 { letter-spacing: -0.01em; }
a:hover { color: var(--sage); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

/* header and footer: undo the older rules so nv-base.css applies cleanly */
.site-header { position: static; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
.site-header .wrap { max-width: 1240px; min-height: 0; }
.site-header .logo img { filter: none; width: auto; }
.nav a { border: 0; font-weight: 400; }
.nav a[aria-current="page"] { border: 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .btn { font-weight: 700; border: 0; }
.site-footer { color: var(--ink); }
.site-footer .wrap { max-width: 1240px; }
.site-footer img { filter: none; }

/* no template labels: sentence case, no tracking, no arrows, no numbering */
.kicker, .tag, .badge, .meta, .area-tag, .area-flag, .j-n, .doc-role dt, .journey-grid h4,
.price-card .tag, .case .badge.illus, .guide-card .meta, .next-step .area-flag, table.tasks thead th, .journey-tab .j-n, .q .area-tag {
  text-transform: none !important; letter-spacing: 0 !important; font-family: var(--body); font-weight: 700; font-size: 15px; color: var(--sage);
}
.go::after { content: none !important; }

/* page openings: light, not dark bands */
.page-hero { background: var(--bg); color: var(--ink); }
.page-hero .wrap { padding-block: 56px 32px; }
.page-hero h1 { color: var(--ink); font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.035em; max-width: 18ch; margin: 0 0 20px; }
.page-hero .lede { color: var(--ink-soft); font-size: 20px; }
.page-hero .kicker { color: var(--sage); }

/* buttons */
.btn { font-family: var(--body); font-weight: 700; border-radius: var(--r-btn); padding: 14px 22px; }
.btn-primary, .btn-ink, .btn-gold { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover, .btn-ink:hover, .btn-gold:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.btn-ghost, .btn-line { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover, .btn-line:hover { background: var(--bg-soft); border-color: var(--sage); color: var(--ink); }

/* closing call to action band */
.h-cta { background: var(--sage-deep); color: #fff; }
.h-cta h2 { color: #fff; }
.h-cta p { color: var(--sage-pale); }
.h-cta .btn-ink { background: #fff; border-color: #fff; color: var(--ink); }
.h-cta .btn-ink:hover { background: var(--sage-pale); border-color: var(--sage-pale); color: var(--ink); }

/* form fields: a clearly visible focus ring */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-color: var(--sage); box-shadow: none; }
.field input, .field select, .field textarea { border-radius: var(--r-btn); }

/* ===== Mix 1 component map (audit 30 Oct 2026) ===== */
/* section rhythm: pale page, white bands, 96px */
.section { padding-block: 96px; }
.section + .section { border-top: 0; }
.section.tint, .section.sage { background: var(--surface); }
.section.tight-top { padding-top: 16px; }
@media (max-width: 700px) { .section { padding-block: 64px; } }

/* type scale */
main h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.025em; }
main h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.page-hero h1, .article h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.035em; }
.article h2, .case-head h2, .feature-card h2, .draft h2, .placeholder-card h2, .results-card h2, .guide-help h2, .contact-card h2, .doc h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.journey-panel h3 { font-size: 32px; }
.price, .case-figure .n { font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; }

/* Atkinson ships 400 and 700 only */
.framed, .est-big small, .h-cta p { font-weight: 400; }
summary, .chip, .field label, .price-foot, .sector, .more, .j-price, .meta, .meta a, .h-alt a, .price-foot a,
.journey-foot, .filters .label, .from, .sum span, .case-meta .sector, .guide-card .more, .draft dd, .badge, .faq summary, .case summary { font-weight: 700; }

/* cards: white on the pale page, pale on white bands, 22px, no borders */
.price-card, .case, .guide-card, .case-teaser, .contact-card, .placeholder-card, .journey-panel, .doc, .quiz, .results-card, .guide-help, .draft {
  background: var(--surface); border: 0; border-radius: var(--r-card);
}
:is(.tint, .sage, .difference) :is(.price-card, .case, .guide-card, .case-teaser, .contact-card, .placeholder-card, .journey-panel, .doc, .quiz, .results-card, .guide-help) { background: var(--bg); }
.guide-card.soon-card, .soon { background: var(--bg-soft); border: 0; border-radius: var(--r-card); }
.callout { background: var(--sage-pale); border-radius: var(--r-card); }
.feature-card { background: var(--sand); color: var(--ink); border-radius: var(--r-card); }
.feature-card p { color: var(--ink-soft); }
.price-card.featured { background: var(--sage-pale); border: 0; }
.case.real { border: 0; }
.case details, .case-table { border-color: var(--line); }
.case-table, .doc-role { border-radius: var(--r-btn); }
a.guide-card:hover, a.case-teaser:hover { background: var(--sage-pale); transform: none; }

/* principles lists (points, safeguards): same treatment as "What makes Nortevant different" */
.point, .safeguards .sg { padding-top: 20px; border-top: 2px solid var(--sage-pale); }
.point p, .sg p { color: var(--ink-soft); }

/* labels: plain sage text, never pills */
.badge, .badge.real, .badge.illus { background: none; border: 0; padding: 0; border-radius: 0; color: var(--sage); font-size: 15px; letter-spacing: 0; }
.tag { color: var(--sage); }

/* filters and options */
.chip { border-radius: var(--r-btn); border: 2px solid var(--line-strong); padding: 10px 16px; font-size: 16px; min-height: 44px; }
.chip[aria-pressed="true"] { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.option { border-radius: var(--r-btn); border: 2px solid var(--line); }

/* journey tabs */
.journey-tabs { gap: 12px; border: 0; }
.journey-tab { background: var(--surface); border: 2px solid transparent; border-radius: var(--r-card); box-shadow: none; padding: 16px 18px; }
.journey-tab[aria-selected="true"] { border-color: var(--sage); background: var(--surface); box-shadow: none; }
.journey-tab .j-name { font-family: var(--display); font-weight: 700; font-size: 20px; }

/* contact email draft: the floating card, like the home tool */
.draft { box-shadow: var(--shadow); color: var(--ink); }
.draft h2, .draft dd { color: var(--ink); }
.draft dt, .draft .muted { color: var(--ink-soft); }
.draft-body { background: var(--bg); color: var(--ink-body); border-radius: var(--r-btn); }
.draft .copy-status { color: var(--sage-deep); }

/* closing band: dark sage, same rhythm as the home founder band */
.h-cta { background: var(--sage-deep); color: #fff; padding-block: 80px; }
.h-cta .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 56px; }
.h-cta h2 { color: #fff; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; max-width: 22ch; margin: 0; }
.h-cta .wrap > div { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.h-cta p { color: var(--sage-pale); margin: 0; }
.h-alt { margin: 24px 0 0; font-size: 16px; }
.h-alt a { color: var(--sage-deep); }

/* footer rule */
.site-footer .legal { border-top: 1px solid var(--line); color: var(--ink-soft); }
p.meta, p.price-foot, .price .from, .journey-tab .j-price, p.journey-foot { font-weight: 700; }
.price-card .sum span { border-radius: var(--r-btn); }
.price-card .tag, .price-card.featured .tag { background: none; padding: 0; border-radius: 0; }
p.meta, p.price-foot, p.journey-foot { font-weight: 700 !important; }
main .case-body h3, main .case-cols h3, main .contact-card h3, main .partner h3 { font-size: 22px; }
main .path h3, main .sg h3 { font-size: 22px; }

/* About: photo beside the intro */
.page-hero .hero-split { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; }
.hero-split-text { flex: 999 1 520px; min-width: 0; }
.hero-photo { flex: 0 1 260px; width: 260px; height: auto; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); }
@media (max-width: 700px) { .hero-photo { width: 180px; flex-basis: 180px; } }

/* spacing: same-colour sections never stack two paddings; bands always alternate */
.section:not(.tint):not(.sage) + .section:not(.tint):not(.sage) { padding-top: 0; }
:is(.section.tint, .section.sage) + .difference { background: var(--bg); }

:is(.section.tint, .section.sage) + .difference .diff-foot { background: var(--surface); }

/* inner pages keep paragraph spacing; shared components stay tight */
p { margin: 0 0 1rem; }
.diff-list p, .founder p, .site-footer p:not(.foot-pledge), .diff-foot span, .page-hero .lede, .h-cta p { margin-bottom: 0; }
.section h2, .article h2 { margin-bottom: 16px; }
.section h2:not(:first-child), .article h2:not(:first-child) { margin-top: 40px; }
.section h3, .article h3 { margin-bottom: 8px; }

/* ===== Long-read pages: content column + sticky sidebar (uses the empty right-hand space) ===== */
.wrap.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px 72px; align-items: start; }
.with-aside .main-col { min-width: 0; max-width: 46rem; }
.side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--surface); border-radius: var(--r-card); padding: 24px; font-size: 16px; }
.tint .side-card, .section.tint .side-card { background: var(--bg); }
.side-card p { margin: 0 0 12px; color: var(--ink-soft); }
.side-card .side-h { font: 700 18px/1.2 var(--display); color: var(--ink); margin-bottom: 12px; }
.side-card .btn { width: 100%; }
.side-link { display: block; margin-top: 14px; font-weight: 700; font-size: 15px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li + li { margin-top: 2px; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--sage); }
.toc a[aria-current="true"] { color: var(--ink); font-weight: 700; border-left-color: var(--sage-deep); }
.glance { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.glance dt { font-weight: 700; color: var(--ink); }
.glance dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 960px) {
  .wrap.with-aside { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .side .toc { display: none; }
}

/* Approach: heading left, questions right */
.wrap.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 72px; align-items: start; }
.split-head > h2 { position: sticky; top: 24px; margin: 0; }
@media (max-width: 860px) { .wrap.split-head { grid-template-columns: minmax(0, 1fr); } .split-head > h2 { position: static; } }

/* tighter vertical rhythm: dense within, calmer between */
.section { padding-block: 80px; }
.page-hero .wrap { padding-block: 48px 24px; }
.difference .wrap { padding-block: 72px; }
.founder .wrap { padding-block: 64px; }
@media (max-width: 700px) { .section { padding-block: 56px; } .difference .wrap { padding-block: 56px; } }
.with-aside .main-col h2 { font-size: clamp(26px, 2.6vw, 32px); }
.article h1 { margin: 12px 0 20px; }
.with-aside .main-col > h2:first-child { margin-top: 0; }

/* My story: sideways timeline. Base = a native sideways scroller (touch, trackpad, no JS, reduced motion).
   story.js adds html.story-pin on larger screens, so scrolling down moves the story sideways. */
.story-h { --edge: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); }
.story-stage { padding-block: 8px 48px; }
.story-top { width: 100%; }
.story-hint { font-size: 16px; color: var(--ink-soft); margin: 0 0 12px; }
.hint-scroll { display: none; }
.story-rail { position: relative; height: 3px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.rail-fill { display: block; height: 100%; background: var(--sage); transform-origin: left; transform: scaleX(var(--p, 0)); }
.story-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.story-nav button { font: 400 15px/1.2 var(--body); color: var(--ink-soft); background: none; border: 0; padding: 8px 2px; min-height: 36px; cursor: pointer; white-space: nowrap; }
.story-nav button:hover { color: var(--sage-deep); }
.story-nav button[aria-current="true"] { color: var(--ink); font-weight: 700; }
.story { list-style: none; margin: 0; display: flex; gap: 72px; padding: 32px var(--edge) 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.stop { flex: 0 0 min(860px, 78vw); scroll-snap-align: start; min-width: 0; transition: opacity .5s ease; }
.stop .when { font: 700 clamp(20px, 2vw, 24px)/1.2 var(--display); letter-spacing: -.015em; color: var(--sage); margin: 0 0 8px; }
.stop-body { display: flex; gap: 28px 48px; align-items: flex-start; min-width: 0; }
.stop-body > div:first-child { flex: 1 1 0; min-width: 0; }
.stop h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; margin: 0 0 14px; }
.stop p { color: var(--ink-body); margin: 0; }
.print { flex: 0 0 auto; width: min(240px, 38vh); max-width: 100%; margin: 0; padding: 10px 10px 12px; background: #fff; border-radius: 6px; box-shadow: var(--shadow); transform: rotate(var(--tilt, -1.6deg)); transition: transform .35s ease; }
.stop:nth-child(even) .print { --tilt: 1.6deg; }
.print:hover { transform: rotate(0) scale(1.03); }
.print img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.print svg { display: block; width: 100%; height: auto; border-radius: 3px; }
.print figcaption { margin-top: 8px; text-align: center; font-size: 15px; color: var(--ink-soft); }
.stop-photos { display: flex; flex: 0 0 auto; gap: 14px; }
.stop-photos .print { width: min(190px, 32vh); }
.stop-photos .print + .print { --tilt: 2deg; margin-top: 18px; }
.stop.turn .stop-body > div:first-child { padding: 40px; background: var(--sage-deep); border-radius: var(--r-card); }
.stop.turn h2 { color: #fff; }
.stop.turn .stop-body p { color: var(--sage-pale); font-size: 20px; }
html.story-pin .story-h { position: relative; overscroll-behavior-x: none; }
html.story-pin .story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding-block: 24px; }
html.story-pin .hint-swipe { display: none; }
html.story-pin .hint-scroll { display: inline; }
html.story-pin .story { flex: 1 1 auto; align-items: flex-start; padding-top: 32px; overflow: visible; width: max-content; padding-bottom: 0; scroll-snap-type: none; will-change: transform; }
html.story-pin .stop:not(.seen) { opacity: .3; }

.sheet-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr; aspect-ratio: 4 / 5; gap: 1px; padding: 1px; background: var(--line-strong); border-radius: 3px; }
.sheet-grid span { background: #fff; position: relative; }
.sheet-grid span:nth-child(-n+5) { background: var(--sage-pale); }
.sheet-grid span::after { content: ""; position: absolute; left: 18%; right: 22%; top: 45%; height: 3px; border-radius: 2px; background: var(--line-strong); }
.sheet-grid span:nth-child(3n)::after { right: 42%; }
.sheet-grid span:nth-child(4n)::after { right: 32%; }
@media (max-width: 760px) {
  .story { gap: 20px; padding-top: 20px; }
  .stop { flex-basis: 84vw; }
  .stop-body { flex-direction: column; align-items: flex-start; }
  .stop-body > div:first-child { flex: none; width: 100%; }
  .stop h2 { font-size: 30px; }
  .print { width: min(200px, 60vw); }
  .stop-photos .print { width: min(150px, 38vw); }
  .stop.turn .stop-body > div:first-child { padding: 28px 22px; }
  .story-nav { display: none; }
}

/* guide labels: readable size, comfortable tap target */
.article .meta, .article .kicker, .guide-help .kicker { font-size: .95rem; }
.article .meta a { display: inline-block; padding: 4px 0; }

/* About: company details strip */
.about-facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; margin: 0; padding: 20px 24px; background: var(--surface); border-radius: var(--r-card); font-size: 16px; }
.about-facts dt { font-weight: 700; color: var(--ink); }
.about-facts dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 700px) { .about-facts dl { grid-template-columns: minmax(0, 1fr); } }

/* contact form */
.enquiry .hp { position: absolute; left: -9999px; }
.enquiry .btn { margin-top: 8px; }
.form-error { margin: 12px 0 0; font-weight: 700; color: var(--ink); }
.form-note { margin: 12px 0 0; }
.form-done { background: var(--surface); border-radius: var(--r-card); padding: 28px; align-self: start; }
.form-done h2 { font-size: 28px; margin-bottom: 8px; }
.form-done p { margin: 0; }
.enquiry #f-send { width: auto; justify-self: start; align-self: flex-start; }
.results-top { display: block; }
.area-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) 11.5em; }
.area-label { white-space: nowrap; }
@media (max-width: 560px) { .area-row { grid-template-columns: 1fr; gap: 4px; } }
