@charset "utf-8";

/*
 * AI recommendation hero — Evidence Bracket v2
 * One visual thought: verified business context is gathered into a useful answer.
 */

.page-ai-recommendation .inner-hero {
  min-height: 830px;
  background:
    radial-gradient(circle at 86% 18%, rgba(135, 208, 244, .38), transparent 25%),
    radial-gradient(circle at 66% 67%, rgba(0, 159, 232, .075), transparent 31%),
    linear-gradient(135deg, #fbfdfe 0%, #f3f9fc 61%, #e9f6fb 100%);
}

.page-ai-recommendation .inner-hero > .shell.inner-hero-grid {
  grid-template-columns: minmax(0, 1.03fr) minmax(470px, .97fr);
  gap: clamp(34px, 4vw, 62px);
}

.page-ai-recommendation .inner-hero-copy { max-width: 680px; }

.page-ai-recommendation .ai-title-mark {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--cyan-deep);
  background: linear-gradient(104deg, #007fbd 0%, #009fe8 35%, #74cff5 52%, #009fe8 70%, #007fbd 100%);
  background-position: 100% 50%;
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
  -webkit-text-fill-color: transparent;
  transform-origin: 50% 72%;
}

.page-ai-recommendation .ai-title-mark::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 1.05em;
  height: .78em;
  border: 1px solid rgba(0, 159, 232, .24);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(0, 159, 232, .16);
  content: "";
  opacity: 0;
  transform: translate(-50%, -50%) scale(.55);
  pointer-events: none;
}

.page-ai-recommendation .ai-title-mark::after {
  position: absolute;
  right: .04em;
  bottom: -.03em;
  left: .04em;
  height: .055em;
  min-height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #009fe8, #87d0f4);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
}

.page-ai-recommendation .inner-hero-copy.is-visible .ai-title-mark {
  animation: ai-title-arrive .92s cubic-bezier(.18, .78, .2, 1) .08s both,
             ai-title-shine 1.1s ease .12s both;
}

.page-ai-recommendation .inner-hero-copy.is-visible .ai-title-mark::before {
  animation: ai-title-ring .9s ease-out .1s both;
}

.page-ai-recommendation .inner-hero-copy.is-visible .ai-title-mark::after {
  animation: ai-title-line .48s cubic-bezier(.2, .78, .2, 1) .7s both;
}

@keyframes ai-title-arrive {
  0% { filter: blur(5px); opacity: .15; transform: scale(.72); }
  62% { filter: blur(0); opacity: 1; transform: scale(1.055); }
  100% { filter: blur(0); opacity: 1; transform: scale(1); }
}

@keyframes ai-title-shine {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

@keyframes ai-title-ring {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
  38% { opacity: .72; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.45); }
}

@keyframes ai-title-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.ai-bracket-scene,
.ai-bracket-scene *,
.ai-bracket-scene *::before,
.ai-bracket-scene *::after { box-sizing: border-box; }

.ai-bracket-scene {
  --ai-ink: #202b31;
  --ai-blue: #009fe8;
  --ai-sky: #68c5ef;
  --ai-line: #cfe4ed;
  --ai-muted: #6e818a;
  position: relative;
  width: calc(100% - 80px);
  max-width: 590px;
  min-height: 506px;
  margin: 0 80px 0 auto;
  color: var(--ai-ink);
  font-family: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  isolation: isolate;
}

.ai-bracket-scene::before {
  position: absolute;
  z-index: -2;
  top: 91px;
  right: 2px;
  bottom: 71px;
  left: 42%;
  border-radius: 52% 48% 42% 58%;
  background: rgba(255, 255, 255, .48);
  filter: blur(1px);
  content: "";
  transform: rotate(-3deg);
}

.ai-bracket-scene::after {
  position: absolute;
  z-index: -1;
  top: 84px;
  right: 1px;
  width: 46%;
  height: 52%;
  border-radius: 50%;
  background: rgba(135, 208, 244, .18);
  filter: blur(52px);
  content: "";
}

.ai-bracket-glow {
  position: absolute;
  z-index: -3;
  top: 42%;
  right: -15%;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 159, 232, .085), rgba(0, 159, 232, 0) 69%);
  transform: translateY(-50%);
  pointer-events: none;
}

.ai-bracket-top {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
}

.ai-bracket-top > span {
  position: relative;
  color: #5e7985;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .17em;
}

.ai-bracket-top > span::after {
  display: inline-block;
  width: 42px;
  height: 1px;
  margin-left: 12px;
  background: rgba(0, 159, 232, .3);
  vertical-align: middle;
  content: "";
}

.ai-bracket-top button {
  display: inline-flex;
  min-width: 82px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #56717c;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.ai-bracket-top button i {
  color: var(--ai-blue);
  font-size: 15px;
  font-style: normal;
  line-height: 1;
}

.ai-bracket-top button:hover { color: var(--ai-blue); background: rgba(255, 255, 255, .44); transform: translateY(-1px); }
.ai-bracket-top button:focus-visible { outline: 3px solid rgba(0, 159, 232, .25); outline-offset: 2px; }

.ai-bracket-sources {
  position: absolute;
  top: 88px;
  left: 0;
  display: grid;
  width: 31%;
  gap: 12px;
}

.ai-source-row {
  position: relative;
  min-height: 73px;
  padding: 8px 8px 11px 0;
  border-bottom: 1px solid rgba(117, 157, 174, .23);
}

.ai-source-row::before {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ai-blue);
  box-shadow: 0 0 0 5px rgba(0, 159, 232, .08);
  content: "";
}

.ai-source-row small,
.ai-source-row strong,
.ai-source-row span { display: block; }

.ai-source-row small {
  margin-bottom: 6px;
  color: var(--ai-blue);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .16em;
}

.ai-source-row strong {
  font-size: 14px;
  font-weight: 730;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.ai-source-row span {
  margin-top: 5px;
  overflow: hidden;
  color: var(--ai-muted);
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-source-row > i {
  position: absolute;
  right: -46px;
  bottom: -1px;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--ai-blue), rgba(0, 159, 232, .1));
  transform-origin: left center;
}

.ai-bracket-core {
  position: absolute;
  top: 91px;
  left: 32%;
  display: grid;
  width: 19%;
  height: 326px;
  place-items: center;
}

.ai-bracket-core::after {
  position: absolute;
  top: 50%;
  right: -31px;
  width: 43px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 159, 232, .18), var(--ai-blue));
  content: "";
  transform-origin: left center;
}

.ai-bracket-core b {
  position: absolute;
  inset: -7px 0 auto -9px;
  color: var(--ai-sky);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 292px;
  font-weight: 400;
  letter-spacing: -.16em;
  line-height: 1;
  opacity: .86;
}

.ai-bracket-core span {
  position: relative;
  z-index: 1;
  margin-left: 8px;
  color: #4f7585;
  font-size: 8.5px;
  font-weight: 780;
  letter-spacing: .18em;
  line-height: 1.7;
  text-align: center;
  writing-mode: vertical-rl;
}

.ai-bracket-answer {
  position: absolute;
  top: 102px;
  right: 0;
  width: 48%;
  min-width: 0;
}

.ai-answer-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 23px;
  color: #5b7783;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: .14em;
  line-height: 1.4;
}

.ai-answer-label > span {
  width: 18px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: var(--ai-blue);
}

.ai-answer-copy {
  margin: 0;
  color: var(--ai-ink);
  font-family: "Arial Narrow", "Aptos Display", Arial, sans-serif;
  font-size: clamp(20px, 1.72vw, 27px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.36;
}

.ai-answer-copy em {
  position: relative;
  z-index: 0;
  font-style: normal;
  white-space: nowrap;
}

.ai-answer-copy em::after {
  position: absolute;
  z-index: -1;
  right: -2px;
  bottom: .04em;
  left: -2px;
  height: .31em;
  border-radius: 2px;
  background: rgba(0, 159, 232, .2);
  content: "";
  transform-origin: left center;
}

.ai-answer-source {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 31px;
  padding-top: 17px;
  border-top: 1px solid var(--ai-line);
}

.ai-answer-source img {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  object-fit: contain;
}

.ai-answer-source div { min-width: 0; }
.ai-answer-source small,
.ai-answer-source strong { display: block; }

.ai-answer-source small {
  margin-bottom: 4px;
  color: var(--ai-muted);
  font-size: 7px;
  font-weight: 760;
  letter-spacing: .14em;
}

.ai-answer-source strong {
  color: var(--ai-ink);
  font-size: clamp(20px, 1.8vw, 29px);
  font-weight: 820;
  letter-spacing: -.055em;
  line-height: 1;
  white-space: nowrap;
}

.ai-answer-ready {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 0;
  color: #4f6b76;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .02em;
}

.ai-answer-ready > i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #13b981;
  box-shadow: 0 0 0 5px rgba(19, 185, 129, .09);
}

.ai-answer-ready span { color: #7c9099; font-size: 8px; letter-spacing: .08em; }

.ai-bracket-note {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  margin: 0;
  padding-top: 15px;
  border-top: 1px solid rgba(103, 145, 163, .18);
  color: #84969e;
  font-size: 8px;
  letter-spacing: .08em;
  text-align: right;
}

/* The sequence only hides elements after JS has taken ownership. */
.ai-bracket-scene.is-ready .ai-source-row,
.ai-bracket-scene.is-ready .ai-bracket-core::after,
.ai-bracket-scene.is-ready .ai-bracket-core b,
.ai-bracket-scene.is-ready .ai-bracket-core span,
.ai-bracket-scene.is-ready .ai-answer-label,
.ai-bracket-scene.is-ready .ai-answer-copy,
.ai-bracket-scene.is-ready .ai-answer-source,
.ai-bracket-scene.is-ready .ai-answer-ready,
.ai-bracket-scene.is-ready .ai-bracket-note { opacity: 0; }

.ai-bracket-scene.is-ready .ai-source-row { transform: translateX(-11px); }
.ai-bracket-scene.is-ready .ai-source-row > i { transform: scaleX(0); }
.ai-bracket-scene.is-ready .ai-bracket-core::after { transform: scaleX(0); }
.ai-bracket-scene.is-ready .ai-bracket-core b { clip-path: inset(0 0 100% 0); }
.ai-bracket-scene.is-ready .ai-bracket-core span { transform: translateY(7px); }
.ai-bracket-scene.is-ready .ai-answer-copy { clip-path: inset(0 100% 0 0); }
.ai-bracket-scene.is-ready .ai-answer-copy em::after { transform: scaleX(0); }
.ai-bracket-scene.is-ready .ai-answer-source,
.ai-bracket-scene.is-ready .ai-answer-ready { transform: translateY(8px); }

.ai-bracket-scene.is-playing .ai-source-row {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .26s ease, transform .26s cubic-bezier(.2, .72, .2, 1);
}

.ai-bracket-scene.is-playing .ai-source-row:nth-child(1) { transition-delay: .1s; }
.ai-bracket-scene.is-playing .ai-source-row:nth-child(2) { transition-delay: .18s; }
.ai-bracket-scene.is-playing .ai-source-row:nth-child(3) { transition-delay: .26s; }
.ai-bracket-scene.is-playing .ai-source-row:nth-child(4) { transition-delay: .34s; }

.ai-bracket-scene.is-playing .ai-source-row > i {
  transform: scaleX(1);
  transition: transform .28s cubic-bezier(.2, .72, .2, 1) .4s;
}

.ai-bracket-scene.is-playing .ai-bracket-core::after {
  opacity: 1;
  transform: scaleX(1);
  transition: opacity .18s ease .66s, transform .28s cubic-bezier(.2, .72, .2, 1) .66s;
}

.ai-bracket-scene.is-playing .ai-bracket-core b {
  clip-path: inset(0 0 0 0);
  opacity: .86;
  transition: clip-path .34s cubic-bezier(.2, .72, .2, 1) .49s, opacity .18s ease .49s;
}

.ai-bracket-scene.is-playing .ai-bracket-core span {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .24s ease .65s, transform .24s ease .65s;
}

.ai-bracket-scene.is-playing .ai-answer-label {
  opacity: 1;
  transition: opacity .24s ease .69s;
}

.ai-bracket-scene.is-playing .ai-answer-copy {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transition: clip-path .37s cubic-bezier(.2, .72, .2, 1) .73s, opacity .15s ease .73s;
}

.ai-bracket-scene.is-playing .ai-answer-copy em::after {
  transform: scaleX(1);
  transition: transform .24s cubic-bezier(.2, .72, .2, 1) 1.07s;
}

.ai-bracket-scene.is-playing .ai-answer-source {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease 1.11s, transform .22s ease 1.11s;
}

.ai-bracket-scene.is-playing .ai-answer-ready {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .2s ease 1.2s, transform .2s ease 1.2s;
}

.ai-bracket-scene.is-playing .ai-bracket-note {
  opacity: 1;
  transition: opacity .22s ease 1.2s;
}

@media (max-width: 1180px) and (min-width: 1081px) {
  .page-ai-recommendation .inner-hero > .shell.inner-hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(440px, .98fr);
    gap: 32px;
  }

  .ai-bracket-scene { width: calc(100% - 66px); min-height: 492px; margin-right: 66px; }
  .ai-bracket-sources { width: 30%; }
  .ai-bracket-core { left: 31%; width: 18%; }
  .ai-bracket-answer { width: 49%; }
  .ai-bracket-core b { font-size: 268px; }
  .ai-source-row > i { right: -35px; width: 32px; }
  .ai-answer-copy { font-size: 20px; }
}

@media (max-width: 1080px) {
  .page-ai-recommendation .inner-hero { padding-bottom: 72px; }
  .page-ai-recommendation .inner-hero > .shell.inner-hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .ai-bracket-scene { justify-self: center; width: min(100%, 680px); max-width: 680px; margin: 0; }
}

@media (max-width: 720px) {
  .page-ai-recommendation .inner-hero { padding-top: 102px; padding-bottom: 49px; }
  .page-ai-recommendation .inner-hero h1 { font-size: clamp(32px, 9.3vw, 36px) !important; }
  .page-ai-recommendation .inner-hero > .shell.inner-hero-grid { gap: 22px; }
  .page-ai-recommendation .inner-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 7px;
  }
  .page-ai-recommendation .inner-hero-actions .button {
    min-width: 0;
    min-height: 50px;
    padding: 0 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .ai-bracket-scene {
    width: 100%;
    min-height: 432px;
    padding: 0;
  }

  .ai-bracket-scene::before {
    top: 71px;
    right: -10px;
    bottom: 45px;
    left: 34%;
  }

  .ai-bracket-top { min-height: 43px; padding-bottom: 9px; }
  .ai-bracket-top > span { max-width: 180px; font-size: 7.5px; line-height: 1.4; }
  .ai-bracket-top > span::after { display: none; }
  .ai-bracket-top button { min-width: 78px; min-height: 40px; padding: 0 10px; font-size: 9px; }

  .ai-bracket-sources {
    top: 62px;
    left: 0;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }

  .ai-source-row { min-height: 54px; padding: 5px 6px 7px 0; }
  .ai-source-row:nth-child(even) { padding-left: 8px; }
  .ai-source-row small { margin-bottom: 4px; font-size: 6.5px; }
  .ai-source-row strong { font-size: 12px; }
  .ai-source-row span { margin-top: 4px; font-size: 8.5px; }
  .ai-source-row::before,
  .ai-source-row > i { display: none; }

  .ai-bracket-core {
    top: 176px;
    left: 50%;
    display: flex;
    width: 150px;
    height: 39px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transform: translateX(-50%);
  }

  .ai-bracket-core b {
    position: relative;
    inset: auto;
    display: grid;
    width: 28px;
    height: 34px;
    place-items: center;
    overflow: visible;
    font-size: 0;
    letter-spacing: 0;
    opacity: .86;
  }
  .ai-bracket-core b::before {
    color: var(--ai-blue);
    font-family: Arial, sans-serif;
    font-size: 29px;
    font-weight: 350;
    line-height: 1;
    content: "↓";
  }
  .ai-bracket-core::after { display: none; }
  .ai-bracket-core span {
    margin: 0;
    color: #406979;
    font-size: 7.5px;
    letter-spacing: .14em;
    line-height: 1.45;
    text-align: left;
    transform: translateY(0);
    writing-mode: horizontal-tb;
  }
  .ai-bracket-scene.is-ready .ai-bracket-core span { transform: translateY(5px); }
  .ai-bracket-scene.is-playing .ai-bracket-core span { transform: translateY(0); }

  .ai-bracket-answer { top: 222px; right: 0; left: 0; width: 100%; }
  .ai-answer-label { margin-bottom: 10px; font-size: 7.5px; }
  .ai-answer-copy { max-width: 335px; font-size: clamp(18px, 5.3vw, 21px); line-height: 1.32; }
  .ai-answer-source { gap: 10px; margin-top: 17px; padding-top: 12px; }
  .ai-answer-source img { width: 29px; height: 29px; }
  .ai-answer-source small { font-size: 6px; }
  .ai-answer-source strong { font-size: 21px; }
  .ai-answer-ready { margin-top: 8px; font-size: 8px; }
  .ai-answer-ready span { font-size: 6px; }
  .ai-bracket-note { bottom: 0; padding-top: 9px; font-size: 7.5px; text-align: left; }

  .page-ai-recommendation .snk-contact-dock-toggle {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
  }
  .page-ai-recommendation .snk-contact-dock-toggle span { display: none; }

  .page-ai-recommendation.ai-hero-dock-hidden .snk-contact-dock {
    opacity: 0;
    visibility: hidden;
    transform: translateY(9px);
    pointer-events: none;
  }

  .page-ai-recommendation .snk-contact-dock {
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
}

@media (max-width: 360px) {
  .page-ai-recommendation .inner-hero-actions .button { font-size: 10px; }
  .ai-bracket-scene { min-height: 426px; }
  .ai-source-row span { font-size: 8px; }
  .ai-bracket-answer { top: 218px; }
  .ai-answer-copy { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-ai-recommendation .inner-hero-copy.is-visible .ai-title-mark,
  .page-ai-recommendation .inner-hero-copy.is-visible .ai-title-mark::before,
  .page-ai-recommendation .inner-hero-copy.is-visible .ai-title-mark::after {
    animation: none !important;
  }

  .page-ai-recommendation .ai-title-mark::before { display: none; }
  .page-ai-recommendation .ai-title-mark::after { transform: scaleX(1); }

  .ai-bracket-scene *,
  .ai-bracket-scene *::before,
  .ai-bracket-scene *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
