/*
  Practical Tools catalog and product pages.
  Loaded only on /tools/ routes, after site.css. Uses the site tokens; the
  Practical Tools route color (Crimson) marks this section of the site, and
  never carries text.
*/

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tools-page {
  --route: var(--route-use);
}

/* Shared small label with a route rule, used as an eyebrow on tools pages. */
.tools-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--plum);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tools-kicker::before {
  width: 32px;
  height: 3px;
  flex: none;
  background: var(--route);
  content: "";
}

.section-dark .tools-kicker {
  color: var(--on-dark-muted);
}

/* Catalog */
.tools-hero {
  padding: clamp(80px, 11vw, 140px) 0 clamp(56px, 7vw, 84px);
}

.tools-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
}

.tools-hero h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(3rem, 6.6vw, 5.9rem);
}

.tools-intro {
  margin: 0;
  padding-left: 24px;
  border-left: 2px solid var(--route);
  color: var(--smoke);
  font-size: 1.06rem;
}

.tools-shelf {
  padding-bottom: clamp(80px, 10vw, 130px);
}

.shelf-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--smoke);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shelf-rule h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--slate);
  font-family: "Inter", Arial, sans-serif;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1.4;
}

/* Status dot is paired with the words "Available now". */
.shelf-rule h2::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  content: "";
}

.product-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color 180ms ease;
}

.product-feature:hover {
  border-color: var(--plum);
}

.product-feature-media {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(60% 52% at 50% 54%, rgba(89, 6, 86, 0.6), transparent 72%),
    var(--obsidian);
}

.product-feature-media img {
  width: min(100%, 430px);
  border-radius: 4px;
  outline: 1px solid rgba(250, 246, 241, 0.12);
}

.product-feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 64px);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 26px;
  color: var(--smoke);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-name {
  margin-bottom: 6px;
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
}

.product-fullname {
  margin: 0 0 22px;
  color: var(--smoke);
  font-size: 0.9rem;
}

.product-outcome {
  margin: 0 0 22px;
  color: var(--slate);
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

.product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 30px;
  padding: 0;
  color: var(--smoke);
  font-size: 0.88rem;
  list-style: none;
}

.product-facts li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.product-facts li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--route);
  content: "";
}

.product-buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--smoke);
  font-size: 0.9rem;
}

.product-price strong {
  color: var(--obsidian);
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
}

/* The CTA's hit area covers the whole card, so the card and the CTA share one link. */
.stretched-link::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
}

.product-feature .stretched-link:hover {
  transform: none;
}

.tools-note {
  background: var(--quartz);
}

.tools-note-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
}

.tools-note h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.tools-note-grid > div > p:last-of-type {
  max-width: 460px;
  color: var(--smoke);
}

.criteria-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  counter-reset: criteria;
}

.criteria-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
  counter-increment: criteria;
}

.criteria-list li::before {
  align-self: start;
  padding-bottom: 6px;
  color: var(--plum);
  background: linear-gradient(var(--ember), var(--ember)) left bottom / 16px 2px no-repeat;
  content: "0" counter(criteria);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
}

/* Product page */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 18px;
  color: var(--smoke);
  font-size: 0.85rem;
}

.breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--plum);
  font-weight: 650;
  text-underline-offset: 4px;
}

.product-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.product-hero h1 {
  font-size: clamp(2.9rem, 5.6vw, 5.2rem);
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--slate);
  font-size: 0.9rem;
  list-style: none;
}

.trust-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-points li::before {
  color: var(--plum);
  content: "✓";
  font-weight: 800;
}

.product-stage {
  position: relative;
  margin: 0;
  padding: clamp(56px, 6vw, 76px) clamp(18px, 3.4vw, 44px) clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(62% 55% at 55% 58%, rgba(89, 6, 86, 0.62), transparent 74%),
    var(--obsidian);
}

.stage-label {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-stage img {
  width: 100%;
  border-radius: 8px;
  outline: 1px solid rgba(250, 246, 241, 0.14);
}

.outcome-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.outcome-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.outcome-list li {
  display: grid;
  gap: 4px;
  padding: 30px clamp(18px, 3vw, 36px) 30px 0;
}

.outcome-list li + li {
  padding-left: clamp(18px, 3vw, 36px);
  border-left: 1px solid var(--line);
}

.outcome-list li::before {
  width: 28px;
  height: 3px;
  margin-bottom: 14px;
  content: "";
}

.outcome-list li:nth-child(1)::before { background: var(--magenta); }
.outcome-list li:nth-child(2)::before { background: var(--crimson); }
.outcome-list li:nth-child(3)::before { background: var(--ember); }

.outcome-list strong {
  color: var(--obsidian);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 560;
  line-height: 1.15;
}

.outcome-list span {
  color: var(--smoke);
  font-size: 0.92rem;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.split-heading h2 {
  margin-bottom: 0;
}

.split-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--smoke);
}

.proof-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-gallery figure {
  margin: 0;
}

.proof-gallery a {
  display: block;
  border-radius: 6px;
}

.proof-gallery img {
  width: 100%;
  border-radius: 6px;
  outline: 1px solid var(--line);
}

.proof-gallery figcaption {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding-top: 16px;
  color: var(--slate);
  font-weight: 600;
}

.proof-gallery figcaption span {
  color: var(--plum);
  font-family: "Fraunces", Georgia, serif;
}

.proof-gallery figcaption small {
  grid-column: 2;
  color: var(--smoke);
  font-size: 0.84rem;
  font-weight: 400;
}

.question-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

.question-grid h2 {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
}

.question-limit {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-quiet);
  font-size: 0.92rem;
}

.baseline-figure {
  margin: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
}

.baseline-figure svg {
  width: 100%;
  overflow: visible;
}

.baseline-figure figcaption {
  margin-top: 14px;
  color: var(--on-dark-quiet);
  font-size: 0.8rem;
}

.bl-axis {
  stroke: rgba(250, 246, 241, 0.28);
  stroke-width: 1;
}

.bl-line {
  fill: none;
  stroke: var(--parchment);
  stroke-linejoin: round;
  stroke-width: 3;
}

.bl-cushion {
  stroke: rgba(250, 246, 241, 0.55);
  stroke-dasharray: 6 6;
  stroke-width: 1.5;
}

.bl-low {
  fill: var(--crimson);
  stroke: var(--obsidian);
  stroke-width: 3;
}

.bl-tick {
  stroke: var(--ember);
  stroke-width: 3;
  stroke-linecap: round;
}

.bl-text {
  fill: var(--on-dark-muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
}

.bl-text.strong {
  fill: var(--parchment);
  font-weight: 650;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.split-layout h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
}

.split-layout > div > p:last-child {
  color: var(--smoke);
}

.check-list,
.file-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.check-list {
  counter-reset: check;
}

.check-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: check;
}

.check-list li::before {
  grid-row: span 2;
  align-self: start;
  padding-bottom: 6px;
  color: var(--plum);
  background: linear-gradient(var(--route), var(--route)) left bottom / 16px 2px no-repeat;
  content: "0" counter(check);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
}

.check-list strong,
.file-list strong {
  color: var(--obsidian);
}

.check-list span {
  color: var(--smoke);
}

.file-list li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.file-no {
  color: var(--plum);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
}

.file-list li div {
  display: grid;
  gap: 3px;
}

.file-list li div span {
  color: var(--smoke);
}

.file-list li div small {
  color: var(--smoke);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.file-type {
  padding: 4px 10px;
  border: 1px solid rgba(26, 23, 33, 0.28);
  border-radius: 999px;
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.boundary-card {
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--magenta);
  border-radius: var(--radius-md);
  background: var(--white);
}

.boundary-card.payhip {
  border-top-color: var(--slate);
  background: var(--quartz);
}

.boundary-label {
  margin: 0 0 12px;
  color: var(--smoke);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.boundary-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.boundary-card p:last-child {
  margin: 0;
  color: var(--slate);
}

.purchase-panel {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.purchase-box {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(250, 246, 241, 0.22);
  border-radius: var(--radius-md);
}

.purchase-box .button {
  width: 100%;
}

.conversion-panel .purchase-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  color: rgba(250, 246, 241, 0.8);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.purchase-price strong {
  color: var(--parchment);
  font-family: "Fraunces", Georgia, serif;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: none;
}

.conversion-panel .purchase-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  text-align: center;
}

.conversion-panel .purchase-support {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(250, 246, 241, 0.2);
  font-size: 0.86rem;
}

.purchase-support a {
  color: var(--parchment);
  font-weight: 650;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .tools-hero-grid,
  .product-feature,
  .tools-note-grid,
  .product-hero-grid,
  .split-heading,
  .question-grid,
  .split-layout,
  .purchase-panel {
    grid-template-columns: 1fr;
  }

  .tools-hero-grid,
  .split-heading {
    align-items: start;
  }
}

@media (max-width: 720px) {
  .outcome-list,
  .proof-gallery,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .outcome-list li,
  .outcome-list li + li {
    padding: 22px 0;
    border-left: 0;
  }

  .outcome-list li + li {
    border-top: 1px solid var(--line);
  }

  .product-stage {
    padding-top: 58px;
  }

  .file-list li {
    grid-template-columns: 40px 1fr;
  }

  .file-type {
    grid-column: 2;
    justify-self: start;
  }
}

.purchase-panel h2 + p {
  margin-top: 18px;
}

.conversion-panel .purchase-policy {
  margin: 12px 0 0;
  font-size: 0.86rem;
}

.purchase-policy a {
  color: var(--parchment);
  font-weight: 650;
  text-underline-offset: 4px;
}
