/* ULV Product 03 — Cinematic Premium visual system: HERO PROOF OF CONCEPT ONLY.
   Loaded after online-presence.css. Removing this file (and its <link>) restores the previous hero.
   Authority: ULV DESIGN.md (§3 color, §4 type, §6 depth/motion, §7 layout, §5.2 shape language).
   - Text and UI typography stay flat and crisp: no emboss, bevel, chrome, neon or extruded type.
   - Dimension comes from surfaces, layering, light, contact shadows, overlap, shallow perspective and one-time motion.
   - Directional (top-left) shadows are a Product 3 PILOT detail, not ULV canon.
   - No third-party interface or trade dress, no raster images, no WebGL, no real-time 3D. */

:root {
  /* Canonical motion (DESIGN.md §6.3). */
  --cp-ease: cubic-bezier(.2, .8, .2, 1);
  --cp-t-fast: 160ms;
  --cp-t-reveal: 400ms;
  /* Depth. Perspective and tilt values follow the existing ULV dimensional tokens (1200px / 6deg). */
  --cp-persp: 1200px;
  --cp-tilt-x: 3deg;
  --cp-tilt-y: -6deg;
  /* Pilot lighting: one soft key light from the top-left, so shadows fall down and to the right. */
  --cp-edge-lit: inset 1.5px 1.5px 0 rgba(255, 255, 255, .95), inset -1px -1px 0 rgba(31, 35, 40, .06);
  --cp-shadow-2: 6px 12px 24px rgba(31, 35, 40, .09), 1px 3px 8px rgba(31, 35, 40, .06);
  --cp-shadow-3: 10px 20px 36px rgba(31, 35, 40, .15), 2px 5px 12px rgba(31, 35, 40, .10);
  --cp-thick: 0 2px 0 rgba(18, 56, 111, .09);
  --cp-shadow-4: 16px 28px 50px -6px rgba(18, 56, 111, .30), 4px 8px 16px rgba(31, 35, 40, .12);
  --cp-spotlight: radial-gradient(circle at 72% 34%, rgba(30, 85, 173, .22) 0%, rgba(30, 85, 173, .08) 34%, rgba(255, 255, 255, 0) 68%);
}

/* ---------- Hero shell: Local Spotlight, calm handoff into the next section ---------- */
.hero.cp-hero {
  position: relative; isolation: isolate; padding: 0 0 56px;
  overflow-x: clip; /* decorative 3D layers can never create horizontal scroll */
  background: var(--cp-spotlight), linear-gradient(180deg, var(--ulv-white) 0%, var(--ulv-white) 80%, var(--ulv-gray-050) 100%);
}
.hero.cp-hero .hero-copy { position: relative; z-index: 2; }
.hero.cp-hero .cp-figure { position: relative; z-index: 1; margin: 0; padding: 12px 24px 0; max-width: 760px; margin-inline: auto; pointer-events: none; }
.cp-figure figcaption { position: static; margin: 34px 0 0; padding: 0; text-align: center; color: var(--ulv-secondary); font: 450 14px/1.45 Inter, Arial, sans-serif; }

/* ---------- The focal composition: a layered digital presence ---------- */
.cp-stage { position: relative; height: 380px; perspective: var(--cp-persp); }
.cp-stage::after { /* contact shadow: grounds the whole set on one surface */
  content: ''; position: absolute; left: 6%; right: 6%; bottom: -8px; height: 40px; z-index: 0;
  background: radial-gradient(closest-side at 50% 50%, rgba(31, 35, 40, .30) 0%, rgba(31, 35, 40, .11) 55%, rgba(31, 35, 40, 0) 100%);
}
.cp-stage::before { /* soft ambient Trust Blue light pooling under the set */
  content: ''; position: absolute; left: 0; right: 0; bottom: -40px; height: 110px; z-index: 0;
  background: radial-gradient(closest-side at 50% 40%, rgba(30, 85, 173, .15) 0%, rgba(30, 85, 173, 0) 100%);
}
.cp-rig { position: absolute; inset: 0; transform-style: preserve-3d; z-index: 1;
  transform: rotateX(var(--cp-tilt-x)) rotateY(var(--cp-tilt-y)) translateY(calc(var(--cp-p, 0) * -14px)); }

.cp-panel, .cp-device {
  position: absolute; background: var(--ulv-white); border: 1px solid var(--ulv-border);
  box-shadow: var(--cp-edge-lit), var(--cp-thick), var(--cp-shadow-3); overflow: hidden;
  transform: translateZ(var(--z, 0px)) translateY(calc(var(--cp-p, 0) * var(--k, 0) * 1px));
}
.cp-panel { border-radius: 16px; }
.cp-panel::before { /* the Trust Blue signal: one consistent accent per surface */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ulv-blue);
}
.cp-tag { position: absolute; z-index: 2; left: 14px; bottom: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--ulv-gray-050); color: var(--ulv-charcoal); font: 600 12px/1.3 Inter, Arial, sans-serif; letter-spacing: .02em; }
.cp-panel i { display: block; border-radius: 4px; background: rgba(31, 35, 40, .16); }
.cp-panel em { display: inline-block; font-style: normal; }
.cp-btn { padding: 7px 14px; border-radius: 8px; background: var(--ulv-blue); color: var(--ulv-white); font: 700 12px/1 Inter, Arial, sans-serif; }

/* Website surface (back plane) */
.cp-site { left: 2%; top: 9%; width: 64%; height: 62%; box-shadow: var(--cp-edge-lit), var(--cp-thick), var(--cp-shadow-2); --z: 0px; --k: -4; --fx: 0px; --fy: -10px; --fr: 0deg; --d: 0ms; }
.cp-bar { display: flex; align-items: center; gap: 7px; padding: 16px 16px 10px; background: var(--ulv-gray-050); }
.cp-bar b { width: 9px; height: 9px; border-radius: 50%; background: rgba(31, 35, 40, .24); }
.cp-bar span { flex: 1; height: 14px; margin-left: 8px; border-radius: 7px; background: var(--ulv-white); border: 1px solid var(--ulv-border); }
.cp-site-body { padding: 16px 20px 18px; }
.cp-nav { display: flex; align-items: center; gap: 12px; }
.cp-nav b { width: 22px; height: 22px; border-radius: 6px; background: var(--ulv-charcoal); }
.cp-nav i { width: 44px; height: 7px; }
.cp-nav .cp-btn { margin-left: auto; }
.cp-hero-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: center; margin-top: 20px; }
.cp-lines i { height: 14px; margin-bottom: 9px; background: var(--ulv-charcoal); }
.cp-lines i:nth-child(1) { width: 92%; }
.cp-lines i:nth-child(2) { width: 62%; background: var(--ulv-blue); }
.cp-lines i:nth-child(3) { width: 78%; height: 7px; background: rgba(31, 35, 40, .24); }
.cp-lines .cp-btn { display: none; } /* the nav already carries the site's Contact button */
.cp-work { width: 100%; height: auto; border-radius: 10px; background: var(--ulv-gray-050); border: 1px solid var(--ulv-border); }
.cp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.cp-tiles i { height: 34px; border-radius: 8px; background: var(--ulv-gray-050); border: 1px solid var(--ulv-border); }

/* Local search / profile surface (generic; not a reproduction of any search provider) */
.cp-local { left: 0; top: 50%; width: 35%; height: 45%; --z: 40px; --k: -12; --fx: -22px; --fy: 18px; --fr: -3deg; --d: 90ms; }
.cp-local-body { padding: 20px 16px 0; }
.cp-pin { position: relative; height: 62px; border-radius: 10px; background: linear-gradient(135deg, rgba(30, 85, 173, .14), var(--ulv-gray-050)); border: 1px solid var(--ulv-border); }
.cp-pin::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -9px 0 0 -7px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ulv-blue); box-shadow: 0 0 0 4px rgba(30, 85, 173, .16); }
.cp-local-body i { height: 8px; margin-top: 10px; }
.cp-local-body i:nth-of-type(1) { width: 70%; height: 11px; background: var(--ulv-charcoal); }
.cp-local-body i:nth-of-type(2) { width: 52%; }
.cp-local-actions { display: flex; gap: 6px; margin-top: 12px; }
.cp-local-actions .cp-btn:last-child { background: var(--ulv-white); color: var(--ulv-blue); border: 1px solid var(--ulv-blue); padding: 6px 12px; }

/* Social presence surface (generic profile + post grid) */
.cp-social { right: 2%; top: 2%; width: 31%; height: 38%; --z: 26px; --k: -9; --fx: 20px; --fy: -14px; --fr: 3deg; --d: 150ms; }
.cp-social-body { padding: 20px 14px 0; }
.cp-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, rgba(30, 85, 173, .3), rgba(30, 85, 173, .08)); border: 2px solid var(--ulv-white); box-shadow: 0 0 0 1px var(--ulv-border); }
.cp-social-body i:nth-of-type(1) { width: 62%; height: 9px; margin-top: 9px; background: var(--ulv-charcoal); }
.cp-social-body i:nth-of-type(2) { width: 42%; height: 7px; margin-top: 7px; }
.cp-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.cp-posts i { height: 30px; border-radius: 6px; background: linear-gradient(135deg, rgba(30, 85, 173, .2), var(--ulv-gray-050)); }

/* Phone (foreground, L4 focal object: layered Trust Blue shadow) */
.cp-device { right: 6%; bottom: 4%; width: 24%; height: 58%; border-radius: 26px; background: var(--ulv-gray-050);
  border: 6px solid var(--ulv-charcoal); box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, .22), var(--cp-shadow-4); --z: 44px; --k: -20; --fx: 14px; --fy: 24px; --fr: 2deg; --d: 220ms; }
.cp-notch { width: 44%; height: 12px; margin: 0 auto; border-radius: 0 0 10px 10px; background: var(--ulv-charcoal); }
.cp-screen { padding: 16px 12px; }
.cp-screen i { display: block; height: 10px; border-radius: 4px; background: var(--ulv-charcoal); width: 82%; }
.cp-screen i + i { height: 7px; width: 58%; margin-top: 8px; background: rgba(31, 35, 40, .24); }
.cp-card { height: 56px; margin: 14px 0; border-radius: 10px; background: linear-gradient(135deg, rgba(30, 85, 173, .16), var(--ulv-white)); border: 1px solid var(--ulv-border); }
.cp-screen .cp-btn { margin-bottom: 14px; }
.cp-screen .cp-btn ~ i { height: 7px; width: 70%; margin-top: 8px; background: rgba(31, 35, 40, .16); }
.cp-screen .cp-btn { display: block; text-align: center; }

/* ---------- One-time motion: the presence settles from misaligned/out-of-date into aligned ---------- */
@keyframes cp-settle {
  from { translate: var(--fx) var(--fy); rotate: var(--fr); opacity: .45; }
  to   { translate: 0 0; rotate: 0deg; opacity: 1; }
}
@keyframes cp-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .cp-panel, .cp-device { animation: cp-settle var(--cp-t-reveal) var(--cp-ease) var(--d, 0ms) both; }
  .cp-panel::before { animation: cp-fade var(--cp-t-reveal) var(--cp-ease) calc(var(--d, 0ms) + 200ms) both; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero.cp-hero .hero-action .primary-cta { transition: background-color var(--cp-t-fast) var(--cp-ease), transform var(--cp-t-fast) var(--cp-ease); }
  .hero.cp-hero .hero-action .primary-cta:hover { transform: translateY(-2px); }
}

/* ---------- Desktop: copy left, composition right; canonical Hero 56 ---------- */
@media (min-width: 1100px) {
  .hero.cp-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 32px; align-items: center;
    padding: 0 max(32px, calc((100% - 1320px) / 2)) 56px; }
  .hero.cp-hero .hero-copy { max-width: none; margin: 0; padding: 48px 0 24px; text-align: left; }
  .hero.cp-hero .hero-copy h1 { margin: 20px 0; max-width: 700px; font-size: clamp(50px, 4.45vw, 64px); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
  .hero.cp-hero .desktop-break { display: none; }
  .hero.cp-hero .hero-copy .hero-lead { margin: 0; max-width: 580px; font-size: 22px; line-height: 1.5; }
  .hero.cp-hero .hero-action { margin: 28px 0 0; max-width: 560px; }
  .hero.cp-hero .hero-details { text-align: left; }
  .hero.cp-hero .cta-caption { margin: 0; max-width: 500px; text-align: left; }
  .hero.cp-hero .hero-education { justify-content: flex-start; }
  .hero.cp-hero .cp-figure { max-width: none; width: 100%; padding: 24px 0 0; margin: 0; }
  .cp-stage { height: clamp(440px, 36vw, 500px); }
}

/* ---------- Hero primary action: the established ULV light-blue dimensional treatment ----------
   Same surface, border, highlight, edge, contact shadow, uppercase label and arrow as the Managed AI Receptionist and
   Content Brain heroes, with the contact shadow tinted for the bright canvas. The header CTA stays Trust Blue. */
.hero.cp-hero .hero-action .primary-cta {
  min-width: 260px; min-height: 62px; padding: 16px 28px; gap: 16px; border-radius: 9px;
  font: 700 16px/1.3 Inter, Arial, sans-serif; color: #0b1e35;
  border: 1px solid #648dc0; border-top-color: #d4e8ff; border-bottom-color: #648dc0;
  background-color: #9ecafe; background-image: linear-gradient(180deg, #b4d7ff 0%, #9ecafe 38%, #9ecafe 68%, #92bef1 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), inset 0 -1px 0 rgba(11, 30, 53, .15), 0 2px 0 #6f98ca, 0 6px 10px -4px rgba(18, 56, 111, .34), 0 14px 22px -12px rgba(18, 56, 111, .42);
}
.hero.cp-hero .hero-action .primary-cta .cta-label { text-transform: uppercase; letter-spacing: .03em; }
.hero.cp-hero .hero-action .primary-cta .cta-arrow { font-size: 20px; line-height: 20px; font-weight: 400; }
.hero.cp-hero .hero-action .primary-cta:active { transform: none; background-image: linear-gradient(180deg, #9ecafe, #92bef1); box-shadow: inset 0 1px 2px rgba(11, 30, 53, .22), 0 1px 0 #6f98ca; }
.hero.cp-hero .hero-action .primary-cta:focus-visible { outline: 3px solid var(--ulv-blue); outline-offset: 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 2px 0 #6f98ca, 0 0 0 7px var(--ulv-focus); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero.cp-hero .hero-action .primary-cta { transition: transform var(--cp-t-fast) var(--cp-ease), box-shadow var(--cp-t-fast) var(--cp-ease); }
  .hero.cp-hero .hero-action .primary-cta:hover { transform: translateY(-3px); background-color: #a6ceff; background-image: linear-gradient(180deg, #c0dfff, #a6ceff 38%, #9ecafe 68%, #96c2f5); border-color: #648dc0; color: #0b1e35; }
}
@media (hover: hover) {
  .hero.cp-hero .hero-action .primary-cta:hover { background-color: #a6ceff; background-image: linear-gradient(180deg, #c0dfff, #a6ceff 38%, #9ecafe 68%, #96c2f5); color: #0b1e35; border-color: #648dc0; }
}
@media (forced-colors: active) {
  .hero.cp-hero .hero-action .primary-cta { background: ButtonFace; color: ButtonText; border: 2px solid ButtonText; box-shadow: none; }
}

@media (max-width: 767px) {
  .hero.cp-hero .hero-action .primary-cta { min-width: 0; min-height: 60px; padding: 14px 12px; gap: 10px; font-size: 14px; }
  .hero.cp-hero .hero-action .primary-cta .cta-label { letter-spacing: .015em; }
}

/* ---------- Tablet and phone: recomposed, not shrunk ---------- */
@media (max-width: 1099px) {
  .cp-stage { height: 340px; }
  .cp-rig { transform: rotateX(2deg) rotateY(-4deg); }
}
@media (max-width: 767px) {
  .hero.cp-hero { padding-bottom: 36px; }
  .hero.cp-hero .hero-copy { padding: 12px 20px 8px; }
  .hero.cp-hero .hero-product { font-size: 20px; }
  .hero.cp-hero .headline-first, .hero.cp-hero .headline-second { display: inline; }   /* one balanced run of text, no orphaned word */
  .hero.cp-hero .desktop-break { display: none; }
  .hero.cp-hero .hero-audience { margin-top: 6px; }
  .hero.cp-hero .hero-copy h1 { margin: 14px auto; font-size: 40px; line-height: 1.06; letter-spacing: -.036em; }
  .hero.cp-hero .hero-copy .hero-lead { font-size: 18px; line-height: 1.5; }
  .hero.cp-hero .hero-action { margin-top: 16px; }
  .cp-tag { display: none; }
  .hero.cp-hero .cp-figure { padding: 4px 20px 0; }
  .cp-stage { height: 250px; perspective: none; }
  .cp-rig { transform: none; transform-style: flat; } /* no tilt, no parallax */
  .cp-panel, .cp-device { transform: none; }
  .cp-local, .cp-social { display: none; }               /* four layers become two: the site and the phone */
  .cp-site { left: 0; top: 0; width: 88%; height: 82%; }
  .cp-device { right: 2%; bottom: 0; width: 36%; height: 92%; border-width: 5px; border-radius: 22px; }
  .cp-bar { padding: 12px 12px 8px; }
  .cp-site-body { padding: 10px 14px 12px; }
  .cp-nav .cp-btn, .cp-tiles { display: none; }
  .cp-hero-row { margin-top: 12px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .cp-panel, .cp-device { animation-name: cp-fade; animation-duration: 300ms; }
  .cp-panel::before { animation: none; }
}
@media (max-width: 359px) {
  .cp-device { display: none; }
  .cp-site { width: 100%; }
  .cp-stage { height: 190px; }
}

/* ---------- Accessibility fallbacks ---------- */
@media (prefers-contrast: more) {
  .cp-panel, .cp-device { border-color: var(--ulv-charcoal); }
}
@media (forced-colors: active) {
  .cp-panel, .cp-device { background: Canvas; border: 1px solid CanvasText; box-shadow: none; }
  .cp-panel::before { background: CanvasText; }
  .cp-panel i, .cp-lines i, .cp-bar b, .cp-nav b { background: CanvasText; }
  .cp-btn { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
  .cp-tag { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  .cp-stage::after { display: none; }
}

/* ---------- Phone composition pass (Product 3 only; desktop untouched) ----------
   Mobile-first corrections: the hero set no longer hides the site illustration
   behind the phone, the timeline spends less width on its rail, the four-area
   icons align with their titles, tap targets reach 44px and short headings and
   lead text break evenly. No fixed widths, no overflow clipping. */
@media (max-width: 767px) {
  .cp-site { width: 72%; }
  .cp-device { right: 0; width: 30%; }
  .cp-hero-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 12px; }
  .cp-work { min-width: 0; max-width: 100%; }

  main .option-card .button, main .offer-sheet .button { align-self: stretch; width: 100%; justify-content: center; text-align: center; }  /* card actions fill the column */
  main .pillar { align-items: start; }
  main .pillar-icon { align-self: start; margin-top: 2px; }

  main .decision-grid li { margin-left: 54px; padding: 20px 18px; }
  main .decision-grid li::before { left: -54px; width: 40px; height: 40px; font-size: 17px; top: 16px; }
  main .decision-grid li:not(:last-child)::after { left: -35px; top: 56px; bottom: -34px; }
  main #how-it-works .process-list li { padding-left: 50px; }

  .section-heading h2, .section-heading h3, .option-card h3, .config-card h3 { text-wrap: balance; }
  .section-heading .lead, .option-card > p, .config-card > p, .pillar p, .decision-grid span { text-wrap: pretty; }
  #get-started .container { padding-bottom: 8px; }
}
@media (max-width: 359px) {
  .cp-site { width: 100%; }                              /* phone layer is hidden here: the site takes the stage */
  main .decision-grid li { margin-left: 48px; padding: 18px 16px; }
  main .decision-grid li::before { left: -48px; width: 36px; height: 36px; font-size: 15px; }
  main .decision-grid li:not(:last-child)::after { left: -31px; top: 52px; }
  main #how-it-works .process-list li { padding-left: 46px; }
}
