@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
}

:root {
  --tt-blue: #2463eb;
  --tt-blue-hover: #1d4ed8;
  --tt-navy: #0f3c68;
  --tt-navy-deep: #0b2d4e;
  --tt-bg: #eef2f8;
  --tt-surface: #ffffff;
  --tt-text: #0f172a;
  --tt-muted: #3d5168;
  --tt-border: #d5e0ee;
  --tt-danger: #b91c1c;
  --tt-paid: #166534;
  --tt-paid-bg: #ecfdf3;
  --tt-owe-bg: #fef2f2;
  --tt-radius: 20px;
  --tt-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.08);
  --tt-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --rail: 0;
  color-scheme: light;
}

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

html { background: var(--tt-bg); scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--tt-font);
  color: var(--tt-text);
  background: var(--tt-bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #1d4ed8; color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: #b7c7dc;
  border-radius: 999px;
  border: 2px solid var(--tt-bg);
}

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

a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  background: var(--tt-navy);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus { top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  box-shadow: 0 0 0 rgba(15, 60, 104, 0);
}
.site-header.is-stuck {
  border-bottom-color: var(--tt-border);
  box-shadow: 0 8px 20px rgba(15, 60, 104, 0.06);
}
@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms linear; }
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 64px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--tt-navy);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tt-navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  flex: none;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  text-decoration: none;
  color: var(--tt-muted);
  font-weight: 650;
}
.nav-links a:hover { color: var(--tt-navy); }

.btn,
.replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--tt-blue);
  color: #fff;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.btn:hover { background: var(--tt-blue-hover); }
.btn:active { transform: scale(0.98); }
.btn-secondary {
  background: transparent;
  color: var(--tt-navy);
  border-color: #8aa0bb;
}
.btn-secondary:hover { background: #fff; }

.btn:focus-visible,
.replay:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible,
.footer a:focus-visible,
.store-play:focus-visible {
  outline: 2px solid var(--tt-blue);
  outline-offset: 3px;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 20px 28px;
  display: grid;
  gap: 28px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 760;
  color: var(--tt-navy);
  text-wrap: balance;
}
/* A background stroke, not ::after, so the rule follows the phrase when it
   wraps onto a second line and draws across both in reading order. */
.h1-em {
  color: var(--tt-blue);
  background: linear-gradient(currentColor, currentColor) 0 94% / 0% 3px no-repeat;
}
body.is-ready .h1-em {
  animation: rule 720ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}
@keyframes rule { to { background-size: 100% 3px; } }

.lede {
  margin: 0 0 22px;
  max-width: 38em;
  color: var(--tt-muted);
  font-size: 1.05rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.store-play { display: inline-flex; min-height: 44px; align-items: center; }
.store-soon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding: 6px 14px;
  border: 1.5px solid #8aa0bb;
  border-radius: 8px;
  color: var(--tt-navy);
  line-height: 1.15;
}
.store-soon span { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.02em; }
.store-soon strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.store-soon-light { border-color: rgba(255,255,255,0.55); color: #fff; }

.stage { margin: 0; }
.stage-frame {
  display: flex;
  min-height: 520px;
  background: var(--tt-surface);
  border: 1px solid var(--tt-border);
  border-radius: 24px;
  box-shadow: var(--tt-shadow);
  overflow: hidden;
  position: relative;
}
.phonebar, .tabbar { display: none; }
.sidebar {
  width: 196px;
  flex: none;
  background: var(--tt-navy);
  color: #fff;
  padding: 18px 10px 12px;
}
.side-brand { margin: 4px 8px 0; font-weight: 750; letter-spacing: -0.02em; }
.side-team {
  margin: 4px 8px 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
}
.side-nav { position: relative; }
.pill {
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  transform: translateY(0);
  z-index: 0;
}
.nav-item {
  position: relative;
  z-index: 1;
  height: 40px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 550;
  color: #fff;
}
.stage-body {
  position: relative;
  flex: 1;
  min-width: 0;
  background: var(--tt-bg);
  min-height: 480px;
}
.ex-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--tt-navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.panel {
  position: absolute;
  inset: 34px 0 0 0;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  overflow: auto;
}
.panel-dash { opacity: 1; }
.panel-title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-weight: 760;
  color: var(--tt-navy);
  line-height: 1.1;
}
.panel-sub { margin: -6px 0 0; color: var(--tt-muted); font-size: 0.88rem; }
.kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tt-muted);
}
.card {
  background: var(--tt-surface);
  border: 1px solid var(--tt-border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(15, 60, 104, 0.05), 0 8px 18px rgba(15, 60, 104, 0.05);
}
.big {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pos { color: var(--tt-paid); }
.neg { color: var(--tt-danger); }
.gap {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--tt-owe-bg);
  color: var(--tt-danger);
  font-size: 0.75rem;
  font-weight: 750;
}
.strip {
  display: grid;
  /* Columns fit their labels: "Outstanding" is wider than a third of a phone strip. */
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  background: var(--tt-bg);
  border-radius: 12px;
}
.strip-card {
  margin-top: 0;
  background: var(--tt-surface);
  border: 1px solid var(--tt-border);
}
.strip span, .bar-meta span {
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tt-muted);
}
.strip strong, .bar-meta {
  font-variant-numeric: tabular-nums;
}
.strip strong { font-size: 0.95rem; }
.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--tt-text);
}
.bar-meta span { text-transform: none; letter-spacing: 0; font-size: 0.78rem; font-weight: 650; color: var(--tt-text); }
.bar-row { margin-top: 8px; }
.track {
  height: 8px;
  margin-top: 4px;
  background: #e4ebf4;
  border-radius: 999px;
  overflow: hidden;
}
.fill {
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: var(--tt-blue);
  transform: scaleX(1);
  transform-origin: left center;
}
.fill-2 { background: #5b86f0; }
.fill-3 { background: #93b0f6; }
.player {
  background: #fff;
  border: 1px solid var(--tt-border);
  border-radius: 14px;
  padding: 10px 12px;
}
.player-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
}
.player-head span { font-weight: 750; font-size: 0.75rem; white-space: nowrap; }
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--tt-owe-bg);
  color: var(--tt-danger);
  font-size: 0.8rem;
  font-weight: 650;
}
.chip b { margin-left: auto; font-variant-numeric: tabular-nums; }
.chip i, .tick {
  width: 16px;
  height: 16px;
  flex: none;
}
.chip i {
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
}
.chip-paid, .chip.is-paid {
  background: var(--tt-paid-bg);
  color: var(--tt-paid);
}
.rows .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--tt-border);
}
.rows .row:last-child { border-bottom: 0; padding-bottom: 0; }
.row strong, .row em { display: block; }
.row em { font-style: normal; color: var(--tt-muted); font-size: 0.75rem; }
.row .chev { color: #64748b; font-size: 1.1rem; }
.row-hot {
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 10px;
}
.sheet {
  background: #fff;
  border: 1px solid var(--tt-border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 60, 104, 0.1);
}
.sheet-title { margin: 0 0 10px; font-weight: 750; color: var(--tt-navy); }
.sheet-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid #8aa0bb;
  font-weight: 750;
  color: var(--tt-navy);
  background: #fff;
}
.sheet-btn-pri { background: var(--tt-blue); border-color: var(--tt-blue); color: #fff; }
.sheet-btn-pri span { color: #fff; }
.pdf-fill {
  position: absolute;
  inset: 0;
  background: var(--tt-blue);
  transform: scaleX(0);
  transform-origin: left center;
}
.sheet-btn span:last-child { position: relative; z-index: 1; }

.tabbar {
  position: relative;
  height: 56px;
  background: #fff;
  border-top: 1px solid var(--tt-border);
}
.tab {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tt-navy);
}
.tab.is-on { color: var(--tt-blue); }
.tab-ind {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 3px;
  background: var(--tt-blue);
  transform: translateX(0);
}

.stage-cap {
  margin: 8px 2px 0;
  color: var(--tt-muted);
  font-size: 0.82rem;
}
.replay { margin-top: 10px; background: var(--tt-navy); }
.replay:hover { background: var(--tt-navy-deep); }

.features { max-width: 1120px; margin: 0 auto; padding: 12px 20px 48px; }
.feature {
  display: grid;
  gap: 22px;
  padding: 36px 0;
  border-top: 1px solid var(--tt-border);
}
.feature h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--tt-navy);
  text-wrap: balance;
}
.feature p { margin: 0; max-width: 38em; color: var(--tt-muted); }
.mini {
  background: var(--tt-bg);
  border: 1px solid var(--tt-border);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--tt-shadow);
}
.chip-draw .draw-tick {
  border: 0;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tt-paid);
  color: #fff;
  clip-path: none;
}
.feature.is-in .chip-draw .draw-tick {
  animation: tickin 560ms cubic-bezier(0.16, 1, 0.3, 1) 80ms forwards;
}
.feature.is-in .grow {
  animation: grow 640ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.feature.is-in .grow:nth-of-type(1) { animation-delay: 40ms; }
html.motion .feature:not(.is-in) .grow { transform: scaleX(0); }
html.motion .feature:not(.is-in) .chip-draw .draw-tick { clip-path: inset(0 100% 0 0); }
html.motion .feature:not(.is-in) .sheet-once { transform: translateY(12px); }

.feature.is-in .sheet-once {
  animation: sheetin 520ms cubic-bezier(0.16, 1, 0.3, 1) 60ms both;
}
@keyframes tickin { to { clip-path: inset(0 0 0 0); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sheetin {
  from { transform: translateY(18px); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}

.how {
  background: #fff;
  border-top: 1px solid var(--tt-border);
  border-bottom: 1px solid var(--tt-border);
  padding: 56px 20px 64px;
}
.wrap { max-width: 720px; margin: 0 auto; }
.how h2 {
  margin: 0 0 28px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: var(--tt-navy);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  display: grid;
  gap: 22px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: #d5e0ee;
}
.steps::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 16px;
  width: 2px;
  height: calc((100% - 32px) * var(--rail));
  background: var(--tt-blue);
  transform-origin: top;
}
.step { display: flex; gap: 14px; align-items: flex-start; position: relative; }
.step-num {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--tt-navy);
  border: 2px solid #8aa0bb;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.step.is-on .step-num {
  background: var(--tt-navy);
  border-color: var(--tt-navy);
  color: #fff;
}
.step strong { display: block; color: var(--tt-navy); font-size: 1.05rem; }
.step p { margin: 4px 0 0; color: var(--tt-muted); }

/* TT-3: answer-first, start here, fit, pricing and FAQ bands */
.how-more { margin: 24px 0 0; color: var(--tt-muted); }
.how-more a, .band a:not(.btn) { color: var(--tt-blue); font-weight: 600; }
.band { padding: 56px 20px; }
.band-alt { background: #fff; border-top: 1px solid var(--tt-border); border-bottom: 1px solid var(--tt-border); }
.band h2 {
  margin: 0 0 18px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: var(--tt-navy);
  text-wrap: balance;
}
.band h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--tt-navy); }
.band p { margin: 0 0 16px; color: var(--tt-muted); }
.band-answer { padding-top: 24px; padding-bottom: 32px; }
.band-answer p { font-size: 1.08rem; color: var(--tt-text); }
.link-list, .fit ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; color: var(--tt-muted); }
.fit { display: grid; gap: 28px; }
@media (min-width: 720px) { .fit { grid-template-columns: 1fr 1fr; } }
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--tt-border); border-radius: 14px; background: var(--tt-surface); padding: 14px 18px; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--tt-navy); }
.faq-item p { margin: 10px 0 0; }

.close {
  background: var(--tt-navy);
  color: #fff;
  text-align: center;
  padding: 72px 20px;
}
.close h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.close p { margin: 0 auto 22px; max-width: 34em; color: rgba(255,255,255,0.88); }
.close .cta-row { justify-content: center; }
.close .btn { background: #fff; color: var(--tt-navy); }
.close .btn:hover { background: #e8eef7; }
/* Same as the live landing: outline button, white text on the navy band.
   It needs its own background here or ".close .btn" paints it white. */
.close .btn-secondary { background: transparent; border-color: #fff; color: #fff; }
.close .btn-secondary:hover { background: rgba(255,255,255,0.1); }
.close .btn:focus-visible { outline-color: #fff; }
.close .stores { justify-content: center; }

.footer {
  padding: 28px 20px 40px;
  text-align: center;
  color: var(--tt-muted);
}
.footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tt-navy);
  font-weight: 650;
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px; padding-top: 56px; }
  .feature { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .feature-flip .feature-copy { order: 2; }
}

@media (max-width: 800px) {
  .nav-links li:nth-child(-n+2) { display: none; }
  /* Same as the live landing: mark only, so Log in and Get started stay on one line. */
  .wordmark { display: none; }
  .nav-links a, .nav .btn { white-space: nowrap; }
  .hero { padding-top: 24px; }
  /* Only the hero buttons go full width on a phone, as on the live landing. */
  .hero .cta-row .btn { flex: 1; }
  /* Under the full-width buttons, the store badges sit centred. */
  .hero .stores { justify-content: center; }
  .stage-frame {
    flex-direction: column;
    min-height: 0;
    border-radius: 28px;
  }
  .sidebar { display: none; }
  .phonebar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 14px;
    background: var(--tt-navy);
    color: #fff;
  }
  .phonebar .mark { background: rgba(255,255,255,0.16); }
  .phonebar strong, .phonebar span { display: block; line-height: 1.2; }
  .phonebar strong { font-size: 0.88rem; }
  .phonebar span { font-size: 0.75rem; color: rgba(255,255,255,0.82); }
  .stage-body { min-height: 468px; }
  .tabbar { display: flex; }
  .panel { padding: 6px 12px 12px; top: 32px; }
  .ex-label { top: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h1-em { animation: none !important; background-size: 100% 3px; }
  .feature .grow,
  .chip-draw .draw-tick,
  .sheet-once { animation: none !important; transform: none; clip-path: none; opacity: 1; }
  .panel-dash { opacity: 0; }
  .panel-reports { opacity: 1; }
  .pdf-fill { transform: scaleX(1); }
  .how { --rail: 1; }
  .btn:active { transform: none; }
}
