/* Layout: tagfalter — loaded after style.css only while this layout is active
   (see inc/layouts.php and rtsb_theme_scripts()). Scoped via body.layout-tagfalter. */

/* =========================================================================
   LAYOUT: TAGFALTER (tagfalter.rothirsch.tech)
   ----------------------------------------------------------------------
   Sales page for the Tagfalter SaaS product. Conversion-optimised:
   warm cream canvas, soft butterfly-wing gradient blobs in the hero,
   a confidence-building trust strip, three benefit cards, a three-tile
   pricing teaser (Basis + 2 modules), and a high-contrast final CTA band.

   Personality: approachable Austrian SaaS for non-technical SMBs.
   Sora throughout (single family, multiple weights). Brand color drives
   the hero gradient and primary CTA so the page adapts to the active
   color scheme. Scoped via body.layout-tagfalter.
   ========================================================================= */
body.layout-tagfalter {
  --tf-paper: #fbf9f4;
  --tf-paper-2: #ffffff;
  --tf-ink: #14130f;
  --tf-ink-soft: #2a2823;
  --tf-muted: rgba(20, 19, 15, 0.62);
  --tf-rule: rgba(20, 19, 15, 0.08);
  --tf-rule-strong: rgba(20, 19, 15, 0.16);
  --tf-tint-1: color-mix(in srgb, var(--primary-color) 14%, var(--tf-paper));
  --tf-tint-2: color-mix(in srgb, var(--accent-color) 14%, var(--tf-paper));
  --tf-glow: color-mix(in srgb, var(--primary-color) 60%, transparent);
  --tf-glow-2: color-mix(in srgb, var(--accent-color) 60%, transparent);
  --tf-radius: 18px;
  --tf-radius-lg: 26px;
  --page-display: var(--font-display);
  --page-body: var(--font-body);
  --page-ink: var(--tf-ink);
  --page-paper: var(--tf-paper);
  --page-muted: var(--tf-muted);
  --page-accent: var(--primary-color);
  --page-rule: var(--tf-rule);
  background: var(--tf-paper);
  color: var(--tf-ink);
}

/* --- Hero --- */
body.layout-tagfalter .hero-section.hero-tagfalter {
  background: var(--tf-paper);
  position: relative;
  min-height: auto;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 4rem) clamp(3rem, 6vw, 5rem);
  margin: 0;
  text-align: center;
  overflow: hidden;
  color: var(--tf-ink);
  isolation: isolate;
}

body.layout-tagfalter .tf-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

body.layout-tagfalter .tf-hero-blob--1 {
  top: -10%;
  left: -5%;
  width: clamp(280px, 40vw, 540px);
  height: clamp(280px, 40vw, 540px);
  background: radial-gradient(circle at 30% 30%, var(--tf-glow), transparent 70%);
}

body.layout-tagfalter .tf-hero-blob--2 {
  top: -5%;
  right: -8%;
  width: clamp(260px, 36vw, 480px);
  height: clamp(260px, 36vw, 480px);
  background: radial-gradient(circle at 70% 40%, var(--tf-glow-2), transparent 70%);
}

body.layout-tagfalter .tf-hero-grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(20, 19, 15, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

body.layout-tagfalter .tf-hero-content {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  margin: 0 auto;
}

body.layout-tagfalter .tf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--tf-paper-2);
  border: 1px solid var(--tf-rule-strong);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tf-ink-soft);
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(20, 19, 15, 0.04);
}

body.layout-tagfalter .tf-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

body.layout-tagfalter .tf-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--tf-ink);
  margin: 0 0 1.25rem;
  text-shadow: none;
}

body.layout-tagfalter .tf-hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--tf-ink-soft);
  margin: 0 auto 2.25rem;
  max-width: 38rem;
  font-weight: 400;
  text-shadow: none;
}

body.layout-tagfalter .tf-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
}

body.layout-tagfalter .tf-hero-cta .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
  letter-spacing: -0.005em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.layout-tagfalter .tf-cta-primary {
  background: var(--tf-ink);
  color: var(--tf-paper-2);
  border: 1px solid var(--tf-ink);
  box-shadow: 0 6px 20px -8px rgba(20, 19, 15, 0.6),
              0 2px 4px rgba(20, 19, 15, 0.1);
}

body.layout-tagfalter .tf-cta-primary:hover,
body.layout-tagfalter .tf-cta-primary:focus-visible {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--primary-color) 70%, transparent),
              0 2px 4px rgba(20, 19, 15, 0.1);
}

body.layout-tagfalter .tf-cta-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

body.layout-tagfalter .tf-cta-primary:hover .tf-cta-arrow {
  transform: translateX(3px);
}

body.layout-tagfalter .tf-cta-secondary {
  background: transparent;
  color: var(--tf-ink);
  border: 1px solid var(--tf-rule-strong);
}

body.layout-tagfalter .tf-cta-secondary:hover,
body.layout-tagfalter .tf-cta-secondary:focus-visible {
  background: var(--tf-paper-2);
  border-color: var(--tf-ink);
  transform: translateY(-1px);
}

body.layout-tagfalter .tf-cta-secondary .rtsb-icon {
  color: var(--tf-muted);
}

/* --- Trust strip --- */
body.layout-tagfalter .tf-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 48rem;
}

body.layout-tagfalter .tf-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--tf-ink-soft);
  white-space: nowrap;
}

body.layout-tagfalter .tf-trust-item:empty {
  display: none;
}

body.layout-tagfalter .tf-trust-icon {
  font-size: 1rem;
  line-height: 1;
}

/* --- Section header --- */
body.layout-tagfalter .tf-features,
body.layout-tagfalter .tf-pricing {
  background: var(--tf-paper);
  padding: clamp(4rem, 7vw, 6.5rem) clamp(1.5rem, 6vw, 4rem);
}

body.layout-tagfalter .tf-features-header,
body.layout-tagfalter .tf-pricing-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

body.layout-tagfalter .tf-section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.85rem;
}

body.layout-tagfalter .tf-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--tf-ink);
  margin: 0 0 0.75rem;
}

body.layout-tagfalter .tf-pricing-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--tf-ink-soft);
  margin: 0;
}

/* --- Feature cards --- */
body.layout-tagfalter .tf-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 78rem;
  margin: 0 auto;
}

body.layout-tagfalter .tf-feature-card {
  background: var(--tf-paper-2);
  border: 1px solid var(--tf-rule);
  border-radius: var(--tf-radius-lg);
  padding: 2rem 1.75rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

body.layout-tagfalter .tf-feature-card:hover,
body.layout-tagfalter .tf-feature-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--tf-rule-strong);
  box-shadow: 0 14px 36px -18px rgba(20, 19, 15, 0.2);
}

body.layout-tagfalter .tf-feature-card--featured {
  background: linear-gradient(180deg, var(--tf-tint-1), var(--tf-paper-2) 80%);
  border-color: color-mix(in srgb, var(--primary-color) 25%, var(--tf-rule));
}

body.layout-tagfalter .tf-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tf-tint-1);
  color: var(--primary-color);
  margin-bottom: 1.25rem;
}

body.layout-tagfalter .tf-feature-icon--2 {
  background: var(--tf-tint-2);
  color: var(--accent-color);
}

body.layout-tagfalter .tf-feature-icon--3 {
  background: color-mix(in srgb, var(--secondary-color) 14%, var(--tf-paper));
  color: var(--secondary-color);
}

body.layout-tagfalter .tf-feature-icon .rtsb-icon {
  width: 24px;
  height: 24px;
}

body.layout-tagfalter .tf-feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--tf-ink);
  margin: 0 0 0.6rem;
}

body.layout-tagfalter .tf-feature-body {
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--tf-ink-soft);
}

body.layout-tagfalter .tf-feature-body p { margin: 0 0 0.6rem; }

body.layout-tagfalter .tf-feature-body p:last-child { margin-bottom: 0; }

/* --- Star rating primitive (Google reviews + WooCommerce cards) --- */
body.layout-tagfalter .tf-stars {
  position: relative;
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.1em;
  font-family: Arial, "Segoe UI Symbol", sans-serif; /* consistent star glyph metrics */
  white-space: nowrap;
}

body.layout-tagfalter .tf-stars-base {
  color: var(--tf-rule-strong);
}

body.layout-tagfalter .tf-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: #f5a623;
}

/* --- Google reviews section --- */
body.layout-tagfalter .tf-reviews {
  background: var(--tf-paper-2);
  border-top: 1px solid var(--tf-rule);
  padding: clamp(4rem, 7vw, 6.5rem) clamp(1.5rem, 6vw, 4rem);
}

body.layout-tagfalter .tf-reviews-aggregate {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.75rem;
  margin-top: 1rem;
}

body.layout-tagfalter .tf-reviews-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--tf-ink);
}

body.layout-tagfalter .tf-reviews-aggregate .tf-stars {
  font-size: 1.3rem;
}

body.layout-tagfalter .tf-reviews-count {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--tf-ink-soft);
}

body.layout-tagfalter .tf-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 78rem;
  margin: 0 auto;
}

body.layout-tagfalter .tf-review-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  background: var(--tf-paper);
  border: 1px solid var(--tf-rule);
  border-radius: var(--tf-radius-lg);
  padding: 1.75rem 1.6rem;
}

body.layout-tagfalter .tf-review-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--tf-ink-soft);
  quotes: "\201E" "\201C";
}

body.layout-tagfalter .tf-review-text::before { content: open-quote; }

body.layout-tagfalter .tf-review-text::after  { content: close-quote; }

body.layout-tagfalter .tf-review-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
}

body.layout-tagfalter .tf-review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tf-tint-1);
  color: var(--primary-color);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

body.layout-tagfalter .tf-review-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

body.layout-tagfalter .tf-review-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--tf-ink);
}

body.layout-tagfalter .tf-review-when {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--tf-ink-soft);
}

body.layout-tagfalter .tf-reviews-cta {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 900px) {
  body.layout-tagfalter .tf-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  body.layout-tagfalter .tf-reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Pricing --- */
body.layout-tagfalter .tf-pricing {
  background: linear-gradient(180deg, var(--tf-paper), var(--tf-paper-2));
  border-top: 1px solid var(--tf-rule);
  border-bottom: 1px solid var(--tf-rule);
}

body.layout-tagfalter .tf-pricing-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  align-items: stretch;
}

body.layout-tagfalter .tf-price-card {
  position: relative;
  background: var(--tf-paper-2);
  border: 1px solid var(--tf-rule);
  border-radius: var(--tf-radius-lg);
  padding: 2.25rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

body.layout-tagfalter .tf-price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px -18px rgba(20, 19, 15, 0.18);
}

body.layout-tagfalter .tf-price-card--featured {
  background: linear-gradient(180deg, var(--tf-ink), var(--tf-ink-soft));
  color: var(--tf-paper-2);
  border-color: var(--tf-ink);
}

body.layout-tagfalter .tf-price-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--primary-color);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

body.layout-tagfalter .tf-price-tag--addon {
  background: transparent;
  color: var(--tf-muted);
  border: 1px solid var(--tf-rule-strong);
}

body.layout-tagfalter .tf-price-card--featured .tf-price-tag {
  background: var(--primary-color);
  color: #fff;
}

body.layout-tagfalter .tf-price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: inherit;
  margin: 0;
}

body.layout-tagfalter .tf-price-amount--addon {
  color: var(--tf-ink);
}

body.layout-tagfalter .tf-price-period {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: color-mix(in srgb, currentColor 60%, transparent);
  margin: 0.35rem 0 1rem;
}

body.layout-tagfalter .tf-price-card--featured .tf-price-period {
  color: rgba(255, 255, 255, 0.6);
}

body.layout-tagfalter .tf-price-label {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 500;
  color: inherit;
  margin-top: auto;
}

body.layout-tagfalter .tf-price-card:not(.tf-price-card--featured) .tf-price-label {
  color: var(--tf-ink-soft);
}

body.layout-tagfalter .tf-pricing-note {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--tf-muted);
  text-align: center;
  margin: 2rem auto 0;
  max-width: 36rem;
}

/* --- Final CTA --- */
body.layout-tagfalter .tf-final-cta {
  background: var(--tf-ink);
  color: var(--tf-paper);
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.5rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0;
}

body.layout-tagfalter .tf-final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, color-mix(in srgb, var(--primary-color) 35%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, color-mix(in srgb, var(--accent-color) 22%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

body.layout-tagfalter .tf-final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
}

body.layout-tagfalter .tf-final-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--tf-paper);
  margin: 0 0 0.85rem;
}

body.layout-tagfalter .tf-final-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 2rem;
}

body.layout-tagfalter .tf-cta-primary--invert {
  background: var(--tf-paper);
  color: var(--tf-ink);
  border-color: var(--tf-paper);
}

body.layout-tagfalter .tf-cta-primary--invert:hover,
body.layout-tagfalter .tf-cta-primary--invert:focus-visible {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* --- Dark-mode adjustments --- */
@media (prefers-color-scheme: dark) {
  body.layout-tagfalter {
    --tf-paper: #0e0d0b;
    --tf-paper-2: #16140f;
    --tf-ink: #f6f3ec;
    --tf-ink-soft: #d8d3c6;
    --tf-muted: rgba(246, 243, 236, 0.6);
    --tf-rule: rgba(246, 243, 236, 0.08);
    --tf-rule-strong: rgba(246, 243, 236, 0.18);
    --tf-tint-1: color-mix(in srgb, var(--primary-color) 18%, var(--tf-paper-2));
    --tf-tint-2: color-mix(in srgb, var(--accent-color) 18%, var(--tf-paper-2));
  }

  body.layout-tagfalter .tf-eyebrow {
    background: var(--tf-paper-2);
    box-shadow: none;
  }

  body.layout-tagfalter .tf-cta-primary {
    background: var(--tf-paper);
    color: var(--tf-ink);
    border-color: var(--tf-paper);
  }

  body.layout-tagfalter .tf-cta-primary:hover,
  body.layout-tagfalter .tf-cta-primary:focus-visible {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
  }

  body.layout-tagfalter .tf-price-card--featured {
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 22%, var(--tf-paper-2)), var(--tf-paper-2));
    border-color: color-mix(in srgb, var(--primary-color) 35%, var(--tf-rule-strong));
  }

  body.layout-tagfalter .tf-final-cta {
    background: #050504;
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  body.layout-tagfalter .tf-features-grid {
    grid-template-columns: 1fr;
  }
  body.layout-tagfalter .tf-pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.layout-tagfalter .tf-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  body.layout-tagfalter .tf-hero-cta .cta-button {
    justify-content: center;
  }
  body.layout-tagfalter .tf-trust-strip {
    gap: 0.4rem 1rem;
    font-size: 0.82rem;
  }
}

/* --- Tagfalter hero: readability over an uploaded background image ---
   The global hero rule injects a darkened linear-gradient + image with
   !important. The default tagfalter hero uses dark text on cream paper,
   which is unreadable on the dark image. When body.has-hero-bg is set,
   swap to light text and hide the decorative blobs/grain that would clash
   with the photo. An extra dark ::after overlay reinforces contrast. */
body.layout-tagfalter.has-hero-bg .hero-section.hero-tagfalter {
  color: #ffffff;
  isolation: isolate;
}

body.layout-tagfalter.has-hero-bg .hero-section.hero-tagfalter::after,
body.layout-tagfalter.has-hero-bg .hero-section.hero-about::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Text-protection scrim, WCAG 1.4.3-safe by construction, and the SAME
     on the homepage and the about page so both heroes read as one photo
     at one brightness. It sits on top of the theme-wide .hero-bg::after
     (rgba(0,0,0,0.40)); the flat base layer here adds 0.30, so the total
     darkening is 1 − 0.60 × 0.70 = 58 %: even over a pure-white uploaded
     photo the effective background behind white text is ~#6B → ≈5.3:1
     contrast (clears AA 4.5:1 for body text and 3:1 for the headline)
     everywhere text can sit. The contrast floor must not depend on the
     image, so the flat layer never fades to transparent. The radial +
     bottom layers on top only DEEPEN the centre slightly for aesthetics —
     they can only raise contrast, never lower it. */
  background:
    radial-gradient(ellipse 80% 85% at 50% 42%,
      rgba(8, 7, 4, 0.10) 0%,
      transparent 72%),
    linear-gradient(180deg, transparent 60%, rgba(8, 7, 4, 0.12) 100%),
    rgba(8, 7, 4, 0.30);
  z-index: 1;
  pointer-events: none;
}

/* About page over the same photo: same stacking as the homepage hero so
   the scrim sits above the image and below the text. */
body.layout-tagfalter.has-hero-bg .hero-section.hero-about {
  isolation: isolate;
}

body.layout-tagfalter.has-hero-bg .hero-section.hero-about .hero-content {
  position: relative;
  z-index: 2;
}

body.layout-tagfalter.has-hero-bg .tf-hero-content {
  position: relative;
  z-index: 2;
}

body.layout-tagfalter.has-hero-bg .tf-hero-blob,
body.layout-tagfalter.has-hero-bg .tf-hero-grain {
  display: none !important;
}

body.layout-tagfalter.has-hero-bg .tf-hero-title {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

body.layout-tagfalter.has-hero-bg .tf-hero-subtitle {
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

body.layout-tagfalter.has-hero-bg .tf-eyebrow {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.6);
  /* Pin to a literal dark color so the site name stays readable
     regardless of color-scheme (--tf-ink flips to near-white in
     dark mode and would vanish on the white pill). */
  color: #14130f !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Dark-mode hero-bg: swap to a dark glass pill with light text
   so the eyebrow integrates with the dark theme instead of being a
   harsh white blob over the (often dark) hero image. */
@media (prefers-color-scheme: dark) {
  body.layout-tagfalter.has-hero-bg .tf-eyebrow {
    background: rgba(20, 19, 15, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #f6f3ec !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
  }
}

body.layout-tagfalter.has-hero-bg .tf-trust-item {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Outline secondary CTA needs a light border on dark image */
body.layout-tagfalter.has-hero-bg .tf-cta-secondary {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(4px);
}

body.layout-tagfalter.has-hero-bg .tf-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
}
