/* ================================================================
   OMNALINGO — Features page
   Page-specific layout components only.
   All values via --om-* tokens. Load AFTER omnalingo.css.
   New breakpoints: 991px (tablet) and 767px (mobile) only.
   ================================================================ */
@layer components {

/* ── Shared inner container ───────────────────────────────────── */
.om-features-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.om-features-inner--narrow { max-width: 1240px; margin: 0 auto; }


/* ── HERO — 50/50 layout override ─────────────────────────────── */
.om-hero__layout--half .om-hero__content {
  flex: 0 0 50%;
}
.om-hero__right {
  flex: 0 0 50%;
  /* placeholder — fill with mockup later */
}

@media (max-width: 991px) {
  .om-hero__right { display: none; }
}


.om-hero__media {
  aspect-ratio: 16 / 9;
  background: var(--om-white-10);
  border-radius: var(--om-radius-xl);
  border: 1px solid var(--om-white-20);
  overflow: hidden;
  position: relative;
}

.om-hero__media video,
.om-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── Sticky subnav ────────────────────────────────────────────── */
.om-features-subnav {
  position: sticky; top: var(--om-sticky-top); z-index: 90;
  background: var(--om-color-bg-page);
  border-bottom: 1px solid var(--om-color-border);
}
.om-features-subnav__inner {
  display: flex; align-items: center;
  gap: var(--om-space-4);
  height: 60px;
  padding: 0 clamp(20px, 4vw, 40px);
  max-width: 1440px; margin: 0 auto;
}
.om-features-subnav__cta-wrap {
  margin-left: auto;
  --om-glow-radius: var(--om-radius-pill);
}
.om-features-subnav__cta {
  display: inline-block;
  font-family: var(--om-font-text);
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--om-color-bg-page);
  background: var(--om-color-dark);
  padding: 8px 16px;
  border-radius: var(--om-radius-pill);
  text-decoration: none;
  white-space: nowrap;
}
.om-features-subnav__list {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.om-features-subnav__link {
  font-size: .875rem; font-weight: 600; letter-spacing: .025em;
  color: var(--om-color-text-muted);
  padding: 6px 16px;
  border-radius: var(--om-radius-pill);
  transition: color .15s, background .15s;
  text-decoration: none;
}
.om-features-subnav__link:hover { color: var(--om-color-text); }
.om-features-subnav__link[aria-current="page"] {
  color: var(--om-color-text);
  background: var(--om-color-bg-alt);
}

/* ── Feature detail section ───────────────────────────────────── */
.om-feat {
  padding: 0 clamp(20px, 4vw, 48px) clamp(56px, 8vw, 88px);
  max-width: 1240px; margin: 0 auto;
}
.om-feat__head { margin-bottom: 36px; }
/* .om-feat__label is deprecated — use class="om-overline" directly in markup */
.om-feat__h {
  font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15;
  margin: 0;
}
.om-feat__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

/* ── Language grid ────────────────────────────────────────────── */
.om-lang { padding: 0 clamp(20px, 4vw, 48px) clamp(56px, 7vw, 80px); max-width: 1240px; margin: 0 auto; }
.om-lang__grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.om-lang__chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--om-color-border);
  border-radius: var(--om-radius-pill);
  font-size: .875rem; color: var(--om-color-text-body); white-space: nowrap;
}
.om-lang__chip--featured {
  background: var(--om-color-dark);
  color: var(--om-color-bg-page);
  border-color: transparent;
}
.om-lang__chip--more { color: var(--om-color-text-muted); border-style: dashed; }

/* ── Sticky features — floating card ─────────────────────────── */
.om-sticky {
  margin: var(--om-frame-margin);
  border-radius: var(--om-radius-2xl);
  overflow: clip;
  background: var(--om-color-bg-page);
}
.om-sticky__inner { display: grid; grid-template-columns: 1fr 1fr; }
.om-sticky__inner--reversed .om-sticky__right { order: -1; }

.om-sticky__left {
  position: sticky; top: calc(var(--om-sticky-top) + 60px);
  height: calc(var(--om-vh) - 60px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 5vw, 72px) clamp(32px, 4.5vw, 56px);
  border-right: 1px solid var(--om-color-border);
}
.om-sticky__inner--reversed .om-sticky__left {
  border-right: none;
  border-left: 1px solid var(--om-color-border);
}
.om-sticky__left .om-h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 12px 0 20px;
}
.om-sticky__left p {
  font-size: var(--om-text-base); line-height: var(--om-leading-loose);
  color: var(--om-color-text-body); margin-bottom: var(--om-space-8); max-width: 420px;
}
.om-sticky__cta {
  display: inline-flex; align-items: center; gap: var(--om-space-2);
  background: var(--om-color-dark); color: var(--om-color-bg-page);
  padding: var(--om-space-3) var(--om-space-7); border-radius: var(--om-radius-lg);
  font-size: var(--om-text-sm); font-weight: var(--om-weight-bold); text-decoration: none;
  width: fit-content; transition: opacity .2s;
}
.om-sticky__cta:hover { opacity: .85; }

.om-sticky__item {
  padding: clamp(28px, 3.5vw, 44px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--om-color-border);
  min-height: 220px; display: flex; flex-direction: column; justify-content: center;
}
.om-sticky__item:last-child { border-bottom: none; }
.om-sticky__item-icon { margin-bottom: 16px; }
.om-sticky__item-icon svg { width: 28px; height: 28px; fill: url(#om-icon-grad); }
.om-sticky__item .om-h4 {
  font-size: var(--om-text-lg);
  margin: 0 0 var(--om-space-2);
}
.om-sticky__item p {
  font-size: var(--om-text-base); line-height: var(--om-leading-relaxed);
  color: var(--om-color-text-body); max-width: 500px; margin: 0;
}

/* Dark variant */
.om-sticky--dark { background: var(--om-color-dark); }
.om-sticky--dark .om-sticky__left { border-right-color: var(--om-white-10); }
.om-sticky--dark .om-sticky__inner--reversed .om-sticky__left {
  border-right: none;
  border-left-color: var(--om-white-10);
}
.om-sticky--dark .om-sticky__left .om-h2 { color: var(--om-white); }
.om-sticky--dark .om-sticky__left p { color: var(--om-white-50); }
.om-sticky--dark .om-sticky__left .om-overline { color: var(--om-white-40); }
.om-sticky--dark .om-sticky__cta { background: var(--om-white); color: var(--om-color-dark); }
.om-sticky--dark .om-sticky__item { border-bottom-color: var(--om-white-10); }
.om-sticky--dark .om-sticky__item .om-h4 { color: var(--om-white); }
.om-sticky--dark .om-sticky__item p { color: var(--om-white-50); }
.om-sticky--dark .om-sticky__item-icon svg { fill: var(--om-white-60); }

/* ── Stats section ────────────────────────────────────────────── */
.om-stats {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 4vw, 48px);
  background: var(--om-color-bg-alt);
}
.om-stats__header { text-align: center; margin-bottom: 48px; }
.om-stats__header .om-h2 {
  margin: 12px 0 0;
}
.om-stats__row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; max-width: 900px; margin: 0 auto; text-align: center;
}
.om-stats__value {
  font-size: clamp(3rem, 5vw, 4.2rem); font-weight: var(--om-weight-bold);
  line-height: var(--om-leading-none); color: var(--om-color-text); margin-bottom: var(--om-space-2);
}
.om-stats__label { font-size: var(--om-text-sm); color: var(--om-color-text-body); }
.om-stats__note {
  max-width: 680px; margin: var(--om-space-12) auto 0; text-align: center;
  font-size: var(--om-text-base); line-height: var(--om-leading-loose); color: var(--om-color-text-body);
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.om-faq { padding: clamp(64px, 9vw, 112px) clamp(20px, 4vw, 48px); max-width: 900px; margin: 0 auto; }
.om-faq__header { margin-bottom: 48px; }
.om-faq__header .om-h2 {
  margin: 12px 0 0;
}
.om-faq__item { border-bottom: 1px solid var(--om-color-border); }
.om-faq__question {
  width: 100%; background: none; border: none;
  padding: var(--om-space-6) 0;
  font-family: var(--om-font-text); font-size: var(--om-text-base); font-weight: var(--om-weight-bold);
  color: var(--om-color-text); text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--om-space-4);
}
.om-faq__question:hover { color: var(--om-info); }
.om-faq__icon {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: var(--om-color-text-muted);
  transition: transform .3s ease;
}
.om-faq__item--open .om-faq__icon { transform: rotate(45deg); }
.om-faq__answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.om-faq__item--open .om-faq__answer { max-height: 320px; padding-bottom: 24px; }
.om-faq__answer p { font-size: var(--om-text-base); line-height: var(--om-leading-relaxed); color: var(--om-color-text-body); margin: 0; }

/* ── Features CTA (inside om-dark-wrapper) ────────────────────── */
.om-features-cta {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 4vw, 48px);
  text-align: center;
}
.om-features-cta .om-h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 var(--om-space-6); color: var(--om-white);
}
.om-features-cta .om-h2 em { font-style: italic; }
.om-features-cta p {
  font-size: var(--om-text-base); color: var(--om-white-50);
  max-width: 480px; margin: 0 auto var(--om-space-9); line-height: var(--om-leading-relaxed);
}
.om-features-cta__btn {
  display: inline-flex; align-items: center; gap: var(--om-space-2);
  background: var(--om-white); color: var(--om-color-dark);
  padding: var(--om-space-3) var(--om-space-9); border-radius: var(--om-radius-lg);
  font-size: var(--om-text-base); font-weight: var(--om-weight-bold); text-decoration: none;
  transition: opacity .2s;
}
.om-features-cta__btn:hover { opacity: .9; }

/* ── Features footer (inside om-dark-wrapper) ─────────────────── */
.om-features-footer {
  padding: 48px clamp(20px, 4vw, 48px) 36px;
  border-top: 1px solid var(--om-white-10);
}
.om-features-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr .5fr;
  gap: 48px; margin-bottom: 48px;
}
/* .om-features-footer__label is deprecated — use class="om-overline om-overline--on-dark" in markup */
.om-features-footer__contact a,
.om-features-footer__contact p { font-size: .9rem; color: var(--om-white-60); line-height: 1.8; text-decoration: none; }
.om-features-footer__contact a:hover { color: var(--om-white); }
.om-features-footer__nav a {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; color: var(--om-white-50); padding: 5px 0;
  text-decoration: none; transition: color .2s;
}
.om-features-footer__nav a::before { content: '>'; color: var(--om-info); }
.om-features-footer__nav a:hover { color: var(--om-white); }
.om-features-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--om-white-10);
  font-size: .875rem; color: var(--om-white-30);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 991px) {

  .om-feat__grid { grid-template-columns: 1fr 1fr; }
  .om-sticky__inner { grid-template-columns: 1fr; }
  .om-sticky__inner--reversed .om-sticky__right { order: 0; }
  .om-sticky__left {
    position: relative; height: auto;
    border-right: none; border-left: none;
    border-bottom: 1px solid var(--om-color-border);
  }
  .om-sticky--dark .om-sticky__left { border-bottom-color: var(--om-white-10); }
  .om-stats__row { gap: 28px; }
  .om-features-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {

  .om-feat__grid { grid-template-columns: 1fr; }
  .om-stats__row { grid-template-columns: 1fr; }
  .om-features-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .om-features-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .om-features-subnav__inner { padding: 0 16px; }
  .om-features-subnav__link { font-size: .8rem; padding: 6px 10px; }
}
} /* @layer components */
