/* ==========================================================================
   Themesic brand layer over Aether.
   Loaded AFTER system.css + layout.css. Keeps the frosted-glass material, but
   weaves in the Themesic brand: a fusion (orange -> magenta -> purple) gradient
   on actions/brand moments, a brand-purple functional accent, a sticky header
   with a real mobile menu, a richer footer, and responsive polish.
   ========================================================================== */

/* Self-hosted Figtree variable (Fontsource), replacing the render-blocking
   Google Fonts @import - matches CLAUDE.md's self-hosting convention. Only
   Figtree is used; system.css's Inter + JetBrains Mono @imports were removed
   (brand.css maps --font-sans and --font-mono to Figtree). */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/aether/fonts/figtree-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("/aether/fonts/figtree-latin-wght-italic.woff2") format("woff2");
}
/* Metric-matched fallback (Arial scaled to Figtree's metrics) so text paints at
   its final size/position BEFORE Figtree loads - removes the webfont-swap reflow
   that was recording text LCP at font-load time instead of first paint. */
@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue");
  size-adjust: 120.07%;
  ascent-override: 79.12%;
  descent-override: 20.82%;
  line-gap-override: 0%;
}

:root {
  --brand-orange: #ff7400;
  --brand-orange-2: #ff9136;
  --brand-purple: #5511f8;
  --brand-purple-2: #7a47ff;

  --fusion: linear-gradient(100deg, #1d4ed8 0%, #3b82f6 50%, #1d4ed8 100%);
  --fusion-bright: linear-gradient(100deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
  --glow-fusion: 0 12px 34px -10px rgba(29, 78, 216, 0.5);
  --brand-wash: linear-gradient(100deg, rgba(255, 116, 0, 0.1), rgba(85, 17, 248, 0.12));

  /* Functional accent (focus rings, links, switches, accent badges) = the brand
     blue. The old purple is retired - blue #1d4ed8 is the single accent. */
  --color-accent: #1d4ed8;
  --color-accent-soft: rgba(29, 78, 216, 0.1);
  --color-accent-ring: rgba(29, 78, 216, 0.3);

  /* Darkened from system.css #86868b (only ~3.1:1 on the pearl bg) to clear
     WCAG AA 4.5:1 for the muted/meta text used across both pages. */
  --color-ink-tertiary: #6b6b70;

  /* Figtree everywhere - replaces Inter, and no monospace anywhere. */
  --font-sans: "Figtree", "Figtree Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Figtree", "Figtree Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Wider page container + slightly larger type (>= +1px on every step). */
  --page-max: 1320px;
  --text-display: 3.25rem;   /* 48 -> 52 */
  --text-h1: 2.125rem;       /* 32 -> 34 */
  --text-h2: 1.625rem;       /* 24 -> 26 */
  --text-body: 1rem;         /* 15 -> 16 */
  --text-label: 0.875rem;    /* 13 -> 14 */
  --text-micro: 0.75rem;     /* 11 -> 12 */
}

/* Visible keyboard focus on EVERY interactive element (WCAG 2.4.7 / 2.4.11).
   Plain links/tabs/cards had no focus ring before - only .btn/.input did. The
   low-specificity :where() means those richer rings still win where they exist. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (forced-colors: active) {
  :where(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline-color: Highlight; }
}

/* ----- Fusion brand moments --------------------------------------------- */

.nav-brand { text-decoration: none; color: var(--color-ink); }

.nav-mark,
.hero-eyebrow .dot {
  background: var(--fusion);
}

.hero-title .accent {
  background: var(--fusion);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* (old fusion fills removed - filled buttons are blue with the dark slide; the
   --fusion-bright hover that bled through the slide is gone) */

/* Section eyebrow flanking rules — subtle fusion */
.section-eyebrow::before,
.section-eyebrow::after {
  background: var(--fusion);
  width: 18px;
  opacity: 0.85;
}

/* Unified section header: left-aligned, mono eyebrow (inherits the lab palette -
   no orange pill), with an optional "View all" action on the right. */
.section-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; text-align: left; gap: 1.25rem 2rem; flex-wrap: wrap; }
.section-head--row .section-eyebrow::before { display: none; }
.section-head__text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.section-head__btn { flex-shrink: 0; align-self: flex-end; text-decoration: none; }
.section-head__action {
  display: inline-flex; align-items: center; gap: 7px; color: #1d4ed8; font-weight: 700;
  font-size: 0.95rem; text-decoration: none; white-space: nowrap; padding-bottom: 4px; transition: color 0.2s ease;
}
.section-head__action svg { width: 16px; height: 16px; transition: transform 0.2s ease !important; }
.section-head__action:hover svg { transform: translateX(4px); }

/* CTA glow — brand instead of blue */
.cta::before {
  background: radial-gradient(
    440px 220px at 82% 18%,
    rgba(255, 116, 0, 0.18) 0%,
    rgba(106, 43, 255, 0.14) 42%,
    transparent 72%
  );
}

/* Home spark chart -> brand purple */
.spark svg stop { stop-color: var(--brand-purple); }
.spark svg path[stroke] { stroke: var(--brand-purple); }
.spark svg circle { fill: var(--brand-purple); }

/* ----- Header: sticky + mobile menu ------------------------------------- */

.nav {
  position: sticky;
  top: 10px;
  z-index: 60;
  border: 0;
  box-shadow: 0 14px 34px -16px rgba(20, 12, 40, 0.22);
  padding-left: 1.9rem;
  padding-right: 1.4rem;
  transition: transform 0.38s var(--ease-out);
}
/* Hide-on-scroll-down, reveal-on-scroll-up (toggled by AetherLayout's scroll script). */
.nav--unpinned { transform: translateY(calc(-100% - 22px)); }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* Bigger, clearer nav menu items */
.nav-link { font-size: 1rem; height: 40px; }

/* Nav product search: a magnifying-glass button that expands into a search box */
.nav-search { position: relative; display: flex; align-items: center; }
.nav-search__btn {
  width: 40px; height: 44px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; padding: 0;
  color: var(--color-ink-secondary); cursor: pointer; transition: color 0.2s;
}
.nav-search__btn:hover { color: var(--color-ink); }
.nav-search__btn .icon { width: 20px; height: 20px; }
.nav-search__input {
  width: 0; min-width: 0; height: 44px; padding: 0; opacity: 0; pointer-events: none;
  border-radius: 40px; border: 1px solid var(--color-accent);
  background: #fff; color: var(--color-ink);
  font-family: inherit; font-size: 15px; outline: none; overflow: hidden;
  transition: width 0.3s ease, padding 0.3s ease, opacity 0.2s ease, margin-left 0.3s ease;
}
.nav-search__input::placeholder { color: var(--color-ink-tertiary); }
.nav-search.is-open .nav-search__input { width: min(240px, 46vw); padding: 0 16px; opacity: 1; pointer-events: auto; margin-left: 8px; box-shadow: 0 10px 30px -12px rgba(20, 12, 40, 0.28); }
.nav-search.is-open .nav-search__btn { color: var(--color-accent); }
.nav-search__menu {
  position: absolute; top: calc(100% + 12px); right: 0; left: auto;
  width: 360px; max-width: 80vw;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-hairline); border-radius: 18px;
  box-shadow: 0 20px 50px -18px rgba(20, 12, 40, 0.34); padding: 8px; z-index: 90;
}
.nav-search__item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; text-decoration: none; transition: background 0.15s ease; }
.nav-search__item:hover, .nav-search__item.is-active { background: var(--color-accent-soft); }
.nav-search__ico { width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--color-accent-soft); color: var(--color-accent); }
.nav-search__ico svg { width: 18px; height: 18px; }
.nav-search__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nav-search__name { font-size: 15px; font-weight: 600; color: var(--color-ink); }
.nav-search__name mark { background: transparent; color: var(--color-accent); font-weight: 700; }
.nav-search__cat { font-size: 13px; color: var(--color-ink-tertiary); }
.nav-search__all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; margin-top: 4px; border-top: 1px solid var(--color-hairline); font-size: 14px; font-weight: 600; color: var(--color-accent); text-decoration: none; }
.nav-search__all svg { width: 15px; height: 15px; }
.nav-search__all:hover, .nav-search__all.is-active { text-decoration: underline; }
.nav-search__empty { padding: 16px; font-size: 15px; color: var(--color-ink-tertiary); text-align: center; }
.nav-msearch { display: none; }
@media (max-width: 860px) { .nav-search { display: none; } }

/* Header right side: account + cart (data-driven, see inline script) */
.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  padding: 0 0.25rem;
  transition: opacity var(--dur-med) var(--ease-out);
}
.nav-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--fusion);
  display: inline-grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 2px 8px -2px rgba(150, 55, 210, 0.5);
}
.nav-avatar .icon { width: 17px; height: 17px; }
.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-ink);
  transition: opacity var(--dur-med) var(--ease-out);
}
.nav-account:hover,
.nav-cart:hover { opacity: 0.72; }
.nav-cart-price { font-weight: 600; font-size: 0.95rem; color: var(--brand-purple); }
.nav-cart-ico {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--brand-purple);
}
.nav-cart-ico .icon { width: 20px; height: 20px; }
.nav-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--brand-purple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.nav-toggle { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-surface-glass);
  border: 1px solid var(--color-hairline);
  box-shadow: var(--glass-bevel-inset);
  color: var(--color-ink);
  cursor: pointer;
}
.nav-burger .icon { width: 20px; height: 20px; }
.nav-burger__close { display: none; }

.nav-links__div { display: none; }
.nav-link--m { display: none; }

@media (max-width: 860px) {
  .nav-end { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-toggle:checked ~ .nav-burger .nav-burger__open { display: none; }
  .nav-toggle:checked ~ .nav-burger .nav-burger__close { display: inline-block; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    /* Sides slightly roomier; top/bottom ~2x the sides (mobile menu breathing room). */
    padding: 22px 12px;
    /* Fully opaque on mobile - the open menu shows no page content through it. */
    background: #ffffff;
    border: 1px solid var(--color-hairline);
    border-radius: var(--radius-lg);
    box-shadow: 0 22px 54px -20px rgba(15, 23, 42, 0.32), 0 2px 8px rgba(15, 23, 42, 0.08);
    z-index: 70;
    /* The panel hangs off the STICKY nav, so page scroll can never reveal what falls
       below the fold (the last item, Contact Us, was clipped on short viewports).
       Cap it to the visible viewport (dvh tracks the mobile URL bar; vh = fallback)
       and scroll INSIDE the panel instead. 124px = panel top offset (112) + margin. */
    max-height: calc(100vh - 124px);
    max-height: calc(100dvh - 124px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* Keep items at natural height inside the capped flex column - otherwise they
     compress to fit and the panel never actually scrolls. */
  .nav-links > * { flex-shrink: 0; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links .nav-link {
    height: 46px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    justify-content: flex-start;
    font-size: 15.5px;
  }
  .nav-links .nav-link.is-current { background: var(--brand-wash); }
  .nav-links .nav-link.is-current::after { display: none; }
  .nav-links__div { display: block; height: 1px; background: var(--color-hairline); margin: 4px 6px; }
  .nav-link--m { display: inline-flex; }

  /* Mobile search: a full-width field at the top of the hamburger panel */
  .nav-msearch { display: block; position: relative; margin-bottom: 6px; }
  .nav-msearch__icon { position: absolute; left: 16px; top: 14px; width: 18px; height: 18px; color: var(--color-ink-tertiary); pointer-events: none; }
  .nav-msearch .nav-search__input { width: 100%; min-width: 0; height: 46px; padding: 0 16px 0 44px; opacity: 1; pointer-events: auto; border: 1px solid var(--color-hairline); border-radius: var(--radius-full); background: #fff; font-size: 16px; transition: none; }
  .nav-msearch .nav-search__menu { position: static; width: 100%; max-width: none; margin-top: 6px; padding: 4px; box-shadow: none; border: 1px solid var(--color-hairline); border-radius: 14px; }
}

/* ----- Footer ----------------------------------------------------------- */

.foot2 {
  position: relative;
  margin: 3.5rem 0 1rem;
  padding: 2rem 2.25rem 1.5rem;
  background: var(--color-surface-glass-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-2xl);
  box-shadow: var(--glass-bevel-inset), var(--glass-shadow-resting);
  overflow: hidden;
}
.foot2::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--fusion);
  opacity: 0.9;
}
.foot2-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}
.foot2-brand .nav-brand { font-weight: 600; font-size: 1.05rem; }
.foot2-blurb {
  margin: 0.875rem 0 0;
  max-width: 34ch;
  color: var(--color-ink-secondary);
  font-size: 15px;
  line-height: 1.55;
}
.foot2-mor {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.875rem;
  font-size: 14px;
  color: var(--color-ink-tertiary);
}
.foot2-mor .icon { width: 14px; height: 14px; color: var(--brand-purple); }
.foot2-col { display: flex; flex-direction: column; gap: 0.55rem; }
.foot2-col h4 {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-tertiary);
  font-weight: 600;
}
.foot2-col a { color: var(--color-ink-secondary); text-decoration: none; font-size: 15px; }
.foot2-col a:hover { color: var(--color-ink); }
.foot2-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-hairline);
  flex-wrap: wrap;
}
.foot2-bar .text-mono { font-size: 14px; color: var(--color-ink-tertiary); }
.foot2-social { display: inline-flex; gap: 0.4rem; }
.foot2-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-surface-glass);
  border: 1px solid var(--color-hairline);
  box-shadow: var(--glass-bevel-inset);
  color: var(--color-ink-secondary);
  transition: color var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out);
}
.foot2-social a:hover { color: var(--color-ink); background: var(--color-surface-glass-strong); }
.foot2-social .icon { width: 16px; height: 16px; }

/* ----- Responsive polish ------------------------------------------------ */

/* Command dock wraps cleanly on small screens */
@media (max-width: 720px) {
  .dock-row { padding: 0; }
  .hero-dock { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .hero-dock .dock-search { min-width: 0; width: 100%; order: -1; }
  .hero-dock .dock-divider { display: none; }
}

@media (max-width: 860px) {
  .foot2-main { grid-template-columns: 1fr 1fr; }
  .foot2-brand { grid-column: 1 / -1; }
  .foot2 { padding: 1.75rem 1.5rem 1.25rem; }
}

@media (max-width: 560px) {
  .hero-cta, .cta-actions { flex-wrap: wrap; justify-content: center; }
  .hero-meta { flex-direction: column; gap: 0.75rem; }
  .foot2-main { grid-template-columns: 1fr; }
  .nav { top: 6px; }
}

/* ==========================================================================
   Round 2 — hover sweep, rounder/fusion footer, brand logo, product shot.
   ========================================================================== */

/* Buttons - copied exactly from the two references the client supplied.
   Primary = "Shop the sale" (b-acc): blue pill; a circular ink disc expands
   from the LEFT and a round white arrow badge nudges right. No border, the
   button itself does not grow.
   Solid = "Talk to a rep" (studio__cta): dark pill that turns blue and lifts
   on hover, with an inline arrow.
   Secondary = the same lift, subtle on the light page. */
.btn { border: 0; box-shadow: none; text-decoration: none; }
.btn:hover { box-shadow: none; }
.badge { border: 0; box-shadow: none; }

/* Back-to-top button (injected by search.js on every lab page) */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--color-hairline); border-radius: 50%; background: var(--color-surface-glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--color-ink); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s; box-shadow: 0 12px 30px -14px rgba(15, 23, 42, 0.45); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--color-accent); border-color: rgba(85, 17, 248, 0.5); }
.to-top svg { width: 20px; height: 20px; }

/* primary + solid = b-acc blue, identical size. Blue pill, white circular
   arrow badge; a charcoal ink disc fills from the LEFT on hover (smooth). */
.btn-primary,
.btn-solid {
  position: relative;
  overflow: hidden;
  z-index: 0;
  height: 54px;
  gap: 13px;
  padding-left: 28px;
  padding-right: 11px;
  border-radius: 40px;
  background: #1d4ed8;
  color: #fff;
  transition: color 0.35s;
}
.btn-primary:hover, .btn-primary:active,
.btn-solid:hover, .btn-solid:active { transform: none; }
.btn-primary::before,
.btn-solid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #1a1d22;
  transform: translateX(-100%);
  /* !important beats the design system's global reduced-motion 1ms transition */
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1) !important;
}
.btn-primary:hover::before,
.btn-solid:hover::before { transform: translateX(0); }
.btn-primary::after,
.btn-solid::after {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.25s, background-color 0.35s;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px;
  background-color: #fff;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231D4ED8" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12h13M13 6l6 6-6 6"/></svg>');
}
.btn-primary:hover::after,
.btn-solid:hover::after { transform: translateX(3px); }

/* secondary = light, identical size, subtle hover */
.btn-secondary {
  height: 54px;
  gap: 9px;
  padding: 0 26px;
  border-radius: 40px;
  background: rgba(26, 29, 34, 0.06);
  color: #1a1d22;
  transition: background 0.25s;
}
.btn-secondary:hover { background: rgba(26, 29, 34, 0.11); }
.btn-secondary .icon { width: 18px; height: 18px; }

/* compact nav button (Get support): no arrow badge, smaller */
.btn-sm {
  height: 44px;
  padding: 0 22px;
  gap: 8px;
}
.btn-sm::after { display: none; }

/* "Jump" buttons (the arrow-up-right ones, e.g. Get support): no dark slide -
   just a small lift and the arrow hopping up-right, like before. */
.btn-jump {
  height: 44px;
  padding: 0 22px;
  gap: 8px;
  font-size: 15px;
  border-radius: 40px;
  background: transparent;
  color: #6b6776;
  border: 1px solid rgba(29, 29, 31, 0.16);
  transition: transform 0.22s ease, color 0.22s ease, border-color 0.22s ease !important;
}
.btn-jump:hover { transform: translateY(-2px); color: #1d1d1f; border-color: rgba(29, 29, 31, 0.34); }
.btn-jump .icon { width: 17px; height: 17px; transition: transform 0.22s ease !important; }
.btn-jump:hover .icon { transform: translate(2px, -2px); }

/* Taller, cleaner active-installs chart (was a short sparkline). */
.stat-card .spark { height: auto; }
/* Monthly installs as a line/area graph with a pulsing latest-point dot. */
.stat-card .spark { overflow: visible; }
.stat-card .spark svg { display: block; width: 100%; height: auto; aspect-ratio: 600 / 104; overflow: visible; }
.spark-line, .spark-area { transition: d 0.55s ease !important; }
.spark-dot, .spark-dot-outer { transition: cx 0.55s ease, cy 0.55s ease !important; }
.spark .axis { display: flex; gap: 0; }
.spark .axis span { flex: 1; text-align: center; }

/* Licensing panel type + spacing (continuing the +1px small-type bump). */
.panel-head .panel-sub { font-size: 15px; }
.pref-row .pref-label .t { font-size: 15px; }
.pref-row .pref-label .d { font-size: 14px; }
.pref-row { padding: 1rem; }

/* Feature boxes: +1px on the content. */
.feature-card h3 { font-size: 1.125rem; }
.feature-card p { font-size: 15px; }
.feature-card .meta { font-size: 13px; }

/* Changelog (and other tertiary) button: transparent with a gray hairline. */
.btn-tertiary { background: transparent; color: #6b6776; border: 1px solid rgba(29, 29, 31, 0.16); box-shadow: none; }
.btn-tertiary:hover { background: transparent; color: #1d1d1f; border-color: rgba(29, 29, 31, 0.34); box-shadow: none; }

/* Social-proof panel (replaces the old checkout mock in the licensing section). */
.proof-quote { margin: 6px 0 0; display: flex; flex-direction: column; gap: 13px; }
.proof-stars { color: #ffb400; font-size: 18px; letter-spacing: 3px; line-height: 1; }
.proof-quote blockquote { margin: 0; font-size: 1.16rem; line-height: 1.5; font-weight: 600; color: #1d1d1f; letter-spacing: -0.01em; }
.proof-by { display: flex; align-items: center; gap: 12px; margin: 0; }
.proof-by img { border-radius: 50%; object-fit: cover; }
/* Quotes are verbatim from named CodeCanyon buyers, so no stock portrait stands
   in for a real person - an initial monogram fills the avatar slot instead. */
.proof-mono { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(15, 23, 42, 0.06); color: #54545a; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.proof-by__who { display: flex; flex-direction: column; line-height: 1.3; }
.proof-by__who strong { font-size: 0.98rem; color: #1d1d1f; }
.proof-by__who span { font-size: 0.84rem; color: #6b6776; }
.proof-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
@media (max-width: 560px) { .proof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proof-stat { display: flex; flex-direction: column; gap: 3px; padding: 16px 8px; border-radius: 14px; background: rgba(29, 78, 216, 0.06); text-align: center; }
.proof-stat .n { font-size: 1.34rem; font-weight: 800; color: #1d4ed8; letter-spacing: -0.02em; }
.proof-stat .l { font-size: 0.74rem; color: #6b6776; text-transform: uppercase; letter-spacing: 0.04em; }
.proof-foot { display: flex; align-items: center; gap: 14px; }
.proof-avatars { display: inline-flex; flex-shrink: 0; }
.proof-avatars img { border-radius: 50%; border: 2px solid #fff; margin-left: -10px; object-fit: cover; }
.proof-avatars img:first-child { margin-left: 0; }
.proof-foot__t { font-size: 0.9rem; color: #6b6776; line-height: 1.4; }

/* Equal-height licensing panels. */
.settings-block { align-items: stretch; }
.settings-block .panel { height: 100%; }

/* Smaller Elite Author badge (panel head) - same peach pill + icon as the header. */
.hero-elite--sm { padding: 6px 13px; gap: 8px; border-radius: 8px; }
.hero-elite--sm img { width: 24px; height: 21px; }
.hero-elite--sm > span { font-size: 15px; }

/* "Who is Themesic for?" - expanding audience panels (ported + brand-aligned;
   gradient panels instead of stock photos; !important transitions so the expand
   stays smooth under the design system's reduced-motion clamp). */
.aud { max-width: none; margin: clamp(4.5rem, 2.5rem + 5vw, 8rem) 0 clamp(2.5rem, 1.5rem + 2vw, 4rem); padding: 0; }
.aud__head { display: block; text-align: center; max-width: 840px; margin: 0 auto 40px; }
.aud__h { font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: #1d1d1f; margin: 0; }
.aud__h .g { background: linear-gradient(135deg, #ff7400, #5511f8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aud__lead { font-size: 17px; line-height: 1.7; color: #52525b; margin: 14px auto 0; max-width: 680px; }
.aud__panels { display: flex; gap: 16px; height: 500px; }
/* Each panel: a real photo (--photo) under a semi-transparent brand tint (--g),
   over a dark base for the missing-photo fallback. */
.aud__panel { position: relative; flex: 1; min-width: 0; border-radius: 22px; overflow: hidden; cursor: pointer; background: var(--g), var(--photo, none) center / cover no-repeat, #15121d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); transition: flex 0.55s cubic-bezier(0.45, 0.05, 0.2, 1), box-shadow 0.45s ease !important; }
.aud__panel.is-open { flex: 3.6; box-shadow: 0 30px 60px rgba(20, 12, 40, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.aud__panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(to top, rgba(9, 9, 11, 0.82), transparent); z-index: 2; pointer-events: none; }
.aud__num { position: absolute; top: 22px; left: 24px; font-size: 15px; font-weight: 700; color: #fff; opacity: 0.9; letter-spacing: 0.08em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55); z-index: 4; }
.aud__label { position: absolute; bottom: 30px; left: 28px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 46px; font-weight: 800; letter-spacing: -0.02em; color: #fff; white-space: nowrap; z-index: 4; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); transition: opacity 0.3s ease !important; }
.aud__panel.is-open .aud__label { opacity: 0; }
.aud__content { position: absolute; left: 32px; right: 32px; bottom: 32px; z-index: 4; opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease 0.05s, transform 0.45s ease 0.05s !important; pointer-events: none; }
.aud__panel.is-open .aud__content { opacity: 1; transform: none; pointer-events: auto; }
.aud__pill { display: inline-block; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; font-size: 15px; font-weight: 600; padding: 6px 14px; border-radius: 100px; margin-bottom: 16px; backdrop-filter: blur(8px); }
.aud__content h3 { font-size: clamp(27px, 3.1vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: #fff !important; margin: 0 0 12px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4); white-space: nowrap; }
.aud__content p { font-size: 16px; line-height: 1.6; margin: 0 0 18px; color: rgba(255, 255, 255, 0.95); max-width: 400px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aud__cta { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.aud__cta span { transition: transform 0.25s ease !important; }
.aud__cta:hover span { transform: translateX(5px); }
@media (max-width: 840px) {
  .aud__head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
  .aud__panels { flex-direction: column; height: auto; gap: 14px; }
  /* Collapsed accordion on mobile: a short card with a horizontal title; tap to expand. */
  .aud__panel { flex: auto !important; min-height: 92px; transition: min-height 0.5s cubic-bezier(0.45, 0.05, 0.2, 1) !important; }
  .aud__panel.is-open { min-height: 340px; }
  .aud__label { display: block; writing-mode: horizontal-tb; transform: none; left: 26px; bottom: auto; top: 50%; margin-top: -0.7em; font-size: 26px; }
  .aud__panel.is-open .aud__label { opacity: 0; }
  .aud__content { opacity: 0; transform: translateY(10px); pointer-events: none; }
  .aud__panel.is-open .aud__content { opacity: 1; transform: none; pointer-events: auto; }
}

/* Active-installs / recent-releases: span the full container (was capped at
   1080px), roomier cards, and a bigger gap before the Licensing section. */
.showcase { max-width: none; margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem); }
.stat-card, .activity { padding: 30px; }

/* CTA box: even, more generous padding on every side. */
.cta { padding: 56px; }
/* Equal vertical gaps around the CTA box (the licensing panel's bottom padding
   was inflating the gap above it). */
.section[aria-labelledby="panel-heading"] { padding-bottom: 0; }

/* Hero - the exact section from themesic.com, centred. */
.hero { text-align: center; align-items: center; padding-bottom: 2.25rem; position: relative; }
/* Experimental: faint grid texture behind the header, fading to white. */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -96px;
  width: 100vw;
  height: calc(100% + 96px + 320px);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7) 62%, #ffffff 82%, #eef1f6 100%),
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgZmlsbD0ibm9uZSI+PHBhdGggc3Ryb2tlPSIjMDAwIiBzdHJva2Utb3BhY2l0eT0iLjA0IiBzdHJva2Utd2lkdGg9Ii41IiBkPSJNLjI1LjI1aDQ3LjV2NDcuNUguMjV6Ii8+PC9zdmc+");
}
.hero-title { font-weight: 800; letter-spacing: -0.03em; margin-top: clamp(20px, 1rem + 1.4vw, 40px); }
.hero .hero-cta { justify-content: center; }
.hero-sub .hl { color: #ff6600; font-weight: 700; }

/* "Built for & integrates with" logo strip under the hero CTAs */
.hero-logos { margin-top: 38px; }
.hero-logos__label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-tertiary);
  margin-bottom: 18px;
}
.hero-logos__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 42px);
  flex-wrap: wrap;
  max-width: 1040px;
  margin: 0 auto;
}
.hero-logos__row img {
  height: 32px;
  width: auto;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.hero-logos__row img:hover { opacity: 1; }
.hero-logos__row a { display: inline-flex; align-items: center; }

/* Recent-releases status circle: no ring around it */
.activity-item .ico { border: none; box-shadow: none; }

/* "Elite Author on CodeCanyon" badge - peach pill + the real elite icon */
.hero-elite {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #f9ece4;
  border-radius: 7px;
  padding: 10px 23px;
}
.hero-elite img { width: 35px; height: 30px; object-fit: contain; }
.hero-elite > span { color: #181723; font-size: 16px; font-weight: 500; }
.hero-elite a { color: inherit; text-decoration: none; }
.hero-elite a:hover { color: var(--brand-orange); }

/* Avatars (real customer photos) + rating marque */
.hero-proof {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 6px auto 2px;
}
.hero-avatars { display: flex; align-items: center; }
.hero-avatars img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-left: -12px;
}
.hero-avatars img:first-child { margin-left: 0; }
.hero-rating { text-align: left; }
.hero-rating__stars { color: #ffb400; font-size: 18px; letter-spacing: 2px; line-height: 1; }
.hero-rating__t { color: #181723; font-weight: 500; font-size: 16px; margin-top: 4px; }
.hero-rating__t strong { font-weight: 700; }

/* Headline typewriter: "Premium " stays; the dynamic word deletes itself then
   types the next one, character by character, with a blinking caret. */
.ht-type { white-space: nowrap; font-weight: inherit; }
.ht-type::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.72em;
  margin-left: 4px;
  vertical-align: baseline;
  background: currentColor;
  animation: htCaret 1.06s steps(1) infinite;
  /* beat the design system's global reduced-motion 1ms override so it blinks */
  animation-duration: 1.06s !important;
}
@keyframes htCaret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Full-bleed sections use 100vw, which is wider than the content area whenever a
   vertical scrollbar is present - that ~8-15px difference caused the horizontal
   scrollbar. Clip it at the root. overflow-x: clip (not hidden) keeps the sticky
   nav working. */
html, body { overflow-x: clip; }

/* Parallax scroll gallery: two full-bleed image rows that slide in opposite
   directions as the section travels through the viewport (scroll-linked). */
.px-gallery {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-top: 0;
  margin-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 0 32px;
}
.px-row {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.px-card {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
  width: clamp(260px, 26vw, 520px);
  aspect-ratio: 59 / 30;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}
.px-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(1);
  /* !important keeps the fade smooth under the design system's reduced-motion */
  transition: filter 0.45s ease !important;
}
.px-card:hover img { filter: grayscale(0); }

/* Brand logo (real Themesic logo in header + footer).
   Bigger, with a small top nudge so the lightning mark reads as vertically
   centred in the nav pill (its weight sits low, so it felt slightly high). */
.nav-logo { height: 46px; width: auto; display: block; margin-top: 4px; }
.foot2-logo { height: 48px; width: auto; display: block; }

/* Footer: rounder + more fusion */
.foot2 {
  border-radius: 36px;
  background-image: radial-gradient(
    560px 260px at 90% 6%,
    rgba(255, 116, 0, 0.1),
    rgba(106, 43, 255, 0.1) 46%,
    transparent 72%
  );
  background-repeat: no-repeat;
}
.foot2::before { height: 4px; }
.foot2-mor .icon { color: var(--brand-orange); }
.foot2-social a:hover { background: var(--fusion); color: #fff; border-color: transparent; }

/* Product shot — replaces the endpoint pill on the product page */
.pd-shot {
  margin: 1.5rem 0 0;
  max-width: 620px;
}
.pd-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1), 0 28px 56px -18px rgba(15, 23, 42, 0.34);
}

/* Screenshot gallery (product page) - masonry handles mixed aspect ratios */
.pd-gallery-sec { margin-top: var(--space-3xl); }
.pd-gallery {
  columns: 2;
  column-gap: 1.25rem;
  margin-top: 2rem;
}
.pd-glass-shot {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  background: var(--color-surface-glass-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-bevel-inset), var(--glass-shadow-resting);
  padding: 10px;
  overflow: hidden;
}
.pd-glass-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.pd-glass-shot figcaption {
  padding: 0.875rem 0.5rem 0.375rem;
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-ink-secondary);
}
@media (max-width: 720px) {
  .pd-gallery { columns: 1; }
}

/* ==========================================================================
   Round 3 - big footer: newsletter + let's talk + link columns + payments.
   A dark rounded panel that contrasts the light page, with fusion accents.
   ========================================================================== */
.ftr {
  position: relative;
  margin: 5rem 0 1.25rem;
  padding: clamp(2.25rem, 1.5rem + 3vw, 4rem) clamp(1.5rem, 1rem + 3.5vw, 4.5rem);
  background: #1a1622;
  border-radius: clamp(28px, 1.5rem + 1.5vw, 44px);
  color: #e8e5f2;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(20, 12, 40, 0.55);
}
.ftr::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 320px at 92% -4%, rgba(255, 116, 0, 0.13), transparent 60%),
    radial-gradient(560px 320px at 2% 8%, rgba(106, 43, 255, 0.18), transparent 62%);
}
.ftr > * { position: relative; }

/* Newsletter */
.ftr-news {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.ftr-news h2 {
  margin: 0;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.ftr-news p {
  margin: 0.8rem 0 0;
  max-width: 44ch;
  color: #a39db8;
  line-height: 1.6;
  font-size: 0.95rem;
}
.ftr-news-form { display: flex; flex-direction: column; gap: 0.85rem; }
.ftr-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 6px 6px 1.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-full);
}
.ftr-field:focus-within { border-color: rgba(255, 145, 54, 0.55); }
.ftr-field input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
}
.ftr-field input::placeholder { color: #8e88a3; }
.ftr-sub {
  flex-shrink: 0;
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.55rem 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: #1d4ed8;
}
.ftr-sub::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 230%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.55s cubic-bezier(0.45, 0, 0.18, 1);
  z-index: -1;
  background: #1a1d22;
}
.ftr-sub:hover::before { transform: translate(-50%, -50%) scale(1); }
.ftr-sub::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: #fff;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231D4ED8" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12h13M13 6l6 6-6 6"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  transition: transform 0.25s;
}
.ftr-sub:hover::after { transform: translateX(3px); }
.ftr-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: #8e88a3;
  line-height: 1.4;
}
.ftr-agree input { margin-top: 1px; accent-color: var(--brand-orange); }

/* Divider */
.ftr-div {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: clamp(2rem, 1.4rem + 2.5vw, 3.25rem) 0;
}

/* Let's talk + link columns */
.ftr-mid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.ftr-talk h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.4rem, 1.4rem + 4vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ftr-cta {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0.65rem 0.55rem 0.65rem 1.6rem;
  border-radius: var(--radius-full);
  background: #1d4ed8;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.ftr-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 230%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.55s cubic-bezier(0.45, 0, 0.18, 1);
  z-index: -1;
  background: #1a1d22;
}
.ftr-cta:hover::before { transform: translate(-50%, -50%) scale(1); }
.ftr-cta::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: #fff;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231D4ED8" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12h13M13 6l6 6-6 6"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  transition: transform 0.25s;
}
.ftr-cta:hover::after { transform: translateX(3px); }
.ftr-col { display: flex; flex-direction: column; gap: 0.95rem; }
.ftr-col h4 { margin: 0 0 0.4rem; font-size: 1.02rem; font-weight: 700; color: #fff; }
.ftr-col a {
  color: #a39db8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--dur-med) var(--ease-out);
}
.ftr-col a:hover { color: #fff; }

/* Bottom bar */
.ftr-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ftr-copy { color: #847e99; font-size: 0.85rem; }
.ftr-pay { display: inline-flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.ftr-pay .pay {
  display: inline-grid;
  place-items: center;
  height: 30px;
  padding: 0 0.6rem;
  background: #fff;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  color: #1a1622;
}
.pay-visa { color: #1434cb; font-style: italic; }
.pay-mc { color: #eb001b; }
.pay-pp { color: #003087; }
.pay-ap { color: #000; }
.ftr-brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.ftr-brand img { height: 38px; width: auto; display: block; }
.ftr-brand span { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; }

@media (max-width: 860px) {
  .ftr-news,
  .ftr-mid { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 560px) {
  .ftr-bot { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
}

/* ==========================================================================
   Round 4 - footer rebuilt to the exact themesic.com spec (tsm-foot): fusion
   buttons, real payment-card SVGs, white logotype (no wordmark text).
   ========================================================================== */
.tsm-foot {
  --o: #ff7400;
  --p: #5511f8;
  --txt: #b9b2c7;
  --mut: #8a8298;
  --line: rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(680px 360px at 86% -8%, rgba(255, 116, 0, 0.13), transparent 60%),
    radial-gradient(620px 420px at 0% 108%, rgba(85, 17, 248, 0.2), transparent 62%),
    linear-gradient(160deg, #272135 0%, #1e1929 55%, #17131f 100%);
  border-radius: 44px;
  color: var(--txt);
  padding: 84px 60px 40px;
  margin: 60px 0 0;
  box-shadow: 0 35px 80px -30px rgba(0, 0, 0, 0.55);
}
.tsm-foot * { box-sizing: border-box; }
.tsm-foot h2,
.tsm-foot h3,
.tsm-foot p,
.tsm-foot ul,
.tsm-foot li { margin: 0; padding: 0; }
.tsm-foot__inner { max-width: 100%; margin: 0 auto; }

/* Wider nav + footer: break out past the 1245px content container (~+25% on a
   wide screen, gracefully capped on narrow ones). Centred via a margin-calc
   rather than a transform, so the sticky nav keeps sticking. */
.nav,
.tsm-foot {
  --wide: max(100%, min(100vw - 48px, 1400px));
  width: var(--wide);
  max-width: none;
  margin-left: calc(50% - var(--wide) / 2);
}
.tsm-foot a { text-decoration: none; transition: color 0.2s; }
.tsm-foot h2,
.tsm-foot h3 { color: #fff; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.tsm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.tsm-news__t { font-size: clamp(1.7rem, 2.6vw, 2.35rem); margin-bottom: 16px; }
.tsm-news p { color: var(--mut); font-size: 1rem; line-height: 1.7; max-width: 44ch; }
.tsm-news__form { width: 100%; }
.tsm-field {
  display: flex; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 99px; padding: 7px 8px 7px 18px;
}
.tsm-field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: inherit; font-size: 1rem; height: auto; padding: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* The email input carries the global .input class; neutralise its focus ring (a sharp
   rectangle inside the pill) and put the focus state on the pill container instead. */
.tsm-field input:focus, .tsm-field input:focus-within { box-shadow: none !important; border: 0 !important; outline: none; }
.tsm-field:focus-within { border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.08); }
.tsm-field input::placeholder { color: var(--mut); }
.tsm-btn {
  position: relative;
  overflow: hidden;
  z-index: 0;
  border: 0; cursor: pointer; border-radius: 99px; font-weight: 700; font-size: 1rem; color: #fff;
  height: 52px; padding: 0 30px; white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
  background: #1d4ed8;
  transition: color 0.3s;
}
.tsm-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #0c0f17;
  transform: translateX(-100%);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1) !important;
}
.tsm-btn:hover::before { transform: translateX(0); }
.tsm-btn:hover { color: #fff; }
.tsm-btn svg { width: 16px; height: 16px; }
.tsm-consent { display: flex; gap: 9px; align-items: flex-start; margin-top: 18px; font-size: 0.86rem; color: var(--mut); line-height: 1.5; }
.tsm-consent input { margin-top: 1px; width: 16px; height: 16px; flex: none; accent-color: #1d4ed8; cursor: pointer; }
.tsm-hr { height: 1px; width: 100%; background: var(--line); border: 0; margin: 60px 0; }
.tsm-talk__h { font-size: clamp(3.1rem, 3.6vw, 5.6rem); line-height: 0.9; letter-spacing: -0.03em; color: #fff; }
.tsm-talk__btn { margin-top: 30px; transition: transform 0.22s ease, box-shadow 0.22s ease !important; }
/* Buttons with the arrow-up-right SVG pop up on hover instead of the dark slide. */
.tsm-talk__btn::before { display: none; }
.tsm-talk__btn:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.6); }
.tsm-news__ok { margin: 14px 0 0; font-size: 0.92rem; font-weight: 600; color: #6ee7a8; }
.tsm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.tsm-col h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 22px; color: #fff; }
.tsm-col ul { list-style: none; display: grid; gap: 16px; }
.tsm-col a { font-size: 1rem; color: var(--txt); }
.tsm-col a:hover { color: var(--o); }
.tsm-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: center; }
.tsm-bottom > small { justify-self: start; }
.tsm-bottom > .tsm-foot__cards { justify-self: center; }
.tsm-bottom > a { justify-self: end; }
.tsm-bottom small { color: var(--mut); font-size: 0.9rem; }
.tsm-logo { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.tsm-foot__cards { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tsm-foot__cards svg { height: 24px; width: auto; border-radius: 3px; display: block; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35); }
@media (max-width: 900px) {
  .tsm-foot { padding: 44px 22px 30px; border-radius: 22px; margin: 40px 0 0; }
  .tsm-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tsm-grid > * { min-width: 0; }
  .tsm-hr { margin: 44px 0; }
  .tsm-talk__h { font-size: clamp(2.9rem, 13vw, 4.2rem); }
  .tsm-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tsm-bottom > small, .tsm-bottom > .tsm-foot__cards, .tsm-bottom > a { justify-self: center; }
}
