/* ============================================================
   VoxPic -- components.css
   Buttons, badges, cards, nav, phone mockup, pricing, testimonials,
   carousel, footer, trust pills, steps
   ============================================================ */

/* == Buttons =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background     var(--dur-base) var(--ease),
    color          var(--dur-base) var(--ease),
    border-color   var(--dur-base) var(--ease),
    box-shadow     var(--dur-base) var(--ease),
    transform      var(--dur-base) var(--ease);
}

.btn:active {
  transform: scale(.96) !important;
}

.btn-primary {
  background: var(--brand-orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 159, 67, .35);
}

.btn-primary:hover {
  background: #f08c2c;
  box-shadow: 0 6px 28px rgba(255, 159, 67, .50);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none !important;
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border-color: rgba(45, 52, 54, .20);
}

.btn-secondary:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.btn-white {
  background: #fff;
  color: var(--brand-orange);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .18);
  text-decoration: none !important;
  color: var(--brand-orange);
}

/* == Badge ================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  background: rgba(29, 209, 161, .15);
  color: var(--brand-green);
  border: 1px solid rgba(29, 209, 161, .30);
}

/* == Section Title / Subtitle ============================== */
.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: var(--space-3);
}

.section--orange .section-title {
  color: #fff;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: var(--space-7);
  line-height: 1.65;
}

.section--orange .section-subtitle {
  color: rgba(255, 255, 255, .85);
}

/* == Card ================================================== */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  transition:
    transform  var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Feature card -- colored top stripe */
.card-feature {
  overflow: hidden;
  padding-top: 0;
}

.card-feature__stripe {
  height: 6px;
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: height var(--dur-base) var(--ease);
}

.card-feature:hover .card-feature__stripe {
  height: 10px;
}

.card-feature__body {
  padding: var(--space-5) var(--space-6) var(--space-6);
}

.card-feature__icon {
  font-size: 34px;
  margin-bottom: var(--space-3);
}

.card-feature__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: var(--space-2);
}

.card-feature__body-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Feature cards grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* == Nav =================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 52, 54, .08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.nav__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-dark);
  text-decoration: none;
}

.nav__logo span { color: var(--brand-orange); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.nav__links a:hover {
  color: var(--brand-orange);
  text-decoration: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 3px;
  background: var(--bg-soft);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-toggle__btn {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    color      var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.lang-toggle__btn.active,
.lang-toggle__btn:hover {
  background: var(--surface);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 6px 4px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition:
    transform var(--dur-base) var(--ease),
    opacity   var(--dur-base) var(--ease);
}

/* Open state: X icon */
.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav__links--mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--surface);
  padding: var(--space-5) var(--section-px);
  border-bottom: 1px solid rgba(45, 52, 54, .08);
  box-shadow: var(--shadow-md);
  gap: var(--space-5);
  z-index: 99;
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* == Hero Section ========================================== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: center;
  min-height: calc(100vh - 96px);
}

.hero__content {
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--brand-orange);
  text-transform: uppercase;
}

.hero__headline {
  margin-bottom: var(--space-5);
  max-width: 680px;
}

.hero__subtitle {
  margin-bottom: var(--space-6);
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero__mini-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hero__mockup {
  justify-self: center;
  width: min(100%, 420px);
}

.hero__mockup-screen {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-4);
  width: 100%;
  height: 100%;
  padding: var(--space-5);
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.mockup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 159, 67, .12);
  color: var(--brand-orange);
  font-size: 12px;
  font-weight: 700;
}

.mockup-status {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
}

.mockup-phrase {
  min-height: 118px;
  border: 2px dashed rgba(45, 52, 54, .18);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mockup-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg-soft);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.mockup-chip::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.mockup-chip:nth-child(2)::before { background: var(--brand-orange); }
.mockup-chip:nth-child(3)::before { background: var(--brand-green); }

.mockup-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
}

.mockup-actions .btn {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font-size: 14px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__mockup {
    margin-top: var(--space-8);
  }
}

@media (max-width: 640px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* == Phone Mockup ========================================== */
.phone-mockup {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19;
  background: var(--surface);
  border-radius: 40px;
  border: 10px solid #1a1a2e;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, .28),
    inset 0 0 0 1px rgba(255, 255, 255, .10);
  transform: perspective(800px) rotateY(-12deg) rotateX(3deg);
  transition: transform .5s var(--ease);
  overflow: hidden;
  flex-shrink: 0;
}

.phone-mockup:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.phone-mockup__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #1a1a2e;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-soft);
}

/* == Google Play Badge ===================================== */
.play-badge {
  display: inline-block;
  transition:
    transform var(--dur-base) var(--ease),
    opacity   var(--dur-base) var(--ease);
}

.play-badge:hover {
  transform: translateY(-2px);
  opacity: .88;
  text-decoration: none !important;
}

.play-badge img {
  height: 56px;
  width: auto;
}

/* == Trust Bar ============================================= */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  padding-block: var(--space-6);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border: 2px solid var(--brand-orange);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--surface);
  white-space: nowrap;
}

/* == How It Works -- Steps ================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  align-items: start;
}

.step {
  text-align: center;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--brand-orange);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  margin: 0 auto var(--space-4);
}

.step__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: var(--space-2);
}

.step__body {
  font-size: 15px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* == Pricing Table ========================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
  max-width: 800px;
  margin-inline: auto;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(45, 52, 54, .10);
  padding: var(--space-7) var(--space-6);
  position: relative;
  transition: box-shadow var(--dur-base) var(--ease);
}

.pricing-card--pro {
  border-color: var(--brand-orange);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-orange);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  margin-block: var(--space-3);
}

.pricing-card__price sup {
  font-size: 22px;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
}

.pricing-card__price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-block: var(--space-6);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 15px;
}

.pricing-feature--check::before {
  content: "✓";
  color: var(--brand-green);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-feature--no {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-feature--no::before {
  content: "✗";
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
  .pricing-card--pro {
    transform: scale(1);
    order: -1;
  }
}

/* == Testimonial Cards ===================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  color: var(--brand-orange);
  font-size: 16px;
  margin-bottom: var(--space-3);
}

.testimonial-card__quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: var(--space-5);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 14px;
}

.testimonial-card__role {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* == Screenshot Carousel =================================== */
.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: var(--space-5);
  padding-bottom: var(--space-3);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 220px;
}

.carousel-phone-frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, .18),
    0 0 0 8px #1a1a2e;
  aspect-ratio: 9 / 19;
  background: #eee;
}

.carousel-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: var(--space-4);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 16px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 2px solid rgba(45, 52, 54, .15);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    color        var(--dur-fast) var(--ease);
}

.carousel-btn:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.carousel-dots {
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(45, 52, 54, .20);
  cursor: pointer;
  transition:
    background  var(--dur-fast) var(--ease),
    transform   var(--dur-fast) var(--ease);
}

.carousel-dot.active {
  background: var(--brand-orange);
  transform: scale(1.35);
}

#testimonials {
  display: none !important;
}

/* == Interactive Demo ====================================== */
.demo-wrapper {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  max-width: 680px;
  margin-inline: auto;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.pic-card {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-soft);
  border: 2px solid rgba(45, 52, 54, .08);
  cursor: pointer;
  user-select: none;
  transition:
    transform  var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.pic-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.pic-card:active {
  transform: scale(.95);
}

.pic-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.pic-card__label {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--text-dark);
}

.phrase-bar {
  min-height: 60px;
  border: 2px dashed rgba(45, 52, 54, .15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-dark);
}

.phrase-bar:empty::after {
  content: attr(data-placeholder);
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
}

.demo-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* == Footer ================================================ */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid rgba(45, 52, 54, .08);
  padding-block: var(--space-7) var(--space-6);
}

.footer__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-dark);
  text-decoration: none;
}

.footer__logo span { color: var(--brand-orange); }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.footer__links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease);
}

.footer__links a:hover {
  color: var(--brand-orange);
  text-decoration: none;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--space-4);
  text-align: center;
  width: 100%;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: 1040px;
  margin-inline: auto;
}

.cta__headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: var(--space-3);
  color: #fff;
}

.cta__text {
  color: rgba(255, 255, 255, .92);
  font-size: 17px;
  max-width: 560px;
}

.cta__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta__buttons .btn {
  min-width: 220px;
}

@media (max-width: 840px) {
  .cta__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}
