/*
 * automation-support.css
 * Scoped to .is-auto-support-page
 * Customer Support Automation — Niraj Raut
 */

/* ── Design tokens ─────────────────────────────────────── */
.is-auto-support-page {
  --ink:      #0d1117;
  --fire:     #ff4d00;
  --fire2:    #ff7a3d;
  --chalk:    #ffffff;
  --mist:     #f5f7fa;
  --mid:      #6b7280;
  --border:   #e5e7eb;
  --green:    #10b981;
  --orange:   #f59e0b;
  --ff-head:  'Inter', system-ui, sans-serif;
  --ff-body:  'Inter', system-ui, sans-serif;
  --r1:       0.5rem;
  --r2:       1rem;
  --r3:       1.5rem;
  --w:        min(1200px, 100% - 48px);
  --ease:     cubic-bezier(.4,0,.2,1);
  --line:     1.6;
}

/* ── Utility resets ────────────────────────────────────── */
.is-auto-support-page *, .is-auto-support-page *::before, .is-auto-support-page *::after { box-sizing: border-box; }
.is-auto-support-page img { max-width: 100%; display: block; }
.is-auto-support-page a { color: var(--fire); text-decoration: none; }
.is-auto-support-page a:hover { text-decoration: underline; }

/* ── Layout helpers ────────────────────────────────────── */
.is-auto-support-page .wrap {
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.is-auto-support-page .section {
  padding-block: 5rem;
}
.is-auto-support-page .section-alt {
  padding-block: 5rem;
  background: var(--mist);
}
.is-auto-support-page .section-dark {
  padding-block: 5rem;
  background: var(--ink);
  color: var(--chalk);
}

/* ── Buttons ───────────────────────────────────────────── */
.is-auto-support-page .btn-fire,
.is-auto-support-page .btn-fire--lg {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  background: var(--fire);
  color: var(--chalk);
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1rem;
  transition: background .2s var(--ease), transform .15s;
  border: none;
  cursor: pointer;
}
.is-auto-support-page .btn-fire--lg { padding: 1rem 2.25rem; font-size: 1.1rem; }
.is-auto-support-page .btn-fire:hover { background: #e63d00; transform: translateY(-2px); text-decoration: none; }

.is-auto-support-page .btn-ghost,
.is-auto-support-page .btn-out,
.is-auto-support-page .btn-out--lg {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  background: transparent;
  color: var(--fire);
  border: 2px solid var(--fire);
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1rem;
  transition: background .2s var(--ease), color .2s;
  cursor: pointer;
}
.is-auto-support-page .btn-out--lg { padding: 1rem 2.25rem; font-size: 1.1rem; }
.is-auto-support-page .btn-ghost:hover,
.is-auto-support-page .btn-out:hover { background: var(--fire); color: var(--chalk); text-decoration: none; }

/* ═══════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
.is-auto-support-page #hero {
  overflow-x: hidden;
}
.is-auto-support-page .hero-body {
  padding-block: 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: auto !important;
  max-width: var(--w);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

/* Left copy */
.is-auto-support-page .hero-left { display: flex; flex-direction: column; gap: 1.25rem; }

.is-auto-support-page .hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  background: #fff3ee;
  color: var(--fire);
  border-radius: 2rem;
  font-size: .85rem;
  font-weight: 700;
  width: fit-content;
}
.is-auto-support-page .pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fire);
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.5; transform:scale(1.3); }
}

.is-auto-support-page .hero-h1 {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
.is-auto-support-page .h1-fire { color: var(--fire); }
.is-auto-support-page .h1-dim  { color: var(--mid); }
.is-auto-support-page .h1-underline { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--fire2); }

.is-auto-support-page .hero-sub {
  font-size: 1.15rem;
  color: var(--mid);
  line-height: var(--line);
  max-width: 54ch;
}

.is-auto-support-page .eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fire);
}
.is-auto-support-page .eyebrow-light { color: #ff9166; }

.is-auto-support-page .hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: .5rem;
  flex-wrap: wrap;
}
.is-auto-support-page .hero-stat {
  display: flex;
  flex-direction: column;
}
.is-auto-support-page .hero-stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}
.is-auto-support-page .hero-stat span {
  font-size: .8rem;
  color: var(--mid);
}

.is-auto-support-page .hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.is-auto-support-page .hero-ticker {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .85rem;
}
.is-auto-support-page .ticker-track {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--mist);
  padding: .3rem .75rem;
  border-radius: 2rem;
  font-weight: 600;
  color: var(--ink);
}

/* Right visual */
.is-auto-support-page .hero-right {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Support panel mockup */
.is-auto-support-page .support-panel {
  background: var(--chalk);
  border-radius: var(--r2);
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
}

.is-auto-support-page .support-panel-header {
  background: var(--ink);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.is-auto-support-page .tl-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.is-auto-support-page .tl-red    { background: #ff5f57; }
.is-auto-support-page .tl-yellow { background: #febc2e; }
.is-auto-support-page .tl-green  { background: #28c840; }
.is-auto-support-page .support-tl-dots { display: flex; gap: .4rem; }
.is-auto-support-page .support-panel-title {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  margin-left: .5rem;
}
.is-auto-support-page .support-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-left: auto;
  animation: pulse-dot 1.5s infinite;
}

.is-auto-support-page .support-panel-body { padding: 1rem; }

.is-auto-support-page .support-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: 1rem;
}
.is-auto-support-page .support-stat-row {
  background: var(--mist);
  border-radius: var(--r1);
  padding: .75rem .5rem;
  text-align: center;
}
.is-auto-support-page .support-stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
}
.is-auto-support-page .support-stat-green { color: var(--green); }
.is-auto-support-page .support-stat-label {
  font-size: .68rem;
  color: var(--mid);
  margin-top: .2rem;
  display: block;
}
.is-auto-support-page .support-stat-period {
  font-size: .65rem;
  color: var(--mid);
  display: block;
}

/* Chat messages */
.is-auto-support-page .support-chat-wrap {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1rem;
}
.is-auto-support-page .support-chat-msg {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.is-auto-support-page .support-chat-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
}
.is-auto-support-page .support-chat-bubble {
  background: var(--mist);
  border-radius: var(--r1);
  padding: .5rem .75rem;
  font-size: .78rem;
  line-height: 1.5;
  max-width: 80%;
  color: var(--ink);
}
.is-auto-support-page .support-chat-bot .support-chat-bubble {
  background: #ffe8de;
  border-radius: 0 var(--r1) var(--r1) var(--r1);
}
.is-auto-support-page .support-chat-user {
  flex-direction: row-reverse;
}
.is-auto-support-page .support-chat-user .support-chat-bubble {
  background: var(--fire);
  color: var(--chalk);
  border-radius: var(--r1) 0 var(--r1) var(--r1);
}

/* Response badge */
.is-auto-support-page .support-response-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #ecfdf5;
  color: var(--green);
  border-radius: var(--r1);
  padding: .5rem .75rem;
  font-size: .78rem;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   HERO GLOW FX
════════════════════════════════════════════════════════ */
.is-auto-support-page .hero-glow,
.is-auto-support-page .hero-glow2 {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}
.is-auto-support-page .hero-glow {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  background: rgba(255,77,0,.06);
}
.is-auto-support-page .hero-glow2 {
  width: 400px; height: 400px;
  top: 200px; left: -80px;
  background: rgba(16,185,129,.04);
}

/* ═══════════════════════════════════════════════════════
   HEADINGS
════════════════════════════════════════════════════════ */
.is-auto-support-page .h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 1rem;
}
.is-auto-support-page .h2-white { color: var(--chalk); }
.is-auto-support-page .sp { display: block; color: var(--fire); }

/* ═══════════════════════════════════════════════════════
   SUPPORT CARDS (What I Automate)
════════════════════════════════════════════════════════ */
.is-auto-support-page .support-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.is-auto-support-page .support-card {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 2rem;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.is-auto-support-page .support-card:hover {
  box-shadow: 0 10px 35px rgba(255,77,0,.1);
  transform: translateY(-4px);
}

.is-auto-support-page .support-card-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.is-auto-support-page .support-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .6rem;
}
.is-auto-support-page .support-card p {
  font-size: .95rem;
  color: var(--mid);
  line-height: var(--line);
  margin: 0 0 .75rem;
}
.is-auto-support-page .support-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.is-auto-support-page .support-card ul li {
  font-size: .88rem;
  color: var(--mid);
  padding-left: 1.2rem;
  position: relative;
}
.is-auto-support-page .support-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   TOOLS GRID
════════════════════════════════════════════════════════ */
.is-auto-support-page .support-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.is-auto-support-page .support-tool-pill {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: .6rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: background .2s, color .2s, border-color .2s;
}
.is-auto-support-page .support-tool-pill:hover {
  background: var(--fire);
  color: var(--chalk);
  border-color: var(--fire);
}

/* ═══════════════════════════════════════════════════════
   PROCESS FLOW STEPS
════════════════════════════════════════════════════════ */
.is-auto-support-page .support-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
  max-width: 780px;
  margin-inline: auto;
}

.is-auto-support-page .support-flow-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}
.is-auto-support-page .support-flow-step:not(:last-child) {
  padding-bottom: 2.5rem;
}

.is-auto-support-page .support-flow-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--fire);
  color: var(--chalk);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.is-auto-support-page .support-flow-connector {
  position: absolute;
  left: 26px;
  top: 54px;
  width: 2px;
  height: calc(100% - 54px);
  background: var(--border);
}

.is-auto-support-page .support-flow-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .4rem;
  padding-top: .75rem;
}
.is-auto-support-page .support-flow-body p {
  font-size: .95rem;
  color: var(--mid);
  line-height: var(--line);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   PROCESS STEPS (second process section variant)
════════════════════════════════════════════════════════ */
.is-auto-support-page .support-process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.is-auto-support-page .support-process-step {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.is-auto-support-page .support-process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--fire);
  border-radius: 4px 0 0 4px;
}
.is-auto-support-page .support-process-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--fire);
  opacity: .15;
  line-height: 1;
  margin-bottom: .5rem;
}
.is-auto-support-page .support-process-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .4rem;
}
.is-auto-support-page .support-process-body p {
  font-size: .9rem;
  color: var(--mid);
  line-height: var(--line);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   RESULTS / STATS
════════════════════════════════════════════════════════ */
.is-auto-support-page .support-star {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════
   CTA FIRE SECTION
════════════════════════════════════════════════════════ */
.is-auto-support-page .support-cta-fire {
  background: linear-gradient(135deg, var(--fire) 0%, var(--fire2) 100%);
  color: var(--chalk);
  text-align: center;
}
.is-auto-support-page .support-cta-fire .h2 { color: var(--chalk); margin-bottom: 1rem; }
.is-auto-support-page .support-cta-sub {
  font-size: 1.1rem;
  opacity: .9;
  max-width: 54ch;
  margin: 0 auto 2rem;
  line-height: var(--line);
}
.is-auto-support-page .support-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.is-auto-support-page .support-cta-btn-white {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 2rem;
  background: var(--chalk);
  color: var(--fire);
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity .2s;
}
.is-auto-support-page .support-cta-btn-white:hover { opacity: .9; text-decoration: none; }

/* ═══════════════════════════════════════════════════════
   FAQ
════════════════════════════════════════════════════════ */
.is-auto-support-page .support-faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 800px;
  margin: 2.5rem auto 0;
}

.is-auto-support-page .support-faq-item {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--r1);
  overflow: hidden;
}

.is-auto-support-page .support-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--ff-body);
}
.is-auto-support-page .support-faq-q:hover { color: var(--fire); }

.is-auto-support-page .support-faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--fire);
  flex-shrink: 0;
  transition: transform .2s var(--ease);
  line-height: 1;
}
.is-auto-support-page .support-faq-q[aria-expanded="true"] .support-faq-icon {
  transform: rotate(45deg);
}

.is-auto-support-page .support-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
  padding: 0 1.4rem;
}
.is-auto-support-page .support-faq-a p {
  padding-bottom: 1.25rem;
  color: var(--mid);
  line-height: var(--line);
  margin: 0;
  font-size: .95rem;
}

/* ═══════════════════════════════════════════════════════
   ADSENSE
════════════════════════════════════════════════════════ */
.is-auto-support-page .support-adsense-wrap {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 2rem;
}

/* ═══════════════════════════════════════════════════════
   REVEAL ANIMATION
════════════════════════════════════════════════════════ */
.is-auto-support-page .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
/* JS adds .up — keep .in-view as alias for any legacy calls */
.is-auto-support-page .reveal.up,
.is-auto-support-page .reveal.in-view { opacity: 1; transform: translateY(0); }
.is-auto-support-page .reveal-d1 { transition-delay: .1s; }
.is-auto-support-page .reveal-d2 { transition-delay: .2s; }
.is-auto-support-page .reveal-d3 { transition-delay: .3s; }
.is-auto-support-page .reveal-d4 { transition-delay: .4s; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .is-auto-support-page .hero-body {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .is-auto-support-page .hero-right { display: none; }
  .is-auto-support-page .support-stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .is-auto-support-page .section,
  .is-auto-support-page .section-alt,
  .is-auto-support-page .section-dark { padding-block: 3.5rem; }
  .is-auto-support-page .hero-stats { gap: 1.25rem; }
  .is-auto-support-page .support-flow-step { grid-template-columns: 46px 1fr; gap: 1rem; }
  .is-auto-support-page .support-flow-num { width: 44px; height: 44px; font-size: .95rem; }
  .is-auto-support-page .support-cta-actions { flex-direction: column; align-items: center; }
}
