/* TenantFlows public landing — reference layout, brand red/navy only */

:root {
  --tf-red: #e82328;
  --tf-red-hover: #c91b20;
  --tf-red-soft: rgba(232, 35, 40, 0.1);
  --tf-red-glow: rgba(232, 35, 40, 0.28);
  --tf-navy: #1a2744;
  --tf-navy-deep: #0f1829;
  --tf-ink: #152033;
  --tf-muted: #5a6578;
  --tf-line: rgba(26, 39, 68, 0.1);
  --tf-surface: #ffffff;
  --tf-bg: #f6f7f9;
  --tf-bg-muted: #eef1f5;
  --tf-radius: 14px;
  --tf-radius-sm: 10px;
  --tf-shadow: 0 16px 48px rgba(15, 24, 41, 0.1);
  --tf-shadow-sm: 0 4px 18px rgba(15, 24, 41, 0.06);
  --tf-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --tf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tf-nav-h: 76px;
  --tf-container: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body.tf-landing {
  --lp-brand: #e82328;
  --lp-brand-soft: rgba(232, 35, 40, 0.1);
  --lp-ink: #152033;
  --lp-muted: #5a6578;
  margin: 0;
  font-family: var(--tf-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tf-ink);
  background: var(--tf-surface);
  -webkit-font-smoothing: antialiased;
}

body.tf-landing img {
  max-width: 100%;
  height: auto;
  display: block;
}

body.tf-landing a {
  color: inherit;
  text-decoration: none;
}

body.tf-landing h1,
body.tf-landing h2,
body.tf-landing h3,
body.tf-landing h4,
body.tf-landing h5 {
  margin: 0 0 0.75rem;
  font-family: var(--tf-font);
  letter-spacing: -0.02em;
  color: var(--tf-navy);
  line-height: 1.2;
}

body.tf-landing p {
  margin: 0 0 1rem;
  color: var(--tf-muted);
}

body.tf-landing .container {
  width: min(var(--tf-container), calc(100% - 2rem));
  margin-inline: auto;
}

/* Buttons */
.tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-family: var(--tf-font);
  font-size: 0.9375rem;
  font-weight: 650;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--tf-ease), box-shadow 0.2s var(--tf-ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.tf-btn--primary {
  background: var(--tf-red);
  color: #fff;
  box-shadow: 0 8px 22px var(--tf-red-glow);
}

body.tf-landing a.tf-btn--primary,
body.tf-landing a.tf-btn--primary:hover,
body.tf-landing a.tf-btn--primary:focus {
  color: #fff;
}

.tf-btn--primary:hover {
  background: var(--tf-red-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(232, 35, 40, 0.35);
}

.tf-btn--outline {
  background: transparent;
  color: var(--tf-navy);
  border-color: var(--tf-line);
}

.tf-btn--outline:hover {
  border-color: rgba(232, 35, 40, 0.35);
  color: var(--tf-red);
  background: var(--tf-red-soft);
}

.tf-btn--ghost {
  background: transparent;
  color: var(--tf-navy);
}

.tf-btn--ghost:hover {
  color: var(--tf-red);
}

.tf-btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.tf-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tf-btn--outline-hero {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

body.tf-landing a.tf-btn--outline-hero,
body.tf-landing a.tf-btn--outline-hero:hover {
  color: #fff;
}

.tf-btn--outline-hero:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
}

.tf-btn--lg {
  padding: 0.8rem 1.65rem;
  font-size: 1rem;
}

.tf-btn--block {
  width: 100%;
}

/* Pills */
.tf-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tf-red);
  background: var(--tf-red-soft);
  margin-bottom: 1rem;
}

.tf-pill--soft {
  color: var(--tf-navy);
  background: var(--tf-bg-muted);
}

/* Section helpers */
.tf-section--muted {
  background: var(--tf-bg);
}

.tf-section-head {
  max-width: 42rem;
  margin-bottom: 2.75rem;
}

.tf-section-head--center {
  text-align: center;
  margin-inline: auto;
}

.tf-section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 780;
}

.tf-section-head p {
  font-size: 1.0625rem;
}

/* Reveal */
[data-tf-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--tf-ease), transform 0.55s var(--tf-ease);
}

[data-tf-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Nav — NDFIS pattern: transparent over dark hero, white on scroll, centered pill */
.tf-landing-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--tf-nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.tf-landing-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--tf-line);
  box-shadow: var(--tf-shadow-sm);
  backdrop-filter: blur(16px);
}

.tf-landing-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--tf-nav-h);
  gap: 1rem;
}

.tf-landing-nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.tf-landing-nav__brand img {
  max-height: 40px;
  width: auto;
}

body.tf-landing .tf-logo--light { display: block; }
body.tf-landing .tf-logo--dark { display: none; }
body.tf-landing .tf-landing-nav.is-scrolled .tf-logo--light { display: none; }
body.tf-landing .tf-landing-nav.is-scrolled .tf-logo--dark { display: block; }

.tf-landing-nav__pill {
  display: none;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.tf-landing-nav.is-scrolled .tf-landing-nav__pill {
  border-color: var(--tf-line);
  background: #fff;
}

body.tf-landing .tf-landing-nav__pill > a {
  padding: 0.45rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 560;
  color: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

body.tf-landing .tf-landing-nav.is-scrolled .tf-landing-nav__pill > a {
  color: var(--tf-navy);
}

body.tf-landing .tf-landing-nav__pill > a:hover,
body.tf-landing .tf-landing-nav__pill > a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

body.tf-landing .tf-landing-nav.is-scrolled .tf-landing-nav__pill > a:hover,
body.tf-landing .tf-landing-nav.is-scrolled .tf-landing-nav__pill > a.is-active {
  color: var(--tf-red);
  background: var(--tf-red-soft);
}

.tf-landing-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.tf-landing-nav .tf-lang-switch--inline .tf-lang-switch__link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}
.tf-landing-nav .tf-lang-switch--inline .tf-lang-switch__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.tf-landing-nav.is-scrolled .tf-lang-switch--inline .tf-lang-switch__link {
  color: var(--tf-navy-muted, #5a6578);
}
.tf-landing-nav.is-scrolled .tf-lang-switch--inline .tf-lang-switch__link.is-active {
  color: var(--tf-navy);
  background: rgba(26, 39, 68, 0.08);
}
.tf-landing-nav__mobile .tf-lang-switch--inline {
  padding: 0.4rem 0.4rem 0.8rem;
}
.tf-landing-nav__mobile .tf-lang-switch--inline .tf-lang-switch__link {
  color: var(--tf-navy);
}

.tf-landing-nav__toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.tf-landing-nav.is-scrolled .tf-landing-nav__toggle {
  border-color: var(--tf-line);
  background: var(--tf-surface);
  color: var(--tf-navy);
}

.tf-landing-nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem 1.25rem;
  background: #fff;
  border-top: 1px solid var(--tf-line);
}

.tf-landing-nav.is-open .tf-landing-nav__mobile {
  display: flex;
}

.tf-landing-nav__mobile a {
  padding: 0.7rem 0.4rem;
  color: var(--tf-navy);
  font-weight: 600;
}

@media (min-width: 992px) {
  .tf-landing-nav__pill { display: flex; }
  .tf-landing-nav__toggle,
  .tf-landing-nav__mobile { display: none !important; }
}

/* Hero — NDFIS pattern: full-bleed dark bg, centered copy + framed shot */
.tf-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--tf-nav-h) + 3.5rem) 0 4.5rem;
  text-align: center;
  color: #fff;
}

.tf-hero__bg,
.tf-hero__shade,
.tf-hero__tint {
  position: absolute;
  inset: 0;
}

.tf-hero__bg {
  background: #1a0c0c url("../upload/homepage/hero_bg.png?v=2") center / cover no-repeat;
}

.tf-hero__shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.12) 100%);
}

.tf-hero__tint {
  background: linear-gradient(180deg, rgba(232, 35, 40, 0.1), transparent 50%);
}

.tf-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tf-hero__content {
  text-align: center;
  max-width: 46rem;
  width: 100%;
  margin: 0 auto 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tf-hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tf-hero__pills span {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.tf-hero__brand {
  margin: 0 0 0.65rem;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.tf-hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.1rem;
  text-align: center;
  line-height: 1.12;
}

.tf-hero h1 .tf-hero__line {
  display: block;
}

.tf-hero h1 .lp-type {
  color: #ff8b8e;
}

.tf-hero__lede {
  font-size: 1.125rem;
  max-width: 48rem;
  margin: 0 auto 1.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

body.tf-landing .tf-hero h1,
body.tf-landing .tf-hero__brand {
  color: #fff;
}

body.tf-landing .tf-hero__lede {
  color: rgba(255, 255, 255, 0.78);
}

.tf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.tf-hero__shot {
  position: relative;
  max-width: 880px;
  width: 100%;
  margin-inline: auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
}

.tf-hero__shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  background: transparent;
}

/* Logo cloud / stats */
.tf-logo-cloud {
  padding: 2.5rem 0 3.5rem;
  border-bottom: 1px solid var(--tf-line);
}

.tf-logo-cloud__label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tf-muted);
  margin-bottom: 1.5rem;
}

.tf-logo-cloud__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tf-logo-cloud__item {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--tf-radius-sm);
  background: var(--tf-bg);
  border: 1px solid var(--tf-line);
}

.tf-logo-cloud__item strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--tf-navy);
  line-height: 1.1;
}

.tf-logo-cloud__item span {
  font-size: 0.8125rem;
  color: var(--tf-muted);
  font-weight: 550;
}

/* Support */
.tf-support {
  padding: 5rem 0;
}

.tf-support__card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.25rem;
  border-radius: var(--tf-radius);
  background: var(--tf-bg-muted);
  border: 1px solid var(--tf-line);
}

.tf-support__icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tf-red-soft);
  color: var(--tf-red);
  font-size: 1.75rem;
}

.tf-support__body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.tf-support__body p {
  margin-bottom: 1.25rem;
  max-width: 36rem;
}

/* Features */
.tf-features {
  padding: 5rem 0;
}

.tf-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.tf-feature-card {
  padding: 1.75rem;
  border-radius: var(--tf-radius);
  background: var(--tf-surface);
  border: 1px solid var(--tf-line);
  transition: transform 0.25s var(--tf-ease), box-shadow 0.25s var(--tf-ease), border-color 0.25s;
}

.tf-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tf-shadow-sm);
  border-color: rgba(232, 35, 40, 0.2);
}

.tf-feature-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--tf-red-soft);
}

.tf-feature-card__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tf-feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.tf-feature-card p {
  font-size: 0.9375rem;
  margin: 0;
}

/* Workflow split */
.tf-workflow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: var(--tf-radius);
  background: var(--tf-bg);
  border: 1px solid var(--tf-line);
}

.tf-workflow h3 {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}

.tf-checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.tf-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  color: var(--tf-muted);
  font-size: 0.9375rem;
}

.tf-checklist i {
  color: var(--tf-red);
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.tf-workflow__visual img {
  border-radius: var(--tf-radius-sm);
  border: 1px solid var(--tf-line);
  box-shadow: var(--tf-shadow-sm);
}

/* Process */
.tf-process {
  padding: 5rem 0;
}

.tf-process__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.tf-process__steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tf-step {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--tf-radius-sm);
  border: 1px solid var(--tf-line);
  background: var(--tf-surface);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tf-step.is-active {
  border-color: rgba(232, 35, 40, 0.35);
  background: var(--tf-red-soft);
  box-shadow: var(--tf-shadow-sm);
}

.tf-step__num {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--tf-red);
  letter-spacing: 0.06em;
}

.tf-step h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.tf-step p {
  font-size: 0.875rem;
  margin: 0;
}

.tf-process__output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.tf-metric-card {
  padding: 1.1rem 1.25rem;
  border-radius: var(--tf-radius-sm);
  background: var(--tf-surface);
  border: 1px solid var(--tf-line);
}

.tf-metric-card span {
  display: block;
  font-size: 0.8125rem;
  color: var(--tf-muted);
  margin-bottom: 0.35rem;
}

.tf-metric-card strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tf-navy);
}

.tf-metric-card--accent {
  background: linear-gradient(145deg, var(--tf-red), var(--tf-red-hover));
  border-color: transparent;
}

.tf-metric-card--accent span,
.tf-metric-card--accent strong {
  color: #fff;
}

.tf-process__shot {
  grid-column: 1 / -1;
  border-radius: var(--tf-radius-sm);
  border: 1px solid var(--tf-line);
  box-shadow: var(--tf-shadow-sm);
  margin-top: 0.5rem;
}

/* Testimonial */
.tf-testimonial {
  padding: 5rem 0;
}

.tf-testimonial__quote {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 2.75rem;
  border-radius: var(--tf-radius);
  background: var(--tf-bg-muted);
  border: 1px solid var(--tf-line);
  text-align: center;
}

.tf-testimonial__quote > p {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--tf-navy);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.tf-testimonial__quote footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.tf-testimonial__quote footer img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tf-surface);
  box-shadow: var(--tf-shadow-sm);
}

.tf-testimonial__quote footer strong {
  display: block;
  color: var(--tf-navy);
  font-size: 0.9375rem;
}

.tf-testimonial__quote footer span {
  font-size: 0.8125rem;
  color: var(--tf-muted);
}

/* Pricing */
.tf-pricing {
  padding: 5rem 0;
}

.tf-pricing__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  font-weight: 600;
  color: var(--tf-muted);
}

.tf-pricing__toggle span.is-active {
  color: var(--tf-navy);
}

.tf-pricing__toggle em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tf-red);
  background: var(--tf-red-soft);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.25rem;
}

.tf-pricing__switch {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: var(--tf-navy);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.tf-pricing__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--tf-ease);
}

.tf-pricing__switch.is-yearly::after {
  transform: translateX(24px);
}

.tf-pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.tf-price-card {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--tf-radius);
  background: var(--tf-surface);
  border: 1px solid var(--tf-line);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--tf-ease), box-shadow 0.25s;
}

.tf-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tf-shadow-sm);
}

.tf-price-card.is-featured {
  border-color: rgba(232, 35, 40, 0.45);
  box-shadow: 0 12px 36px var(--tf-red-glow);
  transform: scale(1.02);
}

.tf-price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--tf-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.tf-price-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.tf-price-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
  color: var(--tf-navy);
}

.tf-price-card__price sup {
  font-size: 1rem;
  font-weight: 700;
}

.tf-price-card__price span {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.tf-price-card__price small {
  font-size: 0.875rem;
  color: var(--tf-muted);
  font-weight: 500;
}

.tf-price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.tf-price-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--tf-muted);
  margin-bottom: 0.55rem;
}

.tf-price-card li i {
  color: var(--tf-red);
  margin-top: 0.15rem;
}

/* FAQ */
.tf-faq {
  padding: 5rem 0;
}

.tf-faq__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.tf-faq__intro h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
}

.tf-faq-item {
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-sm);
  background: var(--tf-surface);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.tf-faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 650;
  color: var(--tf-navy);
  cursor: pointer;
  list-style: none;
}

.tf-faq-item summary::-webkit-details-marker {
  display: none;
}

.tf-faq-item[open] summary {
  background: var(--tf-red-soft);
  color: var(--tf-red);
}

.tf-faq-item__body {
  padding: 0 1.15rem 1rem;
  font-size: 0.9375rem;
  color: var(--tf-muted);
}

/* Resources */
.tf-resources {
  padding: 5rem 0;
  background: var(--tf-bg);
}

.tf-resources__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tf-resource-card {
  padding: 1rem;
  border-radius: var(--tf-radius);
  background: var(--tf-surface);
  border: 1px solid var(--tf-line);
  transition: transform 0.25s, box-shadow 0.25s;
}

.tf-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tf-shadow-sm);
}

.tf-resource-card img {
  border-radius: var(--tf-radius-sm);
  margin-bottom: 1rem;
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.tf-resource-card h3 {
  font-size: 1.05rem;
  margin: 0.75rem 0;
}

.tf-resource-card a {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--tf-red);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Contact */
.tf-contact {
  padding: 5rem 0;
}

.tf-contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.tf-contact__info h2 {
  font-size: clamp(1.65rem, 2.5vw, 2rem);
}

.tf-contact__details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.tf-contact__details li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: var(--tf-muted);
  font-size: 0.9375rem;
}

.tf-contact__details i {
  color: var(--tf-red);
  margin-top: 0.15rem;
}

.tf-contact__form {
  padding: 1.75rem;
  border-radius: var(--tf-radius);
  background: var(--tf-surface);
  border: 1px solid var(--tf-line);
  box-shadow: var(--tf-shadow-sm);
}

.tf-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.tf-field {
  display: block;
  margin-bottom: 0.85rem;
}

.tf-field span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--tf-navy);
  margin-bottom: 0.35rem;
}

.tf-field input,
.tf-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-sm);
  font-family: var(--tf-font);
  font-size: 0.9375rem;
  color: var(--tf-ink);
  background: var(--tf-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tf-field input:focus,
.tf-field textarea:focus {
  outline: none;
  border-color: rgba(232, 35, 40, 0.45);
  box-shadow: 0 0 0 3px var(--tf-red-soft);
}

/* Footer — NDFIS pattern: light surface, dark text */
.tf-footer {
  background: #fff;
  color: var(--tf-muted);
  padding-top: 3.5rem;
  border-top: 1px solid var(--tf-line);
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.tf-footer__top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--tf-line);
}

.tf-footer__brand img {
  max-height: 36px;
  margin-bottom: 1rem;
}

body.tf-landing .tf-footer,
body.tf-landing .tf-footer p,
body.tf-landing .tf-footer li,
body.tf-landing .tf-footer a {
  color: var(--tf-muted);
}

body.tf-landing .tf-footer h5 {
  color: var(--tf-navy);
  font-size: 0.9375rem;
  margin-bottom: 0.85rem;
}

body.tf-landing .tf-footer a:hover {
  color: var(--tf-red);
}

.tf-footer__brand p {
  font-size: 0.9375rem;
  max-width: 22rem;
}

.tf-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tf-footer li {
  margin-bottom: 0.45rem;
}

.tf-footer li a {
  font-size: 0.875rem;
}

.tf-footer__bottom {
  padding: 1.5rem 0 2rem;
  text-align: center;
}

.tf-footer .tf-afriforge-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.tf-footer .tf-afriforge-footer__logo {
  max-height: 28px;
  width: auto;
}

body.tf-landing .tf-footer .tf-afriforge-footer__copy,
body.tf-landing .tf-footer .tf-afriforge-footer__copy a {
  color: var(--tf-muted);
}

body.tf-landing .tf-footer .tf-afriforge-footer__copy a:hover {
  color: var(--tf-red);
}

/* Responsive */
@media (max-width: 991.98px) {
  .tf-logo-cloud__grid,
  .tf-features__grid,
  .tf-resources__grid {
    grid-template-columns: 1fr 1fr;
  }

  .tf-workflow,
  .tf-process__layout,
  .tf-faq__layout,
  .tf-contact__layout {
    grid-template-columns: 1fr;
  }

  .tf-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .tf-footer__links {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 575.98px) {
  .tf-logo-cloud__grid,
  .tf-features__grid,
  .tf-resources__grid,
  .tf-field-row {
    grid-template-columns: 1fr;
  }

  .tf-support__card {
    flex-direction: column;
    text-align: center;
  }

  .tf-price-card.is-featured {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-tf-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.tf-legal-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--tf-nav-h) + 3.25rem) 1.25rem 3.75rem;
  text-align: center;
}

.tf-legal-hero__bg,
.tf-legal-hero__shade,
.tf-legal-hero__tint {
  position: absolute;
  inset: 0;
}

.tf-legal-hero__bg {
  background: #1a0c0c url("../upload/homepage/hero_bg.png?v=2") center / cover no-repeat;
}

.tf-legal-hero__shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.28) 100%);
}

.tf-legal-hero__tint {
  background: linear-gradient(180deg, rgba(232, 35, 40, 0.12), transparent 55%);
}

.tf-legal-hero__inner {
  position: relative;
  z-index: 1;
}

body.tf-landing .tf-legal-hero h1 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 3rem);
}

body.tf-landing .tf-legal-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.tf-legal {
  padding: 0 0 5rem;
  background: var(--tf-bg);
}

.tf-legal__card {
  position: relative;
  z-index: 1;
  width: min(800px, calc(100% - 2rem));
  margin: -2.25rem auto 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--tf-line);
  border-radius: 18px;
  box-shadow: var(--tf-shadow);
}

body.tf-landing .tf-legal__card :where(h1, h2, h3, h4) {
  color: var(--tf-navy);
  margin: 1.5rem 0 0.55rem;
}

body.tf-landing .tf-legal__card :where(h1, h2, h3, h4):first-child {
  margin-top: 0;
}

body.tf-landing .tf-legal__card p,
body.tf-landing .tf-legal__card li {
  color: var(--tf-muted);
  line-height: 1.75;
}

body.tf-landing .tf-legal__card a {
  color: var(--tf-red);
}

.tf-legal__card ul,
.tf-legal__card ol {
  padding-left: 1.2rem;
}

