/* ===== Voila Voice — Custom Styles ===== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --vv-purple: #331888;
  --vv-purple-light: #4a2db5;
  --vv-pink: #ED47AD;
  --vv-gradient: linear-gradient(135deg, #331888, #ED47AD);
  --vv-dark: #1a1a2e;
  --vv-body: #444;
  --vv-light-bg: #f9f7ff;
  --vv-white: #fff;
  --font-heading: 'Roboto Slab', serif;
  --font-body: 'Roboto', sans-serif;
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--vv-body);
  background: var(--vv-white);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--vv-dark);
  font-weight: 700;
}
a {
  text-decoration: none;
  color: var(--vv-purple);
}
section { padding: 5rem 0; }
.bg-vv-light { background: var(--vv-light-bg); }

/* ---------- Announcement Bar ---------- */
.announcement-bar {
  background: var(--vv-gradient);
  color: #fff;
  font-size: .85rem;
  padding: .55rem 0;
  text-align: center;
  position: relative;
  z-index: 1050;
  overflow: hidden;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.announcement-bar a { color: #fff; text-decoration: underline; }
.announcement-ticker { position: relative; width: 100%; }
.ticker-item {
  display: block;
  position: absolute;
  width: 100%;
  left: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.ticker-item.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}
.ticker-item.exit {
  opacity: 0;
  transform: translateY(-100%);
  position: absolute;
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  padding: .6rem 0;
  transition: box-shadow .3s;
}
.navbar-brand img { height: 40px; }
.navbar .nav-link {
  font-weight: 500;
  color: var(--vv-dark);
  padding: .5rem 1rem !important;
  font-size: .95rem;
  transition: color .2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--vv-purple); }

.btn-vv {
  background: var(--vv-gradient);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: .6rem 1.8rem;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s, box-shadow .2s;
}
.btn-vv:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51,24,136,.35);
  color: #fff !important;
}

.btn-outline-vv {
  border: 2px solid var(--vv-purple);
  color: var(--vv-purple);
  border-radius: 50px;
  padding: .55rem 1.6rem;
  font-weight: 600;
  font-size: .95rem;
  background: transparent;
  transition: all .2s;
}
.btn-outline-vv:hover {
  background: var(--vv-purple);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.14) 0, rgba(255,255,255,0) 24%),
    radial-gradient(circle at 82% 20%, rgba(237,71,173,.18) 0, rgba(237,71,173,0) 28%),
    linear-gradient(-45deg, #160a34 0%, #331888 24%, #5a2db5 48%, #2d57ff 68%, #ed47ad 84%, #f38cc8 100%);
  background-size: 140% 140%, 140% 140%, 400% 400%;
  background-position: 0% 0%, 100% 0%, 0% 50%;
  color: #fff;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
  animation: hero-gradient-flow 15s ease infinite;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: -18% -22% 12% -12%;
  background:
    linear-gradient(127deg,
      rgba(255,255,255,0) 18%,
      rgba(255,255,255,.08) 30%,
      rgba(255,255,255,.34) 38%,
      rgba(255,255,255,.12) 46%,
      rgba(255,255,255,0) 58%);
  transform: translate3d(-18%, -6%, 0) rotate(-10deg);
  transform-origin: center;
  opacity: .62;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: hero-glaze-sweep 7s ease-in-out infinite;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,64L80,58.7C160,53,320,43,480,48C640,53,800,75,960,74.7C1120,75,1280,53,1360,42.7L1440,32L1440,100L1360,100C1280,100,1120,100,960,100C800,100,640,100,480,100C320,100,160,100,80,100L0,100Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
}
.hero-section .container {
  position: relative;
  z-index: 1;
}
.hero-section h1 {
  color: #fff;
  font-size: 3.2rem;
  line-height: 1.2;
}
.hero-section .lead {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 560px;
}
.hero-section .hero-img {
  max-width: 520px;
  border-radius: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: hero-float 7s ease-in-out infinite;
}
.gradient-text {
  background: linear-gradient(90deg, #ED47AD, #f7b2d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes hero-gradient-flow {
  0% {
    background-position: 0% 0%, 100% 0%, 0% 50%;
  }
  50% {
    background-position: 18% 12%, 82% 24%, 100% 50%;
  }
  100% {
    background-position: 0% 0%, 100% 0%, 0% 50%;
  }
}

@keyframes hero-glaze-sweep {
  0% {
    transform: translate3d(-24%, -8%, 0) rotate(-10deg);
    opacity: .18;
  }
  18% {
    opacity: .24;
  }
  50% {
    transform: translate3d(12%, 4%, 0) rotate(-10deg);
    opacity: .72;
  }
  82% {
    opacity: .28;
  }
  100% {
    transform: translate3d(34%, 12%, 0) rotate(-10deg);
    opacity: .14;
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .hero-section::before,
  .hero-section .hero-img {
    animation: none;
  }
}

/* ---------- Section Headings ---------- */
.section-title {
  font-size: 2.4rem;
  margin-bottom: .5rem;
}
.section-subtitle {
  color: #777;
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-divider {
  width: 80px;
  height: 3px;
  background: var(--vv-gradient);
  border: none;
  border-radius: 3px;
  margin: 1rem auto 2rem;
}

/* ---------- Feature Cards ---------- */
.features-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.feature-card {
  background: #f4efff;
  border-radius: 14px;
  padding: 1rem;
  min-height: 290px;
  box-shadow: 0 10px 30px rgba(33, 18, 80, .08);
  border: 1px solid #ece3ff;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(51,24,136,.14);
}
.feature-card-featured {
  background: #32157e;
  border-color: #32157e;
}
.feature-card h5 {
  font-size: 1rem;
  line-height: 1.25;
  color: #25154f;
  margin-bottom: .55rem;
  font-weight: 700;
}
.feature-card p {
  font-size: .78rem;
  line-height: 1.45;
  color: rgba(37, 21, 79, .82);
  margin-bottom: .9rem;
}
.feature-card-featured h5,
.feature-card-featured p {
  color: #fff;
}
.feature-card .icon-wrap {
  margin-top: auto;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(112, 83, 191, .12);
}
.feature-card-featured .icon-wrap {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.12);
}
.feature-card .icon-wrap img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.feature-card-tall .icon-wrap img {
  height: 250px;
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: 1.45fr 1fr 1fr;
    align-items: stretch;
  }
  .feature-card {
    min-height: 310px;
  }
  .feature-card-tall {
    min-height: 430px;
  }
}

/* ---------- Audience Tabs ---------- */
.audience-tabs .nav-pills .nav-link {
  border-radius: 50px;
  padding: .6rem 1.6rem;
  font-weight: 600;
  color: var(--vv-dark);
  background: #f0eef5;
  margin: .25rem;
  transition: all .2s;
}
.audience-tabs .nav-pills .nav-link.active {
  background: var(--vv-gradient);
  color: #fff;
}
.audience-tabs .tab-content { padding-top: 2rem; }
.audience-tabs .tab-pane ul {
  list-style: none;
  padding: 0;
}
.audience-tabs .tab-pane ul li {
  padding: .6rem 0;
  padding-left: 1.6rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
}
.audience-tabs .tab-pane ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--vv-pink);
  font-size: 1.4rem;
  line-height: 1.3;
}

/* ---------- Checklist (Features) ---------- */
.check-list {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
}
.check-list li {
  padding: .5rem 0 .5rem 2rem;
  position: relative;
  font-size: .95rem;
  break-inside: avoid;
}
.check-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--vv-purple);
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.step-card {
  text-align: center;
  padding: 1.5rem 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.step-card h5 {
  font-size: 1.05rem;
  margin-bottom: .65rem;
}
.step-card p {
  max-width: 320px;
  margin: 0 auto;
  font-size: .95rem;
}
.step-card .step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--vv-gradient);
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.step-card img {
  border-radius: 12px;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

/* ---------- YouTube direct fallback ---------- */
.yt-direct-link {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
  border: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.yt-fallback-img {
  width: 100%;
  height: auto;
  display: block;
}
.yt-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 0, 0, .92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.yt-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}
.yt-overlay.is-open { display: block; }
.yt-overlay-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.8);
}
.yt-overlay-dialog {
  position: relative;
  width: min(960px, 92vw);
  margin: min(8vh, 60px) auto;
  z-index: 1;
}
.yt-overlay-frame-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.yt-overlay-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.yt-overlay-close {
  position: absolute;
  right: -8px;
  top: -42px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
}
body.yt-open {
  overflow: hidden;
}

/* ---------- Partners ---------- */
.partner-logo {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  transition: transform .2s;
}
.partner-logo:hover { transform: scale(1.05); }
.partner-logo img {
  max-width: 82%;
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

/* ---------- Vision / Mission ---------- */
.vision-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  height: 100%;
  border-top: 4px solid var(--vv-purple);
}
.vision-card h4 { color: var(--vv-purple); }

/* ---------- Capability Cards (with gradient icon) ---------- */
.capability-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  height: 100%;
  border: 1px solid rgba(124, 58, 237, .08);
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(124, 58, 237, .15);
  border-color: rgba(124, 58, 237, .25);
}
.capability-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--vv-purple, #7c3aed) 0%, var(--vv-pink, #ec4899) 100%);
  box-shadow: 0 6px 16px rgba(124, 58, 237, .25);
}
.capability-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--vv-purple, #7c3aed);
}
.capability-card p {
  font-size: .92rem;
  margin-bottom: 0;
  color: #4b5563;
}
@media (max-width: 575.98px) {
  .capability-card { padding: 1.25rem 1rem; gap: .85rem; }
  .capability-icon { width: 48px; height: 48px; font-size: 1.25rem; border-radius: 12px; }
}

/* ---------- Testimonials ---------- */
.testimonial-section { overflow: hidden; }
.testimonial-wrapper {
  height: 500px;
  overflow: hidden;
  position: relative;
}
.testimonial-wrapper::before,
.testimonial-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 2;
}
.testimonial-wrapper::before {
  top: 0;
  background: linear-gradient(to bottom, #fff, transparent);
}
.testimonial-wrapper::after {
  bottom: 0;
  background: linear-gradient(to top, #fff, transparent);
}
.testimonial-track {
  display: flex;
  flex-direction: column;
  animation: scrollUp var(--scroll-duration, 30s) linear infinite;
  will-change: transform;
}
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: .75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-left: 4px solid var(--vv-purple);
}
.testimonial-card .stars { color: #f5a623; margin-bottom: .5rem; }
.testimonial-card blockquote {
  font-size: .92rem;
  font-style: italic;
  color: #555;
  margin-bottom: .75rem;
}
.testimonial-card .author {
  font-weight: 600;
  font-size: .85rem;
  color: var(--vv-dark);
}

@keyframes scrollUp {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, calc(-1 * var(--scroll-distance, 50%)), 0); }
}

/* ---------- Pricing ---------- */
.pricing-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  border: 2px solid transparent;
  transition: border-color .2s, transform .25s;
}
.pricing-card.featured {
  border-color: var(--vv-purple);
  transform: scale(1.03);
}
.pricing-card .plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vv-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pricing-card .price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--vv-dark);
  margin: .5rem 0;
}
.pricing-card .price small { font-size: .9rem; font-weight: 400; color: #888; }
.pricing-card .ideal-for { font-size: .85rem; color: #888; margin-bottom: 1.5rem; }
.pricing-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 2rem;
}
.pricing-card .btn {
  margin-top: auto;
}

#pricing .row > [class*='col-'] {
  display: flex;
}
.pricing-card ul li {
  padding: .4rem 0 .4rem 1.6rem;
  position: relative;
  font-size: .88rem;
  color: #555;
}
.pricing-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--vv-purple);
  font-size: .8rem;
}
.pricing-card ul li.unavailable {
  color: #ccc;
  text-decoration: line-through;
}
.pricing-card ul li.unavailable::before {
  content: '\f00d';
  color: #ccc;
}

/* ---------- Blog Cards ---------- */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(51,24,136,.12);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card .card-body { padding: 1.5rem; }
.blog-card .badge-blog {
  background: var(--vv-purple);
  color: #fff;
  font-size: .7rem;
  padding: .3rem .7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}
.blog-card .card-date { font-size: .8rem; color: #999; margin: .5rem 0; }
.blog-card h5 { font-size: 1rem; line-height: 1.4; }
.blog-card h5 a { color: var(--vv-dark); }
.blog-card h5 a:hover { color: var(--vv-purple); }

/* ---------- FAQ ---------- */
.faq-section .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--vv-dark);
  font-size: 1rem;
  background: #fff;
}
.faq-section .accordion-button:not(.collapsed) {
  background: var(--vv-light-bg);
  color: var(--vv-purple);
  box-shadow: none;
}
.faq-section .accordion-button:focus { box-shadow: none; }
.faq-section .accordion-item {
  border: 1px solid #eee;
  border-radius: 8px !important;
  margin-bottom: .5rem;
  overflow: hidden;
}
.faq-section .accordion-body { font-size: .95rem; color: #555; }

/* ---------- Contact Form ---------- */
.contact-section {
  background: var(--vv-light-bg);
}
.contact-section .form-control,
.contact-section .form-select {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: .75rem 1rem;
  font-size: .95rem;
}
.contact-section .form-control:focus,
.contact-section .form-select:focus {
  border-color: var(--vv-purple);
  box-shadow: 0 0 0 .15rem rgba(51,24,136,.15);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--vv-dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
}
.site-footer h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.site-footer a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: color .2s;
}
.site-footer a:hover { color: #fff; }
.site-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  margin-right: .5rem;
  transition: background .2s;
}
.site-footer .social-links a:hover {
  background: var(--vv-pink);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ---------- About Page ---------- */
.about-hero {
  background: linear-gradient(160deg, #1a0d3b 0%, #331888 40%, #5a2db5 100%);
  color: #fff;
  padding: 8rem 0 5rem;
  text-align: center;
}
.about-hero h1 { color: #fff; font-size: 2.8rem; }
.about-hero p { max-width: 700px; margin: 1rem auto 0; opacity: .9; font-size: 1.1rem; }

.founder-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  height: 100%;
}
.founder-card h4 { color: var(--vv-purple); }
.founder-card .role { font-size: .9rem; color: var(--vv-pink); font-weight: 600; margin-bottom: 1rem; }

/* ---------- Legal Pages ---------- */
.legal-hero {
  background: linear-gradient(160deg, #1a0d3b 0%, #331888 40%, #5a2db5 100%);
  color: #fff;
  padding: 7rem 0 4rem;
  text-align: center;
}
.legal-hero h1 { color: #fff; font-size: 2.4rem; }
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.legal-content h4 { margin-top: 2.5rem; color: var(--vv-purple); }
.legal-content p, .legal-content li { font-size: .95rem; color: #555; }

/* ---------- Blog Detail Page ---------- */
.blog-hero {
  background: linear-gradient(160deg, #1a0d3b 0%, #331888 40%, #5a2db5 100%);
  color: #fff;
  padding: 8rem 0 4rem;
  text-align: center;
}
.blog-hero h1 { color: #fff; font-size: 2.2rem; max-width: 800px; margin: 0 auto; }
.blog-hero .blog-meta { margin-top: 1rem; opacity: .8; font-size: .9rem; }
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.blog-content h2, .blog-content h3 { margin-top: 2rem; }
.blog-content img {
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero-section { min-height: auto; padding: 6rem 0 4rem; }
  .hero-section::before { inset: -8% -34% 28% -10%; }
  .hero-section h1 { font-size: 2.2rem; }
  .check-list { columns: 1; }
}
@media (max-width: 767.98px) {
  .hero-section::before { inset: -4% -46% 40% -16%; }
  .hero-section h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.8rem; }
  .pricing-card.featured { transform: none; }
  .testimonial-wrapper { height: 400px; }
}

/* ---------- Misc ---------- */
.bg-vv-light { background: var(--vv-light-bg); }
.text-vv-purple { color: var(--vv-purple); }
.fw-600 { font-weight: 600; }

/* ---------- Expo Landing Page ---------- */
.expo-hero {
  background: linear-gradient(145deg, #130b2a 0%, #331888 48%, #6f3bc4 100%);
  color: #fff;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.expo-hero::before,
.expo-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .2;
}
.expo-hero::before {
  width: 300px;
  height: 300px;
  background: #ed47ad;
  top: -90px;
  right: -100px;
}
.expo-hero::after {
  width: 240px;
  height: 240px;
  background: #9f7bff;
  bottom: -110px;
  left: -80px;
}
.expo-hero .container { position: relative; z-index: 1; }
.expo-hero h1 {
  color: #fff;
  font-size: 2.9rem;
  line-height: 1.18;
}
.expo-hero p {
  color: rgba(255, 255, 255, .9);
  max-width: 700px;
  font-size: 1.07rem;
}
.expo-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  color: #fff;
  font-size: .85rem;
  letter-spacing: .2px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
}
.expo-chip i { color: #ffd5ef; }

.btn-outline-vv-light {
  border: 2px solid rgba(255, 255, 255, .78);
  color: #fff;
  border-radius: 50px;
  padding: .55rem 1.6rem;
  font-weight: 600;
  font-size: .95rem;
  background: rgba(255, 255, 255, .08);
  transition: all .2s;
}
.btn-outline-vv-light:hover {
  background: #fff;
  color: var(--vv-purple);
  border-color: #fff;
}

.expo-video-placeholder {
  min-height: 320px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .25);
  background:
    radial-gradient(circle at 25% 25%, rgba(237, 71, 173, .24), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(140, 100, 255, .28), transparent 55%),
    rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 34px rgba(11, 5, 31, .34);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.4rem;
}
.expo-video-inner i {
  font-size: 2.8rem;
  color: #ffd2ea;
  margin-bottom: .8rem;
}
.expo-video-inner h4 {
  color: #fff;
  margin-bottom: .55rem;
}
.expo-video-inner p {
  color: rgba(255, 255, 255, .87);
}

.expo-video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: #000;
}

.expo-stat-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #ece8f7;
  box-shadow: 0 4px 24px rgba(17, 9, 40, .08);
  padding: 1.3rem;
  height: 100%;
}
.expo-stat-card .label {
  text-transform: uppercase;
  letter-spacing: .7px;
  font-size: .72rem;
  color: #7f77a3;
  margin-bottom: .35rem;
  font-weight: 700;
}
.expo-stat-card h5 {
  margin-bottom: .25rem;
  font-size: 1.12rem;
}
.expo-stat-card p {
  margin-bottom: 0;
  color: #5d5875;
  font-size: .95rem;
}

.expo-message-card {
  border-radius: 16px;
  padding: 2rem;
  background: linear-gradient(145deg, #fff, #f7f3ff);
  border: 1px solid #e8e1fb;
  box-shadow: 0 8px 30px rgba(51, 24, 136, .08);
}

.expo-reasons {
  list-style: none;
  padding: 0;
  margin: 0;
}
.expo-reasons li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: .9rem;
  color: #443f5d;
}
.expo-reasons li::before {
  content: '\f14a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: .12rem;
  color: var(--vv-purple);
}

.expo-contact-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #ece8f7;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(17, 9, 40, .07);
  height: 100%;
}
.expo-contact-card h5 {
  margin-bottom: .8rem;
}
.expo-contact-card a {
  word-break: break-word;
}

.expo-cta-band {
  background: linear-gradient(120deg, #2a146f, #4d22a8);
  color: #fff;
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 12px 35px rgba(32, 18, 79, .35);
}
.expo-cta-band h3 { color: #fff; }
.expo-cta-band p { color: rgba(255, 255, 255, .88); }

.expo-fade-up {
  animation: expoFadeUp .7s ease both;
}

@keyframes expoFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .expo-hero {
    padding: 6rem 0 4rem;
  }
  .expo-hero h1 {
    font-size: 2.15rem;
  }
  .expo-video-placeholder {
    min-height: 260px;
  }
}

@media (max-width: 767.98px) {
  .expo-hero h1 {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .expo-hero-actions {
    gap: .65rem !important;
  }
  .expo-hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  .expo-chip {
    width: 100%;
    justify-content: center;
  }
  .expo-video-placeholder {
    min-height: 220px;
    margin-top: .35rem;
  }
  .expo-cta-band {
    padding: 1.5rem;
  }
}

/* ============================================================
   Large screens — keep the layout proportional on big monitors
   Bootstrap's .container caps at 1320px, which feels shrunken
   on >=1600px monitors. Scale container + key type up gradually.
   ============================================================ */
@media (min-width: 1400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1360px;
  }
}
@media (min-width: 1600px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1500px;
  }
  .hero-section { padding: 9rem 0 7rem; }
  .hero-section h1 { font-size: 3.6rem; }
  .hero-section .lead { font-size: 1.2rem; max-width: 600px; }
  .hero-section .hero-img { max-width: 600px; }
  .section-title { font-size: 2.6rem; }
  .feature-card .icon-wrap img { height: 210px; }
  .feature-card-tall .icon-wrap img { height: 280px; }
}
@media (min-width: 1920px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1720px;
  }
  body { font-size: 1.05rem; }
  section { padding: 6rem 0; }
  .hero-section { padding: 10rem 0 8rem; min-height: 90vh; }
  .hero-section h1 { font-size: 4.2rem; }
  .hero-section .lead { font-size: 1.3rem; max-width: 680px; }
  .hero-section .hero-img { max-width: 720px; }
  .section-title { font-size: 3rem; }
  .feature-card { min-height: 360px; }
  .feature-card-tall { min-height: 500px; }
  .feature-card .icon-wrap img { height: 240px; }
  .feature-card-tall .icon-wrap img { height: 320px; }
  .feature-card h5 { font-size: 1.15rem; }
  .feature-card p { font-size: .9rem; }
  .navbar-brand img { height: 48px; }
  .partner-logo { height: 140px; padding: 2rem; }
  .partner-logo img { max-height: 84px; }
}
@media (min-width: 2400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 2040px;
  }
  body { font-size: 1.1rem; }
  .hero-section h1 { font-size: 5rem; }
  .hero-section .hero-img { max-width: 820px; }
  .section-title { font-size: 3.4rem; }
}

/* ============================================================
   Dark theme — auto via prefers-color-scheme
   Image swaps for *_dark.<ext> handled by js/main.js
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --vv-body: #c8c5d6;
    --vv-light-bg: #14102b;
    --vv-white: #0a0818;
    --vv-surface: #15102e;
    --vv-surface-2: #1c1640;
    --vv-border: #2a1f55;
    --vv-heading: #f0eaff;
    --vv-muted: #908ca8;
  }
  body {
    background: #0a0818;
    color: var(--vv-body);
  }
  h1, h2, h3, h4, h5, h6 { color: var(--vv-heading); }
  hr { border-color: rgba(255,255,255,.08); }

  /* Navbar */
  .navbar {
    background: rgba(12, 9, 30, .92);
    box-shadow: 0 2px 20px rgba(0,0,0,.5);
  }
  .navbar .nav-link { color: #e8e6f5; }
  .navbar .nav-link:hover,
  .navbar .nav-link.active { color: var(--vv-pink); }
  .navbar-toggler { border-color: rgba(255,255,255,.2); }
  .navbar-toggler-icon {
    filter: invert(1) brightness(1.4);
  }

  /* Generic light surfaces */
  .bg-vv-light,
  .bg-light { background: var(--vv-light-bg) !important; }
  .bg-white { background: var(--vv-surface) !important; }

  /* Feature cards */
  .feature-card {
    background: var(--vv-surface);
    border-color: var(--vv-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
  .feature-card h5 { color: var(--vv-heading); }
  .feature-card p { color: rgba(240, 234, 255, .78); }
  .feature-card .icon-wrap {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.08);
  }
  .feature-card-featured {
    background: #2a1278;
    border-color: #3a1aa0;
  }
  .feature-card:hover {
    box-shadow: 0 16px 34px rgba(0,0,0,.5);
  }

  /* Audience tabs */
  .audience-tabs .nav-pills .nav-link {
    background: var(--vv-surface);
    color: #e8e6f5;
  }
  .audience-tabs .tab-pane ul li { color: var(--vv-body); }

  /* Steps */
  .step-card p { color: var(--vv-body); }

  /* Vision / mission */
  .vision-card {
    background: var(--vv-surface);
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
    border-top-color: var(--vv-pink);
  }
  .vision-card h4 { color: var(--vv-pink); }

  /* Testimonials */
  .testimonial-section { background: #0a0818; }
  .testimonial-card {
    background: var(--vv-surface);
    border-left-color: var(--vv-pink);
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
  }
  .testimonial-card blockquote { color: var(--vv-body); }
  .testimonial-card .author { color: var(--vv-heading); }
  .testimonial-wrapper::before {
    background: linear-gradient(to bottom, #0a0818, transparent);
  }
  .testimonial-wrapper::after {
    background: linear-gradient(to top, #0a0818, transparent);
  }

  /* Partners */
  .partner-logo {
    background: var(--vv-surface);
    box-shadow: 0 2px 14px rgba(0,0,0,.4);
  }

  /* Pricing */
  .pricing-card {
    background: var(--vv-surface);
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
  }
  .pricing-card.featured { border-color: var(--vv-pink); }
  .pricing-card .plan-name { color: var(--vv-pink); }
  .pricing-card .price { color: var(--vv-heading); }
  .pricing-card .price small,
  .pricing-card .ideal-for { color: var(--vv-muted); }
  .pricing-card ul li { color: #b8b5c8; }
  .pricing-card ul li::before { color: var(--vv-pink); }
  .pricing-card ul li.unavailable,
  .pricing-card ul li.unavailable::before { color: #555; }

  /* Blog cards */
  .blog-card {
    background: var(--vv-surface);
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
  }
  .blog-card h5 a { color: var(--vv-heading); }
  .blog-card h5 a:hover { color: var(--vv-pink); }
  .blog-card .card-date { color: var(--vv-muted); }

  /* FAQ */
  .faq-section .accordion-item {
    background: var(--vv-surface);
    border-color: var(--vv-border);
  }
  .faq-section .accordion-button {
    background: var(--vv-surface);
    color: var(--vv-heading);
  }
  .faq-section .accordion-button:not(.collapsed) {
    background: var(--vv-surface-2);
    color: var(--vv-pink);
  }
  .faq-section .accordion-button::after {
    filter: invert(1) brightness(1.2);
  }
  .faq-section .accordion-body {
    background: var(--vv-surface);
    color: var(--vv-body);
  }

  /* Contact */
  .contact-section { background: #0f0c22; }
  .contact-section .form-control,
  .contact-section .form-select {
    background: var(--vv-surface-2);
    border-color: var(--vv-border);
    color: var(--vv-heading);
  }
  .contact-section .form-control::placeholder { color: #7a7590; }
  .contact-section .form-control:focus,
  .contact-section .form-select:focus {
    background: var(--vv-surface-2);
    color: var(--vv-heading);
    border-color: var(--vv-pink);
    box-shadow: 0 0 0 .15rem rgba(237, 71, 173, .2);
  }
  .form-label { color: var(--vv-body); }

  /* Footer — already dark, deepen a touch */
  .site-footer { background: #050313; }

  /* Section helpers */
  .section-subtitle { color: var(--vv-muted); }
  .text-muted { color: var(--vv-muted) !important; }

  /* Legal / about / blog hero (already dark gradients — leave) */
  .legal-content p,
  .legal-content li { color: var(--vv-body); }
  .legal-content h4 { color: var(--vv-pink); }

  .founder-card {
    background: var(--vv-surface);
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
  }
  .founder-card h4 { color: var(--vv-pink); }

  /* Blog detail */
  .blog-content,
  .blog-content p,
  .blog-content li { color: var(--vv-body); }
  .blog-content h2,
  .blog-content h3 { color: var(--vv-heading); }
  .blog-content img { box-shadow: 0 4px 20px rgba(0,0,0,.5); }

  /* Expo page */
  .expo-stat-card {
    background: var(--vv-surface);
    border-color: var(--vv-border);
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
  }
  .expo-stat-card .label { color: var(--vv-muted); }
  .expo-stat-card p { color: var(--vv-body); }
  .expo-message-card {
    background: linear-gradient(145deg, var(--vv-surface), var(--vv-surface-2));
    border-color: var(--vv-border);
    box-shadow: 0 8px 30px rgba(0,0,0,.4);
  }
  .expo-reasons li { color: var(--vv-body); }
  .expo-contact-card {
    background: var(--vv-surface);
    border-color: var(--vv-border);
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
  }

  /* Buttons */
  .btn-outline-vv {
    border-color: var(--vv-pink);
    color: var(--vv-pink);
  }
  .btn-outline-vv:hover {
    background: var(--vv-pink);
    color: #fff;
  }

  /* Bootstrap selection / scrollbar polish */
  ::selection { background: rgba(237,71,173,.45); color: #fff; }
}

/* ---------- Dark-mode image bottom shadow ----------
   Lift images off the dark background by adding a soft
   bottom drop-shadow. Applied broadly, with a few opt-outs
   for elements that already manage their own framing. */
@media (prefers-color-scheme: dark) {
  img {
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55));
  }
  /* Opt-outs: tiny chrome, logos in tinted tiles, decorative SVG bg, etc. */
  .navbar-brand img,
  .site-footer img,
  .partner-logo img,
  .yt-fallback-img,
  .feature-card .icon-wrap img,
  .blog-card img,
  .favicon,
  img[src*="favicon"],
  img[src*="apple-touch-icon"] {
    filter: none;
  }
  /* For framed images, shadow the frame itself instead. */
  .feature-card .icon-wrap,
  .blog-card {
    box-shadow: 0 14px 24px rgba(0, 0, 0, .55);
  }
  .yt-direct-link {
    box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
  }
}

/* ---------- Partner logos: zoom + dark-mode contrast ---------- */
.partner-logo img {
  max-width: 92%;
  max-height: 88px;
}
@media (prefers-color-scheme: dark) {
  .partner-logo {
    background: #1f1748;
    border: 1px solid #2e2360;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .55);
  }
}
@media (min-width: 1600px) {
  .partner-logo img { max-height: 96px; }
}
@media (min-width: 1920px) {
  .partner-logo img { max-height: 110px; max-width: 92%; }
}

/* ---------- News & Social page ---------- */
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ece8f7;
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
  transition: transform .25s, box-shadow .25s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(51, 24, 136, .12);
}
.news-card h4 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: .25rem 0 .6rem;
}
.news-card p {
  font-size: .95rem;
  color: #555;
  margin-bottom: 1.2rem;
}
.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}
.news-badge {
  background: var(--vv-purple);
  color: #fff;
  font-size: .7rem;
  padding: .3rem .7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}
.news-tag {
  font-size: .82rem;
  color: #888;
}
.news-social-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0;
}
.news-social-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: .25rem;
}
.news-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--vv-purple);
  color: #fff;
  font-size: 1.1rem;
  transition: transform .2s, background .2s;
}
.news-social-links a:hover {
  background: var(--vv-pink);
  transform: translateY(-2px);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .news-card {
    background: var(--vv-surface);
    border-color: var(--vv-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
  }
  .news-card p { color: var(--vv-body); }
  .news-tag { color: var(--vv-muted); }
  .news-badge { background: var(--vv-pink); }
  .news-social-links a { background: var(--vv-surface-2); }
  .news-social-links a:hover { background: var(--vv-pink); }
}

/* ---------- Dark mode: hero bottom wave ----------
   The hero ::after uses an inline SVG with white fill that
   meets the page background. In dark mode the body is near-black,
   so we swap to a matching dark-purple wave. */
@media (prefers-color-scheme: dark) {
  .hero-section::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%230a0818' d='M0,64L80,58.7C160,53,320,43,480,48C640,53,800,75,960,74.7C1120,75,1280,53,1360,42.7L1440,32L1440,100L1360,100C1280,100,1120,100,960,100C800,100,640,100,480,100C320,100,160,100,80,100L0,100Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
  }
}

/* ---------- Mobile polish & overflow safety ---------- */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* Hero image: never wider than its column */
.hero-section .hero-img {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* Phones */
@media (max-width: 575.98px) {
  .hero-section {
    padding: 5rem 0 3rem;
    text-align: center;
  }
  .hero-section h1 { font-size: 1.75rem; }
  .hero-section .lead {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-section .btn-lg {
    font-size: 1rem;
    padding: .65rem 1.4rem;
  }
  .hero-section .hero-img {
    max-width: 92%;
    margin: 1.5rem auto 0;
  }
  .hero-section::after { height: 60px; }

  /* Announcement bar — keep ticker text from clipping awkwardly */
  .announcement-bar { font-size: .78rem; padding: .55rem .9rem; }

  /* Section padding tighter on phones */
  section { padding: 3rem 0; }
  .section-title { font-size: 1.55rem; }
  .section-subtitle { font-size: .95rem; margin-bottom: 2rem; }

  /* Feature cards full width, comfy padding */
  .feature-card { min-height: auto; padding: 1.25rem; }
  .feature-card .icon-wrap img { height: 160px; }
  .feature-card-tall .icon-wrap img { height: 200px; }

  /* Pricing card scale */
  .pricing-card { padding: 1.75rem 1.25rem; }
  .pricing-card .price { font-size: 2rem; }

  /* Footer columns: keep some breathing room */
  .site-footer { padding: 3rem 0 1.5rem; }

  /* News cards already responsive via Bootstrap; tighten padding */
  .news-card { padding: 1.25rem; }

  /* Partner tiles — show 2 per row, slightly smaller */
  .partner-logo { height: 96px; padding: 1rem; }
  .partner-logo img { max-height: 56px; }
}

/* ---------- Feature card images: avoid cropping ----------
   Original rule used object-fit:cover which truncated tall
   illustrations like modes.png and quiz.png. Switch to contain
   and give the wrap a soft tinted background. */
.feature-card .icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
}
.feature-card .icon-wrap img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.feature-card .icon-wrap {
  height: 200px;
}
.feature-card-tall .icon-wrap {
  height: 280px;
}
@media (min-width: 992px) {
  .feature-card .icon-wrap { height: 210px; }
  .feature-card-tall .icon-wrap { height: 320px; }
}
@media (min-width: 1600px) {
  .feature-card .icon-wrap { height: 240px; }
  .feature-card-tall .icon-wrap { height: 360px; }
}
@media (min-width: 1920px) {
  .feature-card .icon-wrap { height: 280px; }
  .feature-card-tall .icon-wrap { height: 420px; }
}
@media (max-width: 575.98px) {
  .feature-card .icon-wrap { height: 200px; }
  .feature-card-tall .icon-wrap { height: 240px; }
}

/* ---------- YouTube overlay: mobile hardening ----------
   Reported: pressing YT player buttons (fullscreen, etc.) on mobile
   distorted the page. Causes:
   - Close button placed at top:-42px sits above the viewport on phones,
     forcing horizontal/vertical scroll and reflow.
   - aspect-ratio 16:9 + 92vw width can exceed screen height on small
     devices in landscape, causing layout shift when YT chrome appears.
   - body { overflow:hidden } alone does not lock scroll on iOS Safari.
*/
.yt-overlay {
  display: none;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}
.yt-overlay.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.yt-overlay-dialog {
  width: min(960px, 100%);
  margin: 0;
  max-width: 100%;
}
.yt-overlay-frame-wrap {
  width: 100%;
  max-height: calc(100vh - 5rem);
}
body.yt-open,
html.yt-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 575.98px) {
  .yt-overlay.is-open { padding: .5rem; }
  .yt-overlay-close {
    right: 0;
    top: -38px;
    font-size: 1.4rem;
    padding: .25rem .5rem;
  }
  .yt-overlay-dialog {
    margin-top: 2.5rem; /* room for the close button */
  }
}

/* Landscape on phones — keep 16:9 within visible area */
@media (max-height: 500px) {
  .yt-overlay-frame-wrap {
    max-height: calc(100vh - 3.5rem);
  }
  .yt-overlay-close { top: -34px; }
}

/* ---------- Contact form status ---------- */
.contact-status-ok {
  color: #1e8a4f;
  font-weight: 600;
}
.contact-status-err {
  color: #c53030;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .contact-status-ok { color: #6ee7a7; }
  .contact-status-err { color: #ff8b8b; }
}
