/* ==========================================================================
   Intravo Interpretation — marketing site
   Brand tokens + custom styles layered on top of Bootstrap 5.
   Palette & type mirror the desktop app (interpretation-client styles.css).
   ========================================================================== */

:root {
  /* Lavender (primary brand) */
  --lavender-100: #F5EEFA;
  --lavender-300: #E0BDEA;
  --lavender-500: #B579D2;
  --lavender-700: #8340AB;
  --lavender-800: #6A2E8F;

  /* Galactic green (accent / success) */
  --galactic-300: #87C9AB;
  --galactic-500: #53B187;
  --galactic-700: #2E8B63;

  /* Neutrals */
  --nebula: #F7F4F2;
  --onyx: #12130F;

  /* Semantic */
  --primary: var(--lavender-700);
  --primary-hover: var(--lavender-800);
  --accent: var(--galactic-500);
  --accent-hover: var(--galactic-700);
  --bg: var(--nebula);
  --text: var(--onyx);
  --muted: #5f5b63;

  --hero-gradient: linear-gradient(135deg, #8340AB 0%, #6A2E8F 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(18, 19, 15, 0.06);
  --shadow: 0 10px 30px rgba(18, 19, 15, 0.08);
  --shadow-lg: 0 24px 60px rgba(106, 46, 143, 0.18);
  --container-max: 1180px;

  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* ------------------------------------------------------------------ Base */
* { -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.4;
  overflow-x: hidden;
}

.container { max-width: var(--container-max); }

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }

p { color: var(--muted); }

a { color: var(--lavender-700); text-decoration: none; }
a:hover { color: var(--lavender-800); }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender-700);
  margin-bottom: 14px;
}

.section-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 16px; }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.text-balance { text-wrap: balance; }

/* ------------------------------------------------------------- Buttons */
.btn { font-weight: 600; border-radius: var(--pill); padding: 12px 26px; transition: all .2s ease; border: 2px solid transparent; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

.btn-intravo { background: var(--lavender-700); color: #fff; }
.btn-intravo:hover { background: var(--lavender-800); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-galactic { background: var(--galactic-500); color: #fff; }
.btn-galactic:hover { background: var(--galactic-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline-intravo { border-color: var(--lavender-700); color: var(--lavender-700); background: transparent; }
.btn-outline-intravo:hover { background: var(--lavender-700); color: #fff; }

.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: #fff; color: var(--lavender-800); border-color: #fff; }

/* -------------------------------------------------------------- Navbar */
.navbar {
  padding: 16px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.navbar-brand img { height: 34px; width: auto; display: block; }
.navbar .nav-link {
  color: var(--onyx);
  font-weight: 600;
  margin: 0 4px;
  opacity: .85;
}
.navbar .nav-link:hover { opacity: 1; color: var(--lavender-700); }
.navbar .btn { padding: 11px 28px; font-size: .82rem; font-weight: 700; letter-spacing: .015em; line-height: 1.1; }

/* Transparent over hero, solid on scroll */
.navbar.at-top { background: transparent; }
.navbar.at-top .nav-link,
.navbar.at-top .lang-toggle { color: #fff; }
.navbar.at-top .navbar-brand img { filter: brightness(0) invert(1); }
.navbar.at-top .navbar-toggler { filter: brightness(0) invert(1); }

.navbar.navbar-scrolled {
  background: rgba(247, 244, 242, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(18,19,15,.06);
  padding: 10px 0;
}

.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

/* Language switcher */
.lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
  border-radius: var(--pill);
  padding: 7px 14px;
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.navbar-scrolled .lang-toggle { border-color: var(--lavender-300); color: var(--lavender-800); }
.lang-toggle:hover { border-color: var(--lavender-700); }
.lang-menu { border: none; box-shadow: var(--shadow); border-radius: var(--radius-sm); padding: 6px; min-width: 170px; }
.lang-menu .dropdown-item { border-radius: 8px; font-weight: 600; padding: 9px 12px; }
.lang-menu .dropdown-item.active,
.lang-menu .dropdown-item:active { background: var(--lavender-100); color: var(--lavender-800); }
.lang-menu .dropdown-item .check { color: var(--galactic-500); opacity: 0; }
.lang-menu .dropdown-item.active .check { opacity: 1; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  background: var(--hero-gradient);
  color: #fff;
  padding: 170px 0 110px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
}
.hero::before { width: 460px; height: 460px; background: #B579D2; top: -120px; right: -80px; }
.hero::after  { width: 420px; height: 420px; background: var(--galactic-500); bottom: -160px; left: -120px; opacity: .35; }
.hero .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 7px 16px;
  border-radius: var(--pill);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--galactic-300);
  box-shadow: 0 0 0 0 rgba(135,201,171,.7);
  animation: pulse 2s infinite;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  margin-bottom: 22px;
  color: #fff;
}
.hero .lead {
  font-size: 1.22rem;
  color: rgba(255,255,255,.9);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 28px; color: rgba(255,255,255,.78); font-size: .92rem; }
.hero-trust i { color: var(--galactic-300); }

/* Hero product mockup */
.mockup {
  background: rgba(255,255,255,.97);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  color: var(--onyx);
}
.mockup-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 14px; border-bottom: 1px solid #efeaf1; margin-bottom: 14px; }
.mockup-head .dots { display: flex; gap: 6px; }
.mockup-head .dots span { width: 11px; height: 11px; border-radius: 50%; background: #e3dde6; }
.mockup-head .title { font-size: .82rem; font-weight: 700; color: var(--muted); margin-left: 6px; }
.mockup-head .live { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--galactic-700); background: #e6f4ee; padding: 3px 10px; border-radius: var(--pill); }

.chan {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: #faf8fb;
  border: 1px solid #f0eaf3;
}
.chan .flag { font-size: 1.4rem; line-height: 1; }
.chan .meta { flex: 1; min-width: 0; }
.chan .lang { font-weight: 700; font-size: .95rem; }
.chan .sub { font-size: .76rem; color: var(--muted); }
.chan .lat { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: var(--pill); }
.lat.good { color: var(--galactic-700); background: #e6f4ee; }
.lat.warn { color: #9a6a00; background: #fdf1d8; }

/* mini live waveform */
.wave { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.wave span { width: 3px; background: var(--lavender-500); border-radius: 2px; animation: wave 1s ease-in-out infinite; }
.wave span:nth-child(1){ animation-delay: 0s; }
.wave span:nth-child(2){ animation-delay: .15s; }
.wave span:nth-child(3){ animation-delay: .3s; }
.wave span:nth-child(4){ animation-delay: .45s; }
.wave span:nth-child(5){ animation-delay: .6s; }

/* ----------------------------------------------------------- Stat strip */
.stat-strip { background: #fff; border-bottom: 1px solid #efe9f1; }
.stat { text-align: center; padding: 14px; }
.stat .num { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--lavender-700); letter-spacing: -0.04em; }
.stat .lbl { font-size: .92rem; color: var(--muted); font-weight: 600; }

/* ------------------------------------------------------------- Features */
.feature-card {
  background: #fff;
  border: 1px solid #efe9f1;
  border-radius: var(--radius);
  padding: 30px 28px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--lavender-300); }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: var(--lavender-100);
  color: var(--lavender-700);
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.feature-card p { font-size: .97rem; margin: 0; }

/* --------------------------------------------------------- How it works */
.how { background: #fff; }
.step {
  position: relative;
  background: var(--nebula);
  border: 1px solid #efe9f1;
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  height: 100%;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--hero-gradient);
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(131,64,171,.3);
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .94rem; margin: 0; }

/* ------------------------------------------------------------ Use cases */
.usecase {
  background: #fff;
  border: 1px solid #efe9f1;
  border-radius: var(--radius);
  padding: 26px;
  height: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.usecase:hover { border-color: var(--galactic-300); box-shadow: var(--shadow); }
.usecase .ico { font-size: 1.7rem; color: var(--galactic-700); margin-bottom: 12px; }
.usecase h3 { font-size: 1.1rem; margin-bottom: 8px; }
.usecase p { font-size: .92rem; margin: 0; }

/* ------------------------------------------------------------ Languages */
.langs { background: var(--lavender-100); }
.lang-chip {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--lavender-300);
  color: var(--lavender-800);
  border-radius: var(--pill);
  padding: 9px 18px;
  font-weight: 600;
  font-size: .95rem;
  margin: 6px;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.lang-chip:hover { transform: translateY(-2px); background: var(--lavender-700); color: #fff; }
.lang-more { font-weight: 700; color: var(--lavender-700); }

/* --------------------------------------------------------------- Why us */
.why-img {
  background: var(--hero-gradient);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  color: #fff;
}
.why-point { display: flex; gap: 14px; margin-bottom: 22px; }
.why-point .ico {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--galactic-500);
  color: #fff;
  font-size: 1.15rem;
}
.why-point h4 { font-size: 1.08rem; margin-bottom: 4px; }
.why-point p { font-size: .95rem; margin: 0; }

/* --------------------------------------------------------------- Pricing */
.pricing { background: #fff; }
.price-card {
  background: var(--nebula);
  border: 1px solid #ece6ef;
  border-radius: var(--radius);
  padding: 34px 30px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card.featured {
  background: var(--hero-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.price-card.featured p,
.price-card.featured .price-unit { color: rgba(255,255,255,.85); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-tag { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lavender-700); }
.price-card.featured .price-tag { color: var(--galactic-300); }
.price-amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; margin: 12px 0 2px; }
.price-unit { font-size: .98rem; color: var(--muted); font-weight: 600; }
.price-desc { font-size: .96rem; margin: 16px 0 0; }

.addons {
  background: var(--lavender-100);
  border: 1px dashed var(--lavender-300);
  border-radius: var(--radius);
  padding: 30px;
  height: 100%;
}
.addons h3 { font-size: 1.2rem; margin-bottom: 6px; }
.addons .lead { font-size: .95rem; color: var(--muted); margin-bottom: 18px; }
.addon-list { list-style: none; padding: 0; margin: 0; }
.addon-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 600; font-size: .96rem; color: var(--onyx); }
.addon-list li i { color: var(--galactic-700); }

/* ----------------------------------------------------------------- FAQ */
.faq .accordion-item { border: 1px solid #efe9f1; border-radius: var(--radius-sm) !important; margin-bottom: 12px; overflow: hidden; }
.faq .accordion-button {
  font-weight: 700;
  color: var(--onyx);
  background: #fff;
  font-size: 1.05rem;
  padding: 20px 22px;
}
.faq .accordion-button:not(.collapsed) { background: var(--lavender-100); color: var(--lavender-800); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: none; border-color: var(--lavender-300); }
.faq .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238340AB'%3E%3Cpath d='M8 11L2 5h12z'/%3E%3C/svg%3E");
}
.faq .accordion-body { color: var(--muted); font-size: .98rem; padding: 4px 22px 22px; }

/* ------------------------------------------------------------- Contact */
.contact {
  background: var(--hero-gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact::after { content:""; position:absolute; width:380px; height:380px; border-radius:50%; background:#B579D2; filter: blur(80px); opacity:.4; top:-120px; left:-80px; }
.contact .container { position: relative; z-index: 2; }
.contact h2 { color: #fff; }
.contact .section-lead { color: rgba(255,255,255,.88); }
.contact-info p { color: rgba(255,255,255,.92); }
.contact-info a { color: #fff; font-weight: 600; }
.contact-info a:hover { color: var(--galactic-300); }
.contact-info i { color: var(--galactic-300); width: 22px; }

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  color: var(--onyx);
}
.contact-card label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--onyx); }
.contact-card .form-control,
.contact-card .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid #e6e0ea;
  padding: 11px 14px;
  font-weight: 500;
}
.contact-card .form-control:focus,
.contact-card .form-select:focus { border-color: var(--lavender-500); box-shadow: 0 0 0 .2rem rgba(181,121,210,.18); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-status { display: none; border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; font-size: .95rem; margin-top: 4px; }
.form-status.ok { display: block; background: #e6f4ee; color: var(--galactic-700); }
.form-status.err { display: block; background: #fdeaea; color: #b3261e; }
.form-status.sending { display: block; background: var(--lavender-100); color: var(--lavender-800); }

/* -------------------------------------------------------------- Footer */
.site-footer { background: var(--onyx); color: rgba(255,255,255,.72); padding: 72px 0 32px; }
.site-footer img { height: 32px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.site-footer h5 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a:not(.btn) { color: rgba(255,255,255,.72); display: inline-block; padding: 5px 0; font-weight: 500; }
.site-footer a:not(.btn):hover { color: #fff; }
.site-footer .btn { margin-top: 6px; padding: 12px 30px; font-size: .82rem; font-weight: 700; letter-spacing: .015em; color: #fff; }
.site-footer .btn:hover { color: #fff; }
.site-footer .blurb { font-size: .95rem; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; font-size: .88rem; }
.footer-social a { font-size: 1.2rem; margin-right: 14px; }

/* --------------------------------------------------- Listen anywhere / QR */
.listen { background: var(--lavender-100); }
.listen-visual { position: relative; padding-bottom: 30px; }

.room-screen {
  background: var(--onyx);
  border-radius: 18px;
  padding: 18px 18px 22px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.room-screen .scr-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.room-screen .scr-head .ico { color: var(--galactic-300); }
.room-screen .scr-head .t { font-weight: 700; font-size: .82rem; color: rgba(255,255,255,.85); }
.room-screen .scr-head .badge-live { margin-left: auto; font-size: .68rem; font-weight: 700; color: #fff; background: var(--lavender-700); padding: 3px 10px; border-radius: var(--pill); }
.scr-line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.scr-line:last-child { border-bottom: none; }
.scr-line .tag { flex: none; font-size: .68rem; font-weight: 700; color: var(--onyx); background: var(--galactic-300); border-radius: 6px; padding: 2px 7px; height: fit-content; }
.scr-line .tx { font-size: .82rem; color: rgba(255,255,255,.9); line-height: 1.4; }

.device {
  position: absolute;
  right: -6px;
  bottom: -30px;
  width: 184px;
  background: #1c1d19;
  border-radius: 26px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg);
}
.device .screen { background: #fff; border-radius: 18px; padding: 14px 12px; color: var(--onyx); text-align: center; }
.device .d-lang { font-size: .7rem; font-weight: 700; color: var(--lavender-700); background: var(--lavender-100); display: inline-block; padding: 3px 11px; border-radius: var(--pill); margin-bottom: 10px; }
.device .qr { width: 104px; height: 104px; display: block; margin: 0 auto 7px; border-radius: 8px; }
.device .d-cap { font-size: .7rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.device .d-tx { font-size: .69rem; color: var(--onyx); text-align: left; line-height: 1.45; background: var(--nebula); border-radius: 8px; padding: 8px; margin-bottom: 10px; }
.device .d-toggle { display: flex; gap: 6px; }
.device .d-toggle span { flex: 1; font-size: .66rem; font-weight: 700; padding: 6px 0; border-radius: var(--pill); }
.device .d-toggle .on { background: var(--galactic-500); color: #fff; }
.device .d-toggle .off { background: #eee7f0; color: var(--lavender-800); }

/* ------------------------------------------------------------ Reveal fx */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ----------------------------------------------------------- Animations */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(135,201,171,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(135,201,171,0); }
  100% { box-shadow: 0 0 0 0 rgba(135,201,171,0); }
}
@keyframes wave {
  0%, 100% { height: 5px; }
  50%      { height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------- Responsive */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(247,244,242,.98);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
    box-shadow: var(--shadow);
  }
  .navbar.at-top .navbar-collapse .nav-link,
  .navbar.at-top .navbar-collapse .lang-toggle { color: var(--onyx); }
  .navbar.at-top .navbar-collapse .lang-toggle { border-color: var(--lavender-300); }
  .hero { padding: 140px 0 80px; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .mockup { margin-top: 48px; }
  .listen-visual { padding-bottom: 0; margin-bottom: 44px; }
  .listen .device { position: static; width: 230px; right: auto; bottom: auto; margin: -6px auto 0; }
  .section { padding: 72px 0; }
}
