/* Haynes Group v2: brighter, friendlier, more accessible layer on top of styles.css */
:root {
  --paper: #fbf8f2;
  --paper-2: #f3ece0;
  --paper-3: #ffffff;
  --sky: #e8f1fb;
  --sky-2: #d6e6f8;
  --teal: #1f6f63;
  --sun: #f6c453;
  --sun-ink: #b7791f;
  --coral: #e07a5f;
  --text-soft: #4d463e;
  --text-mute: #625a50;
  --font-serif: "Outfit", "Segoe UI", system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(28, 44, 68, 0.09);
  --shadow-lift: 0 18px 40px rgba(28, 44, 68, 0.16);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--suit);
}
html { font-size: 100%; }
html.text-lg { font-size: 118%; }
body { font-size: 1.0938rem; line-height: 1.7; }
body::before { opacity: 0.12; }

h1, h2, h3, .section-head h2, .hero h1, .page-hero h1 { font-weight: 700; letter-spacing: -0.025em; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.12; }
.eyebrow { font-weight: 650; letter-spacing: 0.14em; font-size: 0.78rem; color: #8f4e32; }
.lead { color: var(--text-soft); }
.fine { font-size: 0.86rem; color: var(--text-mute); margin-top: 1.4rem; max-width: 60rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: bigger, rounder, friendlier */
.btn { border-radius: 999px; min-height: 2.9rem; font-weight: 600; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn-lg { min-height: 3.25rem; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(28,44,68,.15); }
.btn-link { background: none; border: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; padding: .6rem .8rem; min-height: 2.9rem; }

/* Bands */
.band-sky { background: linear-gradient(180deg, var(--sky) 0%, #f4f8fd 100%); }
.v2-section { position: relative; }

/* Header text-size toggle */
.header-lockup .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.text-toggle { display: inline-flex; align-items: center; gap: .35rem; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: .1rem .75rem; min-height: 1.9rem; font: inherit; font-size: .82rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.text-toggle svg { width: 1.1rem; height: 1.1rem; }
.text-toggle[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Hero v2 ---------- */
.hero-v2, .page-hero-v2 { background: radial-gradient(1200px 500px at 85% -10%, var(--sky-2), transparent 60%), radial-gradient(800px 400px at -10% 110%, #fbe9c8, transparent 60%); }
.hero-v2::after { display: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-copy { min-width: 0; }
.hero-v2 h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; }
.hero-v2 h1 em, .page-hero-v2 h1 em { font-style: normal; color: var(--copper); background: linear-gradient(transparent 62%, rgba(246,196,83,.55) 62%); padding: 0 .08em; }
.hello-pill { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .88rem; font-weight: 500; color: var(--navy); box-shadow: var(--shadow); margin: 0 0 1.2rem; }
.hero-quiz-link { margin: 1rem 0 0; font-weight: 600; }
.hero-quiz-link a { color: var(--teal); }
.hero-v2 .hero-note, .page-hero-v2 .hero-note { font-size: .9rem; }
.hero-visual { position: relative; }
.hero-scene { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(28,44,68,.15)); }
.team-float { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: -1.6rem; padding: 0 1rem; position: relative; }
.team-float figure { margin: 0; display: flex; align-items: center; gap: .6rem; background: #fff; border-radius: 999px; padding: .35rem .9rem .35rem .35rem; box-shadow: var(--shadow); }
.team-float img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.team-float figcaption { display: flex; flex-direction: column; line-height: 1.2; font-size: .82rem; color: var(--text-soft); }
.team-float b { color: var(--navy); font-size: .9rem; }
.page-hero-v2 .hero-visual { max-width: 440px; justify-self: end; width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .sc-sun { animation: sun 6s ease-in-out infinite; transform-origin: 392px 70px; }
  .sc-cloud { animation: cloud 14s ease-in-out infinite alternate; }
  .sc-window { animation: glow 4s ease-in-out infinite; }
  .sc-key, .sc-doc, .sc-heart, .sc-tools, .sc-shield { animation: bob 3.2s ease-in-out infinite; }
  @keyframes sun { 50% { transform: scale(1.08); } }
  @keyframes cloud { to { transform: translateX(40px); } }
  @keyframes glow { 50% { opacity: .55; } }
  @keyframes bob { 50% { translate: 0 -8px; } }
  html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  html.js .reveal.is-visible { opacity: 1; transform: none; }
}

/* Jump bar */
.jump-bar { position: sticky; top: var(--hdr-live, var(--header-h)); z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-block: 1px solid var(--line); }
.jump-bar .wrap { display: flex; gap: .35rem; overflow-x: auto; padding-block: .45rem; align-items: center; scrollbar-width: thin; }
.jump-label { font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mute); margin-right: .3rem; white-space: nowrap; }
.jump-bar a { white-space: nowrap; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .92rem; padding: .45rem .85rem; border-radius: 999px; min-height: 2.5rem; display: inline-flex; align-items: center; }
.jump-bar a:hover { background: var(--sky); }

/* ---------- Path chooser ---------- */
.path-chooser { background: #fff; border-radius: 28px; box-shadow: var(--shadow-lift); padding: clamp(1.2rem, 3.5vw, 2.4rem); border: 1px solid var(--line); }
.pc-progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-weight: 600; color: var(--navy); font-size: .9rem; }
.pc-progress-bar { flex: 1; height: 10px; background: var(--sky); border-radius: 99px; overflow: hidden; }
.pc-progress-bar span { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--teal), var(--suit)); border-radius: 99px; transition: width .4s ease; }
.pc-step { border: 0; margin: 0; padding: 0; }
.pc-step legend { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; color: var(--navy); margin-bottom: 1rem; padding: 0; }
.pc-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; }
.pc-opt { position: relative; display: block; cursor: pointer; }
.pc-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pc-opt span { display: flex; flex-direction: column; gap: .15rem; min-height: 4.4rem; padding: .85rem 1rem; border: 2px solid var(--line-strong); border-radius: 16px; background: var(--paper); transition: border-color .15s, background .15s, transform .15s; }
.pc-opt b { color: var(--navy); font-weight: 650; }
.pc-opt small { color: var(--text-mute); font-size: .86rem; }
.pc-opt:hover span { border-color: var(--suit); transform: translateY(-2px); }
.pc-opt input:checked + span { border-color: var(--teal); background: #e6f4f1; box-shadow: inset 0 0 0 1px var(--teal); }
.pc-opt input:checked + span b::after { content: " ✓"; color: var(--teal); }
.pc-opt input:focus-visible + span { box-shadow: var(--focus); }
.pc-nav { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.2rem; flex-wrap: wrap; }
.pc-warn { color: #9b2c2c; font-weight: 600; margin: .8rem 0 0; }
.pc-result h3 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); margin: 0 0 .5rem; }
.pc-when { font-weight: 600; color: var(--teal); }
.pc-note { background: #fff7e6; border-left: 4px solid var(--sun-ink); padding: .6rem .9rem; border-radius: 8px; font-size: .92rem; }
.pc-links, .pc-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* ---------- Area spotlight tabs ---------- */
.area-tabs .tablist, .plan-tabs .tablist, .project-tabs .tablist { flex-wrap: wrap; gap: .4rem; border: 0; }
.area-tabs [role="tab"], .plan-tabs [role="tab"], .project-tabs [role="tab"] { border-radius: 999px; min-height: 2.75rem; border: 2px solid var(--line-strong); background: #fff; font-weight: 600; padding: .45rem 1.05rem; }
.area-tabs [role="tab"][aria-selected="true"], .plan-tabs [role="tab"][aria-selected="true"], .project-tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.area-panel, .project-panel, .plan-panel { margin-top: 1rem; background: #fff; border-radius: 24px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.area-panel:not([hidden]) { display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; align-items: start; }
.area-panel h3 { margin: 0 0 .4rem; font-size: 1.6rem; color: var(--navy); }
.area-art { width: 140px; height: 140px; border-radius: 32px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky-2), #fbe9c8); }
.area-art span { font-size: 4rem; font-weight: 800; color: var(--navy); }
.area-help { color: var(--teal); font-weight: 600; }
.chip-list { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-list li { background: #e6f4f1; color: var(--teal); font-weight: 600; font-size: .85rem; padding: .3rem .75rem; border-radius: 999px; }
.chip-list li::before { content: "✓ "; }

/* ---------- Flip cards ---------- */
.flip-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.flip-grid.is-three { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.flip-card { all: unset; box-sizing: border-box; display: block; width: 100%; height: 100%; min-height: 230px; cursor: pointer; perspective: 1000px; border-radius: 22px; }
.flip-card:focus-visible { box-shadow: var(--focus); }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; min-height: 230px; transition: transform .6s cubic-bezier(.3,.7,.3,1); transform-style: preserve-3d; }
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .6rem; padding: 1.3rem; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow); }
.face-front { background: #fff; border: 2px solid var(--line); }
.face-back { background: var(--navy); color: #fff; transform: rotateY(180deg); }
.flip-tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .2rem .7rem; border-radius: 999px; background: #fde8e2; color: #9a3412; }
.flip-tag.is-fact { background: var(--sun); color: #1c2c44; }
.flip-text { font-size: 1.12rem; font-weight: 600; line-height: 1.4; color: inherit; }
.face-front .flip-text { color: var(--navy); }
.face-back .flip-text { font-weight: 500; font-size: 1.02rem; }
.flip-hint { margin-top: auto; font-size: .82rem; opacity: .8; }
.flip-card:hover .face-front { border-color: var(--suit); }
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; transform: none !important; }
  .face { backface-visibility: visible; transform: none; }
  .flip-card .face-back { opacity: 0; }
  .flip-card.is-flipped .face-back { opacity: 1; }
  .flip-card.is-flipped .face-front { opacity: 0; }
}

/* ---------- Welcome ---------- */
.people-cloud { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.people-cloud li { background: #fff; border: 1px solid var(--line-strong); color: var(--navy); font-weight: 600; padding: .5rem 1rem; border-radius: 999px; }
.people-cloud li:nth-child(4n+1) { background: #fdf1d8; }
.people-cloud li:nth-child(4n+2) { background: #e6f4f1; }
.people-cloud li:nth-child(4n+3) { background: #fde8e2; }
.pledge-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.pledge-grid li { background: #fff; border-radius: 20px; padding: 1.2rem 1.3rem; box-shadow: var(--shadow); border-top: 5px solid var(--teal); }
.pledge-grid li:nth-child(3n+2) { border-top-color: var(--copper); }
.pledge-grid li:nth-child(3n) { border-top-color: var(--sun-ink); }
.pledge-grid h3 { margin: 0 0 .3rem; font-size: 1.15rem; color: var(--navy); }
.pledge-grid p { margin: 0; color: var(--text-soft); }

/* ---------- Journey stepper ---------- */
.journey-v2 { background: #fff; border-radius: 28px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow-lift); border: 1px solid var(--line); }
.jr-track { position: relative; overflow-x: auto; padding-bottom: .4rem; }
.jr-track::before { content: ""; position: absolute; left: 2.2rem; right: 2.2rem; top: 1.55rem; height: 6px; background: var(--sky); border-radius: 9px; }
.jr-fill { position: absolute; left: 2.2rem; top: 1.55rem; height: 6px; background: linear-gradient(90deg, var(--teal), var(--suit)); border-radius: 9px; max-width: calc(100% - 4.4rem); transition: width .4s ease; }
.jr-stops { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(88px, 1fr)); gap: .3rem; }
.jr-stop { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; width: 100%; padding: .2rem; border-radius: 14px; min-height: 44px; }
.jr-stop:focus-visible { box-shadow: var(--focus); }
.jr-num { width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #fff; border: 3px solid var(--sky-2); color: var(--navy); transition: all .2s; }
.jr-name { font-size: .86rem; font-weight: 600; color: var(--text-soft); line-height: 1.25; }
.jr-stop.is-done .jr-num { background: var(--teal); border-color: var(--teal); color: #fff; }
.jr-stop[aria-pressed="true"] .jr-num { background: var(--sun); border-color: var(--navy); transform: scale(1.12); }
.jr-stop[aria-pressed="true"] .jr-name { color: var(--navy); }
.jr-panels { margin-top: 1.2rem; background: var(--paper); border-radius: 20px; padding: 1.3rem 1.4rem; }
.jr-panel h3 { margin: 0 0 .4rem; font-size: 1.5rem; color: var(--navy); }
.jr-tip { background: #fff; border-left: 4px solid var(--sun-ink); padding: .6rem .9rem; border-radius: 8px; font-weight: 500; }
.jr-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }

/* ---------- Checklists ---------- */
.checklist { background: #fff; border-radius: 24px; padding: clamp(1.2rem, 3vw, 1.8rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.checklist h3 { margin: 0 0 .6rem; color: var(--navy); }
.check-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.check-progress { margin: 0; font-weight: 700; color: var(--teal); white-space: nowrap; }
.check-meter { flex: 1; height: 10px; background: var(--sky); border-radius: 99px; overflow: hidden; }
.check-meter span { display: block; height: 100%; width: 0; background: var(--teal); transition: width .3s ease; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .45rem; }
.check-list label, .wish-opt { display: flex; align-items: flex-start; gap: .7rem; padding: .7rem .85rem; border-radius: 14px; background: var(--paper); cursor: pointer; min-height: 44px; border: 2px solid transparent; }
.check-list label:hover, .wish-opt:hover { border-color: var(--sky-2); }
.check-list input, .wish-opt input { width: 1.3rem; height: 1.3rem; accent-color: var(--teal); margin-top: .15rem; flex: none; }
.check-list input:checked + span { text-decoration: line-through; text-decoration-color: var(--teal); color: var(--text-mute); }
.headsup-title { margin: 2.4rem 0 1rem; color: var(--navy); font-size: 1.4rem; }

/* ---------- Wish list ---------- */
.wishlist fieldset { border: 0; margin: 0; padding: 0; }
.wish-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.wish-opt { background: #fff; box-shadow: var(--shadow); font-weight: 600; color: var(--navy); }
.wish-opt:has(input:checked) { border-color: var(--teal); background: #e6f4f1; }
.wish-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.2rem; }
.wish-status { margin: 0; font-weight: 600; color: var(--teal); }

/* ---------- Glossary ---------- */
.glossary { background: #fff; border-radius: 24px; padding: clamp(1.2rem, 3vw, 1.8rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.gloss-label { display: block; font-weight: 650; color: var(--navy); margin-bottom: .35rem; }
.glossary input[type=search] { width: 100%; max-width: 32rem; font: inherit; padding: .8rem 1rem; border-radius: 14px; border: 2px solid var(--line-strong); min-height: 3rem; background: var(--paper); }
.glossary input[type=search]:focus-visible { border-color: var(--suit); }
.gloss-count { font-size: .88rem; color: var(--text-mute); margin: .5rem 0 1rem; }
.gloss-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .7rem; margin: 0; }
.gloss-item { background: var(--paper); border-radius: 16px; padding: .9rem 1.1rem; }
.gloss-item dt { font-weight: 700; color: var(--navy); }
.gloss-item dd { margin: .2rem 0 0; color: var(--text-soft); font-size: .98rem; }

/* ---------- Plans / projects ---------- */
.plan-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.plan-steps li { display: flex; flex-direction: column; gap: .4rem; background: var(--paper); border-radius: 18px; padding: 1rem 1.1rem; }
.plan-steps h4 { margin: 0; color: var(--navy); font-size: 1.08rem; }
.plan-steps p { margin: 0; color: var(--text-soft); font-size: .96rem; }
.plan-steps .step-index { font-weight: 800; color: var(--copper); }
.project-panel:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.project-panel h3 { margin: 0 0 .5rem; color: var(--navy); }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.tick-list li { position: relative; padding-left: 1.8rem; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #e6f4f1; color: var(--teal); font-weight: 800; font-size: .8rem; display: grid; place-items: center; margin-top: .2rem; }
.tick-list.is-alt li::before { content: "?"; background: #fdf1d8; color: #8a5a12; }
.pp-time { font-size: .92rem; color: var(--text-mute); margin-top: 1rem; }
.license-ids { font-weight: 600; color: var(--navy); margin: .2rem 0 .6rem; font-size: .95rem; }

/* ---------- Title: wire safety ---------- */
.alert-box { background: #fff; border-radius: 24px; padding: clamp(1.2rem, 3vw, 1.8rem); border: 3px solid var(--coral); box-shadow: var(--shadow); }
.alert-box h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); margin: 0 0 .8rem; }

/* ---------- Existing components refreshed ---------- */
.service-card, .panel, .team-card, .journey-col { border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover, .panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.band-navy { background: linear-gradient(160deg, #1c2c44 0%, #22395a 100%); }
.calc-bar-wrap { margin-top: 1rem; }
.calc-bar { display: flex; height: 18px; border-radius: 99px; overflow: hidden; background: var(--sky); }
.calc-bar span { display: block; height: 100%; transition: width .3s ease; }
.calc-legend { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .85rem; color: var(--text-soft); }
.calc-legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; }
  .page-hero-v2 .hero-visual { justify-self: start; max-width: 360px; }
  .project-panel:not([hidden]) { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .area-panel:not([hidden]) { grid-template-columns: 1fr; }
  .area-art { width: 72px; height: 72px; border-radius: 20px; }
  .area-art span { font-size: 2.2rem; }
  .jr-stops { grid-template-columns: repeat(7, 84px); }
  .pc-opts { grid-template-columns: 1fr; }
  .team-float { margin-top: -1rem; padding: 0 .5rem; }
  .hello-pill { font-size: .8rem; border-radius: 16px; }
  .text-toggle span { font-size: .78rem; }
}
@media (max-width: 900px) {
  .hero-visual { order: 0; margin-top: .5rem; }
}
