/* Future Call Center - immersive layer
   Loads after style.css and restyles the whole site: dark "night shift" theme,
   glass surfaces, voice-orb hero, decoding headlines and scroll reveals.
   Delete this file's <link> from a page to get the original light look back. */

:root {
  --night: #021a1d;
  --night-2: #032428;
  --glass: rgb(175 221 229 / 0.05);
  --glass-strong: rgb(4 40 44 / 0.62);
  --glass-line: rgb(175 221 229 / 0.13);
  --glass-line-strong: rgb(175 221 229 / 0.26);
  --text: #e6f4f6;
  --text-soft: #a3c4c9;
  --ice: #afdde5;
  --glow-teal: #19c3cf;
  --glow-rust: #e08a6e;
  --rust-btn: #a84f39;
  color-scheme: dark;
}

/* ---------- Canvas & atmosphere ---------- */
body { background: var(--night); color: var(--text); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 8% -10%, rgb(15 164 175 / 0.20), transparent 60%),
    radial-gradient(50rem 36rem at 105% 55%, rgb(150 71 52 / 0.16), transparent 60%),
    radial-gradient(40rem 30rem at 30% 110%, rgb(15 164 175 / 0.10), transparent 60%);
}
::selection { background: rgb(25 195 207 / 0.35); color: #fff; }

h1, h2, h3 { color: var(--text); }
h1 { font-weight: 400; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-weight: 500; letter-spacing: -0.025em; }
h3 { font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--ice); }
a:hover { color: #fff; }
:focus-visible { outline-color: var(--glow-teal); }

/* SVG icons were drawn for a light page: relight them */
svg[stroke="#964734"] { stroke: var(--glow-rust); }
svg[stroke="#024950"] { stroke: #6fd6de; }
svg[stroke="#003135"] { stroke: var(--text); }

/* ---------- Header: floating glass bar ---------- */
.site-header { background: transparent; backdrop-filter: none; border: 0; padding-block-start: 0.75rem; }
.site-header .wrap {
  min-block-size: 4.25rem; padding-inline: 1rem 0.6rem; border-radius: 1.4rem;
  background: rgb(2 26 29 / 0.55); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.site-header.is-scrolled { box-shadow: none; }
.site-header.is-scrolled .wrap { background: rgb(2 26 29 / 0.82); border-color: var(--glass-line-strong); }
.brand { color: var(--text); }
.brand-mark { background: linear-gradient(140deg, #0fa4af, #024950); box-shadow: 0 0 1.4rem rgb(25 195 207 / 0.45); }
.brand-name { font-weight: 700; letter-spacing: -0.02em; }
.brand-tag { color: var(--text-soft); }
.nav a:not(.btn) { color: var(--text-soft); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #fff; text-decoration: none; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--glow-teal); }
.menu-toggle { background: var(--glass); border: 1px solid var(--glass-line); }
@media (max-width: 60rem) {
  .nav { background: #032024; border: 1px solid var(--glass-line); border-radius: 1.2rem; inset-inline: var(--gutter); top: calc(100% + 0.5rem); box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.6); }
  .nav a:not(.btn) { border-block-end-color: var(--glass-line); }
  .nav a[aria-current="page"] { box-shadow: none; color: #fff; }
}

/* ---------- Buttons & chips ---------- */
.btn { transition: transform 0.2s, box-shadow 0.25s, background-color 0.2s; }
.btn--call { background: linear-gradient(135deg, #bb5a41, var(--rust-btn)); color: #fff; box-shadow: 0 0 0 1px rgb(255 190 170 / 0.18) inset, 0 0.6rem 2rem -0.6rem rgb(224 138 110 / 0.7); }
.btn--call:hover { background: linear-gradient(135deg, #c8644a, #b4553c); color: #fff; box-shadow: 0 0 0 1px rgb(255 190 170 / 0.3) inset, 0 0.8rem 2.6rem -0.5rem rgb(224 138 110 / 0.85); }
.btn--primary { background: linear-gradient(135deg, #0fa4af, #037480); color: #fff; }
.btn--primary:hover { background: linear-gradient(135deg, #19b6c1, #048893); }
.btn--outline { background: var(--glass); border: 1px solid var(--glass-line-strong); color: var(--text); backdrop-filter: blur(10px); }
.btn--outline:hover { background: rgb(175 221 229 / 0.12); border-color: var(--ice); color: #fff; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-2px); } }
.chip { background: rgb(224 138 110 / 0.14); color: #ffc9b8; border: 1px solid rgb(224 138 110 / 0.4); }

/* ---------- Panels become glass ---------- */
.panel--mint { background: var(--glass); border: 1px solid var(--glass-line); }
.panel--peach { background: linear-gradient(160deg, rgb(150 71 52 / 0.16), rgb(150 71 52 / 0.04)); border: 1px solid rgb(224 138 110 / 0.2); }
.panel--dark { background: linear-gradient(160deg, rgb(15 164 175 / 0.12), rgb(0 0 0 / 0.25)); border: 1px solid var(--glass-line); }
.panel--dark p, .section-head p, .page-hero p, .hero-copy > p, .cta-band p, .hero-note, .crumbs { color: var(--text-soft); }
.crumbs a { color: var(--text-soft); }

/* ---------- Home hero: voice orb ---------- */
.panel:has(.hero) {
  position: relative; overflow: hidden; isolation: isolate;
  min-block-size: min(52rem, calc(100svh - 6.5rem));
  display: grid; align-content: center;
  background: radial-gradient(ellipse 70% 80% at 72% 50%, rgb(15 164 175 / 0.10), transparent 70%), rgb(1 18 20 / 0.55);
}
.hero { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.8rem, 1.2rem + 5.4vw, 5.8rem); max-inline-size: 11ch; }
.hero-copy > p { max-inline-size: 33rem; }
.hero-link { color: var(--ice); }

.fx-canvas { position: absolute; z-index: 0; pointer-events: none; display: block; }
.panel:has(.hero) .fx-canvas { inset-block: 0; inset-inline-end: 0; inline-size: 62%; block-size: 100%; }
@media (max-width: 56rem) {
  .panel:has(.hero) .fx-canvas { inset-inline-start: 38%; inset-block-start: -3rem; inline-size: 100%; block-size: 26rem; opacity: 0.5; }
}

.chat { position: relative; }
.bubble { border: 1px solid var(--glass-line); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.bubble--caller { background: rgb(4 34 38 / 0.62); color: var(--text); }
.bubble--agent { background: linear-gradient(135deg, rgb(15 164 175 / 0.78), rgb(3 98 108 / 0.78)); color: #fff; border-color: rgb(175 240 245 / 0.3); box-shadow: 0 0 2.5rem -0.6rem rgb(25 195 207 / 0.6); }
.chat-caption { color: var(--text-soft); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes fx-bubble { from { opacity: 0; transform: translateY(0.9rem) scale(0.96); filter: blur(4px); } }
  .chat .bubble, .chat-caption { animation: fx-bubble 0.6s cubic-bezier(.2,.7,.2,1) backwards; }
  .chat .bubble:nth-child(1) { animation-delay: 0.9s; }
  .chat .bubble:nth-child(2) { animation-delay: 2.0s; }
  .chat .bubble:nth-child(3) { animation-delay: 4.1s; }
  .chat .bubble:nth-child(4) { animation-delay: 5.0s; }
  .chat-caption { animation-delay: 6.6s; }
}

/* ---------- Inner page heroes: orbit ring ---------- */
.panel:has(.page-hero) { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(4rem, 2.5rem + 6vw, 8rem); }
.page-hero { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.6rem, 1.3rem + 4.4vw, 5rem); }
.page-hero > p:not(.crumbs) { max-inline-size: 36rem; }
.panel:has(.page-hero) .fx-canvas { inset-block: 0; inset-inline-end: -8%; inline-size: 62%; block-size: 100%; }
@media (max-width: 56rem) { .panel:has(.page-hero) .fx-canvas { inset-inline: 0; inline-size: 100%; opacity: 0.4; } }

/* ---------- Decoding headline ---------- */
.fx-scramble-host { position: relative; }
.fx-scramble-real { color: transparent; }
.fx-scramble { position: absolute; inset: 0; }
.fx-scramble .fx-glyph { color: var(--glow-teal); opacity: 0.85; }

/* ---------- Cards with a pointer-following glow ---------- */
.card { position: relative; isolation: isolate; border: 1px solid var(--glass-line); background: var(--glass); }
.card--mint { background: linear-gradient(160deg, rgb(15 164 175 / 0.12), rgb(15 164 175 / 0.03)); }
.card--peach { background: linear-gradient(160deg, rgb(150 71 52 / 0.18), rgb(150 71 52 / 0.04)); border-color: rgb(224 138 110 / 0.2); }
.card--line { border: 1px solid var(--glass-line); }
.card p { color: var(--text-soft); }
.card .more { color: var(--ice); }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, -20%), rgb(25 195 207 / 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }
.icon-tile { background: rgb(175 221 229 / 0.08); border: 1px solid var(--glass-line); }

/* ---------- Sections ---------- */
.step-num { background: transparent; color: var(--ice); border: 1px solid rgb(25 195 207 / 0.55); box-shadow: 0 0 1.4rem -0.2rem rgb(25 195 207 / 0.5), inset 0 0 1rem rgb(25 195 207 / 0.2); font-weight: 500; }
.why-item p, .industry p, .next-steps p { color: var(--text-soft); }
.promise { background: linear-gradient(150deg, rgb(15 164 175 / 0.22), rgb(3 36 40 / 0.6)); border: 1px solid var(--glass-line-strong); }
.promise p { color: var(--text-soft); }

.pill { background: var(--glass); color: var(--text); border: 1px solid var(--glass-line); }
.pill:nth-child(even) { background: rgb(150 71 52 / 0.12); border-color: rgb(224 138 110 / 0.22); }
a.pill:hover { outline: 0; border-color: var(--ice); color: #fff; }

.from, .price small, .price-note, .compare-note, .hint, .range-ends { color: var(--text-soft); }
.price { color: var(--text); font-weight: 500; letter-spacing: -0.03em; }
.price-card--featured { background: linear-gradient(160deg, rgb(15 164 175 / 0.42), rgb(2 70 78 / 0.5)); border-color: rgb(175 240 245 / 0.35); box-shadow: 0 0 4rem -1rem rgb(25 195 207 / 0.5); }
.price-card--featured p, .price-card--featured .price small, .price-card--featured .from { color: #d2eef2; }
.included { border: 1px dashed var(--glass-line-strong); }

.compare-scroll { border: 1px solid var(--glass-line); background: rgb(1 18 20 / 0.4); }
.compare :is(th, td) { border-block-end-color: var(--glass-line); }
.compare thead th { background: rgb(175 221 229 / 0.06); color: var(--text); }
.compare tbody th { color: var(--text); }
.compare td { color: var(--text-soft); }
.compare .compare-us { background: rgb(15 164 175 / 0.16); color: #cfe9ee; border-block-end-color: rgb(25 195 207 / 0.2); }
.compare thead .compare-us { background: rgb(15 164 175 / 0.32); color: #fff; }

/* Calculator */
.calc-inputs { background: rgb(1 18 20 / 0.5); border: 1px solid var(--glass-line); }
.calc legend, .calc .label, .wage-row .dollar, .range-head output { color: var(--text); }
.role-options label { background: var(--glass); border: 1px solid var(--glass-line-strong); }
.role-options label:has(:checked) { background: linear-gradient(135deg, #0fa4af, #037480); border-color: #19c3cf; color: #fff; }
.wage-row input { background: rgb(0 0 0 / 0.25); border: 1px solid var(--glass-line-strong); color: var(--text); }
.toggle-row { border-block-start-color: var(--glass-line); }
.switch span { background: #3b5558; }
.switch input:checked + span { background: var(--rust-btn); }
.calc-result { background: linear-gradient(160deg, rgb(15 164 175 / 0.2), rgb(1 18 20 / 0.7)); border: 1px solid var(--glass-line-strong); }
.big-save { font-weight: 500; letter-spacing: -0.03em; text-shadow: 0 0 2.5rem rgb(25 195 207 / 0.45); }
.bar-track { background: rgb(0 0 0 / 0.35); }
.bar-fill--local { background: linear-gradient(90deg, #8f4331, #e08a6e); }
.bar-fill--ours { background: linear-gradient(90deg, #0b8590, #5fe0e8); box-shadow: 0 0 1rem rgb(25 195 207 / 0.6); }
.calc-foot { color: var(--text-soft); }

/* FAQ */
.faq details { background: rgb(1 18 20 / 0.45); border: 1px solid var(--glass-line); }
.faq details[open] { border-color: rgb(224 138 110 / 0.35); }
.faq summary { color: var(--text); }
.faq summary::after { color: var(--glow-rust); font-weight: 400; }
.faq details p { color: var(--text-soft); }

/* Contact band */
.cta-band h2 { font-weight: 400; letter-spacing: -0.035em; }

/* Inner pages, forms and legal */
.form :is(input, textarea, select) { background: rgb(0 0 0 / 0.25); border: 1px solid var(--glass-line-strong); color: var(--text); }
.form :is(input, textarea, select):focus { border-color: var(--glow-teal); }
.form :is(input, textarea)::placeholder { color: #6f9196; }
.form :is(input, textarea):user-invalid { border-color: var(--glow-rust); }
.industry-links a { background: rgb(175 221 229 / 0.08); border: 1px solid var(--glass-line); color: var(--ice); }
.legal .notice { background: rgb(150 71 52 / 0.14); border: 1px solid rgb(224 138 110 / 0.25); color: #f1cfc3; }
.quote blockquote p { color: var(--text); }
.quote figcaption { color: var(--text-soft); }

/* Footer */
.site-footer { background: rgb(1 14 16 / 0.7); border: 1px solid var(--glass-line); color: var(--text-soft); }
.footer-bottom { border-block-start-color: var(--glass-line); }
.mobile-call .btn { box-shadow: 0 0.6rem 2rem rgb(0 0 0 / 0.5), 0 0 1.6rem -0.3rem rgb(224 138 110 / 0.7); }
.skip-link { background: var(--glow-teal); color: #021a1d; }
.skip-link:focus { color: #021a1d; }

/* ---------- Scroll reveals (browsers that support scroll-driven animation) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fx-rise { from { opacity: 0; transform: translateY(2.5rem) scale(0.98); } }
    main > section:not(:first-child) :is(.section-head, .card, .step, .why-item, .promise, .compare-scroll, .included, .calc-inputs, .calc-result, .faq details, .pills, .cta-band, .industry, .check-list li):not(.contact-grid > *) {
      animation: fx-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 18%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .card::before, .btn { transition: none; }
}

@media (forced-colors: active) {
  body::before, .fx-canvas { display: none; }
}

/* ---------- Logo: globe with headset ---------- */
.brand-mark.brand-mark--logo {
  inline-size: 3rem; block-size: 3rem; padding: 0; overflow: hidden;
  border-radius: 999px; background: transparent;
  box-shadow: 0 0 1.3rem rgb(25 195 207 / 0.4);
}
.brand-mark--logo img { display: block; inline-size: 100%; block-size: 100%; }
.footer-logo { display: block; inline-size: 5rem; block-size: auto; margin-block-end: 1rem; }
@media (max-width: 40rem) {
  .brand-mark.brand-mark--logo { inline-size: 2.6rem; block-size: 2.6rem; }
}

/* ---------- Opening animation (assets/intro.js, home page only) ---------- */
html.intro-on { overflow: hidden; }
/* plain veil for the split second before the intro is built */
html.intro-on::after { content: ""; position: fixed; inset: 0; z-index: 9998; background: var(--teal-deep, #0f1e3b); }
/* only the background shows as the call opens; header and hero text fade in */
html.intro-on :is(.site-header, .hero) { opacity: 0; }
html:not(.intro-on) :is(.site-header, .hero) { transition: opacity 0.7s ease 0.2s; }
/* hold the hero chat until the intro has opened, so visitors see it from the first bubble */
html.intro-on .chat :is(.bubble, .chat-caption) { animation-play-state: paused; }

.intro { position: fixed; inset: 0; z-index: 9999; cursor: pointer; }
.intro-veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-veil-fill { fill: var(--teal-deep, #0f1e3b); }
.intro-edge { stroke: var(--sand, #dee0e3); stroke-width: 1.5; }
.intro-call {
  --size: clamp(6.5rem, 5rem + 6vmin, 9.5rem);
  position: absolute; left: 50%; top: 44%; inline-size: var(--size); block-size: var(--size);
  translate: -50% -50%; opacity: 0;
}
.intro-badge, .intro-ripple { position: absolute; inset: 0; border-radius: 50%; }
.intro-badge { display: block; box-shadow: 0 0 1.5rem 0 rgb(222 224 227 / 0.12); }
.intro-logo { display: block; inline-size: 100%; block-size: 100%; border-radius: 50%; }
.intro-ripple { border: 2px solid var(--sand, #dee0e3); opacity: 0; }
.intro-voice { position: absolute; left: 50%; top: calc(100% + 1.4rem); translate: -50% 0; display: flex; align-items: center; gap: 0.3rem; inline-size: calc(var(--size) * 0.4); block-size: calc(var(--size) * 0.2); opacity: 0; }
.intro-voice i { flex: 1; block-size: 100%; border-radius: 99px; background: var(--sand-hi, #f8faf9); transform: scaleY(0.25); }
.intro-line {
  position: absolute; left: 50%; top: calc(44% + clamp(6.5rem, 5rem + 6vmin, 9.5rem) / 2 + 4.6rem);
  margin: 0; inline-size: max-content; max-inline-size: calc(100vw - 2.5rem); text-align: center; opacity: 0;
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.35rem, 1rem + 1.8vw, 2.4rem);
  line-height: 1.2; letter-spacing: -0.01em; color: var(--sand-hi, #f8faf9); text-wrap: balance;
}
.intro-skip {
  position: absolute; inset-block-end: calc(1.5rem + env(safe-area-inset-bottom, 0px)); inset-inline-end: 1.5rem;
  padding: 0.55rem 1.1rem; border-radius: 99px; border: 1.5px solid rgb(222 224 227 / 0.35);
  background: transparent; color: var(--sand, #dee0e3); font: 600 0.9rem/1 var(--font-body); cursor: pointer;
}
.intro-skip:hover { background: var(--sand, #dee0e3); color: var(--teal, #162a50); }
.intro-skip:focus-visible { outline: 2px solid var(--sand-hi, #f8faf9); outline-offset: 3px; }
