/* CyberWarden static site.
   One family (Plus Jakarta Sans), brand teal for the firm, one accent per practice.
   Practice colours are information: the same colour marks a practice in the nav,
   its tile, its offer banner, its form checkbox and the footer list. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #072A2E;
  --deep: #0B5058;
  --teal: #1B8996;
  --mist: #EEF4F4;
  --line: #D5E2E3;
  --field: #B9CCCE;
  --ink: #0E2A2E;
  --body: #3D5357;
  --muted: #5E7478;
  --hero-ink: #CFE6E9;
  --foot-ink: #A9C7CB;

  --gold: #E2A72E;   --gold-ink: #8A5B00;   --gold-light: #F0C060;   --gold-wash: #FBF3E2;
  --blue: #3B6FD8;   --blue-ink: #234BA6;   --blue-light: #9DB8F5;   --blue-wash: #EAF0FC;
  --violet: #8B5CD0; --violet-ink: #5A3496; --violet-light: #C3A6F0; --violet-wash: #F2EDFA;
  --teal-light: #7FD0D8; --teal-wash: #E6F3F4;

  --wrap: 1200px;
  --gutter: 24px;
  --radius: 6px;
}

.p-essentials { --p: var(--gold);   --p-ink: var(--gold-ink);   --p-light: var(--gold-light);   --p-wash: var(--gold-wash); }
.p-managed    { --p: var(--teal);   --p-ink: var(--deep);       --p-light: var(--teal-light);   --p-wash: var(--teal-wash); }
.p-training   { --p: var(--blue);   --p-ink: var(--blue-ink);   --p-light: var(--blue-light);   --p-wash: var(--blue-wash); }
.p-maturity   { --p: var(--violet); --p-ink: var(--violet-ink); --p-light: var(--violet-light); --p-wash: var(--violet-wash); }
/* Firm-wide pages (posts, free tools) use ink, not a practice colour. */
.p-firm       { --p: var(--ink);    --p-ink: var(--deep);       --p-light: var(--hero-ink);     --p-wash: var(--mist); }

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body);
  background: #FFFFFF;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink); margin: 0 0 0.5em; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); line-height: 1.12; font-weight: 750; letter-spacing: -0.022em; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); text-underline-offset: 0.18em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: 1.2rem; line-height: 1.55; max-width: 38em; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--night); color: #FFFFFF; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--deep); color: #FFFFFF; }
.btn--primary:hover { background: var(--night); }
.btn--light { background: #FFFFFF; color: var(--deep); }
.btn--light:hover { background: var(--hero-ink); }
.btn--ghost { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.btn--outline { color: #FFFFFF; border-color: var(--p-light, #FFFFFF); }
.btn--outline:hover { background: var(--p-light, #FFFFFF); color: var(--night); }

/* Top bar */

.topbar { background: var(--night); color: var(--hero-ink); font-size: 0.875rem; }
.topbar__inner { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-height: 40px; }
.topbar p { margin: 0; }
.topbar a { color: #FFFFFF; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__actions { display: flex; align-items: center; gap: 24px; }
.topbar__actions a { font-weight: 600; }
.topbar .tone-gold { color: var(--gold-light); }
.topbar .tone-blue { color: var(--blue-light); }
.topbar__in { display: inline-flex; color: var(--hero-ink); }

/* Masthead */

.masthead { position: sticky; top: 0; z-index: 20; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 190px; height: auto; }

.sitenav { display: flex; align-items: center; gap: 32px; }
.sitenav ul { display: flex; gap: 28px; }
.sitenav li a {
  display: block; padding: 26px 0 22px;
  color: var(--ink); font-weight: 600; font-size: 0.97rem; text-decoration: none;
  border-bottom: 4px solid transparent;
}
.sitenav li a:hover { border-bottom-color: var(--p); }
body[data-page="essentials"] [data-nav="essentials"],
body[data-page="managed"] [data-nav="managed"],
body[data-page="training"] [data-nav="training"],
body[data-page="maturity"] [data-nav="maturity"],
body[data-page="posts"] [data-nav="posts"],
body[data-page="tools"] [data-nav="tools"] { border-bottom-color: var(--p); color: var(--p-ink); }
.sitenav li.sitenav__split { margin-left: 4px; padding-left: 28px; border-left: 1px solid var(--line); }

.navtoggle {
  display: none; font: inherit; font-weight: 700; color: var(--ink);
  background: none; border: 2px solid var(--line); border-radius: var(--radius);
  min-height: 44px; padding: 0 16px; cursor: pointer;
}

/* Hero */

.hero {
  color: #FFFFFF;
  background:
    linear-gradient(0deg, var(--night) 0, var(--night) 150px, rgba(7, 42, 46, 0) 260px),
    linear-gradient(90deg, rgba(3, 23, 26, 0.9) 0%, rgba(3, 23, 26, 0.66) 42%, rgba(3, 23, 26, 0) 85%),
    var(--night) url("/assets/img/calgary-skyline.jpg") center bottom 150px / cover no-repeat;
  padding: 112px 0 248px;
}
.hero__title { color: #FFFFFF; margin-bottom: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.hero__lead { display: block; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500; letter-spacing: -0.01em; color: var(--hero-ink); margin-bottom: 8px; }
.hero__word { display: block; font-size: clamp(2.6rem, 6.2vw, 5.2rem); min-height: 1.04em; transition: opacity 0.35s ease, transform 0.35s ease; }
.hero__word.is-out { opacity: 0; transform: translateY(-8px); }
.hero__text { max-width: 34em; font-size: 1.15rem; color: var(--hero-ink); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Practices: the routing strip that overlaps the hero */

.practices { position: relative; z-index: 2; margin-top: -196px; }
.practices__title { color: #FFFFFF; font-size: 1.1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 18px; text-wrap: pretty; }
.practices__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.ptile {
  position: relative; display: flex; flex-direction: column;
  background: #FFFFFF; border: 1px solid var(--line); border-top: 6px solid var(--p);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 24px 24px 22px;
}
.ptile__who { margin: 0 0 6px; color: var(--p-ink); font-weight: 700; font-size: 0.95rem; }
.ptile h3 { font-size: 1.4rem; margin-bottom: 10px; }
.ptile h3 a { color: var(--ink); text-decoration: none; }
.ptile h3 a::after { content: ""; position: absolute; inset: 0; }
.ptile p:not(.ptile__who) { font-size: 0.97rem; line-height: 1.55; }
.ptile__go { margin-top: auto; color: var(--p-ink); font-weight: 700; font-size: 0.97rem; text-decoration: underline; text-decoration-color: var(--p); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.ptile:hover .ptile__go { text-decoration-color: var(--p-ink); }
.ptile:focus-within { outline: 3px solid var(--p); outline-offset: 2px; }
.ptile h3 a:focus-visible { outline: none; }

/* Trust */

.trust { padding: 64px 0 8px; }
.trust__inner { display: flex; align-items: center; gap: 48px; }
.trust__title { flex: 0 0 15rem; font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin: 0; }
.trust__logos { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.trust__logos img { height: 44px; width: auto; filter: grayscale(1); opacity: 0.75; }
.trust__logos img[src*="si-systems"] { height: 64px; }

/* Why */

.why { padding: 88px 0 96px; }
.why__grid { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; }
.why__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.why__lists h3 { font-size: 1.05rem; margin-bottom: 14px; }

.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 0.32em;
  width: 11px; height: 6px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

.why__photo { margin: 0; }
.why__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.why__photo figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }

/* Offers: practice-framed banners */

.offers { padding: 0 0 96px; }
.offers__stack { display: grid; gap: 32px; }
.offer {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--night); color: var(--hero-ink);
  border: 6px solid var(--p); border-left-width: 56px;
  min-height: 360px;
}
.offer__panel { padding: 48px 48px 44px; align-self: center; }
.offer__kicker { color: var(--p-light); font-weight: 700; margin-bottom: 10px; }
.offer h2 { color: #FFFFFF; font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.offer p:not(.offer__kicker) { max-width: 32em; margin-bottom: 28px; }
.offer__img { width: 100%; height: 100%; object-fit: cover; }

/* Catalogue */

.catalogue { background: var(--mist); padding: 88px 0 96px; }
.catalogue h2 { max-width: 20em; margin-bottom: 48px; }
.catalogue__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 40px; }
.catalogue__grid li { border-top: 2px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; }
.catalogue__grid h3 { font-size: 1.12rem; }
.catalogue__grid p { font-size: 0.97rem; line-height: 1.55; }
.catalogue__grid a { margin-top: auto; font-weight: 700; font-size: 0.95rem; }

/* Contact */

.contact { padding: 96px 0; }
.contact__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.contact__intro { position: sticky; top: 108px; }
.contact__grid--form-first { grid-template-columns: 7fr 4fr; }
.aform { background: #FFFFFF; }

.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 40px 18px 0; color: var(--ink); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 1.4rem; font-weight: 500; color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 8px; }

.cform { background: #F6FAFA; border: 1px solid var(--line); border-top: 6px solid var(--p, var(--teal)); border-radius: 0 0 var(--radius) var(--radius); padding: 32px; }
.cform label { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-bottom: 18px; }
.cform input[type="text"], .cform input[type="email"], .cform input[type="tel"], .cform select, .cform textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-weight: 400; color: var(--ink);
  background: #FFFFFF; border: 1px solid var(--field); border-radius: 4px;
  padding: 11px 12px; min-height: 46px;
}
.cform textarea { resize: vertical; min-height: 120px; }
.cform input:focus-visible, .cform select:focus-visible, .cform textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.cform [aria-invalid="true"] { border-color: #B3261E; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: #B3261E; }
.opt { font-weight: 400; color: var(--muted); }

.cform__services { border: 0; padding: 0; margin: 4px 0 18px; }
.cform__services legend { font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-bottom: 8px; padding: 0; }
.cform__checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.cform .check { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 6px 0; font-weight: 500; line-height: 1.35; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--p, var(--teal)); }
.check.p-essentials, .check.p-managed, .check.p-training, .check.p-maturity { color: var(--p-ink); font-weight: 700; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__send { width: 100%; }
.cform__turnstile:not(:empty) { margin: 4px 0 16px; }
.cform__status { margin: 12px 0 0; font-weight: 600; }
.cform__status:empty { margin: 0; }
.cform__status.is-ok { color: var(--deep); }
.cform__status.is-error { color: #B3261E; }

/* Footer */

.sitefoot { background: var(--night); color: var(--foot-ink); font-size: 0.95rem; }
.sitefoot a:not(.btn) { color: var(--hero-ink); }
.sitefoot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.sitefoot__about img { width: 190px; margin-bottom: 20px; }
.sitefoot__head { color: #FFFFFF; font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: 16px; }
.sitefoot__list li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.sitefoot__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border-radius: 50%; background: var(--p); }
.sitefoot__list a, .sitefoot__plain a { text-decoration: none; }
.sitefoot__list a:hover, .sitefoot__plain a:hover { text-decoration: underline; }
.sitefoot__plain li { margin-bottom: 10px; }
.sitefoot__head--gap { margin-top: 28px; }
.sitefoot__base { border-top: 1px solid rgba(207, 230, 233, 0.14); font-size: 0.875rem; }
.sitefoot__baseinner { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.sitefoot__base p { margin: 0; }

/* 404 */

.notfound { padding: 120px 0 140px; }

/* Responsive */

@media (max-width: 1100px) {
  .practices__grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-bottom: 200px; }
  .practices { margin-top: -150px; }
}

/* Menu button: below 960px normally; below 1180px when the preview-only items
   (Posts, Free tools) are in the menu, because six items need the extra width. */
@media (max-width: 960px) {
  .navtoggle { display: inline-flex; align-items: center; }
  .sitenav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #FFFFFF; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .sitenav.is-open { display: flex; }
  .sitenav ul { flex-direction: column; gap: 0; }
  .sitenav li a { padding: 14px 0 14px 14px; border-bottom: 0; border-left: 4px solid var(--p); }
  .sitenav__cta { margin-top: 12px; }
}
@media (max-width: 1180px) {
  body:has(.sitenav__split) .navtoggle { display: inline-flex; align-items: center; }
  body:has(.sitenav__split) .sitenav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #FFFFFF; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  body:has(.sitenav__split) .sitenav.is-open { display: flex; }
  body:has(.sitenav__split) .sitenav ul { flex-direction: column; gap: 0; }
  body:has(.sitenav__split) .sitenav li a { padding: 14px 0 14px 14px; border-bottom: 0; border-left: 4px solid var(--p); }
  body:has(.sitenav__split) .sitenav__cta { margin-top: 12px; }
  .sitenav li.sitenav__split { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); border-left: 0; margin-left: 0; padding-left: 0; }
}

@media (max-width: 960px) {
  .topbar__actions li:nth-child(n+3) { display: none; }
  .why__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .contact__intro { position: static; }
  .contact__grid--form-first .contact__intro { order: -1; }
  .why__photo img { aspect-ratio: 16 / 10; }
  .trust__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .trust__title { flex-basis: auto; }
  .catalogue__grid { grid-template-columns: repeat(2, 1fr); }
  .offer { grid-template-columns: 1fr; border-left-width: 6px; border-top-width: 28px; }
  .offer__img { height: 220px; order: -1; }
  .sitefoot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar__inner { justify-content: center; }
  .hero { padding: 72px 0 176px; }
  .hero__word { min-height: 2.06em; }
  .practices { margin-top: -132px; }
  .practices__grid, .catalogue__grid, .cform__row, .cform__checks, .why__lists, .sitefoot__grid { grid-template-columns: 1fr; }
  .cform__row { gap: 0; }
  .cform { padding: 24px 18px; }
  .offer__panel { padding: 32px 22px; }
  .trust__logos { justify-content: flex-start; gap: 24px 32px; }
  .trust__logos img { height: 34px; }
  .sitefoot__baseinner { flex-direction: column; }
  .ptile p:not(.ptile__who), .catalogue__grid p { display: none; }
  .ptile h3 { margin-bottom: 14px; }
  .catalogue__grid { gap: 0; }
  .catalogue__grid li { padding: 16px 0 18px; }
  .catalogue__grid h3 { margin-bottom: 6px; }
  .hero { background-position: center bottom, center, center bottom 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__word { transition: none; }
}

.nowrap { white-space: nowrap; }

/* ---------- Practice pages ----------
   Each page wraps its body in .p-<practice>, so --p, --p-ink, --p-light and
   --p-wash carry that practice's colour through every component below. */

.section { padding: 88px 0; }
.section--mist { background: var(--mist); }
.section__head { max-width: 46rem; margin-bottom: 44px; }
.section__head p { font-size: 1.1rem; }

/* Page hero */
.phero { background: var(--night); color: var(--hero-ink); border-top: 6px solid var(--p); }
.phero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.phero__kicker { color: var(--p-light); font-weight: 700; margin-bottom: 14px; }
.phero h1 { color: #FFFFFF; font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 24px; }
.phero h1 span { display: block; color: var(--hero-ink); font-weight: 500; letter-spacing: -0.02em; }
.phero__text { font-size: 1.15rem; max-width: 34em; margin-bottom: 32px; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.phero__img { border: 6px solid var(--p); border-left-width: 32px; }
.phero__img img { width: 100%; aspect-ratio: 9 / 8; object-fit: cover; }
.phero--plain .phero__grid { grid-template-columns: 1fr; }
.phero--plain .phero__grid > div { max-width: 52rem; }

/* Facts strip */
.facts { background: var(--mist); padding: 40px 0; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.facts__grid li { border-left: 3px solid var(--p); padding-left: 18px; }
.facts__num { display: block; color: var(--p-ink); font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px; }
.facts__label { display: block; font-size: 0.95rem; line-height: 1.45; }

/* Three-up blocks */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trio > li { border-top: 3px solid var(--p); padding-top: 22px; }
.trio h3 { font-size: 1.25rem; }
.trio p { margin-bottom: 0.6em; }
.trio__tag { display: block; color: var(--p-ink); font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.grid3 > li { border-top: 2px solid var(--line); padding-top: 18px; }
.grid3 h3 { font-size: 1.1rem; }
.grid3 p { font-size: 0.97rem; line-height: 1.55; margin: 0; }

/* Side-by-side lists */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.panel { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.section--mist .panel { border-color: transparent; }
.section--mist .cform { background: #FFFFFF; }
.panel h3 { margin-bottom: 18px; }
.panel--tone { border-top: 6px solid var(--p); border-radius: 0 0 var(--radius) var(--radius); }
.ticks--p li::before { border-color: var(--p-ink); }
.crosses li { position: relative; padding-left: 28px; margin-bottom: 10px; line-height: 1.45; color: var(--muted); }
.crosses li::before, .crosses li::after {
  content: ""; position: absolute; left: 4px; top: 0.72em; width: 13px; height: 2px; background: #9AA9AB;
  transform: rotate(45deg);
}
.crosses li::after { transform: rotate(-45deg); }
.panel--muted { background: transparent; border-style: dashed; border-color: var(--field); }
.panel--muted h3 { color: var(--muted); }

/* Callout and note */
.callout { margin-top: 32px; padding: 24px 28px; background: var(--p-wash); border-left: 6px solid var(--p); border-radius: 0 var(--radius) var(--radius) 0; max-width: 52rem; }
.callout h3 { font-size: 1.1rem; margin-bottom: 6px; }
.callout p { margin: 0; }
.callout a { font-weight: 700; color: var(--p-ink); }

/* Prices */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.price { border: 1px solid var(--line); border-top: 6px solid var(--p); border-radius: 0 0 var(--radius) var(--radius); padding: 32px; }
.price__who { color: var(--p-ink); font-weight: 700; margin-bottom: 4px; }
.price__amount { color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; }
.price p:last-child { margin: 0; }

/* Steps: a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 32px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-top: 64px; }
.steps > li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--p); color: var(--night); font-weight: 800; font-size: 1.1rem;
}
.steps > li::after { content: ""; position: absolute; top: 21px; left: 56px; right: -20px; height: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps__when { display: block; color: var(--p-ink); font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.steps h3 { font-size: 1.2rem; }
.steps p { margin-bottom: 0.8em; }
.section__cta { margin-top: 40px; }
.btn--tone { background: var(--p-ink); color: #FFFFFF; }
.btn--tone:hover { background: var(--night); }

/* Assessment form */
.aform__part { border: 0; margin: 0 0 8px; padding: 28px 0 8px; border-top: 1px solid var(--line); }
.aform__part:first-of-type { border-top: 0; padding-top: 0; }
.aform__part > legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.aform__part > legend + * { clear: both; }
.aform__step { display: block; color: var(--p-ink); font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.aform__q { border: 0; padding: 0; margin: 0 0 20px; }
.aform__q > legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.aform__opts { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.aform__opts--stack { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.pill { position: relative; margin: 0 !important; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--field); border-radius: 999px;
  background: #FFFFFF; font-weight: 500; font-size: 0.95rem; color: var(--ink); cursor: pointer;
}
.pill input:checked + span { background: var(--p-ink); border-color: var(--p-ink); color: #FFFFFF; }
.pill input:focus-visible + span { outline: 3px solid var(--p); outline-offset: 2px; }
.aside-talk { margin-top: 32px; }
.aside-talk ul { margin-top: 12px; }
.aside-talk li { margin-bottom: 8px; }

@media (max-width: 960px) {
  .phero__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
  .phero__img { border-left-width: 6px; border-top-width: 20px; max-width: 34rem; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .trio, .grid3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps > li::after { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .phero__img { display: none; }
  .facts__grid, .trio, .grid3, .duo, .prices, .steps, .aform__opts--stack { grid-template-columns: 1fr; }
  .facts__grid { gap: 20px; }
  .panel, .price { padding: 24px 20px; }
  .steps > li { padding-top: 0; padding-left: 60px; min-height: 44px; }
}

/* ---------- Posts and free tools ---------- */

.postlist { max-width: 46rem; }
.postlist li { border-top: 1px solid var(--line); padding: 28px 0; }
.postlist li:last-child { border-bottom: 1px solid var(--line); }
.postlist time, .post__meta { color: var(--muted); font-size: 0.95rem; }
.postlist h2 { font-size: 1.45rem; margin: 6px 0 8px; }
.postlist h2 a { color: var(--ink); text-decoration: none; }
.postlist h2 a:hover { text-decoration: underline; }
.postlist p { margin: 0; }
.postlist__empty { font-size: 1.1rem; color: var(--muted); }
.badge { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: var(--gold-wash); color: var(--gold-ink); font-size: 0.8rem; font-weight: 700; vertical-align: middle; }
p.badge { margin: 0 0 12px; }

.post__wrap { max-width: 46rem; }
.post__back a { font-weight: 700; }
.post h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 8px; }
.post__meta { margin-bottom: 32px; }
.post__body { font-size: 1.1rem; line-height: 1.7; }
.post__body h2 { font-size: 1.6rem; margin-top: 1.6em; }
.post__body h3 { margin-top: 1.4em; }
.post__body ul, .post__body ol { padding-left: 1.4em; margin: 0 0 1em; }
.post__body ul { list-style: disc; }
.post__body li { margin-bottom: 0.4em; }
.post__body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--teal); color: var(--ink); font-size: 1.2rem; }
.post__body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--mist); padding: 1px 6px; border-radius: 4px; }
.post__body pre { background: var(--night); color: var(--hero-ink); padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; }
.post__body pre code { background: none; padding: 0; color: inherit; }
.post__cta { margin-top: 48px; }

.tools { display: grid; gap: 32px; }
.tool { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; border: 1px solid var(--line); border-top: 6px solid var(--p); border-radius: 0 0 var(--radius) var(--radius); padding: 36px; background: #FFFFFF; }
.tool__kicker { color: var(--p-ink); font-weight: 700; margin-bottom: 6px; }
.tool h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.tool__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; font-size: 0.97rem; margin: 0 0 18px; }
.tool__label { font-weight: 700; color: var(--ink); margin: 18px 0 8px; font-size: 0.97rem; }
.tool__downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tool__aside { background: var(--p-wash); border-radius: var(--radius); padding: 24px 26px; align-self: start; }
.tool__aside h3 { font-size: 1.05rem; }
.tool__aside p:last-child { margin: 0; }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn--line { color: var(--p-ink); border-color: var(--p); background: #FFFFFF; }
.btn--line:hover { background: var(--p-wash); }

@media (max-width: 960px) {
  .tool { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 640px) {
  .tool { padding: 24px 20px; }
  .tool__grid { grid-template-columns: 1fr; }
}
