/* HelloCatch · Flowlight
   Three cool colour planes converge; peach marks the next action.
   Reference: Cuewick v5-flowlight. Publisher artwork and functional states
   keep their own colours. Everything is scoped to the current homepage. */

body.flowlight-theme {
  --brand-paper: #f8f7f4;
  --brand-ink: #242034;
  --brand-muted: #615b70;
  --brand-action: #6237be;
  --brand-coral: #ffb38f;
  --brand-apricot: #ffd1b7;
  --brand-line: #e5e0ed;
  --brand-soft: #f2eefb;
  --brand-pale: #fff1e7;
  --flowlight-lavender: #c7a5ff;
  --flowlight-violet: #8153f4;
  --flowlight-indigo: #626ef2;
  --flowlight-peach: #ffb38f;
  --flowlight-action-gradient: linear-gradient(118deg, #6937c8, #5553c7);
  --flowlight-peach-gradient: linear-gradient(115deg, #ffdcc5, #ffb38f);
  --flowlight-selection-gradient: linear-gradient(110deg, #f0e8ff, #eef0ff);
  --flowlight-card-shadow: 0 12px 36px -25px #4b327426;
  --flowlight-3d-upper: #c7a5ff;
  --flowlight-3d-middle: #8153f4;
  --flowlight-3d-lower: #626ef2;
  --flowlight-3d-peach: #ffb38f;
  /* Descendant components resolve these aliases against this scoped theme. */
  --ink: var(--brand-ink);
  --muted: var(--brand-muted);
  --paper: var(--brand-paper);
  --line: var(--brand-line);
  --pink: var(--brand-action);
  --pink-light: var(--brand-pale);
  --lilac: var(--brand-soft);
  --violet: var(--brand-action);
  --indigo: var(--flowlight-indigo);
  --coral: var(--brand-coral);
  --surface: #fff;
  color: var(--brand-ink);
  background: var(--brand-paper);
}

body.flowlight-theme ::selection {
  color: #fff;
  background: var(--brand-action);
}

body.flowlight-theme :focus-visible {
  outline-color: var(--brand-action);
  outline-offset: 4px;
}

/* Ivory remains the reading plane. Colour has room to move behind the 3D. */
body.flowlight-theme .hero {
  color: var(--brand-ink);
  background: var(--brand-paper);
}

body.flowlight-theme .hero-atmosphere {
  z-index: -3;
  background:
    radial-gradient(ellipse 70% 86% at 94% 20%, #d8c7fb94 0, #e7dcfd65 45%, transparent 75%),
    radial-gradient(ellipse 48% 68% at 100% 82%, #b9c4fc73 0, #d8ddfd55 40%, transparent 77%),
    linear-gradient(105deg, #f8f7f4 25%, #f7f5fc 58%, #eeeafb 100%);
}

body.flowlight-theme .hero-flow-svg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* Keep the broad planes beside the reading area. The page's line-icon rules
   must not outline these translucent filled shapes. */
body.flowlight-theme .hero-flow-svg {
  inset: auto;
  top: -7%;
  left: 28%;
  width: 90%;
  height: 114%;
}

body.flowlight-theme .hero-flow-planes {
  opacity: .24;
  animation: flowlight-planes-drift 22s ease-in-out infinite alternate;
}

body.flowlight-theme .hero-flow-plane {
  stroke: none;
}

@keyframes flowlight-planes-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-22px, 16px); }
}

body.flowlight-theme.motion-paused .hero-flow-planes {
  animation: none;
}

@media (max-width: 760px) {
  body.flowlight-theme .hero-flow-svg {
    top: -90px;
    left: -25%;
    width: 155%;
    height: 650px;
  }
  body.flowlight-theme .hero-flow-planes { opacity: .20; }
}

@media (prefers-reduced-motion: reduce) {
  body.flowlight-theme .hero-flow-planes { animation: none; }
}

body.flowlight-theme .hero-media {
  z-index: -1;
}

body.flowlight-theme .site-header {
  color: var(--brand-ink);
}

body.flowlight-theme .brand-lockup--greeting .brand-wave-lines {
  stroke: #7950d1;
}

body.flowlight-theme .header-link {
  color: #514a61;
}

body.flowlight-theme .header-link:hover {
  color: var(--brand-action);
  border-color: #c7b3e4;
}

body.flowlight-theme .hero-heading .eyebrow {
  color: #5d3a9e;
  font-weight: 750;
  letter-spacing: .065em;
}

body.flowlight-theme .hero h1 {
  color: var(--brand-ink);
  font-weight: 800;
  letter-spacing: -.06em;
}

body.flowlight-theme .hero-period {
  color: #ac633e;
}

body.flowlight-theme .hero-aside p {
  color: #5e576b;
}

body.flowlight-theme .hero-caption {
  color: var(--brand-muted);
}

body.flowlight-theme .hero-caption a,
body.flowlight-theme .hero-caption a span {
  color: var(--brand-action);
}

/* A warm destination is easy to find among the cool flowing planes. */
body.flowlight-theme .button,
body.flowlight-theme .site-header .button,
body.flowlight-theme .hero .button {
  color: #fff;
  border-color: transparent;
  border-radius: 12px;
  background: var(--flowlight-action-gradient);
  box-shadow: none;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}

body.flowlight-theme .button:hover,
body.flowlight-theme .site-header .button:hover,
body.flowlight-theme .hero .button:hover {
  color: #fff;
  background: var(--flowlight-action-gradient);
  box-shadow: 0 8px 22px -14px #6237be66;
  transform: translateY(-2px);
}

body.flowlight-theme .button[href="#contact"],
body.flowlight-theme .site-header .button[href="#contact"],
body.flowlight-theme .hero .button[href="#contact"],
body.flowlight-theme .inquiry-form .submit-button {
  color: #352539;
  border-color: #e3a786;
  background: var(--flowlight-peach-gradient);
  box-shadow: none;
}

body.flowlight-theme .button[href="#contact"]:hover,
body.flowlight-theme .site-header .button[href="#contact"]:hover,
body.flowlight-theme .hero .button[href="#contact"]:hover,
body.flowlight-theme .inquiry-form .submit-button:hover {
  color: #352539;
  border-color: #d89672;
  background: linear-gradient(115deg, #ffd1b7, #ffaa82);
  box-shadow: 0 8px 22px -14px #a86c4366;
}

body.flowlight-theme .button.button-white,
body.flowlight-theme .button.button-white:hover {
  color: var(--brand-action);
  background: #fff;
  border-color: #e5e0ed;
}

body.flowlight-theme .button:active,
body.flowlight-theme .site-header .button:active,
body.flowlight-theme .hero .button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Section rhythm: ivory, white, a generous colour field, then white again. */
body.flowlight-theme .section-kicker {
  color: var(--brand-action);
  border-bottom-color: #ded6eb;
}

body.flowlight-theme .section-kicker span:last-child {
  color: var(--brand-muted);
}

body.flowlight-theme :is(.channel-scene h2, .journey-heading h2, .connect-heading h2, .faq-grid h2, .contact-copy h2) {
  color: var(--brand-ink);
  font-weight: 800;
}

body.flowlight-theme :is(.channel-scene h2 span, .connect-heading h2 span) {
  color: var(--brand-action);
}

body.flowlight-theme .channels-section {
  background: linear-gradient(180deg, #fff 0%, #fff 24%, #f7f4fd 61%, #f2eefc 100%);
}

body.flowlight-theme :is(.channels-section .channel-card, .global-channel-card, .channel-values > div, .operations-grid article) {
  background: #fff;
  border-color: #e5e0ed;
  box-shadow: var(--flowlight-card-shadow);
}

body.flowlight-theme .channels-section .channel-card {
  box-shadow: 0 12px 30px -20px #58388c33;
}

body.flowlight-theme .channel-symbol:not(.channel-app-image),
body.flowlight-theme :is(.channel-phone, .channel-sms, .channel-chat) .channel-symbol {
  color: var(--brand-action);
  background: var(--flowlight-selection-gradient);
}

body.flowlight-theme .channel-kakao .channel-symbol:not(.channel-app-image) {
  color: #352e18;
  background: #fee500;
}

body.flowlight-theme :is(.channel-symbol.channel-app-image, .global-channel-symbol.channel-app-image) {
  background: transparent;
  box-shadow: none;
}

body.flowlight-theme .global-channel-message,
body.flowlight-theme .global-channel-whatsapp .global-channel-message {
  color: var(--brand-ink);
  background: linear-gradient(110deg, #f4effc, #f1f3fd);
}

body.flowlight-theme .global-channel-status::before {
  background: #8153f4;
}

body.flowlight-theme .channel-values span {
  color: var(--brand-action);
  background: var(--flowlight-selection-gradient);
}

body.flowlight-theme .channel-directory-list li,
body.flowlight-theme .channel-directory-list li[class] {
  color: #514a61;
  border-color: #e5e0ed;
  background: #fff;
}

body.flowlight-theme .status-dot {
  background: #8153f4;
  box-shadow: 0 0 0 4px #efe8fd;
}

/* Product surfaces remain white; gradients indicate selection or continuity. */
body.flowlight-theme :is(.inbox-widget, .journey-app, .workflow-film-screen, .member-match-widget, .system-map) {
  border-color: #ddd6e9;
  background: #fff;
  box-shadow: 0 20px 60px -35px #4b327433;
}

body.flowlight-theme .inbox-list {
  background: #fdfcfe;
}

body.flowlight-theme .inbox-row:hover,
body.flowlight-theme .inbox-row[aria-pressed="true"] {
  background: var(--flowlight-selection-gradient);
}

body.flowlight-theme .inbox-row[aria-pressed="true"]::before {
  background: linear-gradient(180deg, #9c72e3, #656ade);
}

body.flowlight-theme :is(.inbox-avatar, .inbox-facts, .inbox-original) {
  background: #f5f2fc;
}

body.flowlight-theme .inbox-next {
  background: linear-gradient(110deg, #f0e8ff, #eef0ff);
  border-left-color: #8153f4;
}

body.flowlight-theme :is(.inbox-demo-label::before, .inbox-recording-dot, .recording-label i) {
  background: #8153f4;
}

body.flowlight-theme .inbox-wave-bar {
  background: linear-gradient(180deg, #c7a5ff, #8153f4);
}

body.flowlight-theme .inbox-footnote {
  background: #fbfafc;
}

/* The call chapter is a broad violet/blue plane, without black or glass. */
body.flowlight-theme .voice-section {
  color: #fff;
  background:
    radial-gradient(ellipse at 8% 0%, #8352db 0, transparent 47%),
    linear-gradient(118deg, #7142cb 0%, #6750c9 52%, #4e5bc1 100%);
}

body.flowlight-theme .voice-section .section-kicker {
  color: #fff;
  border-bottom-color: #ffffff4d;
}

body.flowlight-theme .voice-section .section-kicker span:last-child {
  color: #fff;
}

body.flowlight-theme .voice-copy h2,
body.flowlight-theme .voice-copy h2 span,
body.flowlight-theme .voice-section .section-lead,
body.flowlight-theme .voice-section .voice-footnote,
body.flowlight-theme .voice-section .voice-points p {
  color: #fff;
}

body.flowlight-theme .voice-copy h2 {
  font-weight: 800;
}

body.flowlight-theme .voice-points svg {
  color: #e3d4ff;
}

body.flowlight-theme .voice-tabs,
body.flowlight-theme .call-panel {
  border-color: #ffffff94;
  background: #fff;
  box-shadow: 0 22px 54px -34px #29215e4d;
}

body.flowlight-theme .voice-tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--flowlight-action-gradient);
  box-shadow: none;
}

body.flowlight-theme .voice-tabs button:hover:not([aria-selected="true"]) {
  color: var(--brand-action);
  background: var(--flowlight-selection-gradient);
}

body.flowlight-theme .call-avatar,
body.flowlight-theme .call-panel.is-missed .call-avatar {
  color: var(--brand-action);
  border-color: #ddd0f1;
  background: var(--flowlight-selection-gradient);
  box-shadow: 0 0 0 10px #f8f5fe;
}

body.flowlight-theme :is(.call-member-link, .call-summary) {
  background: #f7f4fd;
}

body.flowlight-theme .waveform i {
  background: linear-gradient(180deg, #c7a5ff, #8153f4);
}

body.flowlight-theme .waveform i:nth-child(3n),
body.flowlight-theme .waveform i:nth-child(4n) {
  background: linear-gradient(180deg, #9fa7f8, #626ef2);
}

body.flowlight-theme .call-panel.is-missed .waveform i {
  background: #d4d0dd;
}

/* Each chapter gets one quiet selection plane, instead of many accent colours. */
body.flowlight-theme .journey-section,
body.flowlight-theme .faq-section {
  background: #fff;
}

body.flowlight-theme .film-chapters button {
  border-color: #e5e0ed;
  background: #fff;
  box-shadow: none;
}

body.flowlight-theme .film-chapters button:hover,
body.flowlight-theme .film-chapters button[aria-current="step"] {
  border-color: #c4b3e7;
  background: var(--flowlight-selection-gradient);
  box-shadow: inset 0 2px 0 #8153f4;
}

body.flowlight-theme .film-story li > span,
body.flowlight-theme .journey-nav > .journey-nav-selected,
body.flowlight-theme .journey-customer-badge,
body.flowlight-theme :is(.journey-record-symbol, .journey-ai-mark, .journey-person-active > span) {
  color: var(--brand-action);
  background: var(--flowlight-selection-gradient);
}

body.flowlight-theme .film-story li:last-child > span {
  color: #80502f;
  background: #ffeadb;
}

body.flowlight-theme :is(.journey-nav, .journey-aside, .journey-handoff-message) {
  background: #f8f6fc;
}

body.flowlight-theme .journey-customer-monogram {
  border-color: #ddd0f1;
  background: var(--flowlight-selection-gradient);
  box-shadow: 0 0 0 8px #f8f5fe;
}

body.flowlight-theme .journey-call-wave i {
  background: #ac8ce7;
}

body.flowlight-theme .journey-call-wave i:nth-child(3n),
body.flowlight-theme .journey-call-wave i:nth-child(5n) {
  background: #626ef2;
}

body.flowlight-theme .journey-tabs button[aria-selected="true"],
body.flowlight-theme .journey-confirm:not(:disabled),
body.flowlight-theme .member-match-followup button:not(:disabled),
body.flowlight-theme .member-match-primary:not(:disabled) {
  color: #fff;
  border-color: #6237be;
  background: var(--flowlight-action-gradient);
  box-shadow: none;
}

body.flowlight-theme .journey-tabs button[aria-selected="true"] > span {
  color: #fff;
}

/* Existing records live on ivory; the shared hub receives the colour flow. */
body.flowlight-theme .connect-section {
  color: var(--brand-ink);
  background:
    radial-gradient(ellipse 70% 33% at 95% 0%, #e1d2fb87 0, transparent 77%),
    linear-gradient(180deg, #f8f7f4, #f7f5fc 75%, #f2eefb);
}

body.flowlight-theme .system-core {
  color: #fff;
  border-color: #7653c7;
  background: linear-gradient(115deg, #8153d5, #5b5bcd);
  box-shadow: none;
}

body.flowlight-theme .system-core .system-brand {
  filter: brightness(0) invert(1);
}

body.flowlight-theme .system-core small {
  color: #fff;
}

body.flowlight-theme .system-wire i {
  background: linear-gradient(90deg, #d6c2f9, #9a84df);
}

body.flowlight-theme .system-wire.right i {
  background: linear-gradient(90deg, #9a84df, #a7b0f3);
}

body.flowlight-theme .system-sources > span,
body.flowlight-theme .system-destinations > span {
  border-color: #e5e0ed;
  background: #faf9fd;
}

body.flowlight-theme .system-sources > span:nth-child(2) {
  background: var(--flowlight-selection-gradient);
}

body.flowlight-theme .member-match-incoming {
  background: linear-gradient(135deg, #f6f1fd, #f0f2fd);
}

body.flowlight-theme .member-match-cases button[aria-pressed="true"],
body.flowlight-theme .member-match-steps li.is-active > span,
body.flowlight-theme .member-match-avatar,
body.flowlight-theme :is(.member-match-search-icon, .member-match-empty-icon) {
  color: var(--brand-action);
  border-color: #d3c2ec;
  background: var(--flowlight-selection-gradient);
  box-shadow: none;
}

body.flowlight-theme :is(.member-match-original > div, .member-match-new-note, .member-match-status-line) {
  background: #f7f4fd;
}

body.flowlight-theme .member-match-new-note.is-recorded {
  border-color: #c4e0ce;
  background: #f3fbf6;
}

/* Consultation is the warm destination, on a luminous but readable surface. */
body.flowlight-theme .contact-section {
  color: var(--brand-ink);
  background:
    radial-gradient(ellipse at 5% 100%, #d6c1fca6 0, transparent 52%),
    radial-gradient(ellipse at 90% 0%, #dddffc94 0, transparent 55%),
    linear-gradient(110deg, #f6f1fc, #f8f7f4 65%);
}

body.flowlight-theme .contact-copy .eyebrow {
  color: var(--brand-action);
  font-weight: 750;
}

body.flowlight-theme .inquiry-form {
  border-color: #ddd6e9;
  background: #fff;
  box-shadow: 0 22px 52px -34px #4b327426;
}

body.flowlight-theme .inquiry-form :is(input:not([type="checkbox"]), select, textarea) {
  border-color: #ded8e8;
  background: #fcfbfe;
}

body.flowlight-theme .inquiry-form :is(input:not([type="checkbox"]), select, textarea):focus {
  border-color: #8153f4;
  background: #fff;
  box-shadow: 0 0 0 3px #8153f414;
}

body.flowlight-theme .inquiry-form .submit-button {
  border-radius: 12px;
  font-weight: 750;
}

body.flowlight-theme .faq-list summary span,
body.flowlight-theme .faq-list details[open] summary {
  color: var(--brand-action);
}

body.flowlight-theme .faq-list summary span {
  background: var(--flowlight-selection-gradient);
}

body.flowlight-theme .floating-nav {
  border-color: #e0d9ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 30px -22px #24203433;
}

body.flowlight-theme .floating-nav a:hover,
body.flowlight-theme .floating-nav a[aria-current="true"] {
  color: var(--brand-action);
  background: var(--flowlight-selection-gradient);
}

body.flowlight-theme .floating-nav .dock-contact,
body.flowlight-theme .floating-nav .dock-contact:hover,
body.flowlight-theme .floating-nav .dock-contact[aria-current="true"] {
  color: #352539;
  background: var(--flowlight-peach-gradient);
  font-weight: 750;
}

body.flowlight-theme .motion-toggle {
  color: var(--brand-action);
}

body.flowlight-theme .motion-toggle:hover {
  background: var(--flowlight-selection-gradient);
}

body.flowlight-theme .site-footer {
  color: var(--brand-ink);
  border-top-color: #e5e0ed;
}

body.flowlight-theme #privacy-dialog {
  color: var(--brand-ink);
  border-color: #ddd6e9;
  background: #fff;
}

body.flowlight-theme #privacy-dialog::backdrop {
  background: #24203466;
}

body.flowlight-theme #privacy-dialog .dialog-close {
  color: var(--brand-action);
  background: var(--flowlight-selection-gradient);
}

@media (max-width: 760px) {
  body.flowlight-theme .hero-atmosphere {
    background:
      radial-gradient(ellipse 95% 48% at 86% 53%, #d8c7fb8c 0, #e7dcfd5c 45%, transparent 76%),
      radial-gradient(ellipse 90% 38% at 100% 77%, #b9c4fc6b 0, transparent 78%),
      #f8f7f4;
  }

  body.flowlight-theme .hero-flow-svg {
    opacity: .72;
  }

  body.flowlight-theme .hero-heading .eyebrow {
    letter-spacing: .035em;
  }

  body.flowlight-theme .hero h1 {
    font-weight: 800;
  }

  body.flowlight-theme :is(.inbox-widget, .journey-app, .workflow-film-screen, .member-match-widget, .system-map, .call-panel, .inquiry-form) {
    box-shadow: 0 16px 34px -28px #4b327426;
  }
}

/* Movement remains optional; the coloured composition is complete when still. */
body.flowlight-theme.motion-paused :is(.hero-flow-svg, .hero-flow-svg *, .hero-atmosphere) {
  animation-play-state: paused;
}

body.flowlight-theme.motion-paused :is(.button, .header-link, .film-chapters button) {
  transition: none;
}

body.flowlight-theme.motion-paused .button:hover {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  body.flowlight-theme :is(.hero-flow-svg, .hero-flow-svg *, .hero-atmosphere) {
    animation: none;
  }

  body.flowlight-theme :is(.button, .header-link, .film-chapters button) {
    transition: none;
  }

  body.flowlight-theme .button:hover {
    transform: none;
  }
}
