/* ==========================================================================
   Transcriber — voicetranscriber.app
   Single shared stylesheet for all pages (mobile-first)
   ========================================================================== */

:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-darker: #1E3A8A;
  --white: #FFFFFF;
  --text: #0F172A;
  --text-muted: #475569;
  --gray-light: #F8FAFC;
  --gray: #E2E8F0;
  --radius: 16px;
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-screenshot: 0 20px 60px rgba(0, 0, 0, 0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}

/* Apple-style black download badge */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: var(--white);
  border-radius: 14px;
  padding: 10px 22px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-appstore:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.btn-appstore svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: var(--white);
}

.btn-appstore .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.btn-appstore .badge-small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.btn-appstore .badge-big {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 58, 138, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(30, 58, 138, 0.97);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: var(--white);
}

.nav-logo svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  display: none;
  background: var(--white);
  color: var(--blue-darker) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-switcher a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switcher a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.lang-switcher a.active {
  color: var(--blue-darker);
  background: var(--white);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  background: var(--blue-darker);
  padding: 12px 20px 24px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li a {
  display: block;
  color: var(--white);
  font-weight: 600;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu .mobile-cta {
  margin-top: 16px;
  width: 100%;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background: linear-gradient(160deg, var(--blue-darker) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 64px 0 80px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-rating .stars {
  color: #FBBF24;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 300px;
  max-width: 78vw;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  border: 6px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 900px) {
  .hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* --------------------------------------------------------------------------
   Social proof bar
   -------------------------------------------------------------------------- */

.proof-bar {
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray);
  padding: 24px 0;
}

.proof-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.proof-item .proof-icon {
  font-size: 22px;
  line-height: 1;
}

.proof-item strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.proof-item span {
  font-size: 13px;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .proof-items {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-light);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* --------------------------------------------------------------------------
   Screenshot carousel
   -------------------------------------------------------------------------- */

.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 4px 32px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: center;
  text-align: center;
}

.carousel-slide img {
  width: 280px;
  border-radius: 24px;
  box-shadow: var(--shadow-screenshot);
}

.carousel-slide figcaption {
  margin-top: 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
}

.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gray);
  background: var(--white);
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 5;
  display: none;
}

.carousel-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.carousel-btn.prev {
  left: -8px;
}

.carousel-btn.next {
  right: -8px;
}

@media (min-width: 768px) {
  .carousel-btn {
    display: block;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gray);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dots button.active {
  background: var(--blue);
  transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.step {
  text-align: center;
  padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-darker));
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Use case / feature cards
   -------------------------------------------------------------------------- */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--blue);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  font-size: 26px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

@media (min-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Guides grid
   -------------------------------------------------------------------------- */

.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--blue);
  color: var(--text);
}

.guide-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.guide-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  flex-grow: 1;
  margin-bottom: 14px;
}

.guide-card .read-more {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.93rem;
}

@media (min-width: 700px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .guides-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.open {
  border-color: var(--blue);
  box-shadow: var(--shadow-card);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 20px 22px;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.faq-question .faq-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--blue);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.faq-answer-inner a {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto 48px;
}

.price-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--gray);
  border-radius: 20px;
  padding: 38px 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.price-card.popular {
  border-color: var(--blue);
  box-shadow: 0 16px 50px rgba(37, 99, 235, 0.18);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2px;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-note {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.price-features {
  list-style: none;
  margin-bottom: 8px;
}

.price-features li {
  padding: 9px 0 9px 30px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.96rem;
  border-bottom: 1px solid var(--gray-light);
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
}

.price-features li.unavailable {
  opacity: 0.45;
}

.price-features li.unavailable::before {
  content: "—";
  color: var(--text-muted);
}

.pricing-cta {
  text-align: center;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   CTA band (guides)
   -------------------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(135deg, var(--blue-darker), var(--blue));
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  color: var(--white);
  margin: 56px 0 8px;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 26px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Guide article pages
   -------------------------------------------------------------------------- */

.article-hero {
  background: linear-gradient(160deg, var(--blue-darker) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 60px 0 56px;
}

.article-hero .breadcrumb {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
}

.article-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.article-hero .breadcrumb a:hover {
  color: var(--white);
}

.article-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 820px;
}

.article-hero .article-meta {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 24px;
}

.article p {
  margin-bottom: 20px;
  color: #334155;
  font-size: 1.03rem;
}

.article h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 44px 0 16px;
}

.article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 28px 0 10px;
}

.article ul,
.article ol {
  margin: 0 0 22px 24px;
  color: #334155;
  font-size: 1.03rem;
}

.article li {
  margin-bottom: 10px;
}

.article li strong {
  color: var(--text);
}

.article-screenshot {
  margin: 34px auto;
  text-align: center;
}

.article-screenshot img {
  width: 280px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: var(--shadow-screenshot);
}

.article-screenshot figcaption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article .faq-list {
  margin-top: 8px;
}

.related-guides {
  background: var(--gray-light);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 26px 26px 14px;
  margin: 40px 0;
}

.related-guides h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.related-guides ul {
  list-style: none;
  margin-left: 0;
}

.related-guides li {
  padding-left: 24px;
  position: relative;
}

.related-guides li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--text);
  color: #94A3B8;
  padding: 60px 0 32px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.93rem;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer a {
  color: #94A3B8;
  font-size: 0.93rem;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--white);
}

.footer .lang-switcher a {
  font-size: 13px;
}

.footer .lang-switcher a.active {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
