/* XealAI website checklist page. Motion off. */
html { scroll-behavior: auto; overflow-x: clip; }

/* Kill site motion from styles.css */
.reveal,
.reveal.in {
  opacity: 1;
  transform: none;
  transition: none;
}
.btn:hover,
.btn-primary:hover,
a.btn:hover {
  transform: none;
}

h1, h2, h3, h4, .card-num, .hero-lead, .section-kicker {
  overflow-wrap: anywhere;
  hyphens: manual;
  text-wrap: pretty;
  text-wrap: balance;
}
h1, h2, h3 {
  max-width: none;
}
p, li, label {
  text-wrap: pretty;
}

.page-hero {
  padding: 2.4rem 0 1.75rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  max-width: 18ch;
  margin-bottom: 0.85rem;
}
.kicker {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-text);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.hero-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 62ch;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.hero-lead + .hero-lead { margin-top: 0; }
.byline {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 62ch) minmax(16.5rem, 22rem);
  gap: 1.35rem 2rem;
  align-items: start;
  justify-content: start;
}
.hero-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: var(--shadow);
}
.hero-panel h2 {
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0 0 0.7rem;
  text-wrap: balance;
}
.hero-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  counter-reset: check-item;
}
.hero-panel li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.45rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
  counter-increment: check-item;
}
.hero-panel li::before {
  content: counter(check-item);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-text);
  line-height: 1.5;
}
.hero-panel-note {
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.subhead {
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0.15rem 0 0.55rem;
  color: var(--ink);
}

@media (max-width: 860px) {
  .hero-layout { grid-template-columns: 1fr; gap: 1.15rem; }
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: start;
  margin: 0 0 1.15rem;
}
.card {
  height: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.25rem 1.3rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.2;
  margin: 0 0 0.55rem;
}
.card-num {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange-text);
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}
.card .lede, .card > p {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
.card .lede:last-child, .card > p:last-child { margin-bottom: 0; }

.card.full { grid-column: 1 / -1; }

.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
  display: grid;
  gap: 0.4rem;
}
.checks li { margin: 0; }
.ck {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}
.ck input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--orange-btn);
  flex-shrink: 0;
}
.ck a { word-break: break-word; }

.ck-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}
.ck-label { display: block; }
.ck-why {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-soft);
  font-weight: 400;
  text-wrap: pretty;
  max-width: 62ch;
}
.subchecks {
  list-style: none;
  padding: 0.35rem 0 0.15rem 1.7rem;
  margin: 0;
  display: grid;
  gap: 0.3rem;
}
.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.protip {
  background: var(--orange-soft);
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 0.7rem 0.85rem;
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}
.protip strong {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  color: var(--orange-text);
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card > p.dfy,
.dfy {
  margin-top: 0.85rem;
  margin-bottom: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.dfy strong { color: var(--ink); font-weight: 700; }

.tools {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.tools li { font-size: 0.95rem; line-height: 1.45; }
.tools a { font-weight: 600; }

/* Infographics */
.viz {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.7rem 0.6rem;
  margin: 0 0 0.75rem;
}
.viz svg { width: 100%; height: auto; display: block; }
.viz-caption {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}

/* CTA cards */
.cta-card h2 { margin-bottom: 0.5rem; }
.cta-actions { margin-top: 0.35rem; }
.form-embed {
  margin: 0.4rem 0 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-height: 280px;
}
.form-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
  background: #fff;
}
.cta-note {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
}

.page-wrap { padding-bottom: 2.25rem; }

.site-header { position: sticky; top: 0; }
/* No empty header gap */
.site-header:empty { min-height: 0; }

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; gap: 1rem; }
  .page-hero { padding: 1.6rem 0 1.2rem; }
  .page-hero h1 { font-size: clamp(1.7rem, 7.6vw, 2.25rem); max-width: none; letter-spacing: -0.03em; }
  .form-embed iframe { height: 400px; }
}

@media (max-width: 779px) {
  .menu-toggle { display: block; }
  .nav { display: none; }
  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: #1a1a1c;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 0.75rem;
  }
}

.related {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: grid;
  gap: 0.25rem;
}
.related li { font-size: 0.9rem; line-height: 1.4; }

.funnel {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0.85rem 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.funnel li {
  background: #121214;
  color: #fff;
  border-radius: 10px;
  padding: 0.85rem 0.6rem;
  text-align: center;
  min-height: 5.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}
.funnel li.sell { background: var(--orange); }
.funnel strong {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #fff;
}
.funnel span {
  font-size: 0.78rem;
  line-height: 1.3;
  color: rgba(243,244,246,0.82);
}
.funnel li.sell span { color: #fff; }

.form-fallback { padding: 0.9rem 0.95rem 1rem; background: #fff; }
.form-fallback .ff-field { margin-bottom: 0.75rem; }
.form-fallback label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
.form-fallback input[type="text"],
.form-fallback input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #9aa0aa;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.form-fallback input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.form-fallback .ff-consent {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}
.form-fallback .btn { width: 100%; justify-content: center; }
.form-embed { min-height: 0; }
.form-embed iframe { display: block; height: 420px; }

@media (max-width: 860px) {
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel li { min-height: 4.8rem; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--orange, #f97316);
  color: #fff;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  border-radius: 6px;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 0.75rem;
  top: 0.75rem;
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.checks input[type="checkbox"]:focus-visible,
.card a:focus-visible,
.hero-panel a:focus-visible,
.cta-actions a:focus-visible,
.hero-copy a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.site-footer .footer-logo img {
  max-width: min(200px, 100%);
  height: auto;
}

/* ===== Hub and step pages (Nov 30) ===== */
.bar { display: block; height: 0.45rem; background: #e8eaee; border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--orange-btn); border-radius: 999px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--orange-text); text-decoration: underline; cursor: pointer; }

/* Hub score card */
.score-card h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.score-big { font-family: "Archivo", sans-serif; font-weight: 900; font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1; margin: 0.2rem 0 0.7rem; color: var(--ink); }
.score-count { font-weight: 600; font-size: 0.95rem; margin: 0.65rem 0 0.35rem; }
.score-next { font-size: 0.92rem; line-height: 1.45; color: var(--ink-soft); margin: 0; }
.score-next a { font-weight: 700; }
.score-reset { margin: 0.6rem 0 0; font-size: 0.84rem; }
.hub-page .hero-copy .cta-actions { margin: 0.4rem 0 0; }

/* Step tiles: 1 / 2 / 4 columns, 8 tiles, rows always full */
.hub-h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 0.4rem 0 0.85rem; }
.step-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin: 0 0 1.15rem; }
@media (min-width: 600px) { .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step-tile { display: flex; flex-direction: column; gap: 0.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.05rem 1.05rem; box-shadow: var(--shadow); color: var(--ink); min-width: 0; }
.step-tile:hover { border-color: var(--orange); color: var(--ink); }
.step-tile:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.tile-num { font-family: "Space Mono", ui-monospace, monospace; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange-text); }
.tile-name { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.15rem; line-height: 1.2; text-wrap: balance; }
.tile-desc { font-size: 0.88rem; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.tile-foot { margin-top: auto; padding-top: 0.45rem; display: grid; gap: 0.4rem; }
.tile-count { font-size: 0.8rem; color: var(--ink-soft); }
.step-tile.is-done .tile-num::after { content: " \2713 done"; }

/* Dark banner CTA (hub and step pages) */
.hub-banner, .step-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; background: #121214; color: #f3f4f6; border-radius: var(--r); padding: 1.2rem 1.3rem; margin: 0 0 1.15rem; }
.hub-banner h2, .step-cta h2 { color: #fff; font-size: clamp(1.2rem, 2.3vw, 1.45rem); line-height: 1.2; margin: 0 0 0.35rem; }
.hub-banner p, .step-cta p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: rgba(243,244,246,0.86); max-width: 62ch; }
.hub-banner a:not(.btn) { color: #ffb38f; text-decoration: underline; }
.hub-banner > div, .step-cta > div { flex: 1 1 22rem; min-width: 0; }
.hub-banner .btn, .step-cta .btn { flex: 0 0 auto; }
.hub-grid { align-items: stretch; }

/* Step pages */
.step-narrow { max-width: 60rem; }
.crumbs { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 0.7rem; }
.crumbs a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.step-hero h1 { max-width: none; }
.step-hero .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem); }
.step-note { font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); margin: 0; max-width: 62ch; }
.step-progress .sp-label { font-family: "Space Mono", ui-monospace, monospace; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--orange-text); margin: 0 0 0.3rem; }
.step-progress .sp-count { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.35rem; margin: 0 0 0.55rem; }
.step-progress .sp-note { font-size: 0.84rem; color: var(--ink-soft); margin: 0.55rem 0 0; line-height: 1.4; }

.chips-wrap { position: sticky; top: var(--hdr, 0px); z-index: 40; background: rgba(255,255,255,0.96); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 1.15rem; }
.chips { display: flex; gap: 0.45rem; overflow-x: auto; padding: 0.6rem 0; scrollbar-width: thin; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.38rem 0.75rem; font-size: 0.84rem; font-weight: 600; color: var(--ink); white-space: nowrap; font-family: inherit; cursor: pointer; line-height: 1.2; }
.chip:hover { border-color: var(--orange); color: var(--ink); }
.chip-count { font-family: "Space Mono", ui-monospace, monospace; font-size: 0.74rem; color: var(--ink-soft); font-weight: 700; }
.chip.is-done { background: var(--orange-soft); border-color: var(--orange); }
.chip-tool { background: #121214; color: #fff; border-color: #121214; }
.chip-tool:hover { color: #fff; }
.step-section { scroll-margin-top: calc(var(--hdr, 0px) + 4rem); margin: 0 0 1.15rem; }
.step-body .card-num { text-transform: uppercase; }

/* Items: why-line under each, collapsed once JS is ready */
.ck-row { display: flex; align-items: flex-start; gap: 0.5rem; justify-content: space-between; }
.ck-row .ck { flex: 1 1 auto; min-width: 0; }
.step-body .checks { gap: 0.55rem; }
.step-body .ck { font-size: 0.95rem; }
.ck-why-btn { flex: 0 0 auto; font: inherit; font-size: 0.74rem; font-weight: 700; color: var(--orange-text); background: var(--orange-soft); border: 1px solid transparent; border-radius: 999px; padding: 0.18rem 0.55rem; cursor: pointer; margin-top: 0.08rem; }
.ck-why-btn[aria-expanded="true"] { border-color: var(--orange); }
.ck-why-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.ck-item > .ck-why { margin: 0.2rem 0 0 1.7rem; }
.ck-ready .ck-item:not(.open) > .ck-why { display: none; }
.ck-item .subchecks { padding-top: 0.45rem; }

.pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.pn-card { display: flex; flex-direction: column; gap: 0.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 0.9rem 1rem; color: var(--ink); box-shadow: var(--shadow); min-width: 0; }
.pn-card:hover { border-color: var(--orange); color: var(--ink); }
.pn-next { text-align: right; }
.pn-dir { font-family: "Space Mono", ui-monospace, monospace; font-size: 0.75rem; font-weight: 700; color: var(--orange-text); text-transform: uppercase; }
.pn-name { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.02rem; line-height: 1.2; text-wrap: balance; }

@media (max-width: 860px) {
  .step-hero .hero-layout { grid-template-columns: 1fr; }
  .hub-banner .btn, .step-cta .btn { width: 100%; justify-content: center; }
}
.email-card { display: grid; grid-template-columns: 1fr; gap: 0.6rem 1.6rem; margin: 0 0 1.15rem; }
.email-card .form-embed { margin: 0; }
@media (min-width: 861px) { .email-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }
.chips [hidden], .ck-row [hidden], .score-card [hidden], .step-progress [hidden] { display: none !important; }
@media (min-width: 861px) { .ck-row { justify-content: flex-start; gap: 0.65rem; } .ck-row .ck { flex: 0 1 auto; } }
