/* IDZ Practice Launch: page components (tp-*). Loaded after the live
   idz-agency design.css and tokens.css. Mobile-first; breakpoints at 640px,
   768px (the theme's own phone/desktop switch), 1024px and 1280px. */

.tp-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sections anchor below the sticky header. */
.tp-page section[id] {
  scroll-margin-top: 72px;
}

/* ---- Hero ----------------------------------------------------------------- */
.tp-hero .hm-hero-actions .v2-link {
  color: var(--tp-ink);
}
.tp-counter {
  display: inline-flex;
  align-items: center;
  gap: var(--tp-gap-xs);
  align-self: flex-start;
  font-size: var(--tp-size-xs);
  font-weight: var(--tp-weight-semibold);
  color: var(--tp-accent-strong);
  background: var(--tp-accent-soft);
  border: 1px solid var(--tp-accent-line);
  border-radius: var(--tp-radius-pill);
  padding: 6px 12px;
}
.tp-counter::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tp-accent);
  flex: none;
}
.tp-counter:empty {
  display: none;
}

/* ---- Built for therapists -------------------------------------------------- */
.tp-features {
  padding-block: var(--tp-section-y);
  display: flex;
  flex-direction: column;
  gap: var(--tp-gap-xl);
}
.tp-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tp-gap-md);
}
@media (min-width: 640px) {
  .tp-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .tp-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--tp-gap-lg);
  }
}
.tp-feature {
  background: var(--tp-surface-raised);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-lg);
  padding: clamp(22px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: var(--tp-gap-sm);
}
.tp-feature .tp-h3 {
  font-size: 20px;
}
.tp-feature p {
  font-size: 15px;
  line-height: var(--tp-leading-body);
  color: var(--tp-text);
  text-wrap: pretty;
}

/* ---- Comparison table ------------------------------------------------------ */
.tp-compare {
  padding-block: var(--tp-section-y);
  display: flex;
  flex-direction: column;
  gap: var(--tp-gap-xl);
}
.tp-table-wrap {
  border-radius: var(--tp-radius-xl);
}
.tp-table-wrap:focus-visible {
  outline: none;
  box-shadow: var(--tp-focus-ring);
}
.tp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.tp-table thead {
  display: none;
}
.tp-table tbody,
.tp-table tr,
.tp-table th,
.tp-table td {
  display: block;
}
.tp-table tr {
  background: var(--tp-surface-raised);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-lg);
  padding: 6px 18px 12px;
  margin-bottom: var(--tp-gap-sm);
}
.tp-table tbody th {
  font-family: var(--tp-font-head);
  font-size: 18px;
  font-weight: var(--tp-weight-bold);
  padding: 12px 0 6px;
  text-align: left;
}
.tp-table td {
  display: grid;
  grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr);
  gap: var(--tp-gap-sm);
  padding: 9px 0;
  border-top: 1px solid var(--tp-line-soft);
  color: var(--tp-text);
}
.tp-table td::before {
  content: attr(data-label);
  font-size: 13px;
  font-weight: var(--tp-weight-semibold);
  color: var(--tp-text-muted);
}
.tp-table td.is-highlight {
  color: var(--tp-ink);
  background: var(--tp-brand-soft);
  margin-inline: -10px;
  padding-inline: 10px;
  border-radius: var(--tp-radius-md);
  border-top-color: transparent;
}
.tp-table td.is-highlight::before {
  color: var(--tp-brand);
}
.tp-table strong {
  font-weight: var(--tp-weight-semibold);
  color: var(--tp-ink);
}
@media (min-width: 900px) {
  .tp-table-wrap {
    background: var(--tp-surface-raised);
    border: 1px solid var(--tp-line);
    overflow-x: auto;
  }
  .tp-table thead {
    display: table-header-group;
  }
  .tp-table tbody {
    display: table-row-group;
  }
  .tp-table tr {
    display: table-row;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
  }
  .tp-table th,
  .tp-table td {
    display: table-cell;
    padding: 18px 20px;
    vertical-align: top;
    border-top: 1px solid var(--tp-line);
    margin: 0;
    border-radius: 0;
  }
  .tp-table thead th,
  .tp-table thead td {
    border-top: 0;
    background: var(--tp-surface-sunken);
    font-family: var(--tp-font-head);
    font-size: 16px;
    font-weight: var(--tp-weight-bold);
    text-align: left;
    color: var(--tp-ink);
  }
  .tp-table td::before {
    content: none;
  }
  .tp-table tbody th {
    font-size: 16px;
    width: 14%;
  }
  .tp-table .is-highlight {
    background: var(--tp-brand-soft);
    color: var(--tp-ink);
  }
  .tp-table thead .is-highlight {
    background: var(--tp-brand);
    color: var(--tp-on-brand);
  }
  .tp-table tbody th {
    padding: 18px 20px;
  }
  .tp-table td.is-highlight {
    margin: 0;
    padding-inline: 20px;
    border-radius: 0;
    border-top-color: var(--tp-line);
  }
}
.tp-footnote {
  font-size: 13px;
  line-height: var(--tp-leading-body);
  color: var(--tp-text-muted);
  max-width: 60em;
}

/* ---- Who's behind it ---------------------------------------------------------- */
.tp-about-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- Order card ------------------------------------------------------------ */
/* The theme styles every span in .hm-founding as body text; the tier heading keeps
   the strong's coral. */
.tp-order .hm-founding strong span {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ---- Price ladder (inside the plum order band) ------------------------------ */
.tp-ladder {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tp-ladder-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    'status label price'
    'range range range'
    'cond cond cond';
  gap: 2px var(--tp-gap-sm);
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--tp-order-line);
}
.tp-ladder-status {
  grid-area: status;
  font-family: var(--tp-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--tp-order-line);
  border-radius: var(--tp-radius-pill);
  padding: 3px 8px;
  align-self: center;
}
.tp-ladder-label {
  grid-area: label;
  font-weight: var(--tp-weight-semibold);
  font-size: 16px;
}
.tp-ladder-price {
  grid-area: price;
  font-family: var(--tp-font-head);
  font-weight: var(--tp-weight-semibold);
  font-size: 22px;
}
.tp-ladder-range {
  grid-area: range;
  font-size: 13px;
  color: var(--tp-order-muted);
}
.tp-ladder-condition {
  grid-area: cond;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tp-order-muted);
}
.tp-ladder-row.is-current {
  background: var(--tp-surface);
  color: var(--tp-ink);
  border-radius: var(--tp-radius-lg);
  padding: 16px 18px;
  border-top-color: transparent;
  margin: 6px 0;
}
.tp-ladder-row.is-current + .tp-ladder-row {
  border-top-color: transparent;
}
.tp-ladder-row.is-current .tp-ladder-status {
  background: var(--tp-accent);
  border-color: var(--tp-accent);
  color: var(--tp-on-accent);
}
.tp-ladder-row.is-current .tp-ladder-range,
.tp-ladder-row.is-current .tp-ladder-condition {
  color: var(--tp-text);
}
.tp-ladder-row.is-filled .tp-ladder-price {
  text-decoration: line-through;
  opacity: 0.75;
}
.tp-ladder-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--tp-order-muted);
}

/* ---- Sticky mobile CTA ------------------------------------------------------ */
.tp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--tp-surface-raised);
  border-top: 1px solid var(--tp-line);
  box-shadow: var(--tp-shadow-sticky);
  padding: 10px var(--tp-gutter) calc(10px + env(safe-area-inset-bottom));
}
.tp-sticky[hidden] {
  display: none;
}
.tp-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tp-gap-sm);
  max-width: var(--tp-container);
  margin-inline: auto;
}
.tp-sticky-price {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.3;
  color: var(--tp-text-muted);
}
.tp-sticky-price strong {
  font-family: var(--tp-font-head);
  font-size: 20px;
  color: var(--tp-ink);
}
@media (min-width: 768px) {
  .tp-sticky {
    display: none !important;
  }
}

/* ---- Colour-mode toggle (inserted into the theme header by practice.js) ----- */
.tp-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-pill);
  background: transparent;
  color: var(--tp-ink);
  cursor: pointer;
  transition:
    background var(--tp-duration) var(--tp-ease),
    border-color var(--tp-duration) var(--tp-ease);
}
.tp-theme-toggle:hover {
  background: var(--tp-surface-sunken);
  border-color: var(--tp-line-input);
}
.tp-theme-toggle svg {
  width: 18px;
  height: 18px;
}
.tp-theme-toggle .tp-icon-moon,
html[data-tp-theme='dark'] .tp-theme-toggle .tp-icon-sun {
  display: none;
}
html[data-tp-theme='dark'] .tp-theme-toggle .tp-icon-moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  html[data-tp-theme='auto'] .tp-theme-toggle .tp-icon-sun {
    display: none;
  }
  html[data-tp-theme='auto'] .tp-theme-toggle .tp-icon-moon {
    display: block;
  }
}
/* Phones: the theme header has no room beside the logo, order button and menu;
   colour follows the visitor's system setting there. */
@media (max-width: 767px) {
  .tp-theme-toggle {
    display: none;
  }
}

/* ---- Wide screens (1280px+) ------------------------------------------------- */
@media (min-width: 1280px) {
  .tp-features,
  .tp-compare {
    gap: var(--tp-gap-2xl) 0;
  }
  .tp-feature {
    padding: 30px;
  }
}

/* ---------------------------------------------------------------------------
   Sub-pages: /<page>/guarantee/ and /<page>/thank-you/. The theme's own gu-*
   and ty-* styles do the layout; these rules add dark mode for its hard-coded
   white panels, the definition list, and hosted/DIY wording.
   --------------------------------------------------------------------------- */
.tp-subpage [data-tp-only='diy'] {
  display: none;
}
.tp-subpage[data-tp-audience='diy'] [data-tp-only='launch'] {
  display: none;
}
.tp-subpage[data-tp-audience='diy'] [data-tp-only='diy'] {
  display: inline;
}
.tp-subpage [hidden],
body.page-practice .v2-header .v2-btn-sm[hidden],
body.page-practice .v2-footer a[hidden] {
  display: none !important;
}
body.page-practice .gu-clock,
body.page-practice .ty-list {
  background: var(--tp-surface-raised);
}
body.page-practice .ty-list li {
  border-bottom-color: var(--tp-line-soft);
}
.tp-clock-list,
.tp-clock-list dd {
  margin: 0;
}
.gu-terms-head .v2-eyebrow {
  margin: 0;
}
.gu-term strong {
  color: var(--tp-ink);
  font-weight: 600;
}
.gu-term a,
.tp-ty-promises a {
  color: var(--tp-brand);
}
.tp-ty-next {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tp-ty-h2 {
  font-family: var(--v2-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}
.tp-ty-promises {
  font-size: 16px;
  line-height: 1.6;
  color: var(--tp-text);
  text-wrap: pretty;
}
.tp-ty-promises strong {
  color: var(--tp-ink);
  font-weight: 600;
}
@media (max-width: 559px) {
  .tp-subpage .gu-clock-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* Small coral labels inherited from the theme fall below 4.5:1 (axe, 2 Nov 2026):
   the guarantee badge's "WORK DAYS" and the thank-you step numbers. */
body.page-practice .v2-guarantee-icon small,
body.page-practice .ty-list .n {
  color: var(--tp-accent-eyebrow);
}
