.tf-site * { box-sizing: border-box; margin: 0; padding: 0; }
        .tf-site {
          font-family: 'DM Sans', var(--font-sans), sans-serif;
          color: var(--color-text-primary);
          background: var(--color-background-tertiary);
          width: 100%;
        }
        .tf-hero {
          background: var(--color-background-primary);
          border-bottom: 0.5px solid var(--color-border-tertiary);
          padding: 3rem 2rem 2.5rem;
          position: relative;
          overflow: hidden;
        }
        .tf-hero::before {
          content: '';
          position: absolute;
          top: -60px; right: -60px;
          width: 280px; height: 280px;
          border-radius: 50%;
          border: 40px solid var(--color-border-tertiary);
          opacity: 0.5;
        }
        .tf-wordmark {
          font-family: 'DM Serif Display', var(--font-serif), serif;
          font-size: 28px;
          font-weight: 400;
          letter-spacing: -0.5px;
          margin-bottom: 2rem;
          display: flex;
          align-items: center;
          gap: 12px;
        }
        .tf-wordmark-mark {
          width: 40px;
          height: 40px;
          display: block;
        }
        .tf-footer-mark {
          width: 22px;
          height: 22px;
          display: block;
        }
        .tf-wordmark-dot {
          width: 8px; height: 8px;
          background: var(--color-brand-primary);
          border-radius: 50%;
          display: inline-block;
        }
        .tf-tagline {
          font-family: 'DM Serif Display', var(--font-serif), serif;
          font-size: 38px;
          font-weight: 400;
          line-height: 1.2;
          max-width: 460px;
          margin-bottom: 1rem;
          letter-spacing: -0.5px;
        }
        .tf-tagline em { font-style: italic; color: var(--color-brand-primary); }
        .tf-sub {
          font-size: 15px;
          color: var(--color-text-secondary);
          max-width: 400px;
          line-height: 1.6;
          margin-bottom: 2rem;
        }
        .tf-cta-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
        .tf-cta {
          display: inline-flex;
          align-items: center;
          gap: 8px;
          background: var(--color-text-primary);
          color: var(--color-background-primary);
          padding: 10px 20px;
          border-radius: var(--border-radius-md);
          font-size: 14px;
          font-weight: 500;
          cursor: pointer;
          border: none;
          text-decoration: none;
        }
        .tf-cta-ghost {
          display: inline-flex;
          align-items: center;
          gap: 6px;
          padding: 10px 16px;
          border-radius: var(--border-radius-md);
          font-size: 14px;
          font-weight: 400;
          cursor: pointer;
          border: 0.5px solid var(--color-border-secondary);
          background: transparent;
          color: var(--color-text-secondary);
          text-decoration: none;
          font-family: 'DM Sans', var(--font-sans), sans-serif;
        }
        .tf-platforms {
          display: flex;
          gap: 6px;
          flex-wrap: wrap;
          margin-top: 2rem;
          padding-top: 1.5rem;
          border-top: 0.5px solid var(--color-border-tertiary);
          align-items: center;
        }
        .tf-plat-label {
          font-size: 11px;
          color: var(--color-text-tertiary);
          text-transform: uppercase;
          letter-spacing: 0.08em;
          margin-right: 4px;
        }
        .tf-plat-chip {
          font-size: 11px;
          font-weight: 500;
          padding: 4px 10px;
          border-radius: 20px;
          border: 0.5px solid var(--color-border-secondary);
          color: var(--color-text-secondary);
          white-space: nowrap;
          background: rgba(255, 255, 255, 0.015);
          transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
        }
        .tf-plat-chip:hover {
          border-color: var(--color-brand-soft);
          color: var(--color-text-primary);
          background: rgba(29, 158, 117, 0.06);
        }
        .tf-section { padding: 2rem; }
        .tf-section-label {
          font-size: 11px;
          text-transform: uppercase;
          letter-spacing: 0.1em;
          color: var(--color-text-tertiary);
          margin-bottom: 1rem;
        }
        .tf-features {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
          gap: 10px;
        }
        .tf-feat {
          background: var(--color-background-primary);
          border: 0.5px solid var(--color-border-tertiary);
          border-radius: var(--border-radius-lg);
          padding: 1rem 1.1rem;
        }
        .tf-feat-icon {
          width: 32px; height: 32px;
          border-radius: var(--border-radius-md);
          background: var(--color-brand-tint);
          display: flex; align-items: center; justify-content: center;
          margin-bottom: 10px;
        }
        .tf-feat-icon svg { width: 16px; height: 16px; }
        .tf-feat h3 { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
        .tf-feat p { font-size: 12px; color: var(--color-text-secondary); line-height: 1.5; }
        .tf-math {
          background: var(--color-background-primary);
          border: 0.5px solid var(--color-border-tertiary);
          border-radius: var(--border-radius-lg);
          padding: 1.25rem;
          margin-top: 2rem;
        }
        .tf-math-row {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 8px 0;
          border-bottom: 0.5px solid var(--color-border-tertiary);
          font-size: 13px;
        }
        .tf-math-row:last-child { border-bottom: none; }
        .tf-math-row.total { font-weight: 500; font-size: 14px; padding-top: 12px; }
        .tf-math-row .label { color: var(--color-text-secondary); }
        .tf-math-row .val { font-weight: 500; }
        .tf-math-row .val.neg { color: var(--color-negative); }
        .tf-math-row .val.pos { color: var(--color-brand-dark); }
        .tf-who {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
          gap: 10px;
          margin-top: 1rem;
        }
        .tf-who-card {
          background: var(--color-background-primary);
          border: 0.5px solid var(--color-border-tertiary);
          border-radius: var(--border-radius-lg);
          padding: 1rem 1.1rem;
        }
        .tf-who-card h3 { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
        .tf-who-card p { font-size: 12px; color: var(--color-text-secondary); line-height: 1.55; }
        .tf-stack {
          margin-top: 1rem;
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
          gap: 8px;
        }
        .tf-stack-item {
          background: var(--color-background-secondary);
          border-radius: var(--border-radius-md);
          padding: 10px 12px;
        }
        .tf-stack-item .s-label { font-weight: 500; font-size: 12px; margin-bottom: 2px; }
        .tf-stack-item .s-val { color: var(--color-text-secondary); font-size: 11px; }
        .tf-quote {
          background: var(--color-background-primary);
          border-left: 2px solid var(--color-brand-primary);
          border-top: 0.5px solid var(--color-border-tertiary);
          border-right: 0.5px solid var(--color-border-tertiary);
          border-bottom: 0.5px solid var(--color-border-tertiary);
          border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
          padding: 1rem 1.25rem;
          margin-top: 1.5rem;
          font-size: 14px;
          font-family: 'DM Serif Display', var(--font-serif), serif;
          line-height: 1.6;
        }
        .tf-divider { height: 0.5px; background: var(--color-border-tertiary); margin: 0 2rem; }
        .tf-footer {
          padding: 1.5rem 2rem;
          font-size: 12px;
          color: var(--color-text-tertiary);
          border-top: 0.5px solid var(--color-border-tertiary);
          display: flex;
          justify-content: space-between;
          align-items: center;
        }
        .tf-badge-free {
          font-size: 11px;
          padding: 3px 8px;
          border-radius: 20px;
          border: 0.5px solid var(--color-brand-soft);
          color: var(--color-brand-dark);
        }

/* ---------- Responsive layout (desktop / tablet) ---------------------
 *
 * Mobile-first base styles above stay untouched. These rules layer on
 * top to constrain content to a readable width on wide viewports and
 * give cards / features more breathing room on desktop.
 *
 * Breakpoints:
 *   ≥ 720px  — tablet (constrain content width, cap grids at 3 cols)
 *   ≥ 1024px — desktop (more padding around hero + sections)
 */

@media (min-width: 720px) {
  /* The page wrapper centers content and caps it at a magazine-ish
   * reading width. The hero's full-bleed background-color stays from
   * the base rule — it's only the inner content that's constrained. */
  .tf-site {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Cap auto-fit grids at 3 columns. Without this, on a 1080px
   * container `repeat(auto-fit, minmax(160px, 1fr))` would try for
   * 6 columns of features — readable, but feature cards lose visual
   * weight. 3 wide × 2 rows reads as "here are the headline things". */
  .tf-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tf-who {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* Stack ("How it works" 4-step) — 4 cells fit comfortably across
   * at this width, but cap at 4 so we don't blow up to 5+ if the
   * stack ever grows. */
  .tf-stack {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Hero loses the cramped feel — bigger top/bottom padding, taglines
   * can stretch into the wider canvas. The decorative ::before circle
   * scales up so it still reads as a hero detail. */
  .tf-hero {
    padding: 4.5rem 3rem 3.5rem;
  }
  .tf-hero::before {
    width: 360px;
    height: 360px;
    top: -80px;
    right: -80px;
    border-width: 50px;
  }
  .tf-tagline {
    font-size: 48px;
    max-width: 600px;
  }
  .tf-sub {
    font-size: 16px;
    max-width: 540px;
  }

  /* Section padding gets a touch more horizontal room — body still
   * reads at a comfortable line length thanks to the 1080px container
   * cap above. */
  .tf-section {
    padding: 3rem;
  }

  /* Footer too. */
  .tf-footer {
    padding: 2rem 3rem;
  }

  /* Divider doesn't need that 2rem margin on desktop — the section
   * padding gives it breathing room already. */
  .tf-divider {
    margin: 0 3rem;
  }
}

@media (min-width: 1024px) {
  /* Even bigger breathing room on real desktop — but still capped at
   * the 1080px content max-width so we never get edge-to-edge text. */
  .tf-hero {
    padding: 5.5rem 4rem 4rem;
  }
  .tf-section {
    padding: 4rem;
  }
  .tf-footer {
    padding: 2.5rem 4rem;
  }
  .tf-divider {
    margin: 0 4rem;
  }
}

/* ---------- Touchups: hero grid, math headline, closing CTA, footer
 *
 * Layered on top of the base rules above. These add a hero-right
 * preview card, a more dramatic math reveal, a closing CTA section,
 * and a refined footer — without touching the existing class
 * structure the page already uses.
 * ------------------------------------------------------------ */

.tf-hero { position: relative; }

/* The base hero decorative circle competed with the preview card on
 * desktop — keep it for mobile (where the visual is hidden) but
 * suppress it once the grid switches to two columns. */
@media (min-width: 900px) {
  .tf-hero::before { display: none; }
}

/* Eyebrow above the tagline — small, all-caps, with a leading rule. */
.tf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-tertiary);
  margin-bottom: 1rem;
}
.tf-eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--color-brand-soft);
  display: inline-block;
}

/* Hero grid: text + visual side-by-side on desktop, stacked on mobile. */
.tf-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.tf-hero-text { min-width: 0; }
.tf-hero-visual { display: none; }

@media (min-width: 900px) {
  .tf-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 1fr);
    gap: 2.5rem;
  }
  .tf-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
  }
}

/* CTAs: keep on a single line, add a subtle hover lift, and animate
 * the arrow on hover. */
.tf-cta,
.tf-cta-ghost {
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tf-cta:hover { transform: translateY(-1px); background: #ffffff; }
.tf-cta:active { transform: translateY(0); }
.tf-cta-arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}
.tf-cta:hover .tf-cta-arrow { transform: translate(2px, -2px); }
.tf-cta-ghost:hover {
  border-color: var(--color-brand-soft);
  color: var(--color-text-primary);
}

/* Hero preview card — a compact phone-screen mock that lives in the
 * hero's right column. Uses the same vocabulary as the walkthrough
 * phones but flatter (no device chrome) so it reads as a "panel". */
.tf-preview {
  width: 100%;
  max-width: 360px;
  background: var(--color-background-secondary);
  border: 0.5px solid var(--color-border-secondary);
  border-radius: var(--border-radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 24px 60px -24px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(93, 202, 165, 0.05);
  overflow: hidden;
  position: relative;
  transform: rotate(-1deg);
}
.tf-preview::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(93, 202, 165, 0.12), transparent 35%);
  pointer-events: none;
}
.tf-preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--color-background-primary);
  border-bottom: 0.5px solid var(--color-border-tertiary);
}
.tf-preview-bar > div:first-child { min-width: 0; }
.tf-preview-title { font-size: 14px; font-weight: 500; color: var(--color-text-primary); white-space: nowrap; }
.tf-preview-sub   { font-size: 11px; color: var(--color-text-tertiary); margin-top: 2px; white-space: nowrap; }
.tf-preview-live {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--color-brand-dark);
  background: var(--color-brand-tint);
  padding: 3px 7px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tf-preview-live::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-brand-primary);
  box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.6);
  animation: tf-pulse 1.8s ease-out infinite;
}
@keyframes tf-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(29, 158, 117, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 158, 117, 0); }
}
.tf-preview-body { padding: 12px 14px 14px; }
.tf-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 0.5px dashed var(--color-border-tertiary);
  font-size: 12px;
  color: var(--color-text-secondary);
}
.tf-preview-row > span:first-child {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tf-preview-row .muted { color: var(--color-text-tertiary); font-size: 10.5px; margin-left: 3px; }
.tf-preview-row .v { font-weight: 500; color: var(--color-text-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tf-preview-row .v.neg { color: var(--color-negative); }
.tf-preview-row.total {
  padding-top: 14px;
  padding-bottom: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--color-border-secondary);
  border-bottom: none;
  font-size: 14px;
  color: var(--color-text-primary);
  font-weight: 500;
}
.tf-preview-row.total > span:first-child { white-space: nowrap; overflow: visible; }
.tf-preview-row.total .v.pos {
  color: var(--color-brand-primary);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.5px;
}
.tf-preview-hr {
  margin-top: 6px;
  padding: 10px 12px;
  background: rgba(29, 158, 117, 0.08);
  border: 0.5px solid rgba(93, 202, 165, 0.2);
  border-radius: var(--border-radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--color-text-secondary);
}
.tf-preview-hr-label { text-transform: uppercase; letter-spacing: 0.08em; }
.tf-preview-hr-val {
  font-weight: 500;
  color: var(--color-brand-primary);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

/* Feature cards — add a soft hover lift + tinted border. */
.tf-feat {
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.tf-feat:hover {
  border-color: var(--color-brand-soft);
  transform: translateY(-2px);
}

/* Math card — promote it from "row of values" to a hero moment.
 * The headline up top shows the bottom line in plain English; the
 * rows below back it up with the math. */
.tf-math {
  padding: 1.5rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(29, 158, 117, 0.06), transparent 50%),
    var(--color-background-primary);
}
.tf-math-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 0.5px solid var(--color-border-tertiary);
}
.tf-math-headline {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.35;
  color: var(--color-text-primary);
  letter-spacing: -0.3px;
}
.tf-math-headline em {
  font-style: italic;
  color: var(--color-brand-primary);
}
.tf-strike {
  position: relative;
  color: var(--color-text-tertiary);
  font-style: normal;
  display: inline-block;
}
.tf-strike::after {
  content: "";
  position: absolute;
  left: -3px; right: -3px;
  top: 54%;
  height: 1.5px;
  background: var(--color-negative);
  transform: rotate(-6deg);
  opacity: 0.85;
}
.tf-arrow {
  color: var(--color-text-tertiary);
  font-style: normal;
  margin: 0 4px;
}
.tf-math-row .val {
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tf-math-row .val.neg { color: var(--color-negative); }
.tf-math-row .val.pos { color: var(--color-brand-dark); }
.tf-math-row .label .muted {
  color: var(--color-text-tertiary);
  font-size: 11px;
  margin-left: 4px;
}
.tf-math-row.total {
  padding-top: 14px;
  font-size: 15px;
}
.tf-math-row.total .val.pos {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.3px;
}

@media (min-width: 720px) {
  .tf-math { padding: 2rem; }
  .tf-math-headline { font-size: 26px; }
}

/* Closing CTA — full-width band before the footer. Tinted slightly
 * green so it reads as a brand moment without competing with the
 * hero's slate panel. */
.tf-closing {
  margin: 2rem 0 0;
  padding: 3rem 2rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(29, 158, 117, 0.12), transparent 60%),
    var(--color-background-primary);
  border-top: 0.5px solid var(--color-border-tertiary);
  border-bottom: 0.5px solid var(--color-border-tertiary);
  text-align: center;
}
.tf-closing-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.tf-closing-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-brand-soft);
  white-space: nowrap;
}
.tf-closing-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--color-text-primary);
}
.tf-closing-title em { font-style: italic; color: var(--color-brand-primary); }
.tf-closing-sub {
  font-size: 14px;
  color: var(--color-text-secondary);
  max-width: 460px;
  line-height: 1.55;
  margin: 0;
}
.tf-closing .tf-cta-row { margin-top: 0.5rem; justify-content: center; }

@media (min-width: 720px) {
  .tf-closing { padding: 4rem 3rem; }
  .tf-closing-title { font-size: 40px; }
}

/* Refined footer — three-ish columns of meta with a wordmark anchor. */
.tf-footer {
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  align-items: center;
}
.tf-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--color-text-primary);
  letter-spacing: -0.3px;
}
.tf-footer-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: center;
  color: var(--color-text-tertiary);
  font-size: 12px;
  white-space: nowrap;
}
.tf-footer-meta > span:not(.tf-footer-dot):not(.tf-badge-free) { white-space: nowrap; }
.tf-footer-meta a { color: var(--color-text-secondary); }
.tf-footer-meta a:hover { color: var(--color-brand-primary); }
.tf-footer-dot { color: var(--color-border-secondary); }

@media (min-width: 720px) {
  .tf-footer {
    flex-direction: row;
    text-align: left;
  }
  .tf-footer-meta { justify-content: flex-end; }
}
