/* WordPress HOME: the typography approved on the service and company pages.
   Keep the launch engine’s equal-height stops and original copy lifecycle. */
#track {
  --home-heading: min(clamp(2.5rem, 4.4vw, 6rem), 8vh);
  --home-display: min(clamp(2rem, 3.4vw, 4.5rem), var(--home-heading));
  --home-title-gradient: linear-gradient(110deg, #c8b3ff 0%, #a58bff 22%, #cb8fdb 43%, #ff8451 64%, #d9b6ff 84%, #a58bff 100%);
  --home-title-glow: 165 139 255;
  --home-title-flash: 240 226 255;
}
/* The prototype zoom would otherwise enlarge the new type ceilings on large monitors. */
#track .copy { zoom: 1; }
#track .copy.hero { width: min(820px, 45vw); }
#track .copy.step {
  width: min(740px, 44vw);
  --home-title-gradient: linear-gradient(110deg, #ffd9c4 0%, #ffad82 22%, #ff8451 43%, #ffa36b 64%, #ffe0c9 84%, #ffad82 100%);
  --home-title-glow: 255 132 81; --home-title-flash: 255 236 224;
}
#track .copy:is(.hero, .step) :is(h1, h2) {
  font-weight: 600; line-height: 1.08; letter-spacing: -.035em;
  text-wrap: balance; overflow-wrap: break-word;
}
#track .copy.hero h1 { font-size: var(--home-heading); }
#track .copy.step h2 { font-size: var(--home-display); line-height: 1.12; }
#track .copy:is(.hero, .step) :is(.kicker, .tag) {
  max-width: 52ch; gap: 12px; margin-bottom: 16px;
  font-size: clamp(.875rem, 1.05vw, 1.0625rem); line-height: 1.5; font-weight: 500;
  letter-spacing: .015em; color: #c4b5d0;
}
#track .kicker::before { width: 16px; height: 14px; border-radius: 0 8px 8px 6px; }
#track .copy:is(.hero, .step) .lead {
  max-width: 51ch; margin-top: 20px; font-size: 1rem;
  line-height: 1.65; color: #fff; text-wrap: pretty;
}
#track .copy.hero .lead { font-size: clamp(1.0625rem, 1.15vw, 1.5rem); }
#track .gets { margin-top: 24px; gap: 10px; font-size: 1rem; line-height: 1.5; color: #fff; }
#track .gets li { grid-template-columns: 20px minmax(0, 1fr); gap: 12px; text-wrap: pretty; }
#track .gets svg { width: 20px; height: 20px; margin-top: 2px; }
#track .proof { margin-top: 24px; gap: 14px; font-size: .875rem; line-height: 1.5; color: #c4b5d0; }
#track .proof b:not(.new) { font-size: clamp(1.5rem, 2.1vw, 2.25rem); line-height: 1.15; letter-spacing: -.04em; }
#track .copy:is(.hero, .step) .cta { margin-top: 28px; gap: 14px 24px; }
#track .copy.step .cta { gap: 12px; }
#track .links { gap: 8px 14px; }
#track .link { font-size: .9375rem; line-height: 1.5; }
#baza .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 580px; gap: clamp(14px, 2vw, 28px); margin-top: 36px; font-size: .8125rem; line-height: 1.5; color: #b9abc9; }
#baza .facts li { position: relative; padding-top: 24px; }
#baza .facts li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 14px; border-radius: 0 8px 8px 6px; background: currentColor; opacity: .4; }
#baza .facts li::after { content: ""; position: absolute; top: 7px; left: 28px; right: 0; height: 1px; background: linear-gradient(90deg, currentColor, transparent); opacity: .15; }
#baza .facts b { display: block; margin: 0 0 8px; font-size: clamp(1.5rem, 2.1vw, 2.25rem); line-height: 1.1; letter-spacing: -.04em; color: #b9abc9; }

/* The light terrace uses the same hierarchy, with ink-colored accents for contrast. */
#sus { --home-title-gradient: linear-gradient(110deg, #6650a6, #795cb5 30%, #604497 55%, #8764b7 80%, #6650a6); --home-title-glow: 102 80 166; --home-title-flash: 102 80 166; }
#sus .copy.top h2 { font-size: var(--home-display); line-height: 1.1; letter-spacing: -.035em; }
#sus .copy.top h2.named { font-size: min(clamp(2rem, 3.4vw, 3.75rem), var(--home-heading)); overflow-wrap: anywhere; }
#sus .copy.top .lead { font-size: 1rem; line-height: 1.7; text-wrap: pretty; }

/* A shared destination after the five steps, with one clear invitation to the form. */
#sus.terrace-v2 .copy.top { gap: clamp(32px, 3.2vw, 44px); }
#sus.terrace-v2 .top-l { width: 100%; max-width: 1120px; margin-inline: auto; text-align: center; }
#sus.terrace-v2 .eyebrow {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  margin: 0; font-size: .8125rem; line-height: 1.5; letter-spacing: .1em;
}
#sus.terrace-v2 .eyebrow::before,
#sus.terrace-v2 .eyebrow::after {
  content: ""; display: block; flex: 0 1 64px; width: 64px; height: 1px;
  border-radius: 0; box-shadow: none; opacity: .5;
  background: linear-gradient(90deg, transparent, #795cb5);
}
#sus.terrace-v2 .eyebrow::after { transform: rotate(180deg); }
#sus.terrace-v2 .copy.top h2 {
  max-width: 1120px; margin: 16px auto 0;
  font-size: clamp(2.25rem, 3.9vw, 3.5rem); line-height: 1.13; letter-spacing: -.04em;
}
#sus.terrace-v2 .copy.top .lead {
  max-width: 66ch; margin: 20px auto 0; font-size: 1.125rem; line-height: 1.65;
}

/* Only the light moves. Glyphs, baselines and line wrapping remain stable. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  #track > .stop .copy :is(h1, h2) em {
    background-image: var(--home-title-gradient); background-size: 260% 100%; background-position: 0% 50%;
    background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 24px rgb(var(--home-title-glow) / .15);
    animation: pu-home-title-color 9s ease-in-out infinite paused, pu-home-title-light 8s ease-out infinite paused;
  }
  #track > .stop .copy.in :is(h1, h2) em { animation-play-state: running; }
}
@keyframes pu-home-title-color { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pu-home-title-light {
  0%, 4%, 10%, 22%, 100% { text-shadow: 0 0 2px rgb(var(--home-title-flash) / 0), 0 0 14px rgb(var(--home-title-glow) / .1), 0 0 32px rgb(var(--home-title-glow) / .08); }
  6% { text-shadow: 0 0 2px rgb(var(--home-title-flash) / .3), 0 0 12px rgb(var(--home-title-glow) / .4), 0 0 32px rgb(var(--home-title-glow) / .2); }
  15% { text-shadow: 0 0 2px rgb(var(--home-title-flash) / .45), 0 0 12px rgb(var(--home-title-glow) / .6), 0 0 38px rgb(var(--home-title-glow) / .3); }
}

@media (min-width: 900px) and (min-aspect-ratio: 9/10) and (max-height: 800px) {
  #track { --home-heading: min(clamp(2rem, 3.8vw, 4.5rem), 7vh); --home-display: min(clamp(1.75rem, 2.8vw, 3.5rem), 5.5vh); }
  #track .copy:is(.hero, .step) :is(.kicker, .tag) { margin-bottom: 10px; font-size: .875rem; }
  #track .copy:is(.hero, .step) .lead { margin-top: 12px; font-size: .9375rem; line-height: 1.55; }
  #track .gets { margin-top: 16px; gap: 6px; font-size: .9375rem; line-height: 1.4; }
  #track .proof { margin-top: 16px; font-size: .8125rem; }
  #track .proof b:not(.new) { font-size: 1.5rem; }
  #track .copy:is(.hero, .step) .cta { margin-top: 20px; }
  #baza .facts { margin-top: 26px; }
}
@media (max-width: 899px), (max-aspect-ratio: 9/10) {
  #track { --home-heading: clamp(2.125rem, 10.25vw, 2.75rem); --home-display: clamp(1.8125rem, 7.7vw, 2.25rem); }
  #track .copy:is(.hero, .step) { width: 100%; }
  #track .copy.hero h1 { line-height: 1.055; }
  #track .copy.step h2 { line-height: 1.14; }
  #track .copy:is(.hero, .step) :is(.kicker, .tag) { font-size: .9375rem; margin-bottom: 14px; letter-spacing: 0; }
  #track .copy:is(.hero, .step) .lead { margin-top: 18px; font-size: 1.0625rem; line-height: 1.6; }
  #track .gets { margin-top: 20px; gap: 12px; font-size: 1rem; line-height: 1.5; }
  #track .gets li { gap: 10px; }
  #track .gets svg { margin-top: 0; }
  #track .proof { margin-top: 12px; gap: 12px; font-size: .84375rem; }
  #track .proof b:not(.new) { font-size: 1.1875rem; }
  #track .copy:is(.hero, .step) .cta { margin-top: 24px; gap: 12px 20px; }
  #track .link { font-size: .84375rem; }
  #baza .facts { display: none; }
  #sus .copy.top h2, #sus .copy.top h2.named { font-size: clamp(2.125rem, 8.5vw, 2.75rem); }
  #sus .copy.top .lead { font-size: 1.125rem; line-height: 1.65; }
  #sus.terrace-v2 .copy.top h2 { font-size: clamp(1.875rem, 7.7vw, 2.75rem); line-height: 1.15; }
  #sus.terrace-v2 .copy.top .lead { max-width: 54ch; margin-top: 18px; font-size: 1.125rem; }
  #sus.terrace-v2 .eyebrow { font-size: .75rem; gap: 12px; }
  #sus.terrace-v2 .eyebrow::before,
  #sus.terrace-v2 .eyebrow::after { flex-basis: 40px; }
}

/* Preserve the compact text budget used by the mobile scene on short screens. */
@media (max-width: 899px) and (max-height: 760px) {
  #track { --home-heading: clamp(1.875rem, 8.54vw, 2.25rem); --home-display: clamp(1.3125rem, 5.8vw, 1.6875rem); }
  #track .copy.step h2 { line-height: 1.13; }
  #track .copy:is(.hero, .step) .tag { margin-bottom: 6px; font-size: .75rem; }
  #track .copy:is(.hero, .step) .lead { margin-top: 6px; font-size: .84375rem; line-height: 1.42; }
  #track .gets { margin-top: 8px; gap: 4px; font-size: .8rem; line-height: 1.3; }
  #track .gets li { grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
  #track .gets svg { width: 16px; height: 16px; }
  #track .proof { margin-top: 8px; font-size: .78125rem; }
  #track .proof b:not(.new) { font-size: 1rem; }
  #track .copy:is(.hero, .step) .cta { margin-top: 10px; gap: 8px 14px; }
  #track .link { font-size: .78125rem; }
}
html:is(.scene-still, .no-scene) #track > .stop .copy :is(h1, h2) em,
html[data-nivel="static"] #track > .stop .copy :is(h1, h2) em { animation: none; text-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  #track > .stop .copy :is(h1, h2) em { animation: none; text-shadow: none; }
}
@media (forced-colors: active), print {
  #track > .stop .copy :is(h1, h2) em { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; text-shadow: none; animation: none; }
}
