/* Growth plan, Batch A (2026-11-11). Loaded last on every page.
   Plan: workspace/plans/2026-11-10-uppervision-site-growth-plan-fable-5.2.md
   Rules: only transform and opacity animate; content is never hidden waiting
   for motion; reduced motion and the pause control are respected. */
:root { --ring-found:#4fc3ec; --ring-answered:#ff3d9a; --ring-booked:#f5b04a; }

/* ---------- E1 + #41: headline "Found. Answered. Booked." ---------- */
.hero-refined h1.hero-trio {
  font-size:clamp(40px,4.4vw,68px); line-height:1.04; letter-spacing:-.035em;
  font-weight:500; gap:0 .3em; color:var(--ink,#f0f3f7);
}
.hero-refined h1.hero-trio>.hw { display:inline-block; white-space:nowrap; }
.hero-trio .hw-dot { display:inline-block; }
.hero-trio .hw-found .hw-dot { color:var(--ring-found); }
.hero-trio .hw-answered .hw-dot { color:var(--ring-answered); }
.hero-trio .hw-booked .hw-dot { color:var(--ring-booked); }
.hero-refined .hero-sub {
  /* 780px keeps the Spanish line (the longer one) to two lines on a laptop. */
  margin:16px auto 0; max-width:min(780px,100%); font-size:clamp(15px,1.15vw,17px); line-height:1.55;
  color:#c9d3e3; text-wrap:balance;
  /* The top orbit passes behind this line; a soft dark halo keeps the letters crisp over it. */
  text-shadow:0 0 14px #070b17, 0 0 4px #070b17;
}

/* ---------- E9 + #42: "First light" opening moment ----------
   Each word arrives in its ring colour with a soft glow, then settles to white.
   Text is fully visible from the first frame; only colour and glow change. */
@media (prefers-reduced-motion:no-preference) {
  .hero-trio .hw { animation:uv-first-light 1.5s cubic-bezier(.2,.65,.3,1) both; }
  .hero-trio .hw-found { --hw-c:var(--ring-found); animation-delay:.15s; }
  .hero-trio .hw-answered { --hw-c:var(--ring-answered); animation-delay:.6s; }
  .hero-trio .hw-booked { --hw-c:var(--ring-booked); animation-delay:1.05s; }
  .motion-paused .hero-trio .hw { animation:none; }
}
@keyframes uv-first-light {
  0% { color:var(--hw-c); text-shadow:0 0 28px color-mix(in srgb,var(--hw-c) 70%,transparent); transform:translateY(6px); }
  45% { color:var(--hw-c); text-shadow:0 0 18px color-mix(in srgb,var(--hw-c) 45%,transparent); transform:none; }
  100% { color:var(--ink,#f0f3f7); text-shadow:0 0 0 transparent; transform:none; }
}

/* ---------- E4 + #3: second hero button "Talk to Claudia" ---------- */
.button.secondary {
  background:#ffffff0d; color:var(--ink,#f0f3f7);
  border:1px solid #c9d6e84d; box-shadow:inset 0 1px 0 #ffffff14;
}
.button.secondary:hover { background:#ffffff17; border-color:color-mix(in srgb,var(--ring-answered) 55%,#ffffff); }
.hero-refined .hero-actions .button.secondary { gap:10px; }
.hero-demo svg { width:16px; height:16px; color:var(--ring-answered); }

/* ---------- #5: Meta credential beside the buttons ---------- */
.hero-refined .hero-trust {
  display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap;
  margin:14px 0 0; font-size:13px; line-height:1.5; color:#aebbd0;
}
.hero-trust .provider-icon, .trust-line .provider-icon { width:16px; height:16px; color:#8fd3ee; flex:none; }
.page-hero .trust-line {
  display:flex; align-items:flex-start; gap:10px; max-width:640px;
  margin:18px 0 0; font-size:14px; line-height:1.6; color:#aebbd0;
}
.page-hero .trust-line .provider-icon { margin-top:3px; }

/* ---------- E8 + #40: the hero fits the screen (desktop) ----------
   The stage height follows the window height, so headline, Earth and both
   buttons are visible without scrolling from 600 px tall upward. */
@media (min-width:901px) {
  .hero-refined .orbit-stage {
    --stage-h:clamp(300px,calc(100svh - 470px),470px);
    height:var(--stage-h); margin-top:clamp(12px,2svh,28px);
    --art-width:min(78vw,990px,calc(var(--stage-h) * 2.1));
  }
  .hero-refined .hero-closing { margin-top:clamp(14px,2.4svh,30px); }
}
@media (min-width:901px) and (max-height:820px) {
  .hero.hero-refined { padding-top:12px; padding-bottom:18px; }
  .hero-refined .eyebrow { margin-bottom:6px; font-size:14px; }
  .hero-refined h1.hero-trio { font-size:clamp(38px,7svh,56px); }
  .hero-refined .hero-sub { margin-top:8px; font-size:15px; }
  .hero-refined .hero-choice { display:none; }
  .hero-refined .orbit-stage { --stage-h:clamp(220px,calc(100svh - 360px),440px); }
  .hero-refined .hero-actions { margin-top:0; }
  .hero-refined .hero-trust { margin-top:8px; font-size:12px; }
}
@media (min-width:901px) and (max-height:680px) {
  /* Only the taller two-line headline with its sub-line needs this room. */
  .hero-refined .hero-copy:has(.hero-sub) .eyebrow { display:none; }
  .hero-refined .orbit-stage { --stage-h:clamp(200px,calc(100svh - 320px),440px); }
}

/* ---------- Phones: readable hero (#7) ---------- */
@media (max-width:900px) {
  .hero-refined h1.hero-trio { display:flex; flex-wrap:wrap; justify-content:center; font-size:clamp(38px,10.5vw,52px); gap:0 .28em; }
  .hero-refined .hero-sub { font-size:16px; margin-top:12px; }
  .hero-refined .hero-choice { font-size:14px; }
  .hero-refined .hero-actions .button, .hero-refined .hero-actions .text-link { font-size:14px; }
  .hero-refined .hero-trust { font-size:13px; }
}
@media (max-width:480px) {
  .hero-refined .hero-actions { flex-direction:column; align-items:stretch; }
  .hero-refined .hero-actions .button { width:100%; }
  .hero-refined .node-copy strong { font-size:14px; }
  .hero-refined .node-copy small { font-size:12px; }
}

/* ---------- M1 + #8: button feedback ---------- */
.button { transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease,border-color .15s ease; }
.button svg { transition:transform .15s ease; }
.button:hover svg { transform:translateX(4px); }
.button:active { transform:scale(.98); transition-duration:.08s; }
.button.secondary:hover svg { transform:none; }
.primary:hover { box-shadow:0 8px 30px #e90b7a4d; }
@media (prefers-reduced-motion:reduce) {
  .button,.button svg { transition:none; }
  .button:hover svg,.button:active { transform:none; }
}

/* ---------- M9 + #8: header after the first scroll ----------
   No height change, so nothing below it moves. */
.site-header { transition:background-color .25s ease,box-shadow .25s ease; }
.site-header.is-scrolled { background:#080b14f7; box-shadow:0 1px 0 #ffffff12,0 12px 30px #0007; }

/* ---------- #43: cookie notice in the site's own type, smaller ---------- */
#uv-cookie-notice { font:13px/1.55 Sora,Arial,sans-serif; width:min(380px,calc(100% - 32px)); padding:16px 18px; border-color:#3a4a60; background:#0e1624f2; backdrop-filter:blur(14px); }
#uv-cookie-notice h2 { font:600 15px/1.4 Sora,Arial,sans-serif; margin-bottom:6px; }
#uv-cookie-notice p { margin-bottom:4px; }
#uv-cookie-notice button { font:600 13px/1.4 Sora,Arial,sans-serif; padding:8px 14px; }
#uv-cookie-notice a { min-height:44px; }
#uv-cookie-notice.uv-pos-left { right:auto; left:16px; }
#uv-cookie-notice.uv-pos-top { bottom:auto; top:96px; }
/* Desktop: one compact card, link and both choices on one row. */
@media (min-width:761px) {
  #uv-cookie-notice { display:grid; grid-template-columns:1fr auto auto; column-gap:10px; align-items:center; width:min(440px,calc(100% - 32px)); }
  #uv-cookie-notice h2, #uv-cookie-notice p { grid-column:1 / -1; }
  #uv-cookie-notice .uv-cookie-actions { display:contents; }
  #uv-cookie-notice button { flex:none; min-width:92px; margin-top:4px; }
  #uv-cookie-notice a { margin-top:4px; justify-self:start; }
}

/* ---------- #44: phone bar with the two next steps ---------- */
.uv-mobile-bar { display:none; }
@media (max-width:760px) {
  .uv-mobile-bar {
    position:fixed; z-index:1000; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom,0px));
    display:flex; gap:8px; padding:8px; border-radius:16px;
    background:#0b1220eb; border:1px solid #2c3b52; backdrop-filter:blur(16px);
    box-shadow:0 10px 30px #000a;
    transition:transform .25s ease,opacity .25s ease;
  }
  .uv-mobile-bar[data-state="hidden"] { transform:translateY(130%); opacity:0; pointer-events:none; }
  .uv-mobile-bar a {
    flex:1; min-height:48px; display:inline-flex; align-items:center; justify-content:center; gap:8px;
    border-radius:10px; font-size:14px; font-weight:600; text-decoration:none; line-height:1.2; text-align:center;
  }
  .uv-mobile-bar .uv-bar-book { background:var(--pink,#e90b7a); color:#fff; }
  .uv-mobile-bar .uv-bar-demo { background:#ffffff10; color:#f0f3f7; border:1px solid #c9d6e84d; }
  .uv-mobile-bar svg { width:16px; height:16px; }
  .uv-mobile-bar .uv-bar-demo svg { color:var(--ring-answered); }
  @media (prefers-reduced-motion:reduce) { .uv-mobile-bar { transition:none; } }
}

/* ---------- #7: phone readability for reading text (homepage + footer) ----------
   Diagram labels inside the service map and workflow previews are drawn to fit
   and are left as they are. */
@media (max-width:760px) {
  :is(#industries,#process,#contact,#live-demo,#featured-project) :is(p,li,label):not(.eyebrow):not(.project-category):not(.demo-question-label) { font-size:15px; line-height:1.6; }
  :is(#industries,#process,#contact,#live-demo,#featured-project) :is(strong,.text-link,a.button) { font-size:14px; }
  #industries summary span, #industries summary small { font-size:14px; }
  :is(#industries,#process,#contact,#live-demo,#featured-project,#services) .eyebrow { font-size:12px; }
  #live-demo .demo-question-label, #featured-project .project-category, #featured-project figcaption { font-size:12px; }
  .site-footer a, .site-footer p, .site-footer span:not(.motion-symbol), footer a, footer p { font-size:14px; }
  footer h2 { font-size:12px; }
  #services > .section-wrap > p, #services .services-intro p { font-size:15px; }
}

/* ---------- Animation efficiency (2026-11-12 review, founder approved) ----------
   1. Service map: the dot now moves with transform instead of `left`, so the
      browser no longer redoes layout on every frame. The element spans the
      connector and draws a 10px dot at its left edge; 100% = connector width.
   2. The map's pause (its own button, off-screen, hidden tab) never reached the
      dot: the running rule is more specific and its shorthand reset the play
      state. This rule is more specific again. */
.ump-map.is-enhanced .ump-row .ump-connector::after {
  left:0; right:0; width:auto; box-shadow:none;
  background:linear-gradient(90deg,var(--ump-accent) 0 10px,transparent 10px);
  filter:drop-shadow(0 0 4px var(--ump-accent));
}
.ump-map.is-enhanced .ump-row.is-active .ump-connector::after { animation:uv-ump-flow 4.8s linear infinite; }
.ump-map.is-enhanced.is-paused .ump-row.is-active .ump-connector::after { animation-play-state:paused; }
@keyframes uv-ump-flow {
  0%,8% { transform:translateX(0); opacity:0; }
  13% { opacity:1; }
  35% { transform:translateX(calc(100% - 10px)); opacity:1; }
  40%,100% { transform:translateX(calc(100% - 10px)); opacity:0; }
}
/* 3. The slow star drift behind the Earth rests while the hero is off-screen
      (orbit-capsules.js sets .capsules-active only while it is in view). */
.orbit-stage:not(.capsules-active) .orbit-stars { animation-play-state:paused; }

/* ---------- Phone hero tightening (2026-11-16, before Wave 1) ----------
   The bigger headline and new sub-line pushed the service pills below the
   first phone screen. Smaller Earth, slightly smaller headline, compact pills. */
@media (max-width:480px) {
  .hero.hero-refined { padding-top:28px; }
  .hero-refined .eyebrow { margin-bottom:8px; }
  .hero-refined h1.hero-trio { font-size:clamp(32px,9vw,40px); line-height:1.04; }
  .hero-refined .hero-sub { font-size:14px; line-height:1.45; margin-top:8px; }
  /* With the line under the headline, both hero buttons still fit the first phone screen (390 x 844):
     the line does the eyebrow's job, the repeated "choose one service" line goes, the planet is 6% smaller. */
  .hero-refined .hero-copy:has(.hero-sub) .eyebrow { display:none; }
  .hero-refined .hero-copy:has(.hero-sub) ~ .hero-closing .hero-choice { display:none; }
  /* 44 px below the capsules is the pause control's own tap area, so it never sits on a capsule. */
  /* -12px (2026-11-22): the planet's empty frame top left a gap under the line; this keeps ~12 px
     between the text and the top ring glow. Pulling it further would put glow behind the words. */
  .hero-refined .orbit-stage { margin-top:-12px; padding-bottom:44px; }
  .hero-refined .hero-copy:has(.hero-sub) ~ .hero-closing { margin-top:6px; }
  .hero-refined .hero-copy:has(.hero-sub) ~ .hero-closing .hero-actions { margin-top:0; }
  /* Bigger planet on phones (2026-11-22): at 70% the globe was ~100 px on a 390 px phone and the
     emblem hid the dotted map. Now it runs past the side margins (the hero clips it, no sideways
     scroll) and the pills tuck into the empty space under the rings: globe ~165 px, both buttons
     still on the first 390 x 844 screen. */
  .hero-refined .orbit-art { width:116%; margin:0 0 0 -8%; }
  .hero-refined .hero-service-categories { margin-top:-34px; position:relative; z-index:2; }
  .hero-refined .node-capsule { min-height:0; padding:10px; }
}
/* Shorter phones (e.g. 360 x 780 Android): a step smaller (globe ~130 px, still ~30% bigger than
   before), so the pink booking button stays on the first screen in Spanish too. */
@media (max-width:480px) and (max-height:820px) {
  .hero-refined .orbit-art { width:100%; margin:0; }
}
/* The longest pill label ("Recepción con IA y automatización") must not break word by word on phones. */
@media (max-width:480px) {
  .hero-refined .node-receptionists .node-capsule { padding:10px 8px; gap:6px; }
  .hero-refined .node-receptionists .node-copy strong { font-size:13px; letter-spacing:-.01em; }
}

/* ---------- Business number (786) 244-6200, added 2026-11-25 ----------
   Footer + Contact page links, and the round WhatsApp button (built in growth.js).
   Glass recipe from UPPERVISION-SIGNAL-STYLE.md. Accent = WhatsApp green (founder pick 2026-11-25):
   a third-party mark keeps its own colour (WhatsApp allows green, white or black), the one
   exception to "no new colours". */
.footer-studio .footer-contact { display:flex; width:fit-content; margin-top:0; }
.footer-studio > p.footer-phone-note { font-size:12px; line-height:1.5; color:#98a9be; margin:-8px 0 6px; max-width:none; }
.contact-alternatives .contact-channels { display:flex; flex-direction:column; align-items:flex-start; gap:2px; margin-top:22px; }
.contact-alternatives .contact-channels a { display:inline-flex; align-items:center; gap:10px; min-height:44px; margin-top:0; }
.contact-alternatives .contact-channels svg { width:16px; height:16px; }
.contact-alternatives .contact-phone-note { font-size:13px; margin-top:10px; color:#98a9be; }

.uv-whatsapp {
  --accent:#25d366;
  /* Round icon button in the page's side margin (content ends 74 px from the edge on laptops), so it never covers content. */
  position:fixed; z-index:990; right:12px; bottom:calc(20px + env(safe-area-inset-bottom,0px));
  display:inline-flex; align-items:center; justify-content:center; width:54px; height:54px; padding:0; border-radius:50%;
  color:#f0f3f7; font:600 14px/1 Sora,Arial,sans-serif; text-decoration:none;
  border:1px solid color-mix(in srgb, var(--accent) 28%, #526175);
  border-top-color:color-mix(in srgb, var(--accent) 35%, #c1cedd);
  border-bottom-color:color-mix(in srgb, var(--accent) 20%, #29384a);
  background:
    radial-gradient(ellipse at 10% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 68%),
    linear-gradient(155deg, #1c2834ef, #0a131eed 75%);
  box-shadow:inset 0 1px 0 #eef8ff14, inset 0 -1px 0 #03091199, 0 8px 22px #0005, 0 0 18px color-mix(in srgb, var(--accent) 5%, transparent);
  backdrop-filter:blur(14px);
  transition:opacity .25s ease, transform .25s ease, visibility 0s, border-color .25s, box-shadow .25s;
}
.uv-whatsapp::before { content:''; position:absolute; top:0; left:18%; width:64%; height:1px; pointer-events:none;
  background:linear-gradient(90deg, transparent, #f3faff80, transparent); }
.uv-whatsapp svg { width:27px; height:27px; fill:currentColor; stroke:none; color:var(--accent); }
.uv-whatsapp span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.uv-whatsapp:hover, .uv-whatsapp:focus-visible {
  border-color:color-mix(in srgb, var(--accent) 78%, #ebf7ff);
  box-shadow:inset 0 1px 0 #eef8ff14, 0 8px 22px #0005, 0 0 26px color-mix(in srgb, var(--accent) 22%, transparent);
}
.uv-whatsapp:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }
.uv-whatsapp[data-state="hidden"] { opacity:0; visibility:hidden; transform:translateY(12px); pointer-events:none;
  transition:opacity .25s ease, transform .25s ease, visibility 0s .25s; }
/* Phones: a round icon button just above the right end of the phone bar, shown with the bar. */
@media (max-width:760px) {
  .uv-whatsapp { bottom:calc(12px + env(safe-area-inset-bottom,0px)); width:52px; height:52px; }
  .uv-whatsapp.uv-whatsapp-above-bar { bottom:calc(88px + env(safe-area-inset-bottom,0px)); }
  .uv-whatsapp svg { width:26px; height:26px; }
}
@media (prefers-reduced-motion:reduce) { .uv-whatsapp, .uv-whatsapp[data-state="hidden"] { transition:none; transform:none; } }
@media print { .uv-whatsapp { display:none; } }
/* Space under the footer so its last links never sit behind the phone bar or the WhatsApp button
   (both stay on screen at the bottom of the page). Tablets: the button reaches into the content edge. */
@media (max-width:760px) { .site-footer { padding-bottom:calc(150px + env(safe-area-inset-bottom,0px)) !important; } }
@media (min-width:761px) and (max-width:1200px) { .site-footer { padding-bottom:90px !important; } }
