/* ============================================================
   LAABS Audio — Component Styles
   Navigation, Buttons, Feature Cards, Phone Frames, etc.
   ============================================================ */

/* ── ─── ─── NAV ─── ─── ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: var(--space-4);
  transition: background-color var(--duration-slow) var(--ease-out-quart),
              box-shadow var(--duration-slow) var(--ease-out-quart);
}

.nav.is-scrolled {
  background-color: oklch(14% 0.04 152 / 0.92);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 1px 0 var(--border-dark);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-6), 3vw, var(--space-10));
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--forest-300);
  letter-spacing: 0.01em;
  transition: color var(--duration-fast);
}

.nav__link:hover { color: var(--text-primary); }

.nav__cta {
  flex-shrink: 0;
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: var(--space-2);
}

.nav__hamburger span {
  display: block;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: transform var(--duration-base) var(--ease-out-quart),
              opacity var(--duration-base);
}

.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  background-color: oklch(14% 0.04 152 / 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-8);
  flex-direction: column;
  gap: var(--space-6);
  z-index: 99;
}

.nav__mobile-menu.is-open {
  display: flex;
}

.nav__mobile-link {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  color: var(--text-primary);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--border-dark);
  transition: color var(--duration-fast);
}

.nav__mobile-link:hover { color: var(--accent); }

/* ── ─── ─── BUTTONS ─── ─── ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform var(--duration-fast) var(--ease-out-quart),
    box-shadow var(--duration-fast) var(--ease-out-quart),
    background-color var(--duration-fast);
  cursor: pointer;
}

.btn:active { transform: scale(0.97); }

/* Primary — amber on dark */
.btn--primary {
  background-color: var(--accent);
  color: var(--forest-950);
}
.btn--primary:hover {
  background-color: var(--amber-400);
  box-shadow: 0 4px 20px oklch(80% 0.19 58 / 0.4);
  transform: translateY(-1px);
}

/* Ghost — border only */
.btn--ghost {
  background-color: transparent;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1.5px var(--border-dark);
}
.btn--ghost:hover {
  background-color: oklch(100% 0 0 / 0.07);
  box-shadow: inset 0 0 0 1.5px oklch(70% 0.05 145 / 0.5);
}

/* Ghost Dark (for light sections) */
.btn--ghost-dark {
  background-color: transparent;
  color: var(--text-dark);
  box-shadow: inset 0 0 0 1.5px oklch(40% 0.05 148 / 0.35);
}
.btn--ghost-dark:hover {
  background-color: oklch(36% 0.088 150 / 0.07);
}

/* Store badge */
.btn--store {
  background-color: var(--forest-950);
  color: var(--cream);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1.5px oklch(40% 0.05 148 / 0.5);
}
.btn--store:hover {
  background-color: var(--forest-900);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1.5px oklch(50% 0.07 148 / 0.5),
    0 8px 24px oklch(10% 0.04 150 / 0.4);
}

.btn--store-light {
  background-color: var(--forest-900);
  color: var(--cream);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
}
.btn--store-light:hover {
  background-color: var(--forest-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(10% 0.04 150 / 0.3);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn__store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.btn__store-label {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.75;
  line-height: 1;
}

.btn__store-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ── ─── ─── FEATURE CARDS ─── ─── ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--space-6);
}

.feature-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out-quart),
              box-shadow var(--duration-base) var(--ease-out-quart);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    oklch(46% 0.1 148 / 0.07) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* Accent card — darker background */
.feature-card--accent {
  background-color: var(--forest-900);
  color: var(--text-primary);
}

.feature-card--accent::before {
  background: linear-gradient(
    135deg,
    oklch(56% 0.11 146 / 0.15) 0%,
    transparent 60%
  );
}

/* Highlight card — amber tint */
.feature-card--highlight {
  background-color: var(--amber-100);
}

.feature-card__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-600);
  margin-bottom: var(--space-3);
}

.feature-card--accent .feature-card__eyebrow {
  color: var(--forest-400);
}

.feature-card--highlight .feature-card__eyebrow {
  color: var(--amber-600);
}

.feature-card__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
  color: var(--forest-200);
  opacity: 0.12;
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  pointer-events: none;
}

.feature-card--accent .feature-card__number {
  color: var(--forest-300);
  opacity: 0.15;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: var(--space-3);
}

.feature-card--accent .feature-card__title {
  color: var(--text-primary);
}

.feature-card--highlight .feature-card__title {
  color: var(--forest-900);
}

.feature-card__desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--stone-600);
  margin-bottom: var(--space-5);
}

.feature-card--accent .feature-card__desc {
  color: var(--forest-300);
}

.feature-card--highlight .feature-card__desc {
  color: var(--forest-800);
}

.feature-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature-card__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--stone-600);
  line-height: 1.5;
}

.feature-card--accent .feature-card__item {
  color: var(--forest-300);
}

.feature-card--highlight .feature-card__item {
  color: var(--forest-800);
}

.feature-card__item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--forest-500);
  flex-shrink: 0;
  margin-top: 0.5em;
}

.feature-card--accent .feature-card__item::before {
  background-color: var(--forest-400);
}

.feature-card--highlight .feature-card__item::before {
  background-color: var(--amber-600);
}

.feature-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  background-color: var(--forest-100);
  color: var(--forest-700);
}

.feature-card--accent .feature-card__badge {
  background-color: oklch(100% 0 0 / 0.1);
  color: var(--forest-300);
}

.feature-card--highlight .feature-card__badge {
  background-color: var(--amber-600);
  color: var(--forest-950);
}

/* ── ─── ─── PHONE FRAME ─── ─── ── */

.phone-frame {
  position: relative;
  display: inline-block;
}

.phone-frame__shell {
  position: relative;
  width: 100%;
  border-radius: 48px;
  background-color: var(--forest-950);
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  border: 2px solid oklch(32% 0.04 150);
}

.phone-frame__shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    oklch(100% 0 0 / 0.06) 0%,
    transparent 40%,
    oklch(0% 0 0 / 0.1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Notch / Dynamic Island */
.phone-frame__island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 34px;
  background-color: var(--forest-950);
  border-radius: var(--radius-full);
  z-index: 2;
}

.phone-frame__screen {
  width: 100%;
  display: block;
  border-radius: 46px;
}

/* ── ─── ─── SCREENSHOT SHOWCASE ─── ─── ── */

.screenshot-grid {
  display: grid;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
}

.screenshot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.screenshot-pair--reversed {
  direction: rtl;
}

.screenshot-pair--reversed > * {
  direction: ltr;
}

.screenshot-pair__visual {
  position: relative;
}

.screenshot-pair__image {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.screenshot-pair__image img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-pair__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.screenshot-pair__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.screenshot-pair__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.15;
}

.screenshot-pair__desc {
  font-size: var(--text-base);
  line-height: 1.75;
  opacity: 0.8;
  max-width: 46ch;
}

/* ── ─── ─── SECTION HEADINGS ─── ─── ── */

.section-heading {
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-heading--center {
  text-align: center;
}

.section-heading__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-400);
  margin-bottom: var(--space-3);
  display: block;
}

.band--light .section-heading__eyebrow,
.band--light-2 .section-heading__eyebrow {
  color: var(--forest-600);
}

.section-heading__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: 1.1;
  color: var(--text-primary);
}

.band--light .section-heading__title,
.band--light-2 .section-heading__title {
  color: var(--text-dark);
}

.section-heading__subtitle {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 60ch;
}

.band--light .section-heading__subtitle,
.band--light-2 .section-heading__subtitle {
  color: var(--text-dark-2);
}

.section-heading--center .section-heading__subtitle {
  margin-inline: auto;
}

/* ── ─── ─── DOCS CARD ─── ─── ── */

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-4);
}

.docs-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  transition:
    background-color var(--duration-fast),
    transform var(--duration-fast) var(--ease-out-quart);
  border: 1px solid var(--border-dark);
}

.docs-card:hover {
  background-color: var(--forest-700);
  transform: translateX(4px);
}

.docs-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.docs-card__content {}

.docs-card__title {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: 2px;
}

.docs-card__desc {
  font-size: var(--text-xs);
  color: var(--forest-400);
}

.docs-card__arrow {
  margin-left: auto;
  color: var(--forest-500);
  transition: transform var(--duration-fast) var(--ease-out-quart);
}

.docs-card:hover .docs-card__arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ── ─── ─── FOOTER ─── ─── ── */

.footer {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  border-top: 1px solid var(--border-dark);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.footer__brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--forest-500);
  margin-top: var(--space-2);
  max-width: 28ch;
  line-height: 1.5;
}

.footer__links {
  display: flex;
  gap: clamp(var(--space-6), 4vw, var(--space-12));
  flex-wrap: wrap;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-500);
  margin-bottom: var(--space-4);
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__col-link {
  font-size: var(--text-sm);
  color: var(--forest-400);
  transition: color var(--duration-fast);
}

.footer__col-link:hover { color: var(--text-primary); }

.footer__bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--forest-600);
}

.footer__bottom-link {
  color: var(--forest-500);
  text-decoration: underline;
  transition: color var(--duration-fast);
}

.footer__bottom-link:hover {
  color: var(--text-primary);
}

/* ── ─── ─── RESPONSIVE OVERRIDES ─── ─── ── */

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__hamburger { display: flex; }

  .screenshot-pair {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .screenshot-pair--reversed {
    direction: ltr;
  }

  .screenshot-pair__image {
    max-width: 240px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer__inner {
    flex-direction: column;
  }

  .footer__links {
    flex-direction: column;
    gap: var(--space-6);
  }
}
