/* ==========================================================================
   Hey Français ✨ - Stylesheet (Zero Build, Standard CSS)
   Aesthetic inspired by warm retro-modern minimal editorial design
   ========================================================================== */

:root {
  --bg-main: #f5ece3;
  --bg-gradient-top: #fbf6f0;
  --bg-gradient-bottom: #f2e7db;
  --bg-card: #ffffff;
  --bg-card-subtle: #faf6f0;

  --text-main: #141414;
  --text-muted: #6e675f;
  --text-light: #948b81;

  --accent-warm: #d96b43;
  --accent-gold: #f4a261;
  --accent-french-blue: #264653;

  --border-light: rgba(20, 20, 20, 0.09);
  --border-medium: rgba(20, 20, 20, 0.2);
  --border-dashed: rgba(20, 20, 20, 0.35);

  --font-display: 'Fredoka', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius-pill: 9999px;
  --radius-card: 22px;
  --radius-thumb: 16px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(20, 20, 20, 0.06);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.06);

  --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-main) 30%, var(--bg-gradient-bottom) 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   Header & Floating Pill Navigation (Matching Image 1)
   ========================================================================== */
.header-container {
  position: sticky;
  top: 18px;
  z-index: 1000;
  width: 100%;
  padding: 0 16px;
  display: flex;
  justify-content: center;
}

.pill-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 760px;
  padding: 7px 14px 7px 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  transition: var(--transition-smooth);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  height: 1em;
}

.logo-icon img {
  height: 0.9em;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
  position: relative;
  padding: 4px 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-warm);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent-warm);
  border-radius: 50%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: #ffffff;
  transition: var(--transition-smooth);
}

.nav-circle-btn:hover {
  background: var(--bg-main);
  transform: scale(1.06);
}

.nav-circle-btn.playing {
  border-color: var(--accent-warm);
  background: #ffebe3;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(217, 107, 67, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(217, 107, 67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 107, 67, 0); }
}

/* Mobile Nav Toggle Button (Desktop default: hidden) */
.nav-toggle-btn {
  display: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-box {
  width: 16px;
  height: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Animated '✕' icon when menu is open */
.nav-toggle-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Backdrop overlay */
.nav-backdrop {
  display: none;
}


/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 11px 26px;
  transition: var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary,
.btn-pill-dark {
  background: var(--text-main);
  color: #ffffff;
  border: 1.5px solid var(--text-main);
}

.btn-primary:hover,
.btn-pill-dark:hover {
  background: #2b2b2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 20, 20, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--text-main);
}

.btn-secondary:hover {
  background: rgba(20, 20, 20, 0.05);
  transform: translateY(-2px);
}

.btn-outline-full {
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-medium);
  width: 100%;
}

.btn-outline-full:hover {
  border-color: var(--text-main);
  background: var(--bg-card-subtle);
  transform: translateY(-2px);
}

.hero-pill-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(20, 20, 20, 0.35);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 64px 20px 70px;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge-wrapper {
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 22px;
}

.hero-title .sparkle {
  display: inline-block;
  transform: translateY(-4px);
  color: var(--accent-gold);
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 30px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

.hero-image-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border: 6px solid #ffffff;
  background: #ffffff;
  max-width: 380px;
  transform: rotate(0.8deg);
  transition: transform 0.3s ease;
}

.hero-image-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-main-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 25%;
}

.hero-floating-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a9d8f;
  display: inline-block;
}

/* ==========================================================================
   Common Section Styles
   ========================================================================== */
.section-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto 44px;
}

/* ==========================================================================
   Stories / Les Étages Section (Matching Image 1)
   ========================================================================== */
.stories-section {
  padding: 60px 0 80px;
}

.stories-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.story-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 20, 20, 0.16);
}

.story-thumbnail-wrapper {
  position: relative;
  width: 100%;
  height: 155px;
  border-radius: var(--radius-thumb);
  overflow: hidden;
  background: #ded5cb;
}

.story-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.story-card:hover .story-thumbnail {
  transform: scale(1.05);
}

/* Specific crops targeting different building floors from Image 3 */
.thumb-crop-top {
  object-position: center 18%;
}

.thumb-crop-mid {
  object-position: center 42%;
}

.thumb-crop-lower {
  object-position: center 66%;
}

.thumb-crop-ground {
  object-position: center 88%;
}

.thumb-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(20, 20, 20, 0.85);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.story-body {
  display: flex;
  flex-direction: column;
  padding-right: 12px;
}

.story-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 6px;
}

.story-date {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-warm);
  margin-bottom: 8px;
}

.story-excerpt {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.story-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-tag {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stories-footer-cta {
  display: flex;
  justify-content: center;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}


/* ==========================================================================
   Pricing Section (2 Plans Required)
   ========================================================================== */
.pricing-section {
  padding: 80px 0 90px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-header .hero-pill-badge {
  margin-bottom: 14px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 26px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

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

.pricing-card.featured-plan {
  border-color: var(--text-main);
  background: #fffefb;
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.09);
}

.pricing-badge-slot {
  height: 28px;
  margin-bottom: 14px;
}

.plan-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.tag-featured {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

.plan-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 44px;
}

.plan-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.price-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}

.price-cycle {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.88rem;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-main);
}

.plan-features li.disabled {
  color: var(--text-light);
  text-decoration: line-through;
}

.check-icon {
  font-weight: 800;
  color: #2a9d8f;
}

.cross-icon {
  font-weight: 700;
  color: #c4b5a5;
}

.plan-cta-box {
  margin-top: auto;
}

.plan-cta-box .btn {
  width: 100%;
}

/* ==========================================================================
   Dashed Subscribe Container (Matching Image 1)
   ========================================================================== */
.subscribe-section {
  padding: 60px 0 80px;
}

.subscribe-card-dashed {
  border: 1.5px dashed var(--border-dashed);
  border-radius: 18px;
  padding: 48px 32px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.subscribe-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.subscribe-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
}



/* ==========================================================================
   Footer & Giant Faint Watermark (Matching Image 1)
   ========================================================================== */
.site-footer {
  position: relative;
  padding: 60px 20px 40px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  overflow: hidden;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links-row a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-links-row a:hover {
  color: var(--text-main);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-light);
  padding-top: 20px;
  border-top: 1px solid rgba(20, 20, 20, 0.06);
}

.footer-socials {
  display: flex;
  gap: 18px;
}

.footer-socials a {
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-socials a:hover {
  color: var(--text-main);
}

.footer-watermark {
  position: relative;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 13vw, 8.5rem);
  font-weight: 700;
  text-align: center;
  line-height: 0.85;
  color: rgba(20, 20, 20, 0.05);
  letter-spacing: -0.03em;
  user-select: none;
  pointer-events: none;
  margin-top: 30px;
  margin-bottom: -15px;
}

/* ==========================================================================
   Story Modal (Vanilla JS Interactive Experience)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: 28px;
  max-width: 580px;
  width: 100%;
  padding: 34px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.modal-close-btn:hover {
  background: var(--bg-main);
  color: var(--text-main);
}

.modal-tag {
  display: inline-block;
  background: var(--accent-warm);
  color: #ffffff;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.modal-body {
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.dialogue-preview-box {
  background: var(--bg-card-subtle);
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border-light);
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dialogue-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dialogue-speaker {
  font-weight: 700;
  color: var(--accent-french-blue);
  min-width: 90px;
  font-size: 0.85rem;
}

.dialogue-french {
  color: var(--text-main);
  font-weight: 600;
}

.dialogue-trans {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  display: block;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .story-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .story-thumbnail-wrapper {
    height: 190px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.nav-menu-open {
    overflow: hidden;
  }

  .pill-nav {
    position: relative;
    z-index: 1000;
    padding: 7px 14px;
    gap: 12px;
  }

  .nav-toggle-btn {
    display: inline-flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.28);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 998;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(20, 20, 20, 0.12), 0 4px 12px rgba(20, 20, 20, 0.06);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.2s;
    z-index: 1001;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    list-style: none;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: 14px;
    min-height: 44px;
    transition: background 0.15s ease, color 0.15s ease;
    text-decoration: none;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(0, 0, 0, 0.04);
    color: var(--accent-warm);
  }

  .nav-links a.active {
    background: var(--bg-warm, #fdf4eb);
    color: var(--accent-warm);
    font-weight: 700;
  }

  .nav-links a.active::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .pill-nav {
    padding: 6px 12px;
  }

  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   DuoTitles Dual Subtitles Page Styles
   ========================================================================== */

/* Lucide Icon Helpers */
.lucide,
[data-lucide] {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2.25;
}

.lucide-lg {
  width: 28px;
  height: 28px;
}

.lucide-xl {
  width: 36px;
  height: 36px;
}

/* Gray Rectangle Placeholder Mockup (no screenshots generated) */
.mockup-gray-rect {
  background: #ded8cf;
  border: 1.5px solid rgba(20, 20, 20, 0.14);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mockup-gray-rect.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.mockup-gray-rect.aspect-video-hero {
  aspect-ratio: 16 / 10;
  max-width: 520px;
  margin: 0 auto;
}

.mockup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 20, 20, 0.82);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  z-index: 2;
}

.mockup-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  padding: 0 16px;
}

/* Simulated Video UI inside Hero Gray Rectangle */
.mockup-player {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(180deg, #d8d0c5 0%, #cdc4b8 100%);
}

.mockup-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mockup-window-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.22);
}

.mockup-platform-tag {
  background: rgba(255, 255, 255, 0.7);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Subtitle Simulation Overlay inside Player */
.mockup-subtitles-box {
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 12px 20px;
  text-align: center;
  margin: 0 auto;
  max-width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sub-target-lang {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 4px;
}

.sub-target-lang .sub-highlight {
  background: var(--accent-warm);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
}

.sub-native-lang {
  font-size: clamp(0.75rem, 1.6vw, 0.9rem);
  font-weight: 500;
  color: #e0ded9;
  line-height: 1.3;
}

/* Bottom Progress Bar */
.mockup-bottom-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.mockup-play-icon {
  color: var(--text-main);
  opacity: 0.7;
}

.mockup-progress-track {
  flex-grow: 1;
  height: 6px;
  background: rgba(20, 20, 20, 0.18);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.mockup-progress-fill {
  width: 45%;
  height: 100%;
  background: var(--accent-warm);
  border-radius: var(--radius-pill);
}

.mockup-time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 20, 20, 0.16);
}

.feature-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fdf5ec;
  border: 1px solid rgba(217, 107, 67, 0.2);
  color: var(--accent-warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Feature Showcase Split Sections with Gray Rectangles */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.showcase-row.reversed {
  direction: rtl;
}

.showcase-row.reversed > * {
  direction: ltr;
}

.showcase-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.showcase-content p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.showcase-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.showcase-checklist li .lucide {
  color: #2a9d8f;
  flex-shrink: 0;
}

/* Platforms Section */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.platform-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.platform-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.platform-icon {
  color: var(--accent-warm);
}

.platform-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}

.platform-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2a9d8f;
  background: rgba(42, 157, 143, 0.1);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

/* How It Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 30px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--text-main);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: var(--radius-pill);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 8px;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsive adjustments for DuoTitles */
@media (max-width: 860px) {
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .showcase-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Blog System Styles (/blog and /blog/:post_id)
   Matching Home Page Warm Retro-Modern Editorial Design
   ========================================================================== */

.blog-index-hero {
  padding: 56px 20px 36px;
}

.blog-hero-centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-index-title {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  max-width: 720px;
  text-wrap: balance;
}

.blog-index-subtitle {
  max-width: 620px;
  margin-bottom: 10px;
  text-align: center;
}

.blog-list-section {
  padding-top: 24px;
}

.blog-post-card {
  cursor: default;
}

.blog-card-thumb-link {
  display: block;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.blog-card-meta .story-date {
  margin-bottom: 0;
}

.blog-meta-dot {
  color: var(--text-light);
  font-size: 0.78rem;
}

.blog-meta-info {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.blog-card-title a {
  transition: color 0.15s ease;
}

.blog-card-title a:hover {
  color: var(--accent-warm);
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.blog-read-more:hover {
  color: var(--accent-warm);
}

.blog-read-more:hover .btn-arrow {
  transform: translateX(4px);
}

/* Individual Blog Post (/blog/:post_id) */
.blog-article-section {
  padding: 44px 0 70px;
}

.blog-article-container {
  max-width: 800px;
}

.blog-breadcrumb {
  margin-bottom: 24px;
}

.blog-breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.blog-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.blog-breadcrumb a:hover {
  color: var(--accent-warm);
}

.blog-breadcrumb li[aria-current="page"] {
  color: var(--text-main);
  font-weight: 700;
}

.blog-article-header {
  margin-bottom: 32px;
}

.blog-article-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.blog-article-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
  text-wrap: balance;
}

.blog-article-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.blog-article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.blog-article-byline .story-date {
  margin-bottom: 0;
}

.blog-byline-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.blog-cover-frame {
  border-radius: 26px;
  overflow: hidden;
  border: 6px solid #ffffff;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
  max-height: 400px;
}

.blog-cover-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 35%;
}

/* Editorial Prose Container */
.blog-prose {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 26px;
  padding: 42px 44px;
  box-shadow: var(--shadow-sm);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-main);
}

.blog-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: var(--text-main);
  margin: 34px 0 14px;
  line-height: 1.25;
  text-wrap: balance;
}

.blog-prose h2:first-child {
  margin-top: 0;
}

.blog-prose h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 26px 0 10px;
  line-height: 1.3;
}

.blog-prose p {
  margin-bottom: 18px;
  color: var(--text-main);
}

.blog-prose a {
  color: var(--accent-warm);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-prose a:hover {
  color: var(--text-main);
}

.blog-prose strong {
  font-weight: 700;
  color: var(--text-main);
}

.blog-prose em {
  font-style: italic;
}

.blog-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  padding: 2px 6px;
  border-radius: 6px;
}

.blog-code-block {
  background: #1c1b19;
  color: #f8f4ef;
  padding: 18px 22px;
  border-radius: 16px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.blog-code-block code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.blog-Callout {
  background: var(--bg-card-subtle);
  border-left: 4px solid var(--accent-warm);
  border-radius: 0 16px 16px 0;
  padding: 18px 22px;
  margin: 22px 0;
}

.blog-Callout p {
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.blog-Callout p:last-child {
  margin-bottom: 0;
}

.blog-list {
  margin: 14px 0 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-list li {
  padding-left: 4px;
}

.blog-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 16px;
  border: 1px solid var(--border-light);
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #ffffff;
}

.blog-table th,
.blog-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.blog-table th {
  background: var(--bg-card-subtle);
  font-weight: 700;
  color: var(--text-main);
}

.blog-table tr:last-child td {
  border-bottom: none;
}

.blog-divider {
  border: none;
  border-top: 1px dashed var(--border-dashed);
  margin: 32px 0;
}

.blog-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
}

.blog-related-section {
  border-top: 1px solid var(--border-light);
  padding-top: 64px;
}

@media (max-width: 760px) {
  .blog-prose {
    padding: 26px 22px;
  }

  .blog-cover-img {
    height: 240px;
  }
}

