/* EvedEl Consulting site styles: "The Route Map".
   One deal's route from lead to renewal, drawn as a navy-to-teal line.
   Colours, Inter and the logo rules come from the EvedEl brand guide (brand/). */

:root {
  --navy: #002858;        /* Deep Navy: headings, primary, the fee band */
  --navy-hover: #0b3a75;
  --blue: #0098f0;        /* Cloud Blue: the line and large accents only */
  --teal: #008890;        /* Teal: rules and large labels */
  --teal-text: #006b73;   /* teal darkened for small text (6.3:1 on white) */
  --aqua: #00a8b0;        /* Aqua: line end, non-text */
  --slate: #405060;       /* body copy */
  --mist: #eaf6fc;        /* Soft Mist panels */
  --mist-deep: #d6ecf8;
  --rule: #cfe0ea;
  --white: #ffffff;
  --loss: #c2362c;        /* revenue being lost: notices only */
  --loss-pale: #fdf0ee;
  --on-navy: #c9e6f7;     /* secondary text on the navy band */
  --line: linear-gradient(90deg, var(--navy) 0%, var(--blue) 55%, var(--aqua) 100%);
  --line-down: linear-gradient(180deg, var(--navy) 0%, var(--blue) 55%, var(--aqua) 100%);
  --font: "Inter", Arial, Helvetica, sans-serif;
  --wrap: 1200px;
  --gutter: max(16px, min(4vw, 48px));
  --shadow: 0 14px 32px -18px rgba(0, 40, 88, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font); color: var(--slate); background: var(--white); font-feature-settings: "cv11", "ss01"; }
::selection { background: var(--navy); color: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--teal); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { max-width: 68ch; }
h1, h2, h3 { font-family: var(--font); color: var(--navy); margin: 0 0 .5em; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 4.3vw, 3.4rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.75rem, 2.7vw, 2.25rem); font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.32rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
strong { font-weight: 600; color: var(--navy); }
.num, .worth, .effort, .rank { font-variant-numeric: tabular-nums; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(1.2) blur(6px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--white); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 80px; }
.brand { display: block; padding: 10px 0; }
.brand img { width: 132px; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { white-space: nowrap; }
.site-nav a { font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--navy); padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.site-header .header-book { display: none; }
.menu-btn { display: none; font: 600 1rem var(--font); color: var(--navy); background: var(--white); border: 1.5px solid var(--navy); border-radius: 6px; padding: .5rem 1rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.05rem/1.2 var(--font); text-decoration: none; background: var(--navy); color: var(--white); padding: 1rem 1.6rem; border-radius: 6px; border: 2px solid var(--navy); cursor: pointer; transition: background-color .18s ease, transform .18s ease; }
.btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn:active { transform: translateY(1px); }
.site-nav a.btn-small, .btn-small { padding: .6rem 1.05rem; font-size: .95rem; color: var(--white); border-bottom: 2px solid var(--navy); }
.site-nav a.btn-small:hover { border-bottom-color: var(--navy-hover); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--mist); border-color: var(--mist); }
.section--ink a.btn-light { color: var(--navy); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--mist); }
.section--mist .btn-ghost:hover { background: var(--white); }
.sample-link { margin: .9rem 0 0; font-size: 1rem; }
.sample-page-link { display: block; }
.sample-cta { margin: 1.1rem 0 0; }
/* ---------- blog ---------- */
.blog-list { max-width: none; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 2rem; }
.blog-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--rule); color: inherit; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease; }
.blog-card:hover { border-color: var(--navy); box-shadow: 0 14px 30px -22px rgba(0, 40, 88, .45); }
.blog-card img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--rule); }
.blog-card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.2rem 1.3rem 1.4rem; flex: 1; }
.blog-card-title { margin: 0; font-size: 1.2rem; line-height: 1.3; color: var(--navy); text-wrap: balance; }
.blog-card-excerpt { color: var(--slate); font-size: .98rem; line-height: 1.55; }
.blog-card-meta { margin-top: auto; padding-top: .3rem; font-size: .88rem; color: var(--slate); }
.post-head h1 { max-width: 24ch; }
.post-back { margin: 0 0 1rem; font-size: .95rem; font-weight: 600; }
.post-back a::before { content: "\2190\00a0"; }
.post-byline { display: flex; align-items: center; gap: .85rem; margin: 1.6rem 0 0; font-size: .95rem; line-height: 1.45; color: var(--slate); }
.post-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); }
.post-byline strong { color: var(--navy); }
.post-main { padding-top: clamp(2rem, 4vw, 3rem); }
.post-cover { margin: 0 0 2.6rem; max-width: 46rem; }
.post-cover img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.post-body { max-width: 42rem; }
.post-body p, .post-body li { font-size: 1.08rem; line-height: 1.75; }
.post-body p { margin: 0 0 1.1rem; }
.post-body .post-lead { font-size: 1.24rem; line-height: 1.6; color: var(--navy); margin-bottom: 1.6rem; }
.post-body h2 { font-size: 1.5rem; margin: 2.6rem 0 .8rem; }
.post-body ul, .post-body ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.post-body li { margin: .5rem 0; }
.post-body table.plain { margin: 1.2rem 0 1.4rem; }
.post-story { background: var(--mist); padding: 1.4rem 1.6rem; margin: 1.4rem 0 1.6rem; }
.post-story p { margin: 0; }
.post-story .post-story-note { margin-top: .7rem; font-size: .9rem; color: var(--slate); }
.post-sources { margin-top: 2.8rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.post-sources p { font-size: .95rem; font-weight: 700; color: var(--navy); margin: 0 0 .4rem; }
.post-sources li { font-size: .92rem; line-height: 1.55; margin: .3rem 0; }
.post-related h2 { margin-bottom: 1.6rem; }
.post-all { margin-top: 1.8rem; }
.legal > * { max-width: 46rem; }
.legal h2 { font-size: 1.35rem; margin: 2.6rem 0 .8rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin: 1.6rem 0 .5rem; color: var(--navy); }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 1.25rem; margin: .4rem 0 1rem; }
.legal li { margin: .45rem 0; }
.legal-table { font-size: .98rem; }
.legal-meta { font-size: .95rem; font-weight: 600; color: var(--teal-text, #006b73); margin: .4rem 0 1rem; }
.proof-line { margin: 1.8rem 0 0; max-width: 62ch; font-size: 1.05rem; line-height: 1.6; color: var(--navy); }
.assure { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .35rem; font-size: .97rem; color: var(--navy); }
.assure li { position: relative; padding-left: 1.7rem; }
.assure li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.05rem; height: 1.05rem; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.6l3.9 3.9L14 3.8' fill='none' stroke='%23008890' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.micro { font-size: .94rem; color: var(--slate); margin-top: .9rem; max-width: 46ch; }
.textlink { font-weight: 600; }

/* ---------- sections ---------- */
.section { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--navy); color: var(--on-navy); }
.section--ink h2, .section--ink h3, .section--ink strong { color: var(--white); }
.section--ink a { color: var(--white); text-decoration-color: var(--blue); }
.section--ink p { color: var(--on-navy); }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--slate); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.split > h2 { position: sticky; top: 112px; }
/* the route rule: a short piece of the line under page and section headings */
.rule-line { display: block; width: 88px; height: 6px; border-radius: 3px; background: var(--line); margin: 0 0 1.4rem; }

/* ---------- home hero: the route ---------- */
.hero { padding-top: clamp(2.6rem, 5.5vw, 4.4rem); padding-bottom: 0; background: var(--white); overflow: hidden; }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.hero-top h1 { max-width: 17ch; margin-bottom: 0; }
.hero-act .lede { margin-bottom: 1.4rem; }
.forwhom { font-weight: 600; color: var(--navy); margin: 1.2rem 0 0; max-width: 40ch; }

.route { position: relative; margin-top: clamp(11rem, 17vw, 14rem); padding-bottom: 3rem; }
.route-note { position: absolute; right: 0; bottom: calc(100% + 40px); width: 17rem; margin: 0; font-size: .9rem; line-height: 1.45; color: var(--slate); }
.station--flip .notice { left: auto; right: calc(100% - 50px); }
.station--flip .notice::after { left: auto; right: 15px; }
.route-track { position: absolute; left: 0; right: 0; top: 0; height: 14px; border-radius: 7px; background: var(--line); transform-origin: left center; animation: draw 1.25s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes draw { from { clip-path: inset(0 100% 0 0 round 7px); } to { clip-path: inset(0 0 0 0 round 7px); } }
.stations { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; align-items: start; position: relative; }
.station { position: relative; padding-top: 36px; }
.station-dot { position: absolute; top: -15px; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 8px solid var(--navy); padding: 0; cursor: pointer; transition: transform .2s ease, border-color .2s ease; }
.station:nth-child(2) .station-dot { border-color: #0060a8; }
.station:nth-child(3) .station-dot, .station:nth-child(4) .station-dot { border-color: var(--loss); }
.station:nth-child(5) .station-dot { border-color: var(--aqua); }
.station-dot:hover, .station:focus-within .station-dot { transform: scale(1.12); }
.station-name { display: block; font-weight: 700; color: var(--navy); font-size: 1.02rem; line-height: 1.25; padding-right: 1rem; }
.station-stage { display: block; font-size: .9rem; color: var(--slate); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.notice { position: absolute; bottom: calc(100% + 34px); left: -6px; width: 15rem; background: var(--white); border: 1px solid var(--rule); border-top: 5px solid var(--loss); border-radius: 0; padding: .8rem .95rem .85rem; box-shadow: var(--shadow); font-size: .92rem; line-height: 1.4; color: var(--slate); opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; pointer-events: none; }
.notice::after { content: ""; position: absolute; left: 24px; bottom: -11px; width: 18px; height: 18px; background: var(--white); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transform: rotate(45deg); }
.notice b { display: block; white-space: nowrap; font-size: 1.32rem; letter-spacing: -0.01em; color: var(--navy); font-variant-numeric: tabular-nums; }
.notice .kind { display: block; font-size: .84rem; font-weight: 700; color: #a3271f; margin-top: .35rem; }
.notice--reach { border-top-color: var(--teal); }
.notice--reach .kind { color: var(--teal-text); }
.station.is-open .notice, .station:hover .notice, .station:focus-within .notice { opacity: 1; transform: none; }
.station.is-open .notice { animation: notice-in .5s .9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes notice-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.station:hover, .station:focus-within { z-index: 2; }
.terminus { position: relative; top: -27px; }
@media (prefers-reduced-motion: reduce) {
  .route-track, .station.is-open .notice { animation: none; }
  .notice, .station-dot, .btn { transition: none; }
}

/* ---------- proof band ---------- */
.proof { background: var(--mist); padding-top: 1.8rem; padding-bottom: 1.8rem; border-top: 1px solid var(--mist-deep); }
.proof p { margin: 0; max-width: 95ch; font-size: 1.04rem; }
.proof-lead { margin-bottom: 1rem !important; }
.names-label { font-size: .95rem !important; color: var(--slate); }
.names-list { list-style: none; margin: .45rem 0 .35rem; padding: 0; max-width: none; display: flex; flex-wrap: wrap; gap: .35rem 2rem; }
.names-list li { font-weight: 700; font-size: 1.12rem; color: var(--navy); letter-spacing: -0.01em; }
.names-after { font-size: .95rem !important; }

/* ---------- the symptoms, set along the route ---------- */
.stops { list-style: none; margin: 0; padding: 0; max-width: none; border-top: 2px solid var(--navy); }
.stops li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.stop { position: relative; padding-left: 1.55rem; font-size: .9rem; font-weight: 700; color: var(--navy); }
.stop::before { content: ""; position: absolute; left: 0; top: .12rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--white); border: 4px solid var(--navy); }
.stop--quote::before { border-color: #0060a8; }
.stop--contract::before, .stop--bill::before { border-color: var(--loss); }
.stop--renew::before { border-color: var(--aqua); }
.after-rows { margin-top: 1.6rem; }

/* ---------- lists with rules ---------- */
.rows { list-style: none; margin: 0; padding: 0; max-width: none; border-top: 2px solid var(--navy); }
.rows > li { padding: .95rem 0 .95rem 2rem; border-bottom: 1px solid var(--rule); position: relative; }
.rows > li::before { content: ""; position: absolute; left: .15rem; top: 1.45rem; width: .75rem; height: .75rem; border-radius: 50%; border: 3px solid var(--navy); }
.rows--plain > li { padding-left: 0; }
.rows--plain > li::before { content: none; }
.cols ul.rows { padding-left: 0; }
.rows--cross > li::before { border: 0; border-radius: 0; width: .9rem; height: .9rem; top: 1.3rem; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9' fill='none' stroke='%23405060' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.rows--ticks > li::before { border: 0; border-radius: 0; width: 1.1rem; height: 1.1rem; top: 1.15rem; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.6l3.9 3.9L14 3.8' fill='none' stroke='%23008890' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- health check intro with a page of the sample ---------- */
.with-sample { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.sample-page { margin: 0; position: sticky; top: 112px; }
.sample-page img { width: 100%; border: 1px solid var(--rule); background: var(--white); box-shadow: 0 18px 40px -22px rgba(0, 40, 88, .5); transform: rotate(-1.2deg); }
.sample-page figcaption { margin-top: 1rem; font-size: .9rem; color: var(--slate); }
.gets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 2px solid var(--navy); margin: 1.8rem 0; }
.gets > div { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.gets h3 { font-size: 1.18rem; margin-bottom: .25rem; }
.gets p { margin: 0; font-size: 1rem; }

/* ---------- how it works: a short route ---------- */
.steps { list-style: none; margin: 2.4rem 0 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 6px; border-radius: 3px; background: var(--line); }
.steps > li { counter-increment: step; position: relative; padding-top: 4.2rem; }
.steps > li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 6px solid var(--navy); color: var(--navy); font: 800 1.05rem/32px var(--font); text-align: center; }
.steps > li:nth-child(2)::before { border-color: var(--blue); }
.steps > li:nth-child(3)::before { border-color: var(--aqua); }
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; font-size: 1.02rem; }

/* ---------- two ways forward ---------- */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.8rem; }
.ways > div { background: var(--white); border-radius: 0; padding: 1.8rem 1.9rem; border-top: 6px solid var(--navy); box-shadow: var(--shadow); }
.ways > div + div { border-top-color: var(--teal); }
.ways .suits { font-size: 1rem; color: var(--slate); margin: 0; padding-top: .9rem; border-top: 1px solid var(--rule); }
.keep { margin-top: 1.25rem; border: 1px solid var(--rule); border-radius: 0; padding: 1.05rem 1.6rem; background: transparent; }
.keep p { margin: 0; max-width: none; }
.credit { margin-top: 1.4rem; font-weight: 600; color: var(--navy); }

/* ---------- definition rows ---------- */
.defs { margin: 1.6rem 0 0; border-top: 2px solid var(--navy); }
.defs > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1rem 2.4rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.defs dt { font-weight: 700; font-size: 1.12rem; line-height: 1.35; color: var(--navy); }
.defs dd { margin: 0; }

/* ---------- fee band ---------- */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; margin: 2.2rem 0 2.2rem; position: relative; padding-top: 2.4rem; }
.terms::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--aqua)); }
.terms > div { position: relative; }
.terms > div::before { content: ""; position: absolute; top: -2.4rem; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); border: 5px solid var(--blue); }
.terms > div:nth-child(3)::before { border-color: var(--aqua); }
.terms h3 { font-size: 1.25rem; }
.terms p { margin: 0; font-size: 1.04rem; }
.section--ink .micro { color: var(--on-navy); }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 2rem; margin: 2rem 0; }
.person { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .95rem; align-items: start; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--white); border: 1px solid var(--rule); }
.person--lead { margin-top: 1.8rem; max-width: 36rem; }
img.avatar { border: 1px solid var(--rule); object-fit: cover; display: block; background: var(--white); }
.person h3 { font-size: 1.15rem; margin: .1rem 0 .15rem; }
.person p { margin: 0; font-size: .98rem; }
.quote { position: relative; margin: 2.2rem 0 0; padding: 2rem 2.2rem 1.8rem; background: var(--mist); border-radius: 0; }
.quote p { font-size: 1.14rem; line-height: 1.6; color: var(--navy); max-width: 72ch; }
.quote footer { font-size: .96rem; color: var(--slate); }

/* ---------- founder note: set as a signed letter at reading size ---------- */
.founder-note { margin: 2.4rem 0 0; max-width: 38rem; }
.founder-note blockquote { margin: 0; }
.founder-note p { font-size: 1.03rem; line-height: 1.72; color: var(--slate); max-width: none; margin: 0; }
.founder-note .lead { color: var(--navy); font-weight: 600; }
.founder-note figcaption { margin-top: 1.5rem; padding-top: 1.2rem; position: relative; }
.founder-note figcaption::before { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 4px; border-radius: 2px; background: var(--line); }
.founder-note figcaption span { font-size: 1rem; font-weight: 600; color: var(--navy); }

/* ---------- booking calendar ---------- */
.calendar { border: 1px solid var(--rule); background: var(--white); }
.calendar iframe { display: block; width: 100%; height: 640px; border: 0; }
.calendar-alt { font-size: .95rem; margin-top: .8rem; }
.calendar-preview { border: 1px solid var(--rule); background: var(--mist); padding: 1.4rem 1.5rem; }
.calendar-preview p { margin: 0 0 1rem; }

/* ---------- questions ---------- */
.faq { border-top: 2px solid var(--navy); padding-top: .25rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.6rem 1.1rem 0; font-weight: 700; font-size: 1.08rem; line-height: 1.4; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .5rem; top: 1.35rem; width: .6rem; height: .6rem; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq details > p { padding: 0 0 1.15rem; margin: 0; }

/* ---------- closing: the end of the line ---------- */
.closing { position: relative; }
.closing-line { display: block; height: 8px; border-radius: 4px; background: var(--line); margin: 0 0 2.4rem; width: min(520px, 70%); }
.closing h2 { max-width: 20ch; }
.closing .alt { margin-top: 1.2rem; font-size: 1rem; }

/* ---------- tables ---------- */
table.plain { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 1.02rem; border-top: 2px solid var(--navy); }
table.plain th, table.plain td { text-align: left; padding: .95rem 1rem .95rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.plain th { font-weight: 700; color: var(--navy); width: 30%; }

/* ---------- the path a deal follows (health check page) ---------- */
.path { list-style: none; margin: 2rem 0 0; padding: 0; max-width: none; counter-reset: stop; position: relative; }
.path::before { content: ""; position: absolute; left: 20px; top: 10px; bottom: 30px; width: 6px; border-radius: 3px; background: var(--line-down); }
.path > li { counter-increment: stop; display: grid; grid-template-columns: 4rem minmax(0, 3fr) minmax(0, 8fr); gap: 0 1.4rem; padding: 0 0 1.7rem; position: relative; }
.path > li::before { content: counter(stop); width: 46px; height: 46px; border-radius: 50%; background: var(--white); border: 6px solid var(--navy); color: var(--navy); font: 800 1rem/34px var(--font); text-align: center; position: relative; z-index: 1; }
.path > li:nth-child(n+3)::before { border-color: var(--blue); }
.path > li:nth-child(n+5)::before { border-color: var(--aqua); }
.path h3 { margin: .55rem 0 0; font-size: 1.15rem; }
.path p { margin: .5rem 0 0; }

/* ---------- timeline rows ---------- */
.when { margin: 1.6rem 0 0; border-top: 2px solid var(--navy); }
.when > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 1rem 2.4rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.when dt { font-weight: 700; color: var(--navy); }
.when dd { margin: 0; }

/* ---------- page heroes (inner pages) ---------- */
.hero--page { background: linear-gradient(180deg, var(--mist) 0%, var(--white) 100%); padding-top: clamp(2.8rem, 6vw, 4.6rem); padding-bottom: clamp(2.4rem, 5vw, 3.6rem); border-bottom: 1px solid var(--rule); }
.hero--page h1 { max-width: 22ch; }
.hero--page h1::after { content: ""; display: block; width: 96px; height: 6px; border-radius: 3px; background: var(--line); margin-top: 1.4rem; }
.hero--page .lede { max-width: 62ch; margin-top: 1.2rem; }
.hero-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.excerpt { margin: 0; background: var(--white); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.excerpt table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.excerpt caption { text-align: left; font-weight: 700; color: var(--navy); padding: .9rem 1rem .7rem; border-bottom: 3px solid var(--navy); }
.excerpt th { text-align: left; font-size: .78rem; font-weight: 700; color: var(--slate); padding: .55rem .5rem; border-bottom: 1px solid var(--rule); }
.excerpt td { padding: .7rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--navy); }
.excerpt .rank { font-weight: 800; text-align: center; width: 2.5rem; }
.excerpt .worth { font-weight: 700; color: #a3271f; white-space: nowrap; }
.excerpt .effort { color: var(--slate); white-space: nowrap; }
.excerpt figcaption { padding: .7rem 1rem .85rem; font-size: .82rem; color: var(--slate); }
.mini-route { list-style: none; margin: 2.6rem 0 0; padding: 30px 0 0; max-width: 62rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.mini-route::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 3px; background: var(--line); }
.mini-route li { position: relative; font-size: .9rem; font-weight: 600; color: var(--navy); padding-right: .8rem; line-height: 1.3; }
.mini-route li::before { content: ""; position: absolute; left: 0; top: -30px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 5px solid var(--navy); }
.mini-route li:nth-child(2)::before { border-color: #0060a8; }
.mini-route li:nth-child(3)::before { border-color: #0084d6; }
.mini-route li:nth-child(4)::before { border-color: var(--blue); }
.mini-route li:nth-child(5)::before { border-color: var(--aqua); }
.mini-route li.is-here::before { background: currentColor; }
.mini-route li.is-here:nth-child(1)::before { background: var(--navy); }
.mini-route li.is-here:nth-child(2)::before { background: #0060a8; }
.mini-route li.is-here:nth-child(3)::before { background: #0084d6; }
.mini-route li.is-here:nth-child(4)::before { background: var(--blue); }
.mini-route li.is-here:nth-child(5)::before { background: var(--aqua); }

/* ---------- columns and option rows ---------- */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3.5rem; }
.cols ul { margin: 0; padding-left: 1.2rem; }
.cols li { margin-bottom: .5rem; }
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 1.8rem; }
.options { position: relative; padding-top: 2.4rem; }
.options::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 6px; border-radius: 3px; background: var(--line); }
.options > div { position: relative; }
.options > div::before { content: ""; position: absolute; top: -2.4rem; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 5px solid var(--navy); }
.options > div:nth-child(2)::before { border-color: var(--blue); }
.options > div:nth-child(3)::before { border-color: var(--aqua); }
.options p { font-size: 1.02rem; }
.source { font-size: .92rem; color: var(--slate); }

/* ---------- one finding in full (sample page) ---------- */
.finding { background: var(--white); border: 1px solid var(--rule); border-top: 5px solid var(--loss); max-width: 58rem; padding: 1.6rem 1.8rem 1.2rem; }
.finding h3 { font-size: 1.3rem; }
.finding-num { color: var(--teal-text); margin-right: .5rem; }
.finding dl { margin: 1rem 0 0; }
.finding dl > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: .4rem 1.6rem; padding: .8rem 0; border-top: 1px solid var(--rule); }
.finding dt { font-weight: 700; color: var(--navy); font-size: .95rem; }
.finding dd { margin: 0; }
.finding .benefit { background: var(--mist); padding-left: .8rem; padding-right: .8rem; }
.finding-foot { margin: .9rem 0 0; font-size: .95rem; }

/* ---------- booking ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.calendar-slot { min-height: 420px; }
.form { display: grid; gap: .8rem; max-width: 30rem; margin-top: 1.4rem; }
.form label { font-weight: 600; color: var(--navy); }
.form input { font: 400 1.08rem var(--font); padding: .85rem .95rem; border: 1.5px solid var(--slate); border-radius: 6px; color: var(--navy); caret-color: var(--blue); }
.form input:focus-visible { border-color: var(--blue); }
.form .field-hint { margin: -.45rem 0 0; font-size: .94rem; color: var(--slate); }
.form input[aria-invalid="true"] { border-color: var(--loss); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .field-error { margin: 0; font-size: .97rem; font-weight: 600; color: var(--loss); }
.form-done { border: 1px solid var(--rule); border-top: 5px solid var(--teal); border-radius: 0; background: var(--white); padding: 1.1rem 1.3rem; max-width: 34rem; }
.form-done p { margin: 0 0 .4rem; }

/* ---------- footer: logo on Soft Mist, as the brand guide requires ---------- */
.site-footer { background: var(--mist); color: var(--slate); padding-top: 3.6rem; padding-bottom: 1.4rem; font-size: .98rem; border-top: 1px solid var(--mist-deep); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: 2.2rem; }
.footer-brand img { width: 300px; margin-bottom: 1rem; }
.footer-h { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0 0 .7rem; }
.site-footer a, .site-footer .footer-grid span { display: block; color: var(--slate); text-decoration: none; padding: .22rem 0; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--navy); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.6rem; padding-top: 1.1rem; border-top: 1px solid var(--mist-deep); font-size: .92rem; }
.footer-base a { display: inline; margin-left: 1.2rem; }

/* ---------- review notes: gaps to fill and claims to confirm ----------
   Shown by default; the button at the bottom right adds .notes-off to <html> to hide them. */
.todo { display: block; border: 2px dashed #b26b00; background: #fff6df; color: #5c3b00; padding: .9rem 1.1rem; margin: 1rem 0; font-size: .98rem; line-height: 1.45; max-width: 70ch; border-radius: 4px; }
.todo::before { content: "To fill in: "; font-weight: 700; }
.confirm { background: #fff1c9; box-shadow: 0 0 0 2px #fff1c9; border-bottom: 2px dotted #b26b00; color: inherit; }
.section--ink .confirm { color: #3d2a00; }
.notes-off .todo { display: none; }
.notes-off .confirm { background: none; box-shadow: none; border-bottom: 0; }
.notes-off .section--ink .confirm { color: inherit; }
.notes-toggle { position: fixed; right: calc(1rem + env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; font: 600 .92rem var(--font); background: #fff6df; color: #5c3b00; border: 2px solid #b26b00; border-radius: 999px; padding: .5rem 1rem; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4); }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .site-nav { gap: 1.3rem; }
  .notice { font-size: .86rem; }
  .notice b { font-size: 1.15rem; }
}
@media (max-width: 900px) {
  .hero-top, .split, .book-grid, .with-sample, .hero-split { grid-template-columns: 1fr; }
  .sample-page { position: static; max-width: 30rem; }
  .route-note { position: static; width: auto; margin: 0 0 1.4rem; }
  .mini-route { grid-template-columns: 1fr; padding: 0 0 0 2.4rem; gap: .9rem; }
  .mini-route::before { left: 8px; right: auto; top: 4px; bottom: 4px; width: 6px; height: auto; background: var(--line-down); }
  .mini-route li::before { top: -1px; left: -2.4rem; }
  .finding dl > div { grid-template-columns: 1fr; }
  .stops li { grid-template-columns: 1fr; gap: .35rem; }
  .split > h2 { position: static; }
  .photo img { aspect-ratio: 16 / 10; }
  .steps, .terms, .options { grid-template-columns: 1fr; gap: 1.8rem; }
  .terms, .options { padding-top: 0; padding-left: 2.6rem; }
  .terms::before, .options::before { left: 7px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; }
  .options::before { background: var(--line-down); }
  .terms::before { background: linear-gradient(180deg, var(--blue), var(--aqua)); }
  .terms > div::before, .options > div::before { top: 0; left: -2.6rem; }
  .steps::before { left: 19px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; background: var(--line-down); }
  .steps > li { padding: 0 0 0 4.2rem; }
  .gets, .ways, .cols { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .defs > div, .when > div { grid-template-columns: 1fr; gap: .3rem; }
  .path > li { grid-template-columns: 4rem minmax(0, 1fr); }
  .path > li > div:last-child { grid-column: 2; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-btn { display: block; }
  .header-in { gap: .6rem; }
  .brand { margin-right: auto; }
  .site-header .header-book { display: inline-flex; padding: .55rem .85rem; font-size: .92rem; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: flex-start; gap: .2rem; padding: 1rem var(--gutter) 1.4rem; }
  .site-nav.open { display: flex; }
  .site-nav a.btn-small { margin-top: .6rem; }

  /* the route turns vertical: every notice shows beside its station */
  .route { margin-top: 2.4rem; padding-left: 0; }
  .route-track { display: none; }
  .stations { grid-template-columns: 1fr; gap: 1.4rem; }
  .station { padding: 0 0 0 3.6rem; }
  /* one segment of the line per station, stepping from navy to aqua, ending at Renew */
  .station--flip .notice { left: auto; right: auto; }
  .station::before { content: ""; position: absolute; left: 18px; top: 21px; bottom: -1.5rem; width: 8px; background: linear-gradient(180deg, var(--navy), #0060a8); }
  .station:nth-child(2)::before { background: linear-gradient(180deg, #0060a8, var(--blue)); }
  .station:nth-child(3)::before { background: linear-gradient(180deg, var(--blue), #00a0d0); }
  .station:nth-child(4)::before { background: linear-gradient(180deg, #00a0d0, var(--aqua)); }
  .station:nth-child(5)::before { content: none; }
  .station-dot { top: 0; left: 1px; width: 42px; height: 42px; }
  .notice { position: relative; bottom: auto; left: auto; width: auto; max-width: 30rem; margin-top: .7rem; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; }
  .notice::after { content: none; }
  .station.is-open .notice { animation: none; }
  .terminus { top: 0; margin-top: .6rem; }
}
@media (max-width: 560px) {
  body { font-size: 1.02rem; }
  .team, .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
  .footer-base a { margin: 0 1.2rem 0 0; }
  table.plain th { width: 38%; }
  .footer-brand img { width: 260px; }
  .quote { padding: 1.4rem 1.3rem; }
}
