/* Hero: a pinned scene that "assembles" on scroll (steep.app mechanics, ELET content).
   1) Sources float around the headline. 2) The headline leaves; a chat field appears under it and
   grows into the agent window. 3) Each source flies to its row in the Sources list and folds into it.
   4) A question is typed and sent. 5) The week overview appears row by row; a cursor accepts the
   suggested time. Motion: app-hero.js. */

.hero-story { position: relative; height: 300svh; }
body[data-preview] main > .hero-story { display: none !important; }
.hero__stage { position: sticky; top: 0; height: 100svh; min-height: 680px; }

/* Icons from the shared sprite (#i-*): 1.5px line, round caps — one style across the site. */
svg:has(> use[href^="#i-"]) { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

/* Pastel tone pairs (background + dark tone of the same hue) */
.aw-tone--blue, .hw--voice { --tone-bg: #E9F1FE; --tone-ink: #1c5a80; }
.aw-tone--yellow, .hw--doc { --tone-bg: #F8F3DE; --tone-ink: #6F4E17; }
.aw-tone--green, .hw--notes { --tone-bg: #E6F4EB; --tone-ink: #2B552C; }
.aw-tone--purple, .hw--mail { --tone-bg: #F2EDFC; --tone-ink: #4D2F87; }
.aw-tone--peach, .hw--cal { --tone-bg: #FBEBE2; --tone-ink: #7A3A20; }
.aw-tone--teal, .hw--shop { --tone-bg: #E2F3F2; --tone-ink: #1D5856; }

/* ---------- Headline block ---------- */
.hero__copy { position: absolute; left: 50%; top: 50%; z-index: 4; width: min(860px, calc(100vw - 80px)); text-align: center; transform: translate(-50%, -54%); transform-origin: 50% 40%; will-change: transform, opacity; }
.hero__copy .eyebrow { margin: 0 0 22px; color: #2a6e93; font-size: 12px; letter-spacing: .16em; }
.hero__stage h1 { margin: 0 auto 24px; color: var(--ink-strong, #0d2130); font-size: clamp(46px, 5vw, 74px) !important; line-height: 1.04 !important; letter-spacing: -.025em; }
.hero-line { display: block; white-space: nowrap; }
.hero__lead { max-width: 600px; margin: 0 auto; font-size: clamp(16px, 1.3vw, 19px) !important; text-wrap: balance; }
.hero__actions { display: flex; gap: 10px; justify-content: center; margin: 32px auto 0; }
.hero__actions .button { min-height: 48px; padding: 0 24px; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.hero__actions .button--primary { color: #0b1c12; background: #D6F7A3; box-shadow: 0 12px 30px rgba(123, 159, 59, .22), 0 3px 10px rgba(41, 86, 77, .1); }
.hero__actions .button--ghost { color: #12324a; border: 1px solid rgba(13, 33, 48, .1); background: rgba(255, 255, 255, .62); box-shadow: 0 10px 26px rgba(51, 94, 120, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero__facts { display: flex; justify-content: center; gap: 22px; margin: 24px auto 0; color: rgba(13, 33, 48, .62); font-size: 13px; }
.hero__facts span { display: inline-flex; align-items: center; }
.hero__facts span::before { content: ''; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: #2e93e8; box-shadow: 0 0 0 3px rgba(46, 147, 232, .14); }

/* Load reveal: words rise out of their line */
.hero-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-word > span { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform .7s var(--e-power3), opacity .7s var(--e-power3); transition-delay: var(--wd); }
.hero-ready .hero-word > span { transform: none; opacity: 1; }
.hero__copy .eyebrow, .hero__lead, .hero__actions, .hero__facts { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--e-power3), transform .7s var(--e-power3); }
.hero-ready .hero__copy .eyebrow { opacity: 1; transform: none; transition-delay: .05s; }
.hero-ready .hero__lead { opacity: 1; transform: none; transition-delay: .35s; }
.hero-ready .hero__actions { opacity: 1; transform: none; transition-delay: .5s; }
.hero-ready .hero__facts { opacity: 1; transform: none; transition-delay: .62s; }

/* ---------- Source widgets: different sizes, a loose composition around the headline ---------- */
.hero-widgets { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.hw {
  --shadow: 1;
  position: absolute;
  padding: 14px 16px 16px;
  border-radius: 18px;
  color: var(--tone-ink);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(13, 33, 48, .06), 0 20px 25px -5px rgba(20, 40, 60, calc(.1 * var(--shadow))), 0 8px 10px -6px rgba(20, 40, 60, calc(.06 * var(--shadow)));
  font-size: 13px;
  line-height: 1.35;
  transform-origin: 0 0;
  will-change: transform, opacity, clip-path;
  opacity: 0;
}
.hw > * { opacity: var(--content, 1); }
.hw__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hw__app { display: inline-flex; align-items: center; gap: 7px; color: var(--tone-ink); font-size: 12px; font-weight: 650; white-space: nowrap; }
.hw__app svg { width: 16px; height: 16px; padding: 4px; box-sizing: content-box; border-radius: 7px; background: var(--tone-bg); }
.hw__meta { color: rgba(13, 33, 48, .45); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.hw__quote { margin: 10px 0 0; color: #1d2f3d; font-size: 13px; line-height: 1.4; }

.hw[data-widget="voice"] { left: 5.5%; top: 12%; width: clamp(220px, 18.5vw, 272px); }
.hw[data-widget="call"] { left: 2.2%; top: 41%; width: clamp(200px, 15.5vw, 228px); }
.hw[data-widget="notes"] { left: 6.4%; top: 66%; width: clamp(226px, 19vw, 284px); }
.hw[data-widget="email"] { right: 3.2%; top: 15%; width: clamp(230px, 20vw, 298px); }
.hw[data-widget="calendar"] { right: 8%; top: 44%; width: clamp(200px, 15.5vw, 226px); }
.hw[data-widget="listing"] { right: 4.6%; top: 68%; width: clamp(214px, 17.5vw, 258px); }

.hw-voice { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 14px; background: var(--tone-bg); }
.hw-voice__play { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--tone-ink); }
.hw-voice__play svg { width: 14px; height: 14px; }
.hw-voice__wave { display: flex; align-items: center; gap: 2px; flex: 1; height: 26px; }
.hw-voice__wave i { display: block; flex: 1; min-width: 2px; border-radius: 2px; background: currentColor; opacity: .5; }
.hw-voice__wave i.is-played { opacity: 1; }
.hw-voice__dur { color: var(--tone-ink); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

.hw-doc__line { margin: 0 0 5px; color: #1d2f3d; font-size: 13.5px; }
.hw-doc__line b { font-weight: 650; }
.hw-doc__line mark { padding: 1px 4px; border-radius: 4px; color: var(--tone-ink); background: var(--tone-bg); }
.hw-doc__line--muted { margin-top: 8px; color: rgba(13, 33, 48, .5); font-size: 12.5px; }

.hw-notes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: #1d2f3d; }
.hw-notes li { display: flex; gap: 8px; align-items: flex-start; }
.hw-notes svg { flex: none; width: 17px; height: 17px; margin-top: -1px; color: var(--tone-ink); }
.hw-notes u { text-decoration-color: rgba(43, 85, 44, .45); text-underline-offset: 2px; }

.hw-avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #4D2F87; background: #F2EDFC; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.hw-mail__subject { margin: 0 0 4px; color: #0d2130; font-size: 14px; font-weight: 650; }
.hw-mail__preview { margin: 0; color: rgba(13, 33, 48, .66); }

.hw-cal { display: grid; grid-template-columns: 38px 1fr; align-items: center; row-gap: 6px; }
.hw-cal__hour { color: rgba(13, 33, 48, .45); font-size: 11px; font-variant-numeric: tabular-nums; }
.hw-cal__line { height: 1px; background: rgba(13, 33, 48, .08); }
.hw-cal__event { padding: 7px 10px; border-left: 3px solid var(--tone-ink); border-radius: 8px; color: var(--tone-ink); background: var(--tone-bg); font-size: 12.5px; }
.hw-cal__event b { font-weight: 650; }

.hw-shop__query { margin: 0 0 10px; color: #0d2130; font-size: 13.5px; font-weight: 600; }
.hw-shop__results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hw-shop__results span { display: grid; gap: 4px; justify-items: center; padding: 8px 4px 6px; border-radius: 12px; color: rgba(13, 33, 48, .55); background: #F6F8FA; font-size: 12px; font-weight: 600; }
.hw-shop__results i { display: grid; place-items: center; width: 100%; color: rgba(13, 33, 48, .45); }
.hw-shop__results svg { width: 34px; height: 28px; stroke-width: 1.7; }
.hw-shop__results .is-match { color: var(--tone-ink); background: var(--tone-bg); box-shadow: inset 0 0 0 1.5px rgba(29, 88, 86, .35); }
.hw-shop__results .is-match i { color: var(--tone-ink); }

/* ---------- Agent window: grows out of a chat field ---------- */
.agent-window {
  position: absolute;
  left: 50%;
  top: 92px;
  z-index: 5;
  width: min(1120px, calc(100vw - 2 * max(24px, 4vw)));
  height: min(680px, calc(100svh - 128px));
  border-radius: 24px;
  transform: translateX(-50%);
  will-change: opacity;
}
.aw-shell { position: absolute; z-index: 0; inset: 0; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(4, 23, 43, .06), 0 30px 60px -18px rgba(24, 55, 80, .28), 0 12px 24px -12px rgba(24, 55, 80, .14); }
.aw-content { z-index: 1; will-change: clip-path, opacity; }
.aw-seed { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 22px; color: rgba(13, 33, 48, .42); font-size: 16px; pointer-events: none; }
.aw-seed i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: #0d2130; }
.aw-seed svg { width: 18px; height: 18px; stroke-width: 1.8; }
.aw-content { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: inherit; overflow: hidden; }

.aw-bar { display: flex; align-items: center; gap: 14px; flex: none; height: 52px; padding: 0 20px; border-bottom: 1px solid rgba(13, 33, 48, .07); }
.aw-bar__dots { display: flex; gap: 6px; }
.aw-bar__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(13, 33, 48, .12); }
.aw-bar__title { display: inline-flex; align-items: center; gap: 8px; color: #0d2130; font-size: 14px; font-weight: 650; }
.aw-bar__title svg { width: 18px; height: 18px; color: #2b7fd0; }
.aw-status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 6px 12px; border-radius: 999px; color: rgba(13, 33, 48, .7); background: #F4F6F8; font-size: 12.5px; font-weight: 550; }
.aw-status i { width: 7px; height: 7px; border-radius: 50%; background: #e3a33b; animation: aw-pulse 1.6s ease-out infinite; }
.agent-window.is-ready .aw-status i { background: #3fae5a; animation-name: aw-pulse-green; }
@keyframes aw-pulse { 0% { box-shadow: 0 0 0 0 rgba(227, 163, 59, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(227, 163, 59, 0); } }
@keyframes aw-pulse-green { 0% { box-shadow: 0 0 0 0 rgba(63, 174, 90, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(63, 174, 90, 0); } }

.aw-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); flex: 1; min-height: 0; }
.aw-sources { padding: 18px 14px; border-right: 1px solid rgba(13, 33, 48, .07); background: #FAFBFC; }
.aw-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px 6px; color: rgba(13, 33, 48, .5); font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.aw-label span { padding: 1px 7px; border-radius: 999px; color: rgba(13, 33, 48, .6); background: rgba(13, 33, 48, .06); letter-spacing: 0; }
.aw-slots { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.aw-slot { display: flex; align-items: center; gap: 11px; height: 54px; padding: 0 10px; border: 1px solid transparent; border-radius: 14px; opacity: 0; transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease; }
.aw-slot.is-lit { border-color: color-mix(in srgb, var(--lit) 40%, transparent); background: #fff; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--lit) 55%, transparent); }
.aw-slot__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: var(--tone-ink); background: var(--tone-bg); }
.aw-slot__icon svg { width: 18px; height: 18px; }
.aw-slot b { display: block; color: #0d2130; font-size: 13.5px; font-weight: 600; }
.aw-slot small { display: block; color: rgba(13, 33, 48, .5); font-size: 12px; }

.aw-chat { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 18px 24px 18px; }
.aw-thread { flex: 1; min-height: 0; overflow: hidden; }
.aw-thread__inner { display: flex; flex-direction: column; gap: 12px; will-change: transform; }
.aw-system { display: inline-flex; align-self: center; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border-radius: 999px; color: #2B552C; background: #E6F4EB; font-size: 12.5px; font-weight: 600; opacity: 0; }
.aw-system svg { width: 14px; height: 14px; stroke-width: 2.2; }
.aw-user { align-self: flex-end; max-width: 70%; margin: 0; padding: 12px 18px; border-radius: 20px 20px 6px 20px; color: #0d2130; background: #EEF2F6; font-size: 15px; opacity: 0; transform: translateY(14px); }
.aw-answer { display: grid; gap: 8px; }
.aw-answer__intro { display: flex; align-items: center; gap: 10px; margin: 2px 0 2px; color: #0d2130; font-size: 15.5px; font-weight: 600; }
.aw-spark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; background: linear-gradient(140deg, #3b8ee0, #6b62d6); }
.aw-spark svg { width: 16px; height: 16px; }
.aw-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 11px 14px; border: 1px solid rgba(13, 33, 48, .07); border-radius: 16px; background: #fff; }
.aw-row p { margin: 0; color: #1a2e3d; font-size: 14px; line-height: 1.4; }
.aw-tag { justify-self: start; padding: 5px 10px; border-radius: 999px; color: var(--tone-ink); background: var(--tone-bg); font-size: 12px; font-weight: 650; white-space: nowrap; }
/* sources stacked in a small column on the right */
.aw-chips { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.aw-chips span { padding: 3px 9px; border: 1px solid rgba(13, 33, 48, .08); border-radius: 999px; color: rgba(13, 33, 48, .6); background: #FAFBFC; font-size: 11.5px; white-space: nowrap; }
.aw-row--decide { align-items: start; border-color: rgba(214, 140, 80, .38); background: linear-gradient(180deg, #FFF8F1, #FFFDFB); box-shadow: 0 10px 26px -14px rgba(196, 110, 40, .45); transition: border-color .4s ease, background .4s ease, box-shadow .4s ease; }
.aw-row--decide .aw-tag { margin-top: 1px; }
.aw-decide { display: grid; gap: 6px; }
.aw-reason { color: rgba(13, 33, 48, .6) !important; font-size: 13px !important; }
.aw-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.aw-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid rgba(13, 33, 48, .12); border-radius: 999px; color: #0d2130; background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.aw-btn--primary { min-width: 134px; border-color: transparent; color: #fff; background: #0d2130; transition: background-color .3s ease; }
.aw-btn__done { display: none; align-items: center; gap: 6px; }
.aw-btn__done svg { width: 15px; height: 15px; stroke-width: 2; }
.aw-btn--primary.is-done { background: #2f8f4e; }
.aw-btn--primary.is-done .aw-btn__idle { display: none; }
.aw-btn--primary.is-done .aw-btn__done { display: inline-flex; }
.aw-row--decide.is-resolved { border-color: rgba(47, 143, 78, .35); background: linear-gradient(180deg, #F1FAF3, #FBFEFC); box-shadow: 0 10px 26px -14px rgba(47, 143, 78, .4); }
.aw-row--decide.is-resolved .aw-tag { --tone-bg: #E6F4EB; --tone-ink: #2B552C; }
[data-aw-step] { opacity: 0; transform: translateY(12px); }

.aw-input { display: flex; flex: none; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 8px 8px 18px; border: 1px solid rgba(13, 33, 48, .1); border-radius: 18px; background: #fff; box-shadow: 0 6px 20px -10px rgba(13, 33, 48, .2); }
.aw-input__field { position: relative; flex: 1; min-width: 0; height: 24px; color: #0d2130; font-size: 15px; line-height: 24px; white-space: nowrap; overflow: hidden; }
.aw-input__placeholder { position: absolute; inset: 0; color: rgba(13, 33, 48, .38); }
.aw-input__typed:not(:empty) + .aw-caret { display: inline-block; }
.aw-caret { display: none; width: 1.5px; height: 18px; margin-left: 1px; vertical-align: -3px; background: #2b7fd0; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.aw-send { position: relative; display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: #0d2130; overflow: hidden; transition: background-color .25s ease, box-shadow .25s ease; }
.aw-send svg { width: 16px; height: 16px; stroke-width: 1.8; }
.aw-send.is-ready { background: #2b7fd0; box-shadow: 0 0 0 4px rgba(43, 127, 208, .18); }
.aw-send.is-sent { animation: send-press .55s cubic-bezier(.19, 1, .22, 1); }
.aw-send.is-sent svg { animation: send-fly .55s cubic-bezier(.55, .085, .68, .53); }
@keyframes send-press { 0% { transform: scale(1); } 30% { transform: scale(.82); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes send-fly { 0% { transform: none; opacity: 1; } 45% { transform: translateY(-22px); opacity: 0; } 46% { transform: translateY(22px); opacity: 0; } 100% { transform: none; opacity: 1; } }

.aw-cursor { position: absolute; left: 0; top: 0; z-index: 3; width: 22px; height: 22px; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); transform-origin: 20% 15%; }
.aw-cursor svg { width: 22px; height: 22px; fill: #0d2130; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }

/* ---------- Small screens: a calm static version (mobile is a later task) ---------- */
@media (max-width: 900px) {
  .hero-story { height: auto; }
  .hero__stage { position: relative; height: auto; min-height: 0; padding: 110px 20px 56px; }
  .hero__copy { position: relative; left: auto; top: auto; width: 100%; transform: none !important; opacity: 1 !important; }
  .hero-line { white-space: normal; }
  .hero-widgets, .aw-seed { display: none; }
  .agent-window { position: relative; left: auto; top: auto; width: 100%; height: auto; margin-top: 48px; transform: none !important; opacity: 1 !important; }
  .aw-shell { inset: 0 !important; }
  .aw-content { clip-path: none !important; opacity: 1 !important; }
  .aw-content { position: relative; }
  .aw-body { grid-template-columns: 1fr; }
  .aw-sources { display: none; }
  .aw-row, .aw-row--decide { grid-template-columns: 1fr; gap: 8px; }
  .aw-chips { flex-direction: row; justify-content: flex-start; }
  .aw-user, [data-aw-step], .aw-system { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-word > span, .hero__copy .eyebrow, .hero__lead, .hero__actions, .hero__facts { transition: none; transform: none; opacity: 1; }
}

/* ---------- Feedback 22.10 ---------- */
/* the eyebrow sits as far from the title as the title sits from the lead; the lead reads darker */
.hero__copy .eyebrow { margin-bottom: 40px; }
.hero__lead { color: rgba(13, 33, 48, .8) !important; }
/* both columns of sources follow an arc that bulges outward in the middle, a little closer to the text */
.hw[data-widget="voice"] { left: 8%; }
.hw[data-widget="call"] { left: 4.4%; }
.hw[data-widget="notes"] { left: 8.8%; }
.hw[data-widget="email"] { right: 8%; top: 13%; }
.hw[data-widget="calendar"] { right: 4.4%; top: 42%; }
.hw[data-widget="listing"] { right: 8.8%; top: 67%; }
/* leave room under the window for the closing line */
.agent-window { height: min(680px, calc(100svh - 172px)); }
.hero-learning { position: absolute; left: 50%; bottom: max(26px, calc(100svh - 92px - 680px - 64px)); z-index: 5; margin: 0; color: rgba(13, 33, 48, .78); font-family: var(--display); font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -.01em; white-space: nowrap; opacity: 0; transform: translateX(-50%); }
@media (max-width: 900px) { .hero-learning { position: static; margin: 28px 0 0; opacity: 1 !important; transform: none !important; white-space: normal; text-align: center; } }
/* the agent window is a picture: it never takes clicks, so the hero buttons under it work */
.agent-window, .hero-learning { pointer-events: none; }
/* caption: this is an example of what you build, not a product */
.aw-example { margin-left: 4px; padding: 4px 10px; border: 1px dashed rgba(13, 33, 48, .2); border-radius: 999px; color: rgba(13, 33, 48, .6); font-size: 12px; font-weight: 600; white-space: nowrap; }
/* the closing line reads as the point of the scene and arrives with the final state */
.hero-learning { color: #0d2130 !important; font-size: clamp(24px, 2vw, 30px) !important; }
@media (max-width: 620px) {
  .aw-bar { flex-wrap: wrap; height: auto !important; row-gap: 6px; padding-top: 10px !important; padding-bottom: 10px !important; }
  .aw-example { order: 5; flex-basis: 100%; width: max-content; max-width: 100%; margin-left: 0; white-space: normal; }
  .aw-status { max-width: 100%; }
}
/* the lead breaks after its first sentence; the second sentence balances on its own lines */
.hero__lead { max-width: 640px !important; text-wrap: balance !important; }

/* ---------- Thinking glow: a gradient line with a soft glow runs round the edge while the agent works ---------- */
/* --glow-angle and --glow-alpha come from JS. Blurred layers keep 36px of empty padding round the painted
   gradient (background-clip: content-box), so the blur fades out before the layer's edge — otherwise
   Safari shows the layer's bounds as a faint rectangle. */
/* the window and the chat field: a full ring of light blue, teal and lime turning round */
.aw-glow { --ring: conic-gradient(from var(--glow-angle, 0deg), #8cc9f5, #74d7c8, #c9ef7f, #74d7c8, #8cc9f5); }
/* a source card: a short run — a fading tail and a bright lime head */
.hw, .hw-halo { --ring: conic-gradient(from var(--glow-angle, 0deg), transparent 0deg 220deg, rgba(106, 184, 240, .55) 275deg, #4fcab6 322deg, #b6e35e 352deg, transparent 360deg); }
/* the window's glow follows the shell from the chat field to the full window; the shell covers its middle */
.aw-glow { position: absolute; z-index: 0; inset: 0; opacity: 0; pointer-events: none; }
.aw-glow::before, .aw-glow::after { content: ''; position: absolute; }
.aw-glow::before { inset: -1.5px; border-radius: calc(var(--r, 24px) + 1.5px); background: var(--ring); }
.aw-glow::after { inset: -40px; padding: 36px; border-radius: calc(var(--r, 24px) + 40px); background: var(--ring) content-box; filter: blur(14px); opacity: .7; }
/* a source card: the thin line on the card itself, the soft glow on a layer just under it */
.hw::before { content: ''; position: absolute; inset: -1.5px; padding: 1.5px; border-radius: 19.5px; pointer-events: none; background: var(--ring); opacity: var(--glow-alpha, 0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.hw-halo { position: absolute; box-sizing: border-box; padding: 36px; border-radius: 58px; background: var(--ring) content-box; filter: blur(9px); opacity: var(--glow-alpha, 0); transform-origin: 40px 40px; pointer-events: none; }
