/* ==========================================================================
   Seviko — design system
   Palette: vibrant violet on bright white
   Type: Figtree (headings) / Noto Sans (body)
   Variable names kept from v1 (navy→violet, amber→CTA violet, blue→violet accent)
   ========================================================================== */

:root {
  --navy: #6d28d9;          /* primary violet */
  --navy-deep: #5b21b6;     /* deep violet */
  --ink: #1e1b31;           /* near-black plum ink */
  --blue: #7c3aed;          /* vivid violet accent / links */
  --blue-soft: #ede9fe;     /* lilac tint */
  --amber: #7c3aed;         /* CTA violet */
  --amber-hover: #6d28d9;   /* CTA hover */
  --amber-soft: #f3eefe;    /* CTA soft tint */
  --bg: #ffffff;            /* bright white */
  --card: #ffffff;
  --muted: #f4f1fb;         /* faint lilac surface */
  --muted-fg: #4c4767;      /* muted plum-grey text */
  --subtle-fg: #6f6a8b;     /* subtle text */
  --border: #e8e4f4;        /* lilac border */
  --destructive: #dc2626;
  --success: #047857;
  --ring: #7c3aed;

  --font-heading: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Righteous", "Figtree", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 1100px 600px at 12% 0%, #f4eeff 0%, transparent 55%),
    radial-gradient(ellipse 900px 700px at 100% 30%, #eef1ff 0%, transparent 55%),
    radial-gradient(ellipse 1000px 800px at 0% 100%, #f6effe 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 var(--space-3); }

a { color: var(--blue); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(160deg, #2c1a5c 0%, var(--navy-deep) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
}
.brand-icon { height: 46px; width: auto; filter: brightness(0) invert(1); flex-shrink: 0; }
.brand-name {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.85rem;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #d8cef0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-links a[aria-current="page"] { color: #fff; font-weight: 600; background: rgba(255, 255, 255, 0.12); }
.nav-links a.btn-primary,
.nav-links a.btn-primary[aria-current="page"] { color: var(--navy-deep); background: #fff; }
.nav-links a.btn-primary:hover { color: var(--navy-deep); background: var(--amber-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--amber);
  color: #fff;
}
.btn-primary:hover { background: var(--amber-hover); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-8) 0 var(--space-7);
  background:
    radial-gradient(ellipse 900px 420px at 85% -10%, var(--blue-soft), transparent 65%),
    radial-gradient(ellipse 700px 380px at 5% 110%, #faf5ff, transparent 60%),
    var(--bg);
}
.hero > .container { position: relative; z-index: 1; }

/* Animated audiology sound wave (behind hero content) */
.soundwave {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.soundwave .voicewave {
  position: absolute;
  left: 0;
  top: 0;
  width: 200%;
  height: 100%;
  fill: none;
}
.soundwave .vw use {
  fill: none;
  stroke: url(#vgrad);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
/* crisp flowing ribbons */
.soundwave .vw-a use { stroke-width: 2.5; }
.soundwave .vw-b use { stroke-width: 1.75; }
.soundwave .vw-c use { stroke-width: 1.75; }
.soundwave .vw-a { opacity: 0.42; animation: voice-drift 19s linear infinite; }
.soundwave .vw-b { opacity: 0.24; animation: voice-drift 27s linear infinite reverse; }
.soundwave .vw-c { opacity: 0.18; animation: voice-drift 37s linear infinite; }
/* soft glowing core behind the ribbons */
.soundwave .vw-glow {
  opacity: 0.45;
  filter: blur(9px);
  animation: voice-drift 19s linear infinite;
}
.soundwave .vw-glow use { stroke-width: 7; }
@keyframes voice-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-1440px); }
}

/* Equaliser bars variant (small decorative pulse) */
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}
.eq span {
  width: 4px;
  border-radius: 2px;
  background: currentColor;
  animation: eq-bounce 1.1s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 30%; animation-delay: 0s; }
.eq span:nth-child(2) { height: 75%; animation-delay: 0.15s; }
.eq span:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.eq span:nth-child(4) { height: 95%; animation-delay: 0.45s; }
.eq span:nth-child(5) { height: 40%; animation-delay: 0.6s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-soft);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--muted-fg);
  max-width: 34em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-3);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--subtle-fg);
  font-size: 0.92rem;
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.trust-strip svg { color: var(--success); flex-shrink: 0; }

.hero-shot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--card);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: var(--space-8) 0; }
.section-tight { padding: var(--space-7) 0; }
.section-alt { background: #faf8ff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  max-width: 46em;
  margin: 0 auto var(--space-6);
  text-align: center;
}
.section-head p { color: var(--muted-fg); font-size: 1.08rem; }

.kicker {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: var(--space-2);
}

/* stat band */
.stat-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
  padding: var(--space-4) 0;
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  color: var(--muted-fg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
}
.stat-row span { display: inline-flex; align-items: center; gap: 9px; }
.stat-row svg { color: var(--navy); }

/* journey timeline */
.journey {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.journey-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  position: relative;
}
.journey-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.journey-step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.journey-step p { font-size: 0.88rem; color: var(--subtle-fg); margin: 0; }

/* feature cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: var(--space-4);
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--navy);
  margin-bottom: var(--space-3);
}
.feature-card h3 { margin-bottom: var(--space-2); }
.feature-card p { color: var(--muted-fg); font-size: 0.97rem; margin: 0; }

/* alternating showcase rows */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6) 0;
}
.showcase + .showcase { border-top: 1px solid var(--border); }
.showcase.flip .showcase-media { order: 2; }
.showcase-media {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--card);
}
.showcase-copy h3 { font-size: 1.5rem; }
.showcase-copy p { color: var(--muted-fg); }
.check-list {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.98rem;
}
.check-list svg { color: var(--success); flex-shrink: 0; margin-top: 4px; }

/* violet compliance band (bright, not dark) */
.band-dark {
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--blue) 70%, #9d6bfa 100%);
  color: #efe9ff;
  padding: var(--space-8) 0;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .section-head p { color: #e2d9ff; }
.band-dark .kicker { color: #d8c9ff; }

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.compliance-item {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.compliance-item h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.compliance-item svg { color: #ffffff; flex-shrink: 0; }
.compliance-item p { color: #e9e1ff; font-size: 0.95rem; margin: 0; }

/* plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  align-items: stretch;
}
.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.plan-card.featured {
  border: 2px solid var(--navy);
  box-shadow: var(--shadow);
  position: relative;
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-card h3 { font-size: 1.4rem; }
.plan-for { color: var(--subtle-fg); font-size: 0.95rem; min-height: 3.2em; }
.plan-card .check-list { margin-bottom: var(--space-4); }
.plan-card .btn { margin-top: auto; }

/* comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 640px;
}
.compare th, .compare td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare thead th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  position: sticky;
  top: 0;
}
.compare th[scope="row"] { font-weight: 500; }
.compare .group td {
  background: var(--muted);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}
.compare td.yes { color: var(--success); font-weight: 700; text-align: center; }
.compare td.no { color: #94a3b8; text-align: center; }
.compare td.yes span, .compare td.no span { speak: always; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: var(--space-3); }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px var(--space-4);
}
.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: var(--space-3) 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted-fg); padding-bottom: var(--space-3); margin: 0; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 120%);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #d6e2ff; max-width: 38em; margin: 0 auto var(--space-4); font-size: 1.1rem; }
.cta-banner .btn-primary { background: #fff; color: var(--navy); }
.cta-banner .btn-primary:hover { background: var(--amber-soft); }

/* forms */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}
.form-field { margin-bottom: var(--space-4); }
.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 8px;
}
.form-field .hint { font-size: 0.88rem; color: var(--subtle-fg); margin: 6px 0 0; }
.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s ease;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.18);
}
.form-status { margin-top: var(--space-3); font-weight: 600; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--destructive); }
.required { color: var(--destructive); }

/* footer */
.site-footer {
  background: linear-gradient(160deg, #33206b 0%, var(--navy-deep) 100%);
  color: #c9bfe8;
  padding: var(--space-7) 0 var(--space-5);
  margin-top: var(--space-8);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #ddd4f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.88rem;
}

/* page hero (subpages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-7) 0 var(--space-6);
  background:
    radial-gradient(ellipse 700px 320px at 90% -20%, var(--blue-soft), transparent 60%),
    var(--bg);
}
.page-hero .lede { font-size: 1.15rem; color: var(--muted-fg); max-width: 40em; }
.page-hero > .container { position: relative; z-index: 1; }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}

/* photography */
.photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card.tall img { aspect-ratio: 4 / 3; }
.photo-card.wide img { aspect-ratio: 16 / 10; }
.photo-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* Arli chat mock */
.arli-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  display: grid;
  gap: 12px;
}
.arli-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}
.arli-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, #a78bfa 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.chat-bubble {
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 92%;
}
.chat-bubble.user {
  background: var(--blue-soft);
  color: var(--ink);
  justify-self: end;
  border-bottom-right-radius: 4px;
}
.chat-bubble.arli {
  background: var(--muted);
  color: var(--muted-fg);
  justify-self: start;
  border-bottom-left-radius: 4px;
}
.chat-bubble.arli strong { color: var(--ink); }
.arli-voice-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--subtle-fg);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.arli-voice-hint svg { color: var(--blue); flex-shrink: 0; }
.arli-voice-hint .eq { color: var(--blue); }

/* Arli live chat */
.arli-live-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 3px 9px;
  border-radius: 999px;
}
.arli-messages {
  display: grid;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
}
.arli-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.arli-chip {
  font: inherit;
  font-size: 0.85rem;
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.arli-chip:hover { background: #e2d9ff; }
.arli-chip:active { transform: scale(0.97); }
.arli-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.arli-form input {
  flex: 1;
  min-height: 46px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s ease;
}
.arli-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}
.arli-form button {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.arli-form button:hover { background: var(--amber-hover); }
.arli-form button:active { transform: scale(0.94); }
.arli-form button:disabled { opacity: 0.5; cursor: default; }
.arli-typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.arli-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--subtle-fg);
  animation: arli-blink 1.2s infinite ease-in-out both;
}
.arli-typing span:nth-child(2) { animation-delay: 0.2s; }
.arli-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes arli-blink {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Arli floating widget (all pages) */
.arli-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
}
.arli-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--blue) 90%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.arli-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(91, 33, 182, 0.4); }
.arli-launcher img { border-radius: 50%; background: #fff; padding: 2px; flex-shrink: 0; }
.arli-widget.open .arli-launcher { display: none; }

.arli-panel[hidden] { display: none; }
.arli-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(380px, calc(100vw - 40px));
  max-height: min(620px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(30, 27, 49, 0.28);
  overflow: hidden;
  animation: arli-pop 0.18s ease-out;
}
@keyframes arli-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.arli-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--blue) 90%);
  color: #fff;
}
.arli-panel-avatar { border-radius: 50%; background: #fff; padding: 2px; flex-shrink: 0; }
.arli-panel-head div { display: flex; flex-direction: column; line-height: 1.2; }
.arli-panel-head strong { font-family: var(--font-heading); font-size: 1.05rem; }
.arli-panel-head span { font-size: 0.8rem; opacity: 0.85; }
.arli-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.arli-close:hover { background: rgba(255, 255, 255, 0.28); }

.arli-panel .arli-messages {
  flex: 1;
  min-height: 180px;
  max-height: none;
  padding: 16px;
  background: var(--muted);
}
.arli-panel .arli-form { padding: 12px 14px; border-top: 1px solid var(--border); }
.arli-disclaimer {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 0.75rem;
  color: var(--subtle-fg);
  text-align: center;
}

@media (max-width: 480px) {
  .arli-widget { right: 12px; bottom: 12px; }
  .arli-panel {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    max-height: 80vh;
  }
  .arli-launcher-label { display: none; }
  .arli-launcher { padding: 8px; }
}

/* interactive demos */
.demo-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--card);
}
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: 12px 16px;
  background: linear-gradient(150deg, #33206b 0%, var(--navy-deep) 100%);
  color: #fff;
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
}
.demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.28);
}
.demo-actions { display: inline-flex; align-items: center; gap: 10px; }
.demo-reset,
.demo-open {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.15s ease;
}
.demo-reset:hover,
.demo-open:hover { background: rgba(255, 255, 255, 0.22); }
.demo-open { background: #fff; color: var(--navy-deep); border-color: #fff; }
.demo-open:hover { background: var(--amber-soft); }
.demo-iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  background: #eef0f4;
}
.demo-note {
  margin: var(--space-3) 0 0;
  font-size: 0.85rem;
  color: var(--subtle-fg);
  text-align: center;
}

.demo-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.demo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-5);
}
.demo-card h3 { margin: 6px 0 8px; font-size: 1.3rem; }
.demo-card p { color: var(--muted-fg); margin: 0; }
.demo-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.demo-card-foot .demo-badge { color: var(--subtle-fg); }

@media (max-width: 720px) {
  .demo-cards { grid-template-columns: 1fr; }
  .demo-iframe { height: 620px; }
}

/* breadcrumbs */
.breadcrumbs { font-size: 0.88rem; color: var(--subtle-fg); margin-bottom: var(--space-3); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.breadcrumbs a { color: var(--subtle-fg); }

/* misc */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.prose { max-width: 44em; }
.prose p { color: var(--muted-fg); }
.prose strong { color: var(--ink); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--space-3) 0; }
.pill {
  background: var(--muted);
  color: var(--muted-fg);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.88rem;
  font-weight: 500;
}
.pill.live { background: #d1fae5; color: var(--success); }
.pill.soon { background: var(--amber-soft); color: var(--amber); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero-grid, .two-col, .showcase, .page-hero-grid { grid-template-columns: 1fr; }
  .showcase.flip .showcase-media { order: 0; }
  .journey { grid-template-columns: repeat(3, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(160deg, #2c1a5c 0%, var(--navy-deep) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-3) var(--space-4) var(--space-4);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin-top: var(--space-2); }
  .journey { grid-template-columns: 1fr 1fr; }
  .section, .hero, .band-dark { padding-top: var(--space-6); padding-bottom: var(--space-6); }
}

@media (max-width: 480px) {
  .journey { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
