/* ==========================================================================
   Topic Hatch — global stylesheet
   Every selector is scoped with a `th-` prefix so it cannot collide with a
   host theme or plugin. Mobile-first, 360px to 1440px+.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  --th-ink: #0b1220;
  --th-primary: #5b3df5;
  --th-primary-dark: #4326d4;
  --th-accent: #c6f432;
  --th-bg: #f6f5ff;
  --th-surface: #ffffff;
  --th-text: #1b2236;
  --th-muted: #5a6478;
  --th-border: #e3e1f5;

  --th-primary-soft: #ece8ff;
  --th-accent-ink: #0b1220;
  --th-success: #1f9d63;

  --th-radius-sm: 10px;
  --th-radius: 14px;
  --th-radius-lg: 20px;
  --th-radius-pill: 999px;

  --th-shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05);
  --th-shadow: 0 12px 30px -18px rgba(11, 18, 32, 0.28);
  --th-shadow-lg: 0 30px 60px -28px rgba(11, 18, 32, 0.35);
  --th-glow: 0 0 0 1px rgba(91, 61, 245, 0.16), 0 26px 60px -30px rgba(91, 61, 245, 0.55);

  --th-font-head: "Sora", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --th-font-body: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --th-max: 1180px;
  --th-pad: 20px;
  --th-header-h: 72px;
}

/* -------------------------------------------------------------------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--th-header-h) + 16px);
}

body.th-body {
  margin: 0;
  background: var(--th-bg);
  color: var(--th-text);
  font-family: var(--th-font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--th-font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--th-ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--th-primary-dark);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--th-primary);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0 0 1rem;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--th-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--th-accent);
  color: var(--th-ink);
}

/* ------------------------------------------------------------- helpers/atoms */
.th-container {
  width: 100%;
  max-width: var(--th-max);
  margin: 0 auto;
  padding: 0 var(--th-pad);
}

.th-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;
}

.th-muted {
  color: var(--th-muted);
}

.th-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--th-ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--th-radius-sm) 0;
  font-weight: 600;
}

.th-skip:focus {
  left: 0;
  color: #fff;
}

.th-main {
  display: block;
}

/* ------------------------------------------------------------------ buttons */
.th-btn {
  --th-btn-bg: var(--th-primary);
  --th-btn-fg: #fff;
  --th-btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--th-radius-pill);
  background: var(--th-btn-bg);
  color: var(--th-btn-fg);
  border: 1px solid var(--th-btn-border);
  font-family: var(--th-font-body);
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1.1;
  cursor: pointer;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.th-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--th-shadow);
}

.th-btn:active {
  transform: translateY(0);
}

.th-btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.2s ease;
}

.th-btn:hover .th-btn__icon {
  transform: translateX(3px);
}

.th-btn--primary {
  --th-btn-bg: var(--th-primary);
}
.th-btn--primary:hover {
  --th-btn-bg: var(--th-primary-dark);
  color: #fff;
}

.th-btn--accent {
  --th-btn-bg: var(--th-accent);
  --th-btn-fg: var(--th-ink);
}
.th-btn--accent:hover {
  --th-btn-bg: #d4ff49;
  color: var(--th-ink);
}

.th-btn--ghost {
  --th-btn-bg: transparent;
  --th-btn-fg: #fff;
  --th-btn-border: rgba(255, 255, 255, 0.4);
}
.th-btn--ghost:hover {
  --th-btn-bg: rgba(255, 255, 255, 0.12);
  --th-btn-border: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.th-btn--outline {
  --th-btn-bg: transparent;
  --th-btn-fg: var(--th-primary-dark);
  --th-btn-border: var(--th-border);
  box-shadow: var(--th-shadow-sm);
}
.th-btn--outline:hover {
  --th-btn-border: var(--th-primary);
  color: var(--th-primary-dark);
}

.th-btn--dark {
  --th-btn-bg: var(--th-ink);
  --th-btn-fg: #fff;
}
.th-btn--dark:hover {
  --th-btn-bg: #16213b;
  color: #fff;
}

.th-btn--sm {
  padding: 10px 16px;
  font-size: 0.88rem;
}

.th-btn--lg {
  padding: 17px 30px;
  font-size: 1.05rem;
}

/* -------------------------------------------------------------------- header */
.th-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.th-header.is-stuck {
  border-bottom-color: var(--th-border);
  box-shadow: 0 10px 30px -24px rgba(11, 18, 32, 0.5);
}

.th-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--th-header-h);
}

.th-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--th-ink);
  font-family: var(--th-font-head);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}
.th-brand:hover {
  color: var(--th-ink);
}
.th-brand__mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.th-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.th-nav__item {
  position: relative;
}

.th-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--th-ink);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--th-radius-pill);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.th-nav__link:hover {
  background: var(--th-primary-soft);
  color: var(--th-primary-dark);
}

.th-nav__chev {
  display: inline-flex;
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
  opacity: 0.6;
}
.th-nav__chev svg {
  width: 14px;
  height: 14px;
}
.th-nav__item.is-open > .th-nav__link {
  background: var(--th-primary-soft);
  color: var(--th-primary-dark);
}
.th-nav__item.is-open > .th-nav__link .th-nav__chev {
  transform: rotate(90deg) translateY(-2px);
}

.th-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.th-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--th-border);
  background: var(--th-surface);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.th-burger__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--th-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.th-burger[aria-expanded="true"] .th-burger__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.th-burger[aria-expanded="true"] .th-burger__bar:nth-child(2) {
  opacity: 0;
}
.th-burger[aria-expanded="true"] .th-burger__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ----------------------------------------------------------------- mega menu */
.th-mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(980px, calc(100vw - 40px));
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  box-shadow: var(--th-shadow-lg);
  padding: 26px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.th-nav__item--has-menu.is-open > .th-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.th-mega__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.05fr;
  gap: 24px;
}

.th-mega--narrow {
  width: min(760px, calc(100vw - 40px));
}
.th-mega__inner--grid {
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
}
.th-mega__inner--grid .th-mega__list--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}

.th-mega__coltitle {
  font-family: var(--th-font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--th-muted);
  margin: 0 0 10px;
}

.th-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.th-mega__link {
  display: block;
  padding: 9px 11px;
  border-radius: var(--th-radius-sm);
  color: var(--th-text);
  transition: background 0.15s ease, transform 0.15s ease;
}
.th-mega__link:hover {
  background: var(--th-bg);
  transform: translateX(2px);
  color: var(--th-ink);
}
.th-mega__name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--th-ink);
}
.th-mega__short {
  display: block;
  font-size: 0.82rem;
  color: var(--th-muted);
  line-height: 1.4;
}
.th-mega__link--row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.th-mega__ico {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--th-primary-soft);
  color: var(--th-primary-dark);
}
.th-mega__ico svg {
  width: 17px;
  height: 17px;
}

.th-mega__allcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 20px;
  border-radius: var(--th-radius);
  background: linear-gradient(160deg, #141c33, var(--th-ink));
  color: #fff;
}
.th-mega__allcard:hover {
  color: #fff;
  box-shadow: var(--th-glow);
}
.th-mega__allicon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(198, 244, 50, 0.16);
  color: var(--th-accent);
}
.th-mega__alltitle {
  font-family: var(--th-font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.th-mega__allbody {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}
.th-mega__alllink {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--th-accent);
  font-weight: 600;
  font-size: 0.86rem;
}
.th-mega__alllink svg {
  width: 15px;
  height: 15px;
}

.th-mega__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px -26px -26px;
  padding: 16px 26px;
  border-top: 1px solid var(--th-border);
  background: var(--th-bg);
  border-radius: 0 0 var(--th-radius-lg) var(--th-radius-lg);
}
.th-mega__bar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--th-muted);
  font-weight: 500;
}

.th-mega--menu {
  width: 280px;
  padding: 14px;
}
.th-mega--menu .th-mega__inner {
  display: block;
}

/* --------------------------------------------------------------------- hero */
.th-hero {
  position: relative;
  background: radial-gradient(120% 120% at 12% 0%, #17213c 0%, var(--th-ink) 55%, #05090f 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.th-hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(46% 60% at 22% 30%, rgba(91, 61, 245, 0.55), transparent 70%),
    radial-gradient(34% 50% at 82% 8%, rgba(198, 244, 50, 0.18), transparent 70%);
  filter: blur(4px);
  z-index: -1;
}
.th-hero__inner {
  padding: 76px 20px 72px;
}
.th-hero__title {
  color: #fff;
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  max-width: 20ch;
  margin-bottom: 0.4em;
}
.th-hero__lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2.1vw, 1.24rem);
  max-width: 58ch;
  margin-bottom: 1.6rem;
}
.th-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.th-hero__note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}
.th-hero--page .th-hero__inner {
  padding: 44px 20px 58px;
}
.th-hero--page .th-hero__title {
  font-size: clamp(1.85rem, 4.4vw, 2.9rem);
  max-width: 24ch;
}

.th-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--th-font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--th-primary-dark);
  margin: 0 0 14px;
}
.th-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.th-eyebrow--onDark {
  color: var(--th-accent);
}

/* hero visual: dashboard mockup */
.th-mock {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--th-radius-lg);
  padding: 18px;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
}
.th-mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
}
.th-mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.th-mock__dot--lime {
  background: var(--th-accent);
}
.th-mock__title {
  margin-left: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}
.th-mock__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.th-mock__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--th-radius-sm);
}
.th-mock__label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  min-width: 108px;
}
.th-mock__meter {
  flex: 1;
  height: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.th-mock__fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--th-primary), #8b78ff);
}
.th-mock__fill--lime {
  background: linear-gradient(90deg, #a9d81f, var(--th-accent));
}
.th-mock__val {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  min-width: 54px;
  text-align: right;
}

/* ----------------------------------------------------------------- sections */
.th-section {
  padding: 72px 0;
}
.th-section--tight {
  padding: 48px 0;
}
.th-section--surface {
  background: var(--th-surface);
}
.th-section--ink {
  background: var(--th-ink);
  color: #fff;
}
.th-section--ink h2,
.th-section--ink h3 {
  color: #fff;
}
.th-section--soft {
  background: linear-gradient(180deg, #fff, var(--th-bg));
}

.th-head {
  max-width: 760px;
  margin-bottom: 44px;
}
.th-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.th-head--center .th-eyebrow {
  justify-content: center;
}
.th-head__title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin-bottom: 0.45em;
}
.th-head__lead {
  font-size: 1.06rem;
  color: var(--th-muted);
  margin: 0;
}

.th-grid {
  display: grid;
  gap: 22px;
}
.th-grid--2 {
  grid-template-columns: 1fr;
}
.th-grid--3 {
  grid-template-columns: 1fr;
}
.th-grid--4 {
  grid-template-columns: 1fr;
}
.th-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

/* -------------------------------------------------------------------- cards */
.th-card {
  display: flex;
  flex-direction: column;
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  overflow: hidden;
  box-shadow: var(--th-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.th-card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--th-shadow);
  border-color: #cfc9f2;
}
.th-card__visual {
  background: linear-gradient(160deg, #efeaff, #f8f7ff);
  border-bottom: 1px solid var(--th-border);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 138px;
}
.th-card__visual svg {
  width: 100%;
  max-width: 190px;
  height: auto;
}
.th-card__inner {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.th-card__eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--th-primary-dark);
  margin: 0 0 8px;
}
.th-card__title {
  font-size: 1.16rem;
  margin-bottom: 0.4em;
}
.th-card__body {
  color: var(--th-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.th-card__foot {
  margin-top: auto;
  font-weight: 600;
  color: var(--th-primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
}
.th-card__foot svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.th-card--link:hover .th-card__foot svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------- chips */
.th-chipstrip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.th-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--th-radius-pill);
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--th-text);
  box-shadow: var(--th-shadow-sm);
}
a.th-chip:hover {
  border-color: var(--th-primary);
  color: var(--th-primary-dark);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------- ticks */
.th-ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.th-ticks__item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.th-ticks__icon {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--th-accent);
  color: var(--th-ink);
  margin-top: 2px;
}
.th-ticks__item span {
  color: var(--th-muted);
}
.th-ticks--tight .th-ticks__icon {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------- offer cards */
.th-offers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.th-offer {
  position: relative;
  padding: 32px;
  border-radius: var(--th-radius-lg);
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  box-shadow: var(--th-shadow-sm);
}
.th-offer--featured {
  background: linear-gradient(165deg, #161f39, var(--th-ink));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--th-glow);
}
.th-offer--featured h3 {
  color: #fff;
}
.th-offer__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--th-radius-pill);
  background: var(--th-accent);
  color: var(--th-ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.th-offer__title {
  font-size: 1.4rem;
  margin-bottom: 0.3em;
}
.th-offer__price {
  font-family: var(--th-font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--th-primary);
  margin: 0 0 16px;
}
.th-offer--featured .th-offer__price {
  color: var(--th-accent);
}
.th-offer__body {
  color: var(--th-muted);
  margin-bottom: 20px;
}
.th-offer--featured .th-offer__body,
.th-offer--featured .th-ticks__item span {
  color: rgba(255, 255, 255, 0.78);
}
.th-offer__actions {
  margin-top: 24px;
}

/* -------------------------------------------------------------- process steps */
.th-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  counter-reset: th-step;
}
.th-step {
  position: relative;
  padding: 30px 26px;
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  box-shadow: var(--th-shadow-sm);
}
.th-step__num {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--th-ink);
  color: var(--th-accent);
  font-family: var(--th-font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.th-step__title {
  font-size: 1.2rem;
  margin-bottom: 0.4em;
}
.th-step__body {
  color: var(--th-muted);
  margin: 0;
}

/* --------------------------------------------------------------- industry tabs */
.th-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 0;
  list-style: none;
}
.th-tabs__tab {
  padding: 11px 18px;
  border-radius: var(--th-radius-pill);
  border: 1px solid var(--th-border);
  background: var(--th-surface);
  color: var(--th-text);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.th-tabs__tab[aria-selected="true"] {
  background: var(--th-ink);
  color: #fff;
  border-color: var(--th-ink);
}
.th-tabpanel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.th-tabpanel[hidden] {
  display: none;
}
.th-tabpanel__title {
  font-size: 1.5rem;
}
.th-tabpanel__pitch {
  font-weight: 600;
  color: var(--th-primary-dark);
  margin-bottom: 0.7em;
}
.th-tabpanel__visual {
  padding: 26px;
  border-radius: var(--th-radius-lg);
  background: linear-gradient(160deg, #efeaff, #f8f7ff);
  border: 1px solid var(--th-border);
}

/* ------------------------------------------------------------------ pillars */
.th-pillar {
  padding: 30px 26px;
  border-radius: var(--th-radius-lg);
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  box-shadow: var(--th-shadow-sm);
}
.th-pillar__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--th-primary-soft);
  color: var(--th-primary-dark);
  margin-bottom: 18px;
}
.th-pillar__title {
  font-size: 1.2rem;
}
.th-pillar__body {
  color: var(--th-muted);
  margin: 0;
}

/* ------------------------------------------------------- founding client band */
.th-founding {
  position: relative;
  border-radius: var(--th-radius-lg);
  padding: 44px;
  background: linear-gradient(150deg, #1b2544, var(--th-ink) 70%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--th-shadow-lg);
}
.th-founding__glow {
  position: absolute;
  inset: auto -10% -60% auto;
  width: 60%;
  height: 320px;
  background: radial-gradient(closest-side, rgba(198, 244, 50, 0.22), transparent);
}
.th-founding__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.th-founding h2 {
  color: #fff;
}
.th-founding__lead {
  color: rgba(255, 255, 255, 0.8);
}
.th-founding__spots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.th-founding__spot {
  padding: 12px 16px;
  border-radius: var(--th-radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.8);
}
.th-founding__spot strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------- blog cards */
.th-post {
  display: flex;
  flex-direction: column;
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  overflow: hidden;
  box-shadow: var(--th-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.th-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--th-shadow);
}
.th-post__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, #efeaff, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--th-border);
}
.th-post__media svg {
  width: 62%;
  max-width: 220px;
}
.th-post__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.th-post__meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--th-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.th-post__title {
  font-size: 1.1rem;
  margin-bottom: 0.4em;
}
.th-post__excerpt {
  color: var(--th-muted);
  font-size: 0.93rem;
  margin: 0 0 1rem;
}
.th-post__more {
  margin-top: auto;
  font-weight: 600;
  color: var(--th-primary-dark);
  font-size: 0.9rem;
}

/* ---------------------------------------------------------- sitemap lists */
.th-sitemap {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.th-sitemap li {
  padding: 6px 0 0;
  border-top: 1px solid var(--th-border);
  font-size: 0.95rem;
}
.th-sitemap li:first-child {
  border-top: 0;
  padding-top: 0;
}
.th-sitemap a {
  color: var(--th-text);
  text-decoration: none;
  line-height: 1.4;
}
.th-sitemap a:hover {
  color: var(--th-primary-dark);
  text-decoration: underline;
}

/* -------------------------------------------------------------- quote block */
.th-quote {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 40px;
  border-radius: var(--th-radius-lg);
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  box-shadow: var(--th-shadow);
}
.th-quote__mark {
  font-family: var(--th-font-head);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--th-primary);
}
.th-quote blockquote {
  margin: 0;
  font-family: var(--th-font-head);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.35;
  color: var(--th-ink);
}
.th-quote__by {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--th-muted);
}
.th-quote__by strong {
  color: var(--th-ink);
  display: block;
}
.th-quote__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--th-primary), #8b78ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--th-font-head);
  font-weight: 700;
  font-size: 1.6rem;
}

/* ---------------------------------------------------------------- accordion */
.th-acc {
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  background: var(--th-surface);
  overflow: hidden;
}
.th-acc__item + .th-acc__item {
  border-top: 1px solid var(--th-border);
}
.th-acc__heading {
  margin: 0;
}
.th-acc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--th-font-head);
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--th-ink);
  transition: background 0.18s ease;
}
.th-acc__trigger:hover {
  background: var(--th-bg);
}
.th-acc__icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--th-primary-soft);
  color: var(--th-primary-dark);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.th-acc__icon svg {
  width: 16px;
  height: 16px;
}
.th-acc__item.is-open .th-acc__icon {
  transform: rotate(180deg);
  background: var(--th-primary);
  color: #fff;
}
.th-acc__panel {
  padding: 0 24px 24px;
}
.th-acc__answer {
  color: var(--th-muted);
  margin: 0;
}
.th-acc__answer p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ CTA band */
.th-cta {
  position: relative;
  background: linear-gradient(135deg, var(--th-primary-dark), var(--th-primary) 55%, #7a5bff);
  color: #fff;
  overflow: hidden;
}
.th-cta::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(198, 244, 50, 0.28), transparent);
}
.th-cta__inner {
  position: relative;
  padding: 64px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.th-cta__title {
  color: #fff;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  margin-bottom: 0.35em;
}
.th-cta__lead {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 56ch;
}
.th-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------------------------------------------- breadcrumbs */
.th-crumbs {
  margin-bottom: 18px;
}
.th-crumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
}
.th-crumbs__item a,
.th-crumbs__item[aria-current] {
  color: rgba(255, 255, 255, 0.72);
}
.th-crumbs__item a:hover {
  color: #fff;
}
.th-crumbs__sep {
  color: rgba(255, 255, 255, 0.4);
}

/* ------------------------------------------------------------------- prose */
.th-prose {
  max-width: 760px;
  font-size: 1.03rem;
  color: var(--th-text);
}
.th-prose h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.th-prose h3 {
  font-size: 1.22rem;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}
.th-prose p {
  color: #333c52;
}
.th-prose ul:not(.th-ticks) {
  padding-left: 1.2rem;
  color: #333c52;
}
.th-prose li {
  margin-bottom: 0.4em;
}
.th-prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------- footer */
.th-footer {
  background: var(--th-ink);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 60px;
  font-size: 0.92rem;
}
.th-footer a {
  color: rgba(255, 255, 255, 0.72);
}
.th-footer a:hover {
  color: var(--th-accent);
}
.th-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding-bottom: 44px;
}
.th-footer__blurb {
  margin: 18px 0;
  max-width: 40ch;
  line-height: 1.6;
}
.th-brand--footer {
  color: #fff;
}
.th-brand--footer:hover {
  color: #fff;
}
.th-footer__socials {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0 0 16px;
}
.th-social {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.8);
}
.th-social:hover {
  background: var(--th-accent);
  color: var(--th-ink);
}
.th-footer__coltitle {
  font-family: var(--th-font-head);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.th-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.th-footer__all {
  color: var(--th-accent) !important;
  font-weight: 600;
}
.th-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}
.th-footer__bottominner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.th-footer__copy {
  margin: 0;
  font-size: 0.84rem;
}
.th-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.84rem;
}

/* -------------------------------------------------------------------- forms */
.th-form {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  padding: 30px;
  box-shadow: var(--th-shadow);
}
.th-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.th-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.th-field--full {
  grid-column: 1 / -1;
}
.th-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--th-ink);
}
.th-field .th-req {
  color: var(--th-primary-dark);
}
.th-field input,
.th-field select,
.th-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-sm);
  background: #fbfaff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--th-text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.th-field input:focus,
.th-field select:focus,
.th-field textarea:focus {
  outline: none;
  border-color: var(--th-primary);
  box-shadow: 0 0 0 4px rgba(91, 61, 245, 0.14);
}
.th-field textarea {
  min-height: 130px;
  resize: vertical;
}
.th-field__hint {
  font-size: 0.8rem;
  color: var(--th-muted);
}
.th-field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.th-field--check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
}
.th-field--check label {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--th-muted);
}
.th-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.th-form__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.th-form__note {
  font-size: 0.82rem;
  color: var(--th-muted);
  margin: 0;
}

/* ------------------------------------------------------------- reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ responsive */
@media (min-width: 640px) {
  .th-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .th-offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .th-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .th-cta__inner {
    grid-template-columns: 1.4fr auto;
  }
  .th-footer__bottominner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .th-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .th-founding__inner {
    grid-template-columns: 1.4fr 1fr;
  }
  .th-tabpanel {
    grid-template-columns: 1.05fr 1fr;
  }
  .th-quote {
    grid-template-columns: auto 1fr;
  }
}

@media (min-width: 900px) {
  .th-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .th-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .th-footer__top {
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  }
  .th-split {
    grid-template-columns: 1.05fr 1fr;
  }
}

@media (min-width: 1024px) {
  .th-container {
    padding: 0 32px;
  }
  .th-section {
    padding: 92px 0;
  }
}

/* mobile navigation */
@media (max-width: 1023px) {
  .th-burger {
    display: inline-flex;
  }
  .th-header__cta {
    display: none;
  }
  .th-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(390px, 92vw);
    background: var(--th-surface);
    border-left: 1px solid var(--th-border);
    box-shadow: -30px 0 60px -40px rgba(11, 18, 32, 0.6);
    padding: 86px 20px 32px;
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 0.28s ease;
    z-index: 130;
  }
  .th-nav.is-open {
    transform: translateX(0);
  }
  .th-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .th-nav__item {
    border-bottom: 1px solid var(--th-border);
  }
  .th-nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 6px;
    font-size: 1.05rem;
    border-radius: 0;
  }
  .th-nav__chev {
    transform: rotate(90deg);
    width: 18px;
    height: 18px;
  }
  .th-nav__chev svg {
    width: 18px;
    height: 18px;
  }
  .th-nav__item.is-open > .th-nav__link .th-nav__chev {
    transform: rotate(-90deg);
  }
  .th-mega,
  .th-mega--narrow,
  .th-mega--menu {
    position: static;
    transform: none;
    width: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 6px 0 18px;
    display: none;
  }
  .th-nav__item.is-open > .th-mega {
    display: block;
  }
  .th-mega__inner,
  .th-mega__inner--grid {
    display: block;
  }
  .th-mega__inner--grid .th-mega__list--grid {
    grid-template-columns: 1fr;
  }
  .th-mega__col + .th-mega__col {
    margin-top: 16px;
  }
  .th-mega__allcard {
    margin-top: 8px;
  }
  .th-mega__bar {
    display: none;
  }
  .th-nav__foot {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--th-border);
  }
  .th-nav__footlabel {
    font-size: 0.82rem;
    color: var(--th-muted);
    margin: 0 0 6px;
  }
  .th-nav__footmail {
    font-weight: 600;
  }
  .th-scrim {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, 0.5);
    border: 0;
    z-index: 125;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
  }
  .th-scrim.is-active {
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 1024px) {
  .th-nav__foot {
    display: none;
  }
  .th-scrim {
    display: none;
  }
}

body.th-nav-open {
  overflow: hidden;
}

/* ------------------------------------------------------ reduced motion / print */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .th-header,
  .th-footer,
  .th-cta,
  .th-scrim {
    display: none !important;
  }
}
