/*
 * palette-home.css: route-family styles for the home page (/).
 * Loads after site-palette.css (core) on those routes only; see
 * tb_get_palette_family() / inc/palette-families.json and "Where CSS Goes" in DESIGN.md.
 * Rules here may rely on core tokens and components, never the reverse.
 */

/* ── Closing-CTA decision recap: two-column product summary that restates
   the hero's choice (who it's for / failover / from-price) so the end of
   the page doesn't depend on specs read ~2,500px earlier. Reuses the
   spec-dl grammar on the dark blueprint band via glass-surface tokens. ── */
.tbox-cta-recap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  max-width: 820px;
  margin: var(--space-xl) auto;
  text-align: left;
}

.tbox-cta-recap__col {
  padding: var(--space-lg);
  background: var(--surface-glass-04);
  border: 1px solid var(--surface-glass-10);
  border-radius: var(--radius-md);
}

.tbox-cta-recap__name {
  margin: 0 0 var(--space-sm);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-on-dark);
}

.tbox-cta-recap__specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 1rem;
  margin: 0;
  font-size: var(--fs-sm);
}

.tbox-cta-recap__specs dd {
  margin: 0;
  color: var(--text-on-dark-soft);
  line-height: var(--lh-on-dark-normal);
}

.tbox-cta-recap__specs dd strong {
  color: var(--brand-primary-text);
}

@media (width <= 700px) {
  .tbox-cta-recap {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* ============================================================
   Home hero — Aurora variant
   Side-by-side product cards above a continuously drifting
   aurora over the brand navy surface.
   ============================================================ */

.tbox-home-hero-aurora::before {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(38% 32% at 22% 28%, color-mix(in srgb, var(--aurora-a) 65%, transparent) 0%, transparent 70%),
    radial-gradient(34% 30% at 78% 72%, color-mix(in srgb, var(--aurora-b) 65%, transparent) 0%, transparent 70%),
    radial-gradient(28% 24% at 50% 50%, color-mix(in srgb, var(--aurora-a) 42%, transparent) 0%, transparent 70%);
  filter: blur(40px);
  animation: tbox-home-hero-aurora-drift 5s ease-in-out infinite alternate;
  opacity: 0.9;
}

.tbox-home-hero-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 12%) 0%, transparent 35%, transparent 65%, rgb(0 0 0 / 18%) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .tbox-home-hero-aurora::before { animation: none; }
}

.tbox-home-hero-aurora__inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.tbox-home-hero-aurora h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 auto 0.8rem;
  max-width: 25ch;
  font-weight: 700;
}

.tbox-home-hero-aurora h1 .tbox-home-hero-aurora__accent {
  color: var(--brand-cta);
}

/* On phones the first headline line sits over the aurora's lightest band
   (#1168a7), where --brand-cta orange is 2.6:1. The lighter brand highlight
   holds >=3.2:1 there (large-text 3:1), including the reduced-motion frame. */
@media (width <= 600px) {
  .tbox-home-hero-aurora h1 .tbox-home-hero-aurora__accent {
    color: var(--brand-highlight);
  }
}

#hero-section.tbox-home-hero-aurora .tbox-home-hero-aurora__sub {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.55;
  margin: 0 auto clamp(2rem, 3.5vw, 2.8rem);
  max-width: var(--prose-measure-wide);
  color: var(--text-inverse);
}

.tbox-home-hero-aurora__paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  text-align: left;
}

.tbox-home-hero-aurora__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  text-decoration: none;
  color: var(--text-inverse);
  background: color-mix(in srgb, var(--brand-primary-ink) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--tbox-ease-out-quart, ease), border-color 0.25s, box-shadow 0.35s;
}

.tbox-home-hero-aurora__card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--aurora-a) 70%, transparent);
  box-shadow: 0 18px 40px rgb(0 0 0 / 28%), 0 0 0 1px color-mix(in srgb, var(--aurora-a) 30%, transparent);
}

.tbox-home-hero-aurora__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--tbox-font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* Lightened from --brand-cta (#f79625, 3.63:1 on the deep-blue card) to clear
     AA for this 12px label; --warm-0 measures 5.34:1 in both themes. */
  color: var(--warm-0);
  font-weight: 700;
}

.tbox-home-hero-aurora__eyebrow::before {
  content: "";
  width: 8px;
  height: 1px;
  background: var(--brand-cta);
}

#hero-section.tbox-home-hero-aurora .tbox-home-hero-aurora__title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  margin: 0.15rem 0;
  line-height: 1.08;
  color: var(--text-inverse);
}

#hero-section.tbox-home-hero-aurora .tbox-home-hero-aurora__tagline {
  font-size: 1.02rem;
  color: var(--text-inverse);
  margin: 0;
  line-height: 1.5;
  opacity: 0.92;
}

.tbox-home-hero-aurora__bullets {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

#hero-section.tbox-home-hero-aurora .tbox-home-hero-aurora__bullets li {
  font-size: var(--fs-sm);
  color: var(--text-inverse);
  opacity: 0.92;
  position: relative;
  padding-left: 1.3rem;
}

.tbox-home-hero-aurora__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-cta) 70%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-cta) 18%, transparent);
}

.tbox-home-hero-aurora__card-foot {
  display: flex;
  /* Wrap whole units at narrow widths: price and go labels stay intact
     ("Explore App Hosting →" drops to its own line instead of breaking mid-label). */
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  margin-top: 0.4rem;
}

.tbox-home-hero-aurora__price {
  font-family: var(--ff-display);
  font-size: 1.12rem;
  white-space: nowrap;
}

.tbox-home-hero-aurora__go {
  font-weight: 700;
  color: var(--brand-cta);
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  white-space: nowrap;
}

.tbox-home-hero-aurora__go-arrow {
  transition: transform 0.25s var(--tbox-ease-out-quart, ease);
}

.tbox-home-hero-aurora__card:hover .tbox-home-hero-aurora__go-arrow {
  transform: translateX(4px);
}

@media (max-width: 780px) {
  .tbox-home-hero-aurora__paths { grid-template-columns: 1fr; }
}
/* stylelint-disable no-descending-specificity -- scoped block ordered for readability over cross-file specificity ranking */

/* ════════════════════════════════════════════════════════════════════════
   Home page body — editorial brochure (intro, product showcases, adjacent
   products, operating-model band). Section backgrounds come from
   .tbox-section / .tbox-section--alt / .tbox-section--dark; this block owns
   structure and components only.
   ════════════════════════════════════════════════════════════════════════ */

/* Intro band (heading + desc are reused by the adjacent-products head) */
.tbox-home-section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text-primary);
  max-width: 48ch;
}
.tbox-home-intro__desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: var(--prose-measure-default);
  margin: 0;
}
/* Editorial brochure headings: left-aligned, no centered underline accent.
   Chained child selectors beat the global `section > .tbox-container > h2`
   centering + ::after underline rules. */
section > .tbox-container > .tbox-home-section-heading,
section > .tbox-container > .tbox-home-showcase__name {
  text-align: left;
  padding-bottom: 0;
}
section > .tbox-container > .tbox-home-section-heading::after,
section > .tbox-container > .tbox-home-showcase__name::after {
  content: none;
}

/* Product showcase */
.tbox-home-showcase__name {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}
.tbox-home-showcase__tagline {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin: 0 0 2rem;
  max-width: 42ch;
}
/* Off-ramp for non-server visitors before the technical VPS deep-dive. */
.tbox-home-showcase__offramp {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  margin: -1.25rem 0 2rem;
}
.tbox-home-showcase__offramp a {
  color: var(--brand-primary-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Sits after the demo carousel so each showcase ends on its CTA pair. */
.tbox-home-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* Mechanism callout — hairline full-border tinted block (no side stripe) */
.tbox-home-mechanism {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--brand-primary-bg);
  border: 1px solid var(--brand-primary-30);
  border-radius: var(--radius-md);
}
.tbox-home-mechanism__label {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* Surface-aware: blue-7 on the light tint, blue-3 in dark mode and inside
     the navy App Hosting showcase (which re-points --brand-primary-text). */
  color: var(--brand-primary-text);
  margin-bottom: 0.35rem;
}
.tbox-home-mechanism__title {
  font-size: 1.0625rem;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}
.tbox-home-mechanism__body {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
  max-width: var(--prose-measure-default);
}

/* Spec list */
.tbox-home-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 1rem;
  margin: 0 0 2rem;
  font-size: var(--fs-base);
}
.tbox-home-specs dt {
  font-family: var(--tbox-font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}
.tbox-home-specs dd {
  margin: 0;
  color: var(--text-primary);
}
.tbox-home-specs dd strong {
  color: var(--brand-primary-deep-text);
}

/* Price tag */
.tbox-home-pricetag {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.5rem 0.85rem;
  background: var(--brand-primary-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: var(--fs-base);
}
.tbox-home-pricetag__price {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}
.tbox-home-pricetag__unit {
  color: var(--text-secondary);
}
/* --text-secondary, not --text-muted: the muted gray measures ~3.9:1 on the
   pale brand tint and these notes carry money/trial details. */
.tbox-home-pricetag__note {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin-left: 0.25rem;
}
/* Credit-mechanics note links to its FAQ answer; keep it quiet, not button-blue */
.tbox-home-pricetag__note a {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
.tbox-home-pricetag__note a:hover,
.tbox-home-pricetag__note a:focus-visible {
  color: var(--brand-primary-deep-text);
}
/* Stacked notes read as one run-on line when inline; only the first note
   shares the price row, the rest each take a full line. */
.tbox-home-pricetag__note + .tbox-home-pricetag__note {
  flex-basis: 100%;
  margin-left: 0;
}
/* Below the price row the long trial/credit notes overflow a 390px viewport;
   drop each note to its own full-width line. */
@media (width <= 640px) {
  /* Block-level flex: keeps "from $X.XX /mo" on one line at the column's
     full width instead of shrink-wrapping to the wrapped note's width. */
  .tbox-home-pricetag {
    display: flex;
  }

  .tbox-home-pricetag__note {
    flex-basis: 100%;
    margin-left: 0;
  }
}

/* Adjacent products row */
.tbox-home-adjacent__head {
  margin-bottom: 2.5rem;
}
.tbox-home-adjacent__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1rem;
}
.tbox-home-adj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tbox-home-adj-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}
/* The "Coming soon" card is a span, not a link — no hover lift, no link affordance. */
.tbox-home-adj-card--soon:hover {
  border-color: var(--border-mid);
  transform: none;
}
.tbox-home-adj-card__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-family: var(--tbox-font-mono);
}
.tbox-home-adj-card__row .material-symbols-outlined {
  font-size: var(--fs-lg);
  color: var(--brand-primary);
}
.tbox-home-adj-card__name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0;
}
.tbox-home-adj-card__desc {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  margin: 0;
  line-height: var(--lh-relaxed);
}
.tbox-home-adj-card__link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--brand-primary-text);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.tbox-home-adj-card__link .material-symbols-outlined {
  font-size: 1rem;
}
.tbox-home-adj-card--soon {
  border: 1px dashed var(--border-mid);
  background: var(--surface-subtle);
}
/* Anchor card — one weighted card breaks the four-identical-cards monotony */
.tbox-home-adj-card--anchor {
  background: color-mix(in srgb, var(--surface-card) 92%, var(--brand-primary) 8%);
  border-color: color-mix(in srgb, var(--border-light) 45%, var(--brand-primary) 55%);
}
.tbox-home-adj-card--anchor .tbox-home-adj-card__name {
  font-size: var(--fs-xl);
}
.tbox-home-adj-card__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-cap);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (width <= 900px) {
  .tbox-home-adjacent__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Adjacent services ≤600px: condensed 2x2 chip grid, mirroring the canonical
   value-strip mobile treatment (hidden descriptions, compact chips) so the
   section doesn't stack into four full-height cards before the trust strip. */
@media (width <= 600px) {
  .tbox-home-adjacent__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: var(--space-sm);
  }

  .tbox-home-adj-card {
    padding: var(--space-md);
    justify-content: center;
    border-radius: var(--radius-lg);
  }

  .tbox-home-adj-card__desc,
  .tbox-home-adj-card__link {
    display: none;
  }

  .tbox-home-adj-card__name,
  .tbox-home-adj-card--anchor .tbox-home-adj-card__name {
    font-size: var(--fs-base);
  }
}

/* Operating-model band — tint rhythm break between the dark App Hosting
   showcase and the dark-blue trust strip */
.tbox-home-operating__head {
  margin-bottom: 2.5rem;
}
.tbox-home-operating__heading {
  color: var(--text-primary);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  max-width: 38ch;
}
.tbox-home-operating__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.tbox-home-operating-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "icon body";
  column-gap: var(--space-lg);
  padding: 1.5rem;
  background: none;
  border: 0;
  border-radius: 0;
}
.tbox-home-operating-card + .tbox-home-operating-card {
  border-left: 1px solid var(--border-light);
}
.tbox-home-operating-card__icon {
  grid-area: icon;
  align-self: start;
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary-20);
  color: var(--brand-primary);
  border-radius: var(--radius-sm);
}
.tbox-home-operating-card__icon .material-symbols-outlined {
  font-size: 1.25rem;
}
.tbox-home-operating-card__title {
  grid-area: title;
  font-size: 1.0625rem;
  font-weight: var(--fw-semibold);
  margin: 0 0 0.35rem;
  color: var(--text-primary);
}
.tbox-home-operating-card__body {
  grid-area: body;
  font-size: var(--fs-base);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}
@media (width <= 760px) {
  .tbox-home-operating__grid {
    grid-template-columns: 1fr;
  }
  .tbox-home-operating-card + .tbox-home-operating-card {
    border-left: 0;
    border-top: 1px solid var(--border-light);
  }
}

/* App Hosting showcase (section 02) — constant dark band in both themes,
   matching the operating-model band. The Cloud VPS showcase (section 01)
   intentionally stays on its light surface for product-to-product contrast. */
.tbox-section--dark.tbox-home-showcase--app {
  background: var(--brand-hero-dark);
}
:root[data-theme="dark"] .tbox-section--dark.tbox-home-showcase--app {
  background: var(--brand-hero-dark);
}

/* Light-mode dark-island: re-point the theme tokens the copy column, the CTAs
   and the video carousel consume so they render dark on the navy band. In dark
   mode :root already supplies dark values, so this block is skipped. Mirrors
   the App Hosting hero dark-island pattern (see the dark-surface context block
   in the dark/light theme section). The --tbox-btn-* text tokens keep the warm-
   outline "Start Free Trial" CTA legible on navy. */
:root:not([data-theme="dark"]) .tbox-home-showcase--app {
  --text-primary:          var(--neutral-0);
  --text-secondary:        var(--neutral-1);
  --text-muted:            var(--neutral-2);
  --text-tertiary:         var(--text-muted);
  --brand-primary-deep-text: var(--blue-1);
  --focus-ring:            var(--blue-1);
  --surface-subtle:        #0b1726;
  --border-light:          rgb(137 166 199 / 18%);
  --brand-primary-text:    var(--blue-3);
  --tbox-btn-primary-text: var(--text-inverse);
  --tbox-btn-ink:          var(--text-inverse);
}

/* The App Hosting showcase is a constant dark band, so its video carousel must
   render with the dark-mode surface treatment in light mode too — otherwise the
   base (light) pill track and caption card collide with the light-mode dark-
   island text tokens above. In dark mode :root already supplies these values
   and this block is skipped. */
:root:not([data-theme="dark"]) .tbox-home-showcase--app .tbox-video-carousel {
  --surface-base: #07111f;
  --border-mid: rgb(137 166 199 / 26%);
}
:root:not([data-theme="dark"]) .tbox-home-showcase--app .tbox-video-carousel__tabs {
  background: color-mix(in srgb, var(--surface-base) 88%, var(--brand-primary) 8%);
}
:root:not([data-theme="dark"]) .tbox-home-showcase--app .tbox-video-carousel__tab.is-active {
  background: color-mix(in srgb, var(--surface-base) 88%, var(--brand-primary) 10%);
  border-color: color-mix(in srgb, var(--brand-primary) 30%, var(--border-mid));
}

/* The mechanism + price-tag blocks use a pale brand tint that reads as a
   bright panel on navy. Swap to the glass treatment the operating-model
   cards use. */
.tbox-home-showcase--app .tbox-home-mechanism,
.tbox-home-showcase--app .tbox-home-pricetag {
  background: var(--surface-glass-04);
  border: 1px solid var(--surface-glass-10);
}

/* Spec-list emphasis: on the navy band use the section's brand-text token
   (light blue in both themes) to match the band's other brand ink. */
.tbox-home-showcase--app .tbox-home-specs dd strong {
  color: var(--brand-primary-text);
}

/* App Hosting home showcase: feature rows below the autoscaling monitor */
.tbox-ah-right-feats {
  margin-top: 10px;
}
.tbox-ah-right-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--border-light);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.tbox-ah-right-feat .material-symbols-outlined {
  font-size: 19px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--brand-primary);
}
.tbox-ah-right-feat__title {
  display: block;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 2px;
}
.tbox-ah-right-feat__sub {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
/* Light-mode dark-island overrides: section stays navy in light mode; these re-point
   component tokens that the dark-island block does not cover. */
:root:not([data-theme="dark"]) .tbox-home-showcase--app .tbox-ah-right-feat {
  border-top-color: var(--brand-primary-14);
}

/* Product showcase — animation beside copy in a top split, then a
   full-width video carousel (pill tabs, video, caption card) under it. */
.tbox-home-showcase__split {
  display: grid;
  /* animation cell slightly wider than the copy column */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  grid-template-areas: "copy animation";
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-light);
}
.tbox-home-showcase__split > * {
  min-width: 0;
}
.tbox-home-showcase__copy {
  grid-area: copy;
}

/* App Hosting mirrors the split (monitor leads on the left) so the two
   showcase sections don't read as the same template twice in a row.
   DOM order is unchanged; mobile stacking below stays copy-first. */
.tbox-home-showcase--app .tbox-home-showcase__split {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  grid-template-areas: "animation copy";
}

/* Layout cell only — no frame of its own; both monitors already self-frame. */
.tbox-home-showcase__animation {
  display: flex;
  grid-area: animation;
}
.tbox-home-showcase__animation > * {
  width: 100%;
}

/* Demos mini-heading */
.tbox-home-showcase__demos-head {
  margin-bottom: var(--space-lg);
}
.tbox-home-showcase__demos-title {
  font-size: var(--fs-heading-md);
  line-height: 1.15;
  margin: 0 0 0.4rem;
  color: var(--text-primary);
}

@media (width <= 900px) {
  /* The --app variant selector outranks the base rule, so it must be named
     here too or the App Hosting split stays two-column on mobile. */
  .tbox-home-showcase__split,
  .tbox-home-showcase--app .tbox-home-showcase__split {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "animation";
  }
}
