/* =========================================================
   TestComfy — own components and adjustments.
   Shared components come from WPComfy (styles.css, pages.css, theme.css,
   generated by testcomfy/tools/build-assets.py). This file loads last.
   ========================================================= */

/* ---------- hero ---------- */

/* Two lines, like the WPComfy and SiteComfy headlines (the shorter TestComfy line would fit on one). */
.hero-center .h1-soft {
  display: block;
}

/* ---------- how it works: three steps ---------- */

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

.quest--three::before {
  right: calc(33.333% - 16px);
}

.quest-label {
  margin: 0 0 6px;
  color: var(--amber) !important;
  font-family: var(--pixel);
  font-size: 14px !important;
  letter-spacing: 0.02em;
}

/* Comfy in the last bento tile leans over its left neighbour, as on WPComfy. */
@media (min-width: 981px) {
  .tile--beside-comfy {
    padding-right: calc(var(--comfy-w) / 2 + 20px);
  }
}

.tile .text-link {
  margin-top: 14px;
}

/* ---------- sample bug report ---------- */

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

.report-points {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.report-points svg {
  fill: var(--amber-deep);
}

.bug-card {
  position: relative;
  margin: 0;
  padding: 26px 28px 24px;
  border: 1px solid #e3cfd8;
  border-radius: 18px;
  background: var(--paper-card);
  color: var(--ink);
  box-shadow: 12px 12px 0 0 rgba(34, 22, 32, 0.14);
  font-size: 15px;
  line-height: 1.55;
}

.bug-card-label {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.bug-card-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-family: var(--pixel);
  font-size: 14px;
}

.bug-priority {
  padding: 2px 10px;
  border-radius: 6px;
  background: #fbd9e7;
  color: #8a2e57;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bug-card h3 {
  margin: 0 0 16px;
  font-size: 19px;
  line-height: 1.3;
}

.bug-meta {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 13.5px;
}

.bug-meta div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
}

.bug-meta dt {
  color: var(--ink-soft);
  font-weight: 600;
}

.bug-meta dd {
  margin: 0;
}

.bug-card-head {
  margin: 0 0 6px;
  font-weight: 700;
}

.bug-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink-soft);
}

.bug-steps li + li {
  margin-top: 3px;
}

.bug-results {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.bug-results p {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  margin: 0;
}

.bug-expected,
.bug-actual {
  align-self: start;
  padding: 1px 0;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

.bug-expected {
  background: #d6f1e6;
  color: #1f5c46;
}

.bug-actual {
  background: #fbd9e7;
  color: #8a2e57;
}

.bug-attach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed #dcc4cf;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.bug-attach svg {
  width: 14px;
  height: 14px;
  fill: var(--amber-deep);
}

.bug-attach span {
  margin-left: auto;
  font-style: italic;
}

/* Price cards use the full content width, so their edges line up with the heading and the notes
   below (the shared three-column grid is narrower and centred). The notes follow the same columns. */
.section--plans .plan-grid.plan-grid--three {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.section--plans .plan-grid--three + .plans-foot {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 14px;
}

.section--plans .plan-grid--three + .plans-foot .fine {
  grid-column: span 2;
  max-width: 560px;
}

@media (max-width: 900px) {
  .section--plans .plan-grid--three + .plans-foot {
    grid-template-columns: 1fr;
  }

  .section--plans .plan-grid--three + .plans-foot .fine {
    grid-column: auto;
  }
}

/* Room above a plan grid for the Comfy peeking over the featured card. Below 1120px the
   shared styles give the featured card its own top margin instead. */
@media (min-width: 1121px) {
  .plan-grid:has(.comfy--peek) {
    margin-top: 132px;
  }
}

/* ---------- QA hour packs strip (homepage) ---------- */

.pack-strip .card {
  gap: 4px;
}

.pack-hours {
  margin: 0;
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 15px;
}

/* Numbers in the display face: Pixelify's 5 reads as an S. */
.pack-hours b {
  color: var(--text);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pack-strip .pack-price {
  margin: 0 0 6px;
  color: var(--amber);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pack-strip .pack-rate {
  margin: -2px 0 8px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}

.pack-strip .pack-rate span {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(154, 216, 191, 0.16);
  color: var(--leaf);
  font-size: 12.5px;
  font-weight: 700;
}

.pack-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.pack-strip .card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card--featured {
  border-color: rgba(245, 154, 192, 0.55);
  background: rgba(245, 154, 192, 0.08);
}

/* ---------- about ---------- */

.about-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.about-intro h2 {
  margin: 0;
}

.about-avatar {
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 22px;
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.3);
}

.worked-with {
  margin: 28px 0 28px;
}

.worked-with-label {
  margin: 0 0 12px;
  color: var(--amber);
  font-family: var(--pixel);
  font-size: 13px;
}

/* White logos (built by testcomfy/tools/build-logos.py), each with its own height so they look even. */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-row img {
  display: block;
  width: auto;
  height: var(--h, 26px);
  opacity: 0.82;
}

/* ---------- Test Notes teaser ---------- */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.note-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid #e3cfd8;
  border-radius: 18px;
  background: var(--paper-card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 8px 8px 0 0 rgba(34, 22, 32, 0.1);
  transition: transform 0.2s steps(3, jump-none), box-shadow 0.2s steps(3, jump-none);
}

.note-card:hover,
.note-card:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 0 rgba(34, 22, 32, 0.14);
}

.note-tag {
  color: var(--amber-deep);
  font-family: var(--pixel);
  font-size: 13px;
}

.note-card strong {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.note-card .read-more {
  color: var(--amber-deep);
}

.notes-more {
  margin: 28px 0 0;
}

.section--notes .text-link {
  color: var(--ink);
}

/* ---------- Comfy family: one card per sister brand, in its own colours ---------- */

.section--family {
  background:
    radial-gradient(ellipse 50% 70% at 100% 50%, rgba(196, 168, 232, 0.1), transparent),
    var(--night-1);
}

.family-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.sister-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sister-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--sis-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, var(--sis-glow), transparent 55%),
    linear-gradient(180deg, var(--sis-top), var(--sis-night));
  color: var(--sis-text);
  text-decoration: none;
  box-shadow: 10px 10px 0 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.2s steps(3, jump-none), box-shadow 0.2s steps(3, jump-none);
}

/* WPComfy keeps its own green and amber, SiteComfy its navy and coral. */
.sister-card--wpcomfy {
  --sis-night: #0a1514;
  --sis-top: #16241f;
  --sis-accent: #f4bd62;
  --sis-kicker: #7fa963;
  --sis-text: #eef1e6;
  --sis-muted: #a9b6a7;
  --sis-line: rgba(127, 169, 99, 0.35);
  --sis-glow: rgba(244, 189, 98, 0.12);
}

.sister-card--sitecomfy {
  --sis-night: #0b101c;
  --sis-top: #172236;
  --sis-accent: #f8b19b;
  --sis-kicker: #7fa3c9;
  --sis-text: #f2f0e7;
  --sis-muted: #b7c4d4;
  --sis-line: rgba(127, 163, 201, 0.35);
  --sis-glow: rgba(248, 177, 155, 0.12);
}

.sister-card:hover,
.sister-card:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 13px 13px 0 0 rgba(0, 0, 0, 0.3);
}

.sister-mark {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

.sister-copy {
  display: grid;
  align-content: start;
  gap: 6px;
}

.sister-kicker {
  color: var(--sis-kicker);
  font-family: var(--pixel);
  font-size: 13px;
}

.sister-copy strong {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.02em;
}

.sister-accent {
  color: var(--sis-accent);
}

.sister-copy > span:not(.sister-kicker):not(.read-more) {
  color: var(--sis-muted);
  font-size: 14.5px;
}

.sister-card .read-more {
  margin-top: 6px;
  color: var(--sis-accent);
}

/* ---------- agencies ---------- */

.models-grid--four .model-card p:not(.white-label-badge) {
  margin: 0;
  font-size: 15px;
}

.models-grid--four .model-card h3 {
  margin: 14px 0 10px;
}

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

.check-list--lines li {
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
}

.check-list--lines li:first-child {
  padding-top: 0;
}

.check-list--lines svg {
  fill: var(--leaf);
}

.tier-grid .tier p {
  margin: 0;
}

.tier--featured {
  background: var(--night-2);
  color: var(--muted);
}

.tier--featured h3 {
  color: var(--text);
}

.tier--sister .inline-link {
  color: var(--ink);
}

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

.info-card-intro {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- footer ---------- */

.footer-family p:not(.footer-title) {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.footer-family a {
  color: var(--text);
}

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

@media (max-width: 1100px) {
  .family-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .report-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .quest--three {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .pack-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sister-cards {
    grid-template-columns: 1fr;
  }

  .sister-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .bug-card {
    padding: 22px 18px 20px;
  }

  .bug-meta div,
  .bug-results p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .bug-expected,
  .bug-actual {
    justify-self: start;
    padding: 1px 10px;
  }
}

/* Buttons inside article text (404, posts) keep the button colours, not the link colour. */
.prose a.button {
  color: #1a0e14;
  text-decoration: none;
}

.prose a.button--ghost {
  color: var(--text);
}

.white-label-badge--out {
  background: #fbd9e7;
  color: #8a2e57;
}

/* Inline links on light cards: rose is too faint on paper. */
.model-card .inline-link,
.tier--sister .inline-link {
  color: var(--ink);
  text-decoration-color: var(--amber-deep);
}
