:root {
  --tfs-ref-black: #050505;
  --tfs-ref-white: #ffffff;
  --tfs-ref-cream: #fff8f5;
  --tfs-ref-cyan: #00e5cc;
  --tfs-ref-blue: #55aaff;
  --tfs-ref-violet: #9b59ff;
  --tfs-ref-grad: linear-gradient(90deg, var(--tfs-ref-cyan), var(--tfs-ref-blue), var(--tfs-ref-violet));
  --tfs-ref-display: "Barlow Condensed", Impact, sans-serif;
  --tfs-ref-body: "DM Sans", Arial, sans-serif;
  --tfs-ref-shell-height: 156px;
}

body.tfs-reference-aligned {
  margin: 0;
  background: var(--tfs-ref-cream);
  color: var(--tfs-ref-black);
  font-family: var(--tfs-ref-body);
  overflow-x: hidden;
}

body.tfs-reference-aligned.tfs-shell-menu-open { overflow: hidden; }
body.tfs-reference-aligned #bg-canvas { display: none !important; }
body.tfs-reference-aligned .tfs-responsive-header { display: none !important; }
body.tfs-reference-aligned .tfs-reference-header.tfs-original-header { display: block !important; }
body.tfs-reference-aligned > .site-nav,
body.tfs-reference-aligned .shop-page > .site-nav,
body.tfs-reference-aligned > nav:not(.tfs-reference-nav),
body.tfs-reference-aligned > .case-nav,
body.tfs-reference-aligned > .offer-nav { display: none !important; }

.tfs-reference-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  min-height: 44px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--tfs-ref-black);
  color: var(--tfs-ref-white);
  font-family: var(--tfs-ref-display);
  font-size: 15px;
  font-style: italic;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.tfs-reference-topbar a {
  color: var(--tfs-ref-cyan);
  text-decoration: none;
}

.tfs-reference-header {
  position: fixed;
  inset: 44px 0 auto;
  z-index: 1190;
  height: 112px;
  border-bottom: 1px solid rgba(5, 5, 5, 0.16);
  background: rgba(255, 255, 255, 0.97);
  color: var(--tfs-ref-black);
}

.tfs-reference-header-inner {
  position: relative;
  width: min(100% - 56px, 1360px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tfs-reference-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.tfs-reference-logo img {
  display: block;
  width: auto;
  height: 88px;
  max-width: 300px;
  object-fit: contain;
}

.tfs-reference-menu-trigger {
  position: absolute;
  right: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--tfs-ref-black);
  cursor: pointer;
}

.tfs-reference-menu-trigger:hover,
.tfs-reference-menu-trigger:focus-visible { border-color: var(--tfs-ref-black); }
.tfs-reference-menu-trigger span {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.tfs-reference-menu-trigger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.tfs-reference-menu-trigger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tfs-reference-menu-trigger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.tfs-reference-drawer {
  position: fixed;
  top: var(--tfs-ref-shell-height);
  right: max(28px, calc((100vw - 1360px) / 2));
  z-index: 1180;
  width: min(390px, calc(100vw - 40px));
  max-height: calc(100vh - var(--tfs-ref-shell-height) - 20px);
  overflow-y: auto;
  border: 2px solid var(--tfs-ref-black);
  background: var(--tfs-ref-white);
  box-shadow: 12px 12px 0 var(--tfs-ref-cyan);
}
.tfs-reference-drawer[hidden] { display: none !important; }
.tfs-reference-nav {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: grid !important;
  background: transparent !important;
  box-shadow: none !important;
}
.tfs-reference-nav a,
.tfs-reference-language button,
.tfs-reference-language a {
  min-height: 52px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(5, 5, 5, 0.14);
  background: var(--tfs-ref-white);
  color: var(--tfs-ref-black);
  font-family: var(--tfs-ref-display);
  font-size: 20px;
  font-style: italic;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.tfs-reference-nav a:hover,
.tfs-reference-nav a:focus-visible,
.tfs-reference-language button:hover,
.tfs-reference-language button:focus-visible,
.tfs-reference-language a:hover,
.tfs-reference-language a:focus-visible { background: rgba(0, 229, 204, 0.12); }
.tfs-reference-nav .tfs-reference-nav-cta {
  background: var(--tfs-ref-grad);
  border-bottom: 0;
}
.tfs-reference-language { display: grid; grid-template-columns: 1fr 1fr; }
.tfs-reference-language button,
.tfs-reference-language a { justify-content: center; }
.tfs-reference-language > * + * { border-left: 1px solid rgba(5, 5, 5, 0.14); }
.tfs-reference-language button.is-active,
.tfs-reference-language a.is-active { background: var(--tfs-ref-black); color: var(--tfs-ref-white); }

body.tfs-reference-aligned .page-shell { padding-top: var(--tfs-ref-shell-height) !important; }
body.tfs-reference-aligned.case-study-page { padding-top: var(--tfs-ref-shell-height) !important; }
body.tfs-reference-aligned.vertical-offer-page { padding-top: var(--tfs-ref-shell-height) !important; }
body.tfs-reference-aligned > .wrap { padding-top: var(--tfs-ref-shell-height); }

body.tfs-reference-aligned h1,
body.tfs-reference-aligned .hero-title,
body.tfs-reference-aligned .case-title,
body.tfs-reference-aligned .offer-title {
  font-family: var(--tfs-ref-display) !important;
  font-style: italic;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

body.tfs-reference-aligned .eyebrow,
body.tfs-reference-aligned .case-eyebrow,
body.tfs-reference-aligned .offer-label,
body.tfs-reference-aligned .hero-eyebrow {
  font-family: var(--tfs-ref-display) !important;
  font-weight: 800 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
}

body.tfs-reference-aligned .btn,
body.tfs-reference-aligned .offer-btn,
body.tfs-reference-aligned .case-button {
  min-height: 56px;
  border-radius: 0 !important;
  font-family: var(--tfs-ref-display) !important;
  font-size: 17px;
  font-weight: 800 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase;
}

/* Shop, calendars, and product series */
body.tfs-reference-aligned .shop-page { background: var(--tfs-ref-cream); }
body.tfs-reference-aligned .shop-page .hero {
  min-height: calc(100vh - var(--tfs-ref-shell-height));
  padding: 64px 0 70px !important;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 0 12%, rgba(0, 229, 204, 0.38), transparent 23%),
    radial-gradient(circle at 100% 86%, rgba(155, 89, 255, 0.28), transparent 31%),
    var(--tfs-ref-cream) !important;
}
body.tfs-reference-aligned .shop-page .hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.72fr) !important;
  gap: clamp(34px, 5vw, 72px) !important;
  align-items: center !important;
}
body.tfs-reference-aligned .shop-page .hero-panel {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  transform: none !important;
}
body.tfs-reference-aligned .shop-page .hero-panel:hover {
  transform: none !important;
  box-shadow: none !important;
}
body.tfs-reference-aligned .shop-page .hero-panel > .orb { display: none !important; }
body.tfs-reference-aligned .shop-page .hero-title {
  max-width: 980px;
  margin-top: 24px;
  font-size: clamp(64px, 7.1vw, 122px) !important;
  line-height: 0.84 !important;
}
body.tfs-reference-aligned .shop-page .hero-copy,
body.tfs-reference-aligned .shop-page .hero-bridge-copy {
  max-width: 760px;
  color: #3c3c42;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.68;
}
body.tfs-reference-aligned .shop-page .side-panel {
  padding: 0 0 38px !important;
  border: 0 !important;
  background: var(--tfs-ref-black) !important;
  color: var(--tfs-ref-white);
  box-shadow: 14px 14px 0 var(--tfs-ref-cyan);
}
body.tfs-reference-aligned .shop-page .side-panel > :not(.shop-hero-media) { margin-left: 30px; margin-right: 30px; }
body.tfs-reference-aligned .shop-page .hero-actions { margin-top: 28px; }
body.tfs-reference-aligned .shop-page .hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(5,5,5,0.16);
}
body.tfs-reference-aligned .shop-page .hero-pill {
  position: relative;
  padding: 0 0 0 16px !important;
  border: 0 !important;
  background: transparent !important;
  color: #35353b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body.tfs-reference-aligned .shop-page .hero-pill::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--tfs-ref-cyan);
}

body.tfs-reference-aligned.page-series .hero .wrap,
body.tfs-reference-aligned.page-step-4 .hero .wrap { width: min(100% - 56px, 1280px); }
body.tfs-reference-aligned.page-series .hero-panel,
body.tfs-reference-aligned.page-step-4 .hero-panel { max-width: 1120px; }
body.tfs-reference-aligned.page-series .hero-title,
body.tfs-reference-aligned.page-step-4 .hero-title {
  font-size: clamp(66px, 8.5vw, 132px) !important;
  line-height: 0.83 !important;
}
body.tfs-reference-aligned.page-step-4 .hero-title .line,
body.tfs-reference-aligned.page-step-4 .hero-title .line > span {
  color: var(--tfs-ref-black) !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}
body.tfs-reference-aligned.page-step-4 .hero-title .shimmer {
  background: var(--tfs-ref-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
body.tfs-reference-aligned.page-step-4 .offer-price-banner { max-width: 850px; }

/* Pricing */
body.tfs-reference-aligned.page-pricing .bg { display: none !important; }
body.tfs-reference-aligned.page-pricing > .wrap { background: var(--tfs-ref-cream); }
body.tfs-reference-aligned.page-pricing .hero {
  min-height: calc(100vh - var(--tfs-ref-shell-height));
  padding: 90px max(28px, calc((100vw - 1280px) / 2)) 80px !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
  background:
    radial-gradient(circle at 0 12%, rgba(0, 229, 204, 0.36), transparent 24%),
    radial-gradient(circle at 100% 86%, rgba(155, 89, 255, 0.26), transparent 31%),
    var(--tfs-ref-cream) !important;
}
body.tfs-reference-aligned.page-pricing .hero-logo { display: none; }
body.tfs-reference-aligned.page-pricing .hero h1 {
  max-width: 1060px;
  margin: 0 0 28px;
  font-size: clamp(70px, 8.6vw, 136px) !important;
  line-height: 0.84 !important;
}
body.tfs-reference-aligned.page-pricing .hero p {
  max-width: 650px;
  margin: 0 0 38px;
  color: #3d3d44;
  font-size: 19px;
  line-height: 1.68;
}
.pricing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -10px 0 30px;
}
.tfs-pricing-action {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border: 2px solid var(--tfs-ref-black);
  font-family: var(--tfs-ref-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.tfs-pricing-action-primary { background: var(--tfs-ref-grad); color: var(--tfs-ref-black); }
.tfs-pricing-action-secondary { background: rgba(255,255,255,0.76); color: var(--tfs-ref-black); }
.tfs-pricing-action:hover,
.tfs-pricing-action:focus-visible { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--tfs-ref-black); }
body.tfs-reference-aligned.page-pricing .tabs {
  border: 2px solid var(--tfs-ref-black);
  border-radius: 0 !important;
  background: rgba(255,255,255,0.7);
}
body.tfs-reference-aligned.page-pricing .tab,
body.tfs-reference-aligned.page-pricing .card,
body.tfs-reference-aligned.page-pricing .price-box { border-radius: 0 !important; }
body.tfs-reference-aligned.page-pricing .tab.on { background: var(--tfs-ref-black); color: var(--tfs-ref-white); box-shadow: none; }
body.tfs-reference-aligned.page-pricing .card { border: 1px solid rgba(5,5,5,0.24); }

/* Named case study */
body.tfs-reference-aligned.case-study-page .case-hero {
  min-height: calc(100vh - var(--tfs-ref-shell-height) - 106px);
  padding: 86px 0 74px;
  display: flex;
  align-items: center;
}
body.tfs-reference-aligned.case-study-page .case-title {
  max-width: 1080px;
  font-size: clamp(68px, 8.2vw, 132px) !important;
  line-height: 0.84 !important;
}

/* Industry offers */
body.tfs-reference-aligned.vertical-offer-page .offer-hero {
  min-height: calc(100vh - var(--tfs-ref-shell-height));
  padding-top: 70px;
  padding-bottom: 70px;
  background:
    radial-gradient(circle at 0 12%, rgba(0,229,204,0.24), transparent 22%),
    radial-gradient(circle at 100% 88%, rgba(155,89,255,0.18), transparent 27%),
    var(--tfs-ref-cream);
}
body.tfs-reference-aligned.vertical-offer-page .offer-title {
  font-size: clamp(64px, 7vw, 116px) !important;
  line-height: 0.84 !important;
}

/* Compact, claim-safe proof shared by pricing and industry offers. */
.tfs-verified-proof {
  position: relative;
  z-index: 2;
  padding: 0;
  background: var(--tfs-ref-black);
  color: var(--tfs-ref-white);
}
.tfs-verified-proof-inner {
  width: min(100% - 56px, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) minmax(420px, 2fr) auto;
  align-items: stretch;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.tfs-verified-proof-intro,
.tfs-verified-proof-link { padding: 30px; }
.tfs-verified-proof-intro { border-right: 1px solid rgba(255,255,255,0.15); }
.tfs-verified-proof-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--tfs-ref-cyan);
  font-family: var(--tfs-ref-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tfs-verified-proof h2 {
  margin: 0;
  color: var(--tfs-ref-white);
  font-family: var(--tfs-ref-display);
  font-size: clamp(26px, 2.2vw, 38px);
  font-style: italic;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}
.tfs-verified-proof-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tfs-verified-proof-facts span {
  min-height: 50%;
  display: flex;
  align-items: center;
  padding: 18px 22px;
  border-right: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.74);
  font-size: 13px;
  font-weight: 700;
}
.tfs-verified-proof-link {
  min-width: 190px;
  display: flex;
  align-items: center;
  color: var(--tfs-ref-black);
  background: var(--tfs-ref-cyan);
  font-family: var(--tfs-ref-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.tfs-verified-proof-link:hover,
.tfs-verified-proof-link:focus-visible { background: var(--tfs-ref-white); }

/* One footer contract for all aligned targets. */
body.tfs-reference-aligned .site-footer,
body.tfs-reference-aligned .case-footer,
body.tfs-reference-aligned > footer:not(.tfs-reference-footer),
body.tfs-reference-aligned .shop-page > footer:not(.tfs-reference-footer) { display: none !important; }

/* Target pages already expose purchase actions in the hero and checkout flow. */
body.tfs-reference-aligned .mobile-buy-bar,
body.tfs-reference-aligned .mobile-sticky-cta,
body.tfs-reference-aligned .tfs-mobile-sticky-cta {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.tfs-reference-footer {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 58px 0 30px;
  background: var(--tfs-ref-black);
  color: var(--tfs-ref-white);
}
.tfs-reference-footer-inner { width: min(100% - 56px, 1280px); margin: 0 auto; }
.tfs-reference-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(180px, 0.7fr));
  gap: 48px;
  align-items: start;
}
.tfs-reference-footer-logo img { width: auto; height: 76px; filter: invert(1); }
.tfs-reference-footer p,
.tfs-reference-footer a { color: rgba(255,255,255,0.62); font-size: 14px; line-height: 1.7; text-decoration: none; }
.tfs-reference-footer-brand p { max-width: 430px; margin: 18px 0 0; }
.tfs-reference-footer h2 {
  margin: 0 0 16px;
  color: rgba(255,255,255,0.42);
  font-family: var(--tfs-ref-display);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tfs-reference-footer-links { display: grid; gap: 9px; }
.tfs-reference-footer a:hover,
.tfs-reference-footer a:focus-visible { color: var(--tfs-ref-cyan); }
.tfs-reference-footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.34);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1100px) {
  body.tfs-reference-aligned .shop-page .hero-grid { grid-template-columns: 1fr !important; }
  body.tfs-reference-aligned .shop-page .side-panel { max-width: 760px; }
  .tfs-reference-footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
  .tfs-verified-proof-inner { grid-template-columns: 1fr 1.6fr; }
  .tfs-verified-proof-link { grid-column: 1 / -1; justify-content: center; min-height: 64px; padding: 18px 24px; }
}

@media (max-width: 760px) {
  :root { --tfs-ref-shell-height: 130px; }
  .tfs-reference-topbar { min-height: 38px; padding: 7px 14px; gap: 7px; font-size: 11px; flex-wrap: wrap; }
  .tfs-reference-header { top: 38px; height: 92px; }
  .tfs-reference-header-inner { width: calc(100% - 30px); }
  .tfs-reference-logo img { height: 72px; max-width: 230px; }
  .tfs-reference-menu-trigger { width: 46px; height: 46px; }
  .tfs-reference-drawer {
    top: var(--tfs-ref-shell-height);
    right: 15px;
    width: calc(100vw - 30px);
    max-height: calc(100vh - var(--tfs-ref-shell-height) - 15px);
    box-shadow: 8px 8px 0 var(--tfs-ref-cyan);
  }
  body.tfs-reference-aligned .shop-page .hero,
  body.tfs-reference-aligned.vertical-offer-page .offer-hero {
    min-height: auto;
    padding-top: 54px !important;
    padding-bottom: 58px !important;
  }
  body.tfs-reference-aligned .shop-page .hero .wrap,
  body.tfs-reference-aligned.page-series .hero .wrap,
  body.tfs-reference-aligned.page-step-4 .hero .wrap { width: calc(100% - 34px); }
  body.tfs-reference-aligned .shop-page .hero-title,
  body.tfs-reference-aligned.page-series .hero-title,
  body.tfs-reference-aligned.page-step-4 .hero-title,
  body.tfs-reference-aligned.case-study-page .case-title,
  body.tfs-reference-aligned.vertical-offer-page .offer-title {
    font-size: clamp(44px, 14.5vw, 68px) !important;
    line-height: 0.88 !important;
    overflow-wrap: anywhere;
  }
  body.tfs-reference-aligned .shop-page .side-panel { box-shadow: 8px 8px 0 var(--tfs-ref-cyan); }
  body.tfs-reference-aligned .shop-page .hero-panel > .hero-pills {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }
  body.tfs-reference-aligned .shop-page .hero-actions { grid-template-columns: 1fr !important; }
  body.tfs-reference-aligned .shop-page .hero-actions .btn { width: 100%; }
  body.tfs-reference-aligned.page-pricing .hero {
    min-height: auto;
    padding: 60px 20px 64px !important;
  }
  body.tfs-reference-aligned.page-pricing .hero h1 {
    font-size: clamp(48px, 15vw, 70px) !important;
    line-height: 0.88 !important;
  }
  body.tfs-reference-aligned.page-pricing .tabs { width: 100%; }
  body.tfs-reference-aligned.page-pricing .tab { flex: 1; padding: 12px 14px; }
  .pricing-hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .tfs-pricing-action { width: 100%; text-align: center; }
  .tfs-verified-proof-inner { width: 100%; grid-template-columns: 1fr; border-left: 0; }
  .tfs-verified-proof-intro { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .tfs-verified-proof-facts { grid-template-columns: 1fr 1fr; }
  .tfs-verified-proof-facts span:nth-child(even) { border-right: 0; }
  .tfs-verified-proof-link { grid-column: auto; }
  body.tfs-reference-aligned.case-study-page .case-hero { min-height: auto; padding: 64px 0; }
  .tfs-reference-footer { padding-top: 46px; }
  .tfs-reference-footer-inner { width: calc(100% - 38px); }
  .tfs-reference-footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .tfs-reference-footer-logo { display: flex; justify-content: center; }
  .tfs-reference-footer-brand p { margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .tfs-reference-menu-trigger span { transition: none; }
}
