/* =========================================================
   WPComfy — subpages: Care Log (blog), single post, contact.
   Builds on styles.css tokens and components.
   ========================================================= */

/* ---------- compact page hero with the pixel scene ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
  background: var(--night-0);
  isolation: isolate;
}

.page-hero .hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 12, 11, 0.88) 0%, rgba(6, 12, 11, 0.6) 40%, rgba(6, 12, 11, 0.1) 70%, transparent 85%),
    linear-gradient(180deg, rgba(6, 12, 11, 0.5) 0%, transparent 20%, transparent 70%, rgba(10, 21, 20, 0.95) 100%);
}

.page-hero-grid {
  display: grid;
  min-height: 460px;
  align-items: center;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 32px;
  padding-block: 56px 64px;
}

.page-hero h1 {
  max-width: 13em;
  font-size: clamp(40px, 5vw, 66px);
}

.page-hero .hero-intro {
  margin-bottom: 0;
}

.page-hero .comfy {
  --p: 3;
  justify-self: center;
  animation: hover-bob 1.8s steps(4, jump-none) infinite alternate;
}

/* ---------- topic chips ---------- */

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: rgba(238, 241, 230, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: #d6ddcf;
  font: 500 14px/1 var(--pixel);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    transform 120ms steps(2);
}

.chip:hover {
  background: rgba(238, 241, 230, 0.12);
  transform: translateY(-2px);
}

.chip[aria-pressed="true"],
.chip.is-current {
  background: var(--amber);
  box-shadow: 0 3px 0 0 var(--amber-deep);
  color: #1d1506;
}

.chip-count {
  opacity: 0.6;
  font-size: 12px;
}

/* ---------- pixel covers ---------- */

.cover {
  --tint: var(--amber);
  --base: #13241f;
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--tint) 28%, transparent), transparent 55%),
    repeating-conic-gradient(rgba(255, 255, 255, 0.025) 0 25%, transparent 0 50%) 0 0 / 16px 16px,
    var(--base);
  isolation: isolate;
}

.cover::before {
  /* scattered pixel stars */
  position: absolute;
  top: 18%;
  left: 12%;
  width: 4px;
  height: 4px;
  background: var(--tint);
  box-shadow:
    120px 10px 0 0 color-mix(in srgb, var(--tint) 70%, transparent),
    60px 70px 0 0 color-mix(in srgb, var(--tint) 45%, transparent),
    210px 40px 0 0 color-mix(in srgb, var(--tint) 55%, transparent),
    250px 120px 0 0 color-mix(in srgb, var(--tint) 40%, transparent),
    20px 130px 0 0 color-mix(in srgb, var(--tint) 50%, transparent),
    170px 150px 0 0 color-mix(in srgb, var(--tint) 35%, transparent);
  content: "";
  opacity: 0.8;
  animation: blink 3.4s steps(1) infinite;
}

.cover::after {
  /* pixel hills along the bottom */
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 26%;
  background: color-mix(in srgb, var(--base) 55%, #000);
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='16' shape-rendering='crispEdges'%3E%3Cpath d='M0 16V10H8V8H16V6H40V8H48V10H56V12H72V10H80V8H96V10H104V12H128V16z'/%3E%3C/svg%3E") 0 0 / 256px 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='16' shape-rendering='crispEdges'%3E%3Cpath d='M0 16V10H8V8H16V6H40V8H48V10H56V12H72V10H80V8H96V10H104V12H128V16z'/%3E%3C/svg%3E") 0 0 / 256px 100% repeat-x;
}

.cover > svg {
  width: 96px;
  height: 96px;
  fill: var(--tint);
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--tint) 45%, transparent));
  transition: transform 220ms steps(3);
}

.cover--moss {
  --tint: #a9d08a;
  --base: #182b20;
}

.cover--violet {
  --tint: var(--violet-hi);
  --base: #1f1c33;
}

.cover--dusk {
  --tint: #ffb870;
  --base: #2a1f1a;
}

.cover--teal {
  --tint: #8fd6c4;
  --base: #102724;
}

.cover .pixel-img {
  --p: 3;
  width: calc(var(--w) * var(--p) * 1px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(244, 189, 98, 0.25));
}

/* ---------- Care Log listing ---------- */

.section--log {
  padding-top: 64px;
  background: var(--night);
}

.log-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.log-toolbar .chips-row {
  margin-top: 0;
}

.log-count {
  color: var(--faint);
  font-family: var(--pixel);
  font-size: 14px;
}

.post-featured {
  display: grid;
  align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--night-1);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease;
}

.post-featured:hover {
  border-color: rgba(244, 189, 98, 0.4);
}

.post-featured .cover {
  aspect-ratio: 16 / 11;
}

.post-featured-body {
  padding: 12px 24px 12px 0;
}

.post-featured h2 {
  margin: 14px 0 14px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.post-featured p {
  color: var(--muted);
  font-size: 17px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--faint);
  font-size: 13.5px;
}

.post-meta .cat {
  color: var(--amber);
  font-family: var(--pixel);
  font-size: 14px;
}

.post-meta .dot-sep {
  width: 3px;
  height: 3px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--amber-hi);
  font-weight: 600;
}

.read-more svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 160ms steps(2);
}

.post-featured:hover .read-more svg,
.post-card:hover .read-more svg {
  transform: translateX(4px);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 12px 12px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--night-1);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    transform 180ms steps(3);
}

.post-card:hover {
  border-color: rgba(244, 189, 98, 0.35);
  transform: translateY(-4px);
}

.post-card:hover .cover > svg {
  transform: translateY(-6px);
}

.post-card[hidden] {
  display: none;
}

.post-card .post-meta {
  margin: 18px 10px 0;
}

.post-card h3 {
  margin: 10px 10px 8px;
  font-size: 21px;
  line-height: 1.25;
}

.post-card p {
  margin: 0 10px;
  color: var(--muted);
  font-size: 15px;
}

.post-card .read-more {
  margin: auto 10px 0;
  padding-top: 18px;
  font-size: 14px;
}

.log-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
  color: var(--faint);
  font-family: var(--pixel);
  font-size: 14px;
  text-align: center;
}

.log-end::before,
.log-end::after {
  width: 80px;
  height: 4px;
  background: repeating-linear-gradient(90deg, rgba(244, 189, 98, 0.4) 0 4px, transparent 4px 10px);
  content: "";
}

.log-empty {
  padding: 48px 0;
  color: var(--muted);
  text-align: center;
}

/* ---------- "ask" band (paper) ---------- */

.ask-band {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0, 46em);
  gap: 40px;
}

.ask-band .button {
  margin-top: 22px;
}

.ask-band .pixel-img {
  --p: 2;
  width: calc(var(--w) * var(--p) * 1px);
  height: auto;
}

.ask-band h2 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ask-band p {
  color: var(--ink-soft);
}

.section--paper.section--compact {
  padding-block: 64px;
}

/* ---------- single post ---------- */

.read-progress {
  position: fixed;
  top: var(--header-h);
  right: 0;
  left: 0;
  z-index: 49;
  height: 4px;
  background: rgba(238, 241, 230, 0.05);
}

.read-progress b {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--amber) 0 8px, transparent 8px 12px);
  box-shadow: 0 0 10px rgba(244, 189, 98, 0.45);
}

.page-hero--post .page-hero-grid {
  min-height: 520px;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 56px 72px;
}

.page-hero--post h1 {
  max-width: 17em;
  margin-bottom: 20px;
  font-size: clamp(38px, 4.6vw, 62px);
}

.page-hero--post .hero-intro {
  max-width: 40em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-family: var(--pixel);
  font-size: 14px;
}

.breadcrumb a {
  color: #d6ddcf;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--amber-hi);
}

.breadcrumb li + li::before {
  margin-right: 8px;
  color: var(--amber);
  content: "›";
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.byline-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.byline-author img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}

.byline-author strong {
  display: block;
  color: var(--text);
}

.post-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 720px) minmax(0, 280px);
  justify-content: space-between;
  gap: 64px;
}

.post-layout > * {
  min-width: 0;
}

.post-aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 20px;
}

.toc {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--night-1);
}

.toc-title {
  margin-bottom: 12px;
  color: var(--amber);
  font-family: var(--pixel);
  font-size: 14px;
}

.toc ol {
  display: grid;
  gap: 2px;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc a {
  display: grid;
  grid-template-columns: 26px 1fr;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  counter-increment: toc;
  transition: color 140ms ease;
}

.toc a::before {
  color: var(--faint);
  content: counter(toc, decimal-leading-zero);
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 1.7;
}

.toc a:hover,
.toc a.is-active {
  color: var(--text);
}

.toc a.is-active::before {
  color: var(--amber);
}

.aside-cta {
  padding: 22px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
}

.aside-cta p {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.aside-cta strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.2;
}

.aside-cta .button {
  width: 100%;
}

/* prose */

.prose {
  color: #d5dccf;
  font-size: 18px;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.1em;
}

/* Diagrams get the same space above and below. The next heading drops its own
   (larger) top margin, so its pixel marker sits as far from the image as the text above. */
.prose .is-diagram {
  margin-top: clamp(36px, 6vw, 56px);
  margin-bottom: clamp(36px, 6vw, 56px);
}

.prose .is-diagram + * {
  margin-top: 0;
}

.prose .is-diagram img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.prose .lead {
  color: var(--text);
  font-size: 21px;
  line-height: 1.6;
}

.prose h2 {
  position: relative;
  margin-top: 2.2em;
  padding-top: 8px;
  color: var(--text);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.prose h2::before {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 14px;
  background: var(--amber);
  box-shadow: 16px 0 0 0 rgba(244, 189, 98, 0.45), 32px 0 0 0 rgba(244, 189, 98, 0.2);
  content: "";
}

.prose h3 {
  margin-top: 1.8em;
  color: var(--text);
  font-size: 22px;
  line-height: 1.3;
}

.prose a {
  color: var(--amber-hi);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.prose strong {
  color: var(--text);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 28px;
}

.prose ul li::before {
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 8px;
  height: 8px;
  background: var(--amber);
  content: "";
}

.prose ol {
  counter-reset: steps;
}

.prose ol li {
  position: relative;
  padding-left: 44px;
  counter-increment: steps;
}

.prose ol li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: rgba(244, 189, 98, 0.12);
  box-shadow: inset 0 0 0 1px rgba(244, 189, 98, 0.35);
  color: var(--amber);
  content: counter(steps);
  font-family: var(--pixel);
  font-size: 14px;
  line-height: 1;
}

.prose blockquote {
  margin-block: 1.6em;
  padding: 4px 0 4px 26px;
  border-left: 4px solid var(--amber);
  color: var(--text);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.terminal {
  overflow: hidden;
  border-radius: 14px;
  background: var(--night-0);
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    8px 8px 0 0 rgba(0, 0, 0, 0.3);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--pixel);
  font-size: 12.5px;
}

.terminal-bar i {
  width: 8px;
  height: 8px;
  background: #3a4a42;
}

.terminal-bar i:first-child {
  background: var(--amber);
}

.terminal-bar span {
  margin-left: 8px;
}

.terminal pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px 20px;
  color: #d9e4cf;
  font: 14.5px/1.7 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.terminal .c {
  color: #7f8d7f;
}

.terminal .p {
  color: var(--amber);
}

.comfy-tip {
  --b: 4px;
  --edge: #e9d9a8;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-block: 2em !important;
  padding: 20px 22px;
  background: #0f1d19;
  box-shadow:
    var(--b) 0 0 0 var(--edge),
    calc(var(--b) * -1) 0 0 0 var(--edge),
    0 var(--b) 0 0 var(--edge),
    0 calc(var(--b) * -1) 0 0 var(--edge),
    calc(var(--b) * 2) calc(var(--b) * 3) 0 0 rgba(0, 0, 0, 0.35);
}

.comfy-tip .pixel-img {
  width: 115px;
  height: auto;
}

.comfy-tip p {
  font-size: 16.5px;
  line-height: 1.6;
}

.comfy-tip-title {
  display: block;
  margin-bottom: 4px;
  color: var(--amber);
  font-family: var(--pixel);
  font-size: 15px;
}

.post-foot {
  display: grid;
  gap: 28px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.copy-link {
  margin-left: auto;
}

.author-box {
  display: grid;
  align-items: start;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--night-1);
}

.author-box img {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
}

.prose .author-box h3 {
  margin: 2px 0 6px;
  font-size: 20px;
}

.prose .author-box p {
  margin: 0;
}

.author-box p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.author-box .text-link {
  margin-top: 12px;
  font-size: 14px;
}

.related-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.related-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.related-head .text-link {
  margin-top: 0;
}

/* ---------- contact ---------- */

.section--contact {
  padding-top: 56px;
  background: var(--night);
}

.contact-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 12px 12px 0 0 rgba(0, 0, 0, 0.3);
  color: var(--ink);
}

.form-card fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.form-card fieldset + fieldset {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 2px dashed rgba(22, 32, 28, 0.14);
}

.form-card legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legend-step {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--amber);
  font-family: var(--pixel);
  font-size: 14px;
  font-weight: 600;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.field + .field,
.field-row + .field,
.field + .field-row,
.field-row + .field-row {
  margin-top: 16px;
}

.field-row .field + .field {
  margin-top: 0;
}

.field label,
.field .label {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}

.field .optional {
  color: var(--ink-soft);
  font-weight: 500;
}

.field-hint {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid rgba(22, 32, 28, 0.22);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  transition:
    border-color 120ms ease,
    box-shadow 120ms steps(2);
}

textarea.input {
  min-height: 116px;
  resize: vertical;
}

.input::placeholder {
  color: #9aa296;
}

.input:hover {
  border-color: rgba(22, 32, 28, 0.38);
}

.input:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 4px 4px 0 0 var(--amber);
}

.input:user-invalid,
.was-submitted .input:invalid {
  border-color: #b4442f;
  box-shadow: 4px 4px 0 0 rgba(180, 68, 47, 0.3);
}

.field-error {
  display: none;
  color: #9c3622;
  font-family: var(--pixel);
  font-size: 13px;
}

.input:user-invalid + .field-error,
.was-submitted .input:invalid + .field-error {
  display: block;
}

/* plan picker */

.plan-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.plan-option {
  position: relative;
}

.plan-option input {
  position: absolute;
  opacity: 0;
}

.plan-option span {
  display: grid;
  min-height: 66px;
  place-content: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(22, 32, 28, 0.16);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    box-shadow 120ms steps(2),
    transform 120ms steps(2);
}

.plan-option small {
  color: var(--ink-soft);
  font-family: var(--pixel);
  font-size: 12.5px;
  font-weight: 500;
}

.plan-option span:hover {
  transform: translateY(-2px);
}

.plan-option input:checked + span {
  background: var(--ink);
  box-shadow: 0 4px 0 0 var(--amber-deep), inset 0 0 0 2px var(--ink);
  color: #fff;
}

.plan-option input:checked + span small {
  color: var(--amber);
}

.plan-option input:focus-visible + span {
  outline: 3px solid var(--amber-deep);
  outline-offset: 2px;
}

/* pixel checkboxes */

.checks {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
}

.check-box {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  place-items: center;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(22, 32, 28, 0.35);
}

.check-box svg {
  width: 12px;
  height: 12px;
  fill: #fff;
  opacity: 0;
}

.check input:checked + .check-box {
  background: var(--violet);
  box-shadow: inset 0 0 0 2px #5e4fa3;
}

.check input:checked + .check-box svg {
  opacity: 1;
}

.check input:focus-visible + .check-box {
  outline: 3px solid var(--amber-deep);
  outline-offset: 2px;
}

.form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 32px;
}

.form-note {
  max-width: 30em;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.form-sent {
  display: none;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 14px;
  background: #e5ecd6;
  color: var(--ink);
}

.form-sent.is-visible {
  display: grid;
}

.form-sent img {
  width: 117px;
  height: auto;
}

.inline-link {
  color: var(--amber-hi);
  font-weight: 600;
  text-underline-offset: 3px;
}

.section--paper .inline-link {
  color: #6b4d14;
}

.form-sent strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
}

.form-sent p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* contact aside */

.contact-aside {
  display: grid;
  gap: 18px;
}

/* Comfy rises out of the hero above the aside and watches the form. */
.contact-comfy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
}

.contact-comfy .comfy {
  --p: 3;
  animation: hover-bob 1.8s steps(4, jump-none) infinite alternate;
}

.contact-comfy .dialog-box {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  margin-top: 10px;
  animation: none;
}

.contact-comfy .dialog-box::before {
  left: 50%;
  margin-left: -6px;
}

.contact-comfy .dialog-box p {
  color: #dfe6d7;
  font-size: 14.5px;
  line-height: 1.45;
}

@media (min-width: 981px) {
  .contact-comfy {
    margin-top: -290px;
  }
}

.info-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--night-1);
}

.info-card .px-icon {
  width: 44px;
  height: 44px;
  margin: 0;
}

.info-card .px-icon svg {
  width: 24px;
  height: 24px;
}

.info-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15.5px;
}

.info-card--steps {
  display: block;
  padding: 22px;
}

.info-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.info-card-head strong {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.info-card p,
.info-card a {
  color: var(--muted);
  font-size: 14.5px;
}

.info-card a {
  color: var(--amber-hi);
  font-weight: 600;
  text-underline-offset: 3px;
}

.next-steps {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.next-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 14.5px;
}

.next-steps b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: rgba(244, 189, 98, 0.12);
  box-shadow: inset 0 0 0 1px rgba(244, 189, 98, 0.35);
  color: var(--amber);
  font-family: var(--pixel);
  font-size: 13px;
}

.next-steps strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.section--contact-faq {
  background: var(--night-1);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .post-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
    order: -1;
  }

  .post-aside .aside-cta {
    display: none;
  }

  .plan-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .post-featured {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .post-featured-body {
    padding: 12px 10px 14px;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    grid-template-columns: 1fr 1fr;
  }

  .contact-comfy {
    grid-row: span 3;
    align-content: start;
  }


}

@media (max-width: 820px) {
  .page-hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-block: 40px 48px;
  }

  .page-hero .comfy {
    --p: 2;
    justify-self: start;
  }

  .page-hero .hero-shade {
    background: linear-gradient(180deg, rgba(6, 12, 11, 0.8) 0%, rgba(6, 12, 11, 0.5) 55%, rgba(10, 21, 20, 0.95) 100%);
  }

  .post-aside {
    grid-template-columns: 1fr;
  }

  .prose {
    font-size: 17px;
  }

  .prose .lead {
    font-size: 19px;
  }

  .prose h2 {
    font-size: 27px;
  }
}

@media (max-width: 640px) {
  .post-grid,
  .field-row,
  .contact-aside {
    grid-template-columns: 1fr;
  }

  .field-row .field + .field {
    margin-top: 16px;
  }

  .plan-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-comfy {
    grid-row: auto;
  }

  .contact-comfy .comfy {
    --p: 2;
  }

  .ask-band {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .comfy-tip {
    grid-template-columns: 1fr;
  }

  .copy-link {
    margin-left: 0;
  }

  .related-head {
    display: block;
  }

  .related-head .text-link {
    margin-top: 12px;
  }
}

/* Care Log archives (WordPress): topic chips are links, the current one highlighted. */
a.chip {
	text-decoration: none;
}

.chips-row .chip .chip-count {
	margin-left: 2px;
}

.page-hero--archive .breadcrumb li[aria-current] {
	color: var(--text);
}

/* Simple text pages (legal, etc.) */
.page-hero--page .page-hero-grid {
	min-height: 320px;
	padding-block: 64px 48px;
}

.section--page {
	padding-top: 48px;
	background: var(--night);
}

.page-prose {
	max-width: 760px;
}

.page-prose h2 {
	font-size: 26px;
}

/* =========================================================
   Landing pages: Plans, WooCommerce care, For agencies
   ========================================================= */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.page-hero--landing .page-hero-grid {
	min-height: 520px;
}

.page-hero--landing h1 {
	max-width: 14em;
}

.page-hero--landing .hero-actions {
	margin-top: 32px;
}

.page-hero--landing .breadcrumb {
	margin-bottom: 18px;
}

.pose--hero {
	--p: 3;
	justify-self: center;
}

.pose--hero .pixel-img {
	width: calc(var(--w, 115) * 1px * var(--p));
}

/* ---------- plan comparison ---------- */

.section--compare {
	/* The wide table scrolls inside .compare-scroll; clip so mobile browsers don't widen the page. */
	overflow-x: clip;
	background: var(--night-1);
}

.section--compare .section-head {
	max-width: 760px;
	margin-bottom: 40px;
}

.compare-scroll {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(7, 15, 14, 0.45);
	-webkit-overflow-scrolling: touch;
}

.compare-scroll:focus-visible {
	outline: 3px solid var(--amber-deep);
	outline-offset: 3px;
}

.compare-table {
	width: 100%;
	min-width: 860px;
	border-collapse: collapse;
	font-size: 15px;
}

.compare-table th,
.compare-table td {
	padding: 15px 18px;
	border-bottom: 1px solid var(--line);
	text-align: center;
	vertical-align: middle;
}

.compare-table tbody th[scope="row"] {
	width: 34%;
	color: var(--text);
	font-weight: 600;
	text-align: left;
}

.compare-table tbody th[scope="row"] span {
	display: block;
	margin-top: 3px;
	color: var(--faint);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}

.compare-table td {
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.compare-table td b {
	color: var(--text);
	font-size: 18px;
}

.compare-table td small {
	display: block;
	color: var(--faint);
	font-size: 12px;
}

.compare-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	padding-block: 20px;
	background: #0c1917;
	color: var(--text);
	font-family: var(--display);
	font-size: 19px;
	font-weight: 700;
}

.compare-table thead th small {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
}

.compare-table thead th.is-featured {
	color: var(--amber);
}

.compare-table td:nth-child(4),
.compare-table thead th:nth-child(4) {
	background: rgba(244, 189, 98, 0.045);
}

.compare-group th {
	padding-top: 26px;
	background: transparent;
	color: var(--amber);
	font-family: var(--pixel);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-align: left !important;
}

.compare-group span {
	position: sticky;
	left: 18px;
	display: inline-flex;
	align-items: center;
}

.compare-group svg {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 10px;
	vertical-align: -2px;
	fill: currentColor;
}

.c-yes,
.c-no {
	display: inline-block;
	width: 18px;
	height: 18px;
	vertical-align: middle;
}

.c-yes {
	background: var(--leaf);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M6 1h2v1H6zM5 2h2v1H5zM0 3h2v1H0zM4 3h2v1H4zM1 4h4v1H1zM2 5h2v1H2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M6 1h2v1H6zM5 2h2v1H5zM0 3h2v1H0zM4 3h2v1H4zM1 4h4v1H1zM2 5h2v1H2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.c-no {
	width: 12px;
	height: 2px;
	background: rgba(226, 236, 214, 0.22);
}

.compare-table tfoot td,
.compare-table tfoot th {
	padding-block: 22px;
	border-bottom: 0;
}

.compare-table tfoot .plan-cta {
	min-height: 42px;
	padding-inline: 12px;
}

.compare-table tfoot td:nth-child(4) .plan-cta {
	background: var(--amber);
	box-shadow: 0 4px 0 0 var(--amber-deep);
	color: #1a140a;
}

.compare-hint {
	display: none;
	margin-top: 12px;
	color: var(--faint);
	font-size: 13px;
}

.page-hero--landing ~ .section .section-head + .cards-3 {
	margin-top: 44px;
}

/* ---------- limits / review lists ---------- */

.limits-grid {
	display: grid;
	align-items: start;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 6vw, 80px);
}

.limits-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.limits-list li {
	padding: 20px 22px;
	border: 1px solid var(--line-paper);
	border-radius: 14px;
	background: var(--paper-card);
	color: #4d5a50;
	font-size: 14.5px;
	line-height: 1.55;
}

.limits-list strong {
	display: block;
	margin-bottom: 6px;
	color: var(--ink);
	font-size: 16px;
}

/* ---------- check lists ---------- */

.check-list {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.check-list li {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 12px;
	align-items: start;
	line-height: 1.5;
}

.check-list svg {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	fill: var(--leaf);
}

.check-list strong {
	display: block;
	margin-bottom: 2px;
}

/* ---------- WooCommerce offer ---------- */

.woo-included {
	display: grid;
	gap: 40px;
}

.woo-included .section-head {
	max-width: 720px;
}

.woo-offer {
	display: grid;
	align-items: start;
	grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
	gap: 28px;
}

.woo-offer .check-list {
	grid-template-columns: 1fr 1fr;
	gap: 22px 28px;
	padding: 30px;
	border: 1px solid var(--line-paper);
	border-radius: var(--radius);
	background: var(--paper-card);
	color: #4d5a50;
	font-size: 14.5px;
}

.woo-offer .check-list strong {
	color: var(--ink);
	font-size: 16px;
}

.woo-price {
	display: grid;
	gap: 12px;
	padding: 30px;
	border-radius: var(--radius);
	background: var(--night-1);
	color: var(--text);
}

.woo-price .plan-name {
	color: var(--amber);
	font-family: var(--pixel);
	font-size: 16px;
}

.woo-price .plan-price strong {
	color: var(--text);
}

.woo-price .plan-price span,
.woo-price-note {
	color: var(--muted);
	font-size: 14px;
}

.woo-price .button {
	justify-content: center;
	margin-top: 6px;
}

.woo-price-alt {
	color: var(--muted);
	font-size: 14px;
	text-align: center;
	text-underline-offset: 3px;
}

/* ---------- step row ---------- */

.step-row {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.step-row li {
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(7, 15, 14, 0.4);
	color: var(--muted);
	font-size: 14.5px;
	line-height: 1.5;
}

.step-row b {
	color: var(--amber);
	font-family: var(--sans);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.step-row strong {
	color: var(--text);
	font-size: 17px;
}

/* Six steps read better as two rows of three. */
.step-row--six {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- agency models & pricing ---------- */

.models-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	max-width: 980px;
	margin: 40px auto 0;
}

.model-card {
	padding: 32px;
	border: 1px solid var(--line-paper);
	border-radius: var(--radius);
	background: var(--paper-card);
	color: #4d5a50;
}

.model-card h3 {
	margin-bottom: 20px;
	color: var(--ink);
	font-size: 25px;
}

.white-label-badge--alt {
	background: var(--leaf);
	color: #0d1a12;
}

.agency-pricing {
	display: grid;
	align-items: start;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(32px, 6vw, 72px);
}

.tier-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.tier {
	display: grid;
	align-content: start;
	gap: 16px;
	padding: 30px;
	border: 1px solid var(--line-paper);
	border-radius: var(--radius);
	background: var(--paper-card);
	color: #4d5a50;
	font-size: 14.5px;
}

.tier h3 {
	color: var(--ink);
	font-size: 24px;
}

.tier-label {
	color: var(--amber-deep);
	font-family: var(--pixel);
	font-size: 14px;
}

.tier-price {
	color: #4d5a50;
}

.tier-price strong {
	color: var(--ink);
	font-family: var(--display);
	font-size: 30px;
}

.tier .button {
	justify-content: center;
	margin-top: 6px;
}

.tier--featured {
	border-color: transparent;
	background: #211d38;
	color: #c9c4dc;
}

.tier--featured h3,
.tier--featured .tier-price strong {
	color: #fff;
}

.tier--featured .tier-price {
	color: #c9c4dc;
}

.tier--featured .tier-label {
	color: var(--amber);
}

.tier--featured .check-list svg {
	fill: var(--amber);
}

.button--ghost-dark {
	--shadow: rgba(22, 32, 28, 0.2);
	background: #fff;
	box-shadow:
		inset 0 0 0 1px rgba(22, 32, 28, 0.2),
		0 4px 0 0 rgba(22, 32, 28, 0.2);
	color: var(--ink);
}

@media (max-width: 1080px) {
	.step-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.woo-offer,
	.agency-pricing,
	.limits-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 820px) {
	.page-hero--landing .page-hero-grid {
		min-height: 0;
	}

	.pose--hero {
		display: none;
	}

	.compare-hint {
		display: block;
	}

	.compare-table {
		min-width: 720px;
		font-size: 14px;
	}

	.compare-table th,
	.compare-table td {
		padding: 12px 12px;
	}

	.compare-table tbody th[scope="row"] {
		position: sticky;
		left: 0;
		z-index: 1;
		width: 190px;
		background: #0c1917;
	}

	.limits-list,
	.woo-offer .check-list,
	.models-grid,
	.tier-grid,
	.step-row {
		grid-template-columns: 1fr;
	}
}

/* ---------- case studies ---------- */

.page-hero--case h1 {
  max-width: 14em;
}

/* At a glance: a row of facts under the intro, then the client line. */
.cs-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 40px;
  max-width: 1080px;
  margin: 36px 0 0;
  border-top: 1px solid var(--line-strong);
}

.cs-facts div {
  max-width: 220px;
  padding-top: 14px;
}

.cs-facts dt {
  margin-bottom: 4px;
  color: var(--amber);
  font-family: var(--pixel);
  font-size: 13px;
}

.cs-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.cs-facts-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.cs-facts-foot img {
  width: auto;
  height: 22px;
}

.cs-facts-foot a {
  color: var(--amber-hi);
  font-weight: 600;
  text-decoration: none;
}

.cs-facts-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose figcaption {
  margin-top: 12px;
  color: var(--faint);
  font-size: 14px;
  line-height: 1.5;
}

.prose .cs-report,
.prose .cs-compare,
.prose .is-showcase {
  margin-block: clamp(32px, 5vw, 48px);
}

/* Page views from the portfolio: already framed on the client's colours. */
.prose .is-showcase img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.3);
}

.prose .cs-report img,
.prose .cs-compare img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.3);
}

.prose .cs-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.prose .cs-compare > * {
  margin: 0;
}

/* Reporting: two admin screens stacked on the left, the PDF page on the right at their combined height. */
.prose .cs-report {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
}

.prose .cs-report > * {
  margin: 0;
}

.prose .cs-report > figure:nth-of-type(3) {
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.prose .cs-report > figure:nth-of-type(3) img {
  flex: 1 1 0;
  min-height: 0;
  object-fit: cover;
  object-position: top;
}

.prose .cs-report figcaption {
  margin-top: 8px;
  font-size: 13px;
}

.prose .cs-report-note {
  grid-column: 1 / -1;
  color: var(--faint);
  font-size: 14px;
  text-align: center;
}

.prose blockquote cite {
  display: block;
  margin-top: 10px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

.prose .cs-outcome {
  padding: 16px 20px;
  border-left: 4px solid var(--leaf);
  border-radius: 0 12px 12px 0;
  background: var(--night-1);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.6;
}

.prose .cs-outcome strong {
  display: block;
  margin-bottom: 2px;
  color: var(--leaf);
  font-family: var(--pixel);
  font-size: 14px;
  font-weight: 400;
}

.cs-quote {
  margin-top: clamp(40px, 6vw, 56px);
  padding: clamp(24px, 4vw, 36px);
  border-radius: 20px;
  background: var(--paper-card);
  color: var(--ink);
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.3);
}

.prose .cs-quote blockquote {
  position: relative;
  margin: 0;
  padding: 34px 0 0;
  border: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.3vw, 24px);
  line-height: 1.38;
}

.cs-quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-paper);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
}

.cs-quote figcaption img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.prose .cs-quote figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 15.5px;
}

.cs-quote figcaption small {
  flex-basis: 100%;
  font-size: 13px;
}

/* homepage: case studies above the client feedback carousel */

.cs-features {
  display: grid;
  gap: 18px;
  max-width: 1040px;
  margin: 8px auto 40px;
}

.cs-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--line-paper);
  border-radius: 20px;
  background: var(--paper-card);
  color: var(--ink);
  box-shadow: 8px 8px 0 0 rgba(22, 32, 28, 0.08);
}

.cs-feature-media {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  background: #17132b;
}

/* The text sets the card height; the image fills whatever that is. */
.cs-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  transition: transform 400ms ease;
}

.cs-feature:hover .cs-feature-media img {
  transform: scale(1.03);
}

.cs-feature-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3.4vw, 40px);
}

.cs-feature-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--amber-deep);
  font-family: var(--pixel);
  font-size: 14px;
}

.cs-feature-kicker img {
  width: auto;
  height: 22px;
}

.cs-feature h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 31px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.cs-feature h3 a {
  color: inherit;
  text-decoration: none;
}

.cs-feature h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.cs-feature ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #26332c;
  font-size: 15.5px;
  line-height: 1.5;
}

.cs-feature li {
  position: relative;
  padding-left: 22px;
}

.cs-feature li::before {
  position: absolute;
  top: 0.6em;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--amber-deep);
  content: "";
}

.cs-feature-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 18px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-paper);
  color: var(--ink-soft);
  font-size: 13.5px;
}

.cs-feature-foot .text-link,
.page-case-study .post-foot .text-link {
  margin-top: 0;
}

.t-case-link {
  align-self: flex-start;
  margin: -6px 0 20px;
  color: #7a5a1c;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.t-case-link:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .cs-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .cs-facts div {
    max-width: none;
  }

  .cs-facts div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .cs-feature {
    grid-template-columns: 1fr;
  }

  .cs-feature-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .prose .cs-compare,
  .prose .cs-report {
    grid-template-columns: 1fr;
  }

  .prose .cs-report > figure:nth-of-type(3) {
    grid-column: auto;
    grid-row: auto;
  }

  .prose .cs-report > figure:nth-of-type(3) img {
    flex: none;
    height: auto;
  }
}

/* ---------- course platforms page ---------- */

.plan-grid.plan-grid--two {
  max-width: 820px;
  margin: 40px auto 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plans-note {
  max-width: 820px;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}

.plans-note a {
  color: #6b4d14;
  font-weight: 600;
}

@media (max-width: 700px) {
  .plan-grid.plan-grid--two {
    grid-template-columns: 1fr;
  }
}

/* ---------- business websites page ---------- */

.plan-grid.plan-grid--three {
  max-width: 1080px;
  margin: 40px auto 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.t-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-features + .t-grid {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .plan-grid.plan-grid--three,
  .t-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- free site check ---------- */

.page-hero--check .page-hero-grid {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 56px;
}

.page-hero--check h1 {
  max-width: 11em;
}

.sc-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: 18px;
  background: var(--paper-card);
  color: var(--ink);
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.35);
}

.sc-form-title {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sc-field {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
}

.sc-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-paper);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 500 16px/1.4 var(--sans);
}

.sc-field input:focus {
  border-color: var(--amber-deep);
  outline: 3px solid rgba(244, 189, 98, 0.45);
  outline-offset: 0;
}

.sc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sc-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.45;
}

.sc-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--amber-deep);
}

.sc-submit {
  width: 100%;
  justify-content: center;
}

.sc-submit[disabled] {
  cursor: progress;
  opacity: 0.75;
}

.sc-form-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.sc-form-note a {
  color: #6b4d14;
}

.sc-form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbe9e7;
  color: #8f1f16;
  font-size: 14px;
  font-weight: 600;
}

/* progress */

.sc-results {
  padding-block: 56px 72px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.sc-progress {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 32px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--night-1);
}

.sc-progress .pixel-img {
  flex: none;
  width: 117px;
  height: auto;
}

.sc-progress-title {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

.sc-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 15px;
}

.sc-steps li {
  position: relative;
  padding-left: 22px;
}

.sc-steps li::before {
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 8px;
  height: 8px;
  background: #3a4a42;
  content: "";
}

.sc-steps li.is-active {
  color: var(--text);
}

.sc-steps li.is-active::before {
  background: var(--amber);
  animation: sc-blink 0.8s steps(2) infinite;
}

.sc-steps li.is-done {
  color: var(--muted);
}

.sc-steps li.is-done::before {
  background: var(--leaf);
}

@keyframes sc-blink {
  50% {
    opacity: 0.2;
  }
}

/* report */

.sc-report {
  display: grid;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}

.sc-report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.sc-report-head h2 {
  margin: 6px 0 6px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.sc-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
}

.sc-chip strong {
  font-size: 17px;
}

.is-issue {
  --sc: #f08a74;
}

.is-warn {
  --sc: var(--amber);
}

.is-ok {
  --sc: #9cc47e;
}

.is-info {
  --sc: var(--muted);
}

.sc-chip,
.sc-tally {
  color: var(--sc);
}

.sc-priorities {
  padding: 24px 26px;
  border-radius: 18px;
  background: var(--paper-card);
  color: var(--ink);
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.3);
}

.sc-priorities h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 22px;
}

.sc-priorities ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pri;
}

.sc-priorities li {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 12px;
  counter-increment: pri;
}

.sc-priorities li::before {
  grid-row: span 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: #b3261e;
  color: #fff;
  content: counter(pri);
  font-family: var(--pixel);
  font-size: 14px;
}

.sc-priorities li.is-warn::before {
  background: var(--amber-deep);
}

.sc-priorities li strong {
  font-size: 16px;
  line-height: 1.4;
}

.sc-priorities li span {
  color: var(--ink-soft);
  font-size: 13px;
}

.sc-allclear,
.sc-stopped {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  font-size: 16px;
}

/* One section under another: longer, but each finding reads as a full line. */
.sc-sections {
  display: grid;
  gap: 18px;
}

.sc-section {
  padding: 24px 28px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--night-1);
}

.sc-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sc-section-head h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 20px;
}

.sc-tally {
  font-family: var(--pixel);
  font-size: 13px;
  white-space: nowrap;
}

.sc-items {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.sc-badge {
  align-self: start;
  justify-self: start;
  padding: 3px 8px;
  border: 1px solid var(--sc);
  border-radius: 6px;
  color: var(--sc);
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.sc-item-title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sc-item-detail {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.sc-item-source {
  display: inline-block;
  margin-top: 4px;
  color: var(--amber-hi);
  font-size: 13px;
}

.sc-section-note {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.5;
}

.sc-section-link {
  margin-top: 12px;
  font-size: 14px;
}

.sc-pending {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.sc-spinner {
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--amber);
  box-shadow: 14px 0 0 rgba(244, 189, 98, 0.5), 28px 0 0 rgba(244, 189, 98, 0.2);
  margin-right: 30px;
  animation: sc-blink 0.6s steps(2) infinite;
}

.sc-report-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.sc-stack {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.sc-stack h3,
.sc-cta h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 20px;
}

.sc-stack ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-stack li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--night-2);
  color: var(--muted);
  font-size: 13px;
}

.sc-cta {
  padding: 24px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
}

.sc-cta p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
}

.sc-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.sc-cta .text-link {
  margin-top: 0;
  color: #6b4d14;
}

.sc-cta-note {
  margin: 14px 0 0 !important;
  font-size: 13px !important;
}

.sc-how {
  color: var(--faint);
  font-size: 13px;
}

.sc-how summary {
  cursor: pointer;
  color: var(--muted);
}

.sc-how ul {
  margin: 8px 0 0;
  padding-left: 18px;
  overflow-wrap: anywhere;
}

.sc-what {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .page-hero--check .page-hero-grid,
  .sc-sections,
  .sc-report-foot {
    grid-template-columns: 1fr;
  }

  .page-hero--check .page-hero-grid {
    gap: 32px;
  }

  .sc-form {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .sc-progress {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
  }

  .sc-progress .pixel-img {
    width: 80px;
  }

  .sc-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sc-what {
    grid-template-columns: 1fr;
  }
}

.sc-progress-art {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 150px;
}

.sc-progress-art .pose-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 189, 98, 0.28), transparent 70%);
}

.sc-progress-art .pixel-img {
  position: relative;
  width: 117px;
  height: auto;
}

.sc-progress-body {
  flex: 1;
  min-width: 0;
}

/* Pixel progress bar: amber blocks with gaps, like the site's reading progress. */
.sc-bar {
  height: 14px;
  margin: 0 0 18px;
  padding: 3px;
  border: 2px solid #3a4a42;
  background: var(--night-0);
}

.sc-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--amber) 0 10px, transparent 10px 13px);
  box-shadow: 0 0 10px rgba(244, 189, 98, 0.35);
  transition: width 120ms linear;
}

.sc-progress-note {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .sc-progress-art {
    width: 90px;
  }

  .sc-progress-art .pixel-img {
    width: 80px;
  }
}

/* [hidden] must win over the display values above. */
.sc-results [hidden],
.sc-form [hidden] {
  display: none !important;
}

.page-hero--check.is-report-view .page-hero-grid {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 48px 36px;
}

.page-hero--check.is-report-view .sc-form {
  display: none;
}

.page-hero--check.is-report-view h1 {
  max-width: none;
  font-size: clamp(34px, 4.4vw, 54px);
  overflow-wrap: anywhere;
}

.sc-again {
  margin-top: 24px;
}

/* ---------- homepage: free site check band ---------- */

/* Continues the reporting section above (same canopy colour), right before the plans. */
.check-band {
  padding-block: 0 72px;
  background: var(--canopy);
}

.section--report:has(+ .check-band) {
  padding-bottom: 48px;
}

.check-band-card {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 400px);
  gap: 28px;
  padding: 26px 32px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--night);
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.3);
}

.check-band-comfy {
  width: 92px;
  height: auto;
}

.check-band-copy h2 {
  margin: 4px 0 6px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.check-band-copy p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.check-band-form {
  display: flex;
  gap: 10px;
}

.check-band-form input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--night-0);
  color: var(--text);
  font: 500 16px/1.4 var(--sans);
}

.check-band-form input::placeholder {
  color: var(--faint);
}

.check-band-form input:focus {
  border-color: var(--amber);
  outline: 3px solid rgba(244, 189, 98, 0.35);
  outline-offset: 0;
}

.check-band-form .button {
  flex: none;
}

@media (max-width: 980px) {
  .check-band-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .check-band-form {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .check-band-card {
    grid-template-columns: 1fr;
    padding: 24px 22px;
  }

  .check-band-comfy {
    width: 72px;
  }

  .check-band-form {
    flex-direction: column;
  }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
