/* TutorTracer subpages (everything except index.html).
 * Layered after the Webflow CSS and tt-light-theme.css.
 * Section rhythm: page head -> alternating feature sections -> steps -> FAQ -> CTA.
 * Every colour is a token so the pages work in both the dark (Webflow default)
 * and light (html[data-theme="light"]) themes.
 */

/* ---------- Tokens ---------- */
body {
  --tp-bg: #1e1e1e;
  --tp-bg-2: #171717;
  --tp-card: #262628;
  --tp-card-2: #2e2e31;
  --tp-ink: #ffffff;
  --tp-ink-2: rgba(255, 255, 255, 0.72);
  --tp-ink-3: rgba(255, 255, 255, 0.5);
  --tp-line: rgba(255, 255, 255, 0.1);
  --tp-line-2: rgba(255, 255, 255, 0.06);
  --tp-accent: #a79fb7;
  --tp-accent-ink: #c9c0e0;
  --tp-accent-soft: rgba(118, 98, 172, 0.18);
  --tp-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 48px rgba(0, 0, 0, 0.35);
  --tp-glass: rgba(38, 38, 40, 0.55);
  --tp-glass-rim: rgba(255, 255, 255, 0.14);
  --tp-field-opacity: 0.55;
  --tp-red: #f87171;
  --tp-red-soft: rgba(248, 113, 113, 0.14);
  --tp-amber: #fbbf24;
  --tp-amber-soft: rgba(251, 191, 36, 0.14);
  --tp-green: #34d399;
  --tp-green-soft: rgba(52, 211, 153, 0.14);
  --tp-blue: #93a9c7;
  --tp-blue-soft: rgba(88, 111, 141, 0.22);
}
html[data-theme="light"] body {
  --tp-bg: #ffffff;
  --tp-bg-2: #f6f5f9;
  --tp-card: #ffffff;
  --tp-card-2: #f7f7f9;
  --tp-ink: #1e1e1e;
  --tp-ink-2: rgba(30, 30, 30, 0.72);
  --tp-ink-3: rgba(30, 30, 30, 0.5);
  --tp-line: rgba(0, 0, 0, 0.09);
  --tp-line-2: rgba(0, 0, 0, 0.05);
  --tp-accent: #7662ac;
  --tp-accent-ink: #5b4895;
  --tp-accent-soft: rgba(118, 98, 172, 0.1);
  --tp-shadow: 0 1px 2px rgba(40, 30, 70, 0.06), 0 18px 48px rgba(40, 30, 70, 0.1);
  --tp-glass: rgba(255, 255, 255, 0.5);
  --tp-glass-rim: rgba(255, 255, 255, 0.85);
  --tp-field-opacity: 0.5;
  --tp-red: #c2410c;
  --tp-red-soft: rgba(204, 93, 93, 0.12);
  --tp-amber: #a16207;
  --tp-amber-soft: rgba(234, 179, 8, 0.14);
  --tp-green: #047857;
  --tp-green-soft: rgba(16, 185, 129, 0.12);
  --tp-blue: #586f8d;
  --tp-blue-soft: rgba(88, 111, 141, 0.12);
}

/* ---------- Layout ---------- */
.tp-main { overflow-x: clip; }
.tp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }
.tp-sec { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.tp-sec-tight { padding: clamp(56px, 7vw, 96px) 0; }
.tp-alt { background: var(--tp-bg-2); }
.tp-main h1, .tp-main h2, .tp-main h3, .tp-main h4 { color: var(--tp-ink); text-wrap: balance; }
.tp-main p, .tp-main li { text-wrap: pretty; }
.tp-main a:not(.tp-btn):not(.button) { color: inherit; }

.tp-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--tp-accent-ink); margin-bottom: 18px; }
.tp-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: linear-gradient(135deg, #7662ac, #cc5d5d); box-shadow: 0 0 0 3px var(--tp-accent-soft); }
.tp-h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 0; }
.tp-h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 600; margin: 0; }
.tp-h3 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; margin: 0; }
.tp-h1 .serif, .tp-h2 .serif, .tp-h3 .serif { line-height: 0; letter-spacing: -0.02em; }
.tp-lede { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; letter-spacing: -0.012em; color: var(--tp-ink-2); margin: 0; max-width: 680px; }
.tp-body { font-size: 17px; line-height: 1.6; color: var(--tp-ink-2); margin: 0; }
.tp-fine { font-size: 13.5px; line-height: 1.5; color: var(--tp-ink-3); margin: 0; }
.tp-fine a { text-decoration: underline; }

.tp-head-block { max-width: 820px; }
.tp-head-block .tp-lede { margin-top: 22px; }
.tp-center { text-align: center; margin-left: auto; margin-right: auto; }
.tp-center .tp-lede { margin-left: auto; margin-right: auto; }
.tp-center .tp-kicker { justify-content: center; }

/* ---------- Buttons ---------- */
.tp-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 34px; }
.tp-center .tp-cta-row { justify-content: center; }
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, opacity .2s; white-space: nowrap; }
.tp-btn-primary { background: var(--tp-ink); color: var(--tp-bg) !important; box-shadow: 0 6px 20px rgba(30, 20, 60, 0.18); }
.tp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(30, 20, 60, 0.24); }
.tp-btn-secondary { background: transparent; color: var(--tp-ink) !important; box-shadow: inset 0 0 0 1px var(--tp-line), inset 0 0 0 1px var(--tp-line); }
.tp-btn-secondary:hover { background: var(--tp-line-2); }
.tp-btn svg { width: 16px; height: 16px; }
.tp-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--tp-accent-ink) !important; text-decoration: none; }
.tp-link:hover { text-decoration: underline; }
.tp-trial-line { margin-top: 16px; }

/* ---------- Page head ---------- */
.tp-hero { position: relative; isolation: isolate; padding: clamp(120px, 14vw, 176px) 0 clamp(56px, 7vw, 96px); }
.tp-hero > .tp-wrap { position: relative; z-index: 1; }
.tp-hero-stage { margin-top: clamp(48px, 7vw, 80px); }
.tp-hero-compact { padding-bottom: clamp(32px, 4vw, 48px); }

/* Soft brand-coloured light field (blurred blobs that drift slowly) */
.tp-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: var(--tp-field-opacity); overflow: hidden; }
.tp-field i { position: absolute; display: block; border-radius: 50%; filter: blur(70px); will-change: transform; }
.tp-field i:nth-child(1) { width: 42%; height: 60%; left: -4%; top: 6%; background: #a79fb7; }
.tp-field i:nth-child(2) { width: 38%; height: 56%; right: -2%; top: 0; background: #586f8d; opacity: .75; }
.tp-field i:nth-child(3) { width: 34%; height: 50%; left: 34%; top: 30%; background: #7662ac; opacity: 0.8; }
.tp-field i:nth-child(4) { width: 26%; height: 40%; right: 16%; bottom: -6%; background: #cc5d5d; opacity: 0.55; }
.tp-hero .tp-field { top: 0; bottom: 20%; }
@media (prefers-reduced-motion: no-preference) {
  .tp-field i { animation: tp-drift 38s ease-in-out infinite alternate; }
  .tp-field i:nth-child(2) { animation-duration: 46s; animation-delay: -12s; }
  .tp-field i:nth-child(3) { animation-duration: 52s; animation-delay: -20s; }
  .tp-field i:nth-child(4) { animation-duration: 42s; animation-delay: -6s; }
}
@keyframes tp-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, -3%, 0) scale(1.06); }
  100% { transform: translate3d(-3%, 4%, 0) scale(0.97); }
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .tp-js .tp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
  .tp-js .tp-reveal.is-in { opacity: 1; transform: none; }
  .tp-js .tp-reveal.tp-d1 { transition-delay: .08s; }
  .tp-js .tp-reveal.tp-d2 { transition-delay: .16s; }
  .tp-js .tp-reveal.tp-d3 { transition-delay: .24s; }
}

/* ---------- Feature rows (copy + stage) ---------- */
.tp-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.tp-feature-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.tp-feature-flip > .tp-feature-copy { order: 2; }
.tp-feature-copy .tp-body { margin-top: 20px; max-width: 480px; }
.tp-ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; max-width: 480px; }
.tp-ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15.5px; line-height: 1.5; color: var(--tp-ink-2); margin: 0; }
.tp-ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 99px; background: var(--tp-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237662ac' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }

.tp-stage { position: relative; isolation: isolate; border-radius: 32px; padding: clamp(16px, 3.6vw, 44px); display: flex; align-items: center; justify-content: center; min-height: 420px; background: var(--tp-bg-2); overflow: hidden; }
.tp-alt .tp-stage { background: var(--tp-bg); }
.tp-stage > .tp-field { inset: 0; }
.tp-stage[data-tone="warm"] .tp-field i:nth-child(1) { background: #cc5d5d; opacity: .5; }
.tp-stage[data-tone="warm"] .tp-field i:nth-child(2) { background: #a79fb7; }
.tp-stage[data-tone="cool"] .tp-field i:nth-child(4) { background: #586f8d; }
.tp-glass { position: relative; z-index: 1; width: 100%; max-width: 580px; border-radius: 26px; padding: clamp(10px, 2vw, 20px); background: var(--tp-glass); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); box-shadow: inset 0 1px 0 var(--tp-glass-rim), 0 0 0 1px var(--tp-line), var(--tp-shadow); }
.tp-glass-wide { max-width: 980px; }

/* ---------- Product UI drawn in HTML ---------- */
.ui { font-size: 13px; line-height: 1.45; letter-spacing: -0.005em; color: var(--tp-ink); text-align: left; }
.ui-card { background: var(--tp-card); border-radius: 16px; box-shadow: 0 0 0 1px var(--tp-line), var(--tp-shadow); overflow: hidden; }
.ui-card + .ui-card { margin-top: 12px; }
.ui-pad { padding: 16px 18px; }
.ui-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--tp-line); flex-wrap: wrap; }
.ui-title { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.ui-muted { color: var(--tp-ink-3); }
.ui-sub { color: var(--tp-ink-2); }
.ui-small { font-size: 11.5px; }
.ui-row { display: flex; align-items: center; gap: 10px; }
.ui-between { justify-content: space-between; }
.ui-tab { font-size: 12.5px; font-weight: 600; color: var(--tp-ink-3); padding: 4px 2px; }
.ui-tab.is-on { color: var(--tp-ink); box-shadow: inset 0 -2px 0 var(--tp-ink); }
.ui-count { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: var(--tp-line-2); color: var(--tp-ink-3); margin-left: 4px; }
.ui-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; background: var(--tp-line-2); box-shadow: inset 0 0 0 1px var(--tp-line); font-size: 11.5px; font-weight: 550; color: var(--tp-ink-2); white-space: nowrap; }
.ui-tag.is-red { background: var(--tp-red-soft); color: var(--tp-red); box-shadow: none; }
.ui-tag.is-amber { background: var(--tp-amber-soft); color: var(--tp-amber); box-shadow: none; }
.ui-tag.is-green { background: var(--tp-green-soft); color: var(--tp-green); box-shadow: none; }
.ui-tag.is-accent { background: var(--tp-accent-soft); color: var(--tp-accent-ink); box-shadow: none; }
.ui-tag.is-blue { background: var(--tp-blue-soft); color: var(--tp-blue); box-shadow: none; }
.ui-tag.is-solid { background: var(--tp-ink); color: var(--tp-bg); box-shadow: none; }
.ui-dot { width: 7px; height: 7px; border-radius: 99px; background: currentColor; display: inline-block; flex: none; }
.ui-list > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--tp-line); }
.ui-list > div:first-child { border-top: 0; }
.ui-list b { font-weight: 600; font-size: 13.5px; letter-spacing: -0.012em; }
.ui-list .ui-meta { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--tp-ink-3); font-size: 12px; }
.ui-list > div.is-sel { background: var(--tp-accent-soft); }
.ui-quote { border-left: 3px solid #7662ac; background: var(--tp-accent-soft); padding: 10px 12px; border-radius: 0 10px 10px 0; font-style: italic; color: var(--tp-ink); font-size: 13px; line-height: 1.5; }
.ui-quote mark { background: rgba(204, 93, 93, 0.22); color: inherit; border-radius: 3px; padding: 0 2px; }
.ui-label { font-size: 10.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tp-ink-3); margin: 14px 0 6px; }
.ui-label:first-child { margin-top: 0; }
.ui-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ui-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--tp-card-2); box-shadow: inset 0 0 0 1px var(--tp-line); color: var(--tp-ink); }
.ui-btn.is-dark { background: var(--tp-ink); color: var(--tp-bg); box-shadow: none; }
.ui-sev { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; border-radius: 7px; font-size: 11.5px; font-weight: 700; }
.ui-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ui-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ui-kpi { background: var(--tp-card); border-radius: 12px; box-shadow: 0 0 0 1px var(--tp-line); padding: 12px 14px; }
.ui-kpi span { display: block; font-size: 11px; color: var(--tp-ink-3); }
.ui-kpi b { display: block; font-size: 22px; font-weight: 650; letter-spacing: -0.03em; margin-top: 2px; }
.ui-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ui-table th { text-align: left; font-size: 10.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tp-ink-3); padding: 10px 14px; border-bottom: 1px solid var(--tp-line); }
.ui-table td { padding: 10px 14px; border-bottom: 1px solid var(--tp-line); color: var(--tp-ink-2); }
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table td b { color: var(--tp-ink); font-weight: 600; }
.ui-meter { height: 6px; border-radius: 99px; background: var(--tp-line); overflow: hidden; }
.ui-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7662ac, #586f8d); }
.ui-avatar { width: 30px; height: 30px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #7662ac, #586f8d); flex: none; }
.ui-transcript > div { display: grid; grid-template-columns: 48px 70px 1fr; gap: 8px; padding: 7px 0; font-size: 12.5px; color: var(--tp-ink-2); }
.ui-transcript .t { color: var(--tp-ink-3); font-variant-numeric: tabular-nums; }
.ui-transcript .s { font-weight: 600; color: var(--tp-ink); }
.ui-transcript > div.is-hit { background: var(--tp-red-soft); border-radius: 8px; padding-left: 6px; margin-left: -6px; }
.ui-doc { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--tp-line); }
.ui-doc:first-child { border-top: 0; }
.ui-doc-ic { width: 32px; height: 38px; border-radius: 6px; background: var(--tp-card-2); box-shadow: inset 0 0 0 1px var(--tp-line); display: flex; align-items: flex-end; justify-content: center; font-size: 9px; font-weight: 700; color: var(--tp-red); padding-bottom: 5px; box-sizing: border-box; flex: none; }
.ui-doc > div:nth-child(2) { flex: 1; min-width: 0; }
.ui-doc b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-toggle { width: 32px; height: 18px; border-radius: 99px; background: var(--tp-line); position: relative; flex: none; }
.ui-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 99px; background: var(--tp-card); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.ui-toggle.is-on { background: #7662ac; }
.ui-toggle.is-on::after { left: 16px; }
.ui-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--tp-card-2); border-radius: 10px; padding: 12px 14px; color: var(--tp-ink-2); box-shadow: inset 0 0 0 1px var(--tp-line); white-space: pre-wrap; word-break: break-word; }
.ui-radar { display: block; width: 100%; max-width: 230px; margin: 0 auto; }
.ui-radar .grid { fill: none; stroke: var(--tp-line); }
.ui-radar .shape { fill: rgba(118, 98, 172, 0.22); stroke: #7662ac; stroke-width: 1.6; }
.ui-radar text { font-size: 9px; fill: var(--tp-ink-3); }

/* ---------- Cards / grids ---------- */
.tp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.tp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-card { background: var(--tp-card); border-radius: 22px; padding: 28px; box-shadow: 0 0 0 1px var(--tp-line); display: flex; flex-direction: column; gap: 12px; }
.tp-alt .tp-card { box-shadow: 0 0 0 1px var(--tp-line), 0 1px 2px rgba(0,0,0,.03); }
.tp-card h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.tp-card p { margin: 0; color: var(--tp-ink-2); font-size: 15px; line-height: 1.55; }
.tp-card .tp-card-ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--tp-accent-soft); color: var(--tp-accent-ink); }
.tp-card .tp-card-ic svg { width: 20px; height: 20px; }
.tp-card ul { margin: 4px 0 0; padding-left: 18px; color: var(--tp-ink-2); font-size: 14.5px; line-height: 1.55; }
.tp-card ul li { margin-bottom: 6px; }
.tp-card .tp-card-foot { margin-top: auto; padding-top: 8px; }

/* Ruled grid (security-style facts) */
.tp-ruled { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--tp-line); }
.tp-ruled > div { padding: 30px 30px 34px 0; border-bottom: 1px solid var(--tp-line); }
.tp-ruled > div:not(:nth-child(3n+1)) { padding-left: 30px; border-left: 1px solid var(--tp-line); }
.tp-ruled h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.tp-ruled p { margin: 0; color: var(--tp-ink-2); font-size: 15px; line-height: 1.55; }

/* ---------- Steps ---------- */
.tp-steps { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; counter-reset: tpstep; }
.tp-steps li { position: relative; padding: 26px 24px 28px; border-radius: 22px; background: var(--tp-card); box-shadow: 0 0 0 1px var(--tp-line); counter-increment: tpstep; margin: 0; }
.tp-steps li::before { content: counter(tpstep, decimal-leading-zero); display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--tp-accent-ink); margin-bottom: 18px; }
.tp-steps li::after { content: ""; position: absolute; top: 34px; left: 64px; right: 24px; height: 1px; background: linear-gradient(90deg, var(--tp-line), transparent); }
.tp-steps h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.tp-steps p { margin: 0; color: var(--tp-ink-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- Rows (heading left, prose right) ---------- */
.tp-rows { border-top: 1px solid var(--tp-line); margin-top: clamp(32px, 5vw, 56px); }
.tp-rows > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--tp-line); }
.tp-rows h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.tp-rows p, .tp-rows li { margin: 0 0 12px; color: var(--tp-ink-2); font-size: 16px; line-height: 1.6; }
.tp-rows ol, .tp-rows ul { margin: 0 0 12px; padding-left: 20px; }
.tp-rows p:last-child { margin-bottom: 0; }
.tp-rows code { font-size: 14px; background: var(--tp-line-2); padding: 1px 6px; border-radius: 6px; }

/* ---------- FAQ ---------- */
.tp-faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.tp-faq { border-top: 1px solid var(--tp-line); }
.tp-faq details { border-bottom: 1px solid var(--tp-line); }
.tp-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; letter-spacing: -0.02em; color: var(--tp-ink); }
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 300; line-height: 1; color: var(--tp-ink-3); transition: transform .25s ease; }
.tp-faq details[open] summary::after { transform: rotate(45deg); }
.tp-faq .tp-faq-a { padding: 0 0 26px; max-width: 700px; color: var(--tp-ink-2); font-size: 16px; line-height: 1.6; }
.tp-faq .tp-faq-a p { margin: 0 0 10px; }
.tp-faq .tp-faq-a a { color: var(--tp-accent-ink); text-decoration: underline; }

/* ---------- Closing CTA ---------- */
.tp-close { position: relative; isolation: isolate; padding: clamp(96px, 12vw, 160px) 0; text-align: center; overflow: hidden; }
.tp-close .tp-field i:nth-child(1) { left: 6%; top: 20%; }
.tp-close .tp-field i:nth-child(2) { right: 6%; top: 10%; }
.tp-close > .tp-wrap { position: relative; z-index: 1; }

/* ---------- Pricing ---------- */
.tp-price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 6vw, 64px); align-items: stretch; }
.tp-price { background: var(--tp-card); border-radius: 24px; padding: 28px 24px; box-shadow: 0 0 0 1px var(--tp-line); display: flex; flex-direction: column; gap: 14px; position: relative; }
.tp-price.is-feat { box-shadow: 0 0 0 2px #7662ac, var(--tp-shadow); }
.tp-price h3 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.tp-price .tp-price-range { font-size: 13.5px; color: var(--tp-ink-3); margin: 0; }
.tp-price .tp-price-big { font-size: 44px; font-weight: 650; letter-spacing: -0.045em; line-height: 1; color: var(--tp-ink); }
.tp-price .tp-price-big small { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--tp-ink-3); margin-left: 4px; }
.tp-price .tp-price-base { font-size: 13.5px; color: var(--tp-ink-2); margin: -4px 0 0; }
.tp-price ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 9px; }
.tp-price li { font-size: 14px; color: var(--tp-ink-2); padding-left: 24px; position: relative; margin: 0; }
.tp-price li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 99px; background: var(--tp-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237662ac' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
.tp-price .tp-btn { margin-top: auto; width: 100%; height: 46px; }
.tp-price-flag { position: absolute; top: -12px; left: 24px; height: 24px; padding: 0 10px; border-radius: 99px; background: #7662ac; color: #fff; font-size: 11.5px; font-weight: 650; display: inline-flex; align-items: center; letter-spacing: 0.02em; }
.tp-calc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: center; background: var(--tp-card); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 0 0 1px var(--tp-line); margin-top: clamp(40px, 6vw, 64px); }
.tp-calc label { display: block; font-size: 14px; font-weight: 600; color: var(--tp-ink); margin: 0 0 8px; }
.tp-calc .tp-calc-field + .tp-calc-field { margin-top: 26px; }
.tp-calc .tp-calc-val { float: right; font-weight: 650; color: var(--tp-accent-ink); }
.tp-calc input[type=range] { width: 100%; accent-color: #7662ac; }
.tp-calc-out { border-radius: 20px; background: var(--tp-bg-2); padding: 26px; }
.tp-calc-out .tp-calc-total { font-size: clamp(38px, 5vw, 54px); font-weight: 650; letter-spacing: -0.045em; line-height: 1; margin: 8px 0 10px; color: var(--tp-ink); }
.tp-calc-out p { margin: 0; color: var(--tp-ink-2); font-size: 14px; line-height: 1.55; }

/* ---------- Legal ---------- */
.tp-legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.tp-toc { position: sticky; top: 110px; font-size: 14px; line-height: 1.4; }
.tp-toc b { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tp-ink-3); margin-bottom: 12px; }
.tp-toc a { display: block; padding: 6px 0; color: var(--tp-ink-2) !important; text-decoration: none; }
.tp-toc a:hover { color: var(--tp-ink) !important; }
.tp-prose { max-width: 760px; color: var(--tp-ink-2); font-size: 16.5px; line-height: 1.7; }
.tp-prose h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; margin: 48px 0 14px; scroll-margin-top: 110px; }
.tp-prose h2:first-child { margin-top: 0; }
.tp-prose h3 { font-size: 18px; font-weight: 600; margin: 26px 0 8px; }
.tp-prose p { margin: 0 0 14px; }
.tp-prose ul, .tp-prose ol { margin: 0 0 16px; padding-left: 22px; }
.tp-prose li { margin-bottom: 8px; }
.tp-prose a { color: var(--tp-accent-ink) !important; text-decoration: underline; }
.tp-prose strong { color: var(--tp-ink); font-weight: 600; }
.tp-prose table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
.tp-prose th, .tp-prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--tp-line); }
.tp-prose th { color: var(--tp-ink); font-weight: 600; }
.tp-note { border-radius: 16px; background: var(--tp-accent-soft); padding: 18px 20px; color: var(--tp-ink); font-size: 15px; line-height: 1.6; margin: 0 0 28px; }
.tp-note a { color: var(--tp-accent-ink) !important; text-decoration: underline; }
.tp-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14px; color: var(--tp-ink-3); }

/* Legal hub / link cards */
.tp-linkcard { text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.tp-linkcard:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--tp-line), var(--tp-shadow); }
.tp-linkcard .tp-link { margin-top: auto; padding-top: 6px; }

/* Jobs */
.tp-jobs { display: grid; gap: 12px; margin-top: clamp(32px, 5vw, 48px); }
.tp-job { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px; border-radius: 20px; background: var(--tp-card); box-shadow: 0 0 0 1px var(--tp-line); }
.tp-job h3 { margin: 0 0 4px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.tp-job p { margin: 0; color: var(--tp-ink-3); font-size: 14px; }

/* ---------- Footer ---------- */
.tp-footer { padding: clamp(64px, 8vw, 96px) 0 36px; border-top: 1px solid var(--tp-line); background: var(--tp-bg); }
.tp-footer-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); gap: 36px; }
.tp-footer-brand img { height: 28px; width: auto; display: block; }
.tp-footer-brand p { margin: 18px 0 22px; font-size: 14px; line-height: 1.6; color: var(--tp-ink-2); max-width: 300px; }
.tp-footer h4 { margin: 0 0 16px; font-size: 11px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tp-ink-3); }
.tp-footer-col a { display: block; font-size: 14px; color: var(--tp-ink-2) !important; text-decoration: none; margin-bottom: 11px; }
.tp-footer-col a:hover { color: var(--tp-ink) !important; }
.tp-footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--tp-line); font-size: 13px; color: var(--tp-ink-3); }
.tp-footer-bar nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.tp-footer-bar a { color: var(--tp-ink-3) !important; text-decoration: none; }
.tp-footer-bar a:hover { color: var(--tp-ink) !important; }
.tp-footer-bar img { opacity: .7; display: block; }
html[data-theme="light"] .tp-footer-bar img { filter: invert(1); }
.tp-footer .tp-btn { height: 42px; font-size: 14px; padding: 0 18px; }
/* The light theme forces .footer text dark; our footer is not .footer, keep tokens. */

/* Leave room for the floating chat pill */
body.tp-page { padding-bottom: 0; }
.tp-footer { padding-bottom: 110px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .tp-feature, .tp-feature-flip { grid-template-columns: 1fr; }
  .tp-feature-flip > .tp-feature-copy { order: 0; }
  .tp-grid, .tp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .tp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-footer-brand { grid-column: 1 / -1; }
  .tp-ruled { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-ruled > div, .tp-ruled > div:not(:nth-child(3n+1)) { padding: 26px 24px 28px 0; border-left: 0; }
  .tp-ruled > div:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--tp-line); }
  .tp-faq-wrap, .tp-calc, .tp-legal { grid-template-columns: 1fr; }
  .tp-toc { position: static; }
}
@media (max-width: 640px) {
  .tp-wrap { padding: 0 16px; }
  .tp-grid, .tp-grid-2, .tp-grid-4, .tp-steps, .tp-price-grid, .tp-ruled { grid-template-columns: 1fr; }
  .tp-ruled > div, .tp-ruled > div:nth-child(2n) { padding: 24px 0; border-left: 0; }
  .tp-rows > div { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .tp-stage { min-height: 0; border-radius: 24px; padding: 12px; }
  .tp-glass { border-radius: 20px; padding: 8px; }
  .ui-grid2, .ui-kpis { grid-template-columns: 1fr; }
  .ui-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ui-kpi b { font-size: 18px; }
  .ui-transcript > div { grid-template-columns: 40px 1fr; }
  .ui-transcript .s { grid-column: 2; }
  .ui-transcript > div > span:last-child { grid-column: 2; }
  .tp-job { flex-direction: column; align-items: flex-start; }
  .tp-btn { height: 48px; }
  .tp-cta-row .tp-btn { flex: 1 1 auto; }
  .tp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .tp-footer-bar { flex-direction: column; align-items: flex-start; }
  .ui-hide-sm { display: none !important; }
}

/* Fade the hero light field out instead of ending on a hard edge */
.tp-hero .tp-field, .tp-close .tp-field { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
.tp-close .tp-field { -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 45%, transparent 75%); }
.tp-link svg { width: 16px; height: 16px; flex: none; }
.tp-rows a, .tp-ruled a, .tp-card p a, .tp-lede a, .tp-body a, .tp-fine a { color: var(--tp-accent-ink) !important; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Navbar on subpages (mirrors the homepage's mobile nav) ---------- */
.tp-page .tp-nav-trial-m { display: none; }
.tp-page .menu-button-icons { flex-direction: column; }
.tp-page .menu-button-icons img { transition: margin .25s ease; }
html[data-theme="light"] .tp-page .menu-icon { filter: invert(1); }
.tp-page .nav-button-wrapper .button[data-tt-trial] { background: var(--tp-ink); }
.tp-page .nav-button-wrapper .button[data-tt-trial] .button-text { color: var(--tp-bg); }
.tp-page .button.small.hide-mobile[data-tt-trial] { background: var(--tp-ink); }
.tp-page .button.small.hide-mobile[data-tt-trial] .button-text { color: var(--tp-bg); }
@media (max-width: 991px) {
  .tp-page .navbar-row { gap: 12px; }
  .tp-page .nav-contents { align-items: center; gap: 4px; }
  .tp-page .nav-contents > .menu-button { order: 5; }
  .tp-page .nav-menu[data-nav-menu-open] { text-align: left; background-color: var(--tp-bg); padding: 18px 24px 24px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25); max-height: calc(100svh - 70px); overflow: auto; }
  .tp-page .nav-menu[data-nav-menu-open] .dropdown-element.w-dropdown-list { position: static; display: block !important; min-width: 0; max-width: none; }
  .tp-page .nav-menu[data-nav-menu-open] .dropdown-wrapper { padding: 12px 0; border: 0; box-shadow: none; margin: 0; background: transparent; }
  .tp-page .nav-menu[data-nav-menu-open] .dropdown-menus._3-columns { grid-template-columns: 1fr; gap: 16px; padding-bottom: 0; }
  .tp-page .nav-menu[data-nav-menu-open] .dropdown-toggle { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .55; padding: 14px 0 0; }
  .tp-page .nav-menu[data-nav-menu-open] .tt-nav-link { margin: 0; padding: 8px 0; }
  .tp-page .nav-menu[data-nav-menu-open] .tt-nav-link-desc { display: none; }
  .tp-page .nav-menu[data-nav-menu-open] .nav-button-wrapper { padding-top: 20px; }
  .tp-page .menu-button.w--open .menu-button-icons img:first-child { margin-top: -24px; }
}
@media (max-width: 767px) {
  .tp-page .tp-nav-trial-m { display: flex; height: 36px; padding: 0 16px; margin-left: auto; background: var(--tp-ink); }
  .tp-page .tp-nav-trial-m .button-text { color: var(--tp-bg); }
}
@media (max-width: 640px) {
  .ui-grid2 { grid-template-columns: 1fr !important; }
}
@media (max-width: 991px) {
  .tp-feature, .tp-feature-flip, .tp-faq-wrap, .tp-calc, .tp-legal { grid-template-columns: minmax(0, 1fr); }
}
.tp-rows code, .tp-prose code { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .ui-table th, .ui-table td { padding: 9px 8px; }
  .ui-table th:first-child, .ui-table td:first-child { padding-left: 14px; }
  .ui-avatar { width: 26px; height: 26px; font-size: 11px; }
}
@media (max-width: 991px) {
  .tp-page .nav-menu[data-nav-menu-open] .nav-links-wrapper { height: auto; }
  .tp-page .nav-menu[data-nav-menu-open] .nav-links { overflow: visible; flex: none; padding-bottom: 0; }
  .tp-page .nav-menu[data-nav-menu-open] .nav-dropdown { padding-top: 4px; padding-bottom: 10px; }
  .tp-page .nav-menu[data-nav-menu-open] .dropdown-toggle .square-small { display: none; }
  .tp-page .nav-menu[data-nav-menu-open] .dropdown-wide { padding: 0; }
  .tp-page .nav-menu[data-nav-menu-open] .nav-button-wrapper { flex: none; }
  .tp-menu-open .tt-chatbar { display: none !important; }
}
