/* Guides & FAQ Page Styles - Using Design System */
/* ===== EDITORIAL DESIGN TOKENS ===== */
/* Theatrical, cinematic aesthetic for actor-to-actor experience */

/* Base color palette (always available) */
body[data-page="guides-faq"] {
  /* Modern Dark Palette */

  /* Accent - Cool, modern, refined */

  /* Editorial borders and surfaces - Dark theme defaults */
  --surface-glass: rgba(255, 255, 255, 0.03);
  --surface-elevated: rgba(255, 255, 255, 0.05);

  /* Typography */

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-editorial: 0.4s var(--ease-out-expo);

  /* Theme-aware variables - Dark theme defaults */
  --bg-primary: var(--theatre-black);
  --bg-secondary: var(--theatre-charcoal);
  --bg-elevated: var(--theatre-slate);
  --text-primary: var(--theatre-cream);
  --text-secondary: var(--theatre-silver);
  --text-muted: var(--theatre-stone);
  --card-bg: var(--theatre-charcoal);
  --card-border: var(--border-subtle);
  
  /* Override default background for theatrical feel */
  background: var(--bg-primary) !important;
}

/* ===== LIGHT THEME OVERRIDES ===== */
[data-theme="light"] body[data-page="guides-faq"],
body[data-page="guides-faq"][data-theme="light"],
[data-theme="light"][data-page="guides-faq"] {
  /* Light theme color overrides */

  /* Light theme borders and surfaces */
  --surface-glass: rgba(0, 0, 0, 0.02);
  --surface-elevated: rgba(0, 0, 0, 0.04);

  /* Accent warm adjusted for light bg */

  /* Theme-aware variables - Light theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-elevated: #f0f0f2;
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.1);
  
  background: var(--bg-primary) !important;
}

.guides-faq-container {
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hero Section - Theatrical Theme */
.hero-section {
    background: linear-gradient(135deg, var(--theatre-charcoal) 0%, var(--theatre-slate) 50%, var(--theatre-charcoal) 100%);
    color: var(--text-primary);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-visible);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-warm-soft) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badges .badge {
    font-family: var(--font-body);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    background: var(--surface-elevated);
    border: 1px solid var(--border-visible);
    color: var(--text-secondary);
    transition: all var(--transition-editorial);
}

.hero-badges .badge:hover {
    border-color: var(--accent-warm);
    color: var(--text-primary);
}

/* Quick Navigation */
.quick-nav-section {
    background: var(--card-bg);
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: var(--navbar-height);
    z-index: 150; /* Ensure it sits below navbar */
    border-bottom: 1px solid var(--border-visible);
}

/* Collapsible behavior similar to unified header */
.quick-nav-section.is-collapsible { transition: transform 0.3s ease; }
@media (max-width: 1024px) {
  .quick-nav-section.is-collapsible.quick-nav-hidden {
    transform: translateY(calc(-100% + var(--header-peek-height, 14px)));
  }
}

.quick-nav-peek {
  --peek-size: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -16px;
  width: auto;
  height: 22px;
  border-radius: 11px;
  background: var(--card-bg);
  border: 1px solid var(--border-visible);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  cursor: pointer;
}

.quick-nav-peek .peek-label {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* Hide peek handle on desktop */
@media (min-width: 1025px) {
  .quick-nav-peek { display: none !important; }
}

.quick-nav-section .container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Prevent hairline gap between navbar and sticky bar due to subpixel rounding */
.quick-nav-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--card-bg);
}

.quick-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 0.5rem;
    transition: all var(--transition-editorial);
    min-width: 100px;
}

.nav-item:hover {
    background: var(--surface-elevated);
    color: var(--accent-warm);
    transform: translateY(-2px);
    text-decoration: none;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.nav-item span {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Guide Sections */
.guide-section {
    padding: 4rem 0;
    background: var(--card-bg);
    margin: 2rem 0;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--card-border);
    position: relative;
}

/* Subtle glass overlay on sections */
.guide-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.02) 0%,
        transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.section-header h2 i {
    color: var(--accent-warm);
    margin-right: 0.5rem;
}

.section-header p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Guide Steps */
.guide-steps {
    max-width: 800px;
    margin: 0 auto;
}

.guide-steps.guide-steps-mt {
    margin-top: 1rem;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 1rem;
    border-left: 4px solid var(--accent-warm);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--accent-warm);
    transition: all var(--transition-editorial);
}

.step:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.step-number {
    background: var(--accent-warm);
    color: var(--theatre-black);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-right: 2rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.step-content p {
    font-family: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.step-content a {
    color: var(--accent-warm);
    text-decoration: none;
    transition: color 0.2s ease;
}

.step-content a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.step-tips {
    background: var(--accent-warm-soft);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent-warm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.guide-note {
    background: var(--surface-elevated);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-visible);
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Guide Cards */
.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--card-border);
    transition: all var(--transition-editorial);
    position: relative;
}

/* Subtle glass overlay on cards */
.guide-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.02) 0%,
        transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-warm);
}

.guide-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.guide-card p {
    font-family: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.guide-card a {
    color: var(--accent-warm);
    text-decoration: none;
    transition: color 0.2s ease;
}

.guide-card a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.guide-card ul, .guide-card ol {
    padding-left: 1.5rem;
}

.guide-card li {
    font-family: var(--font-body);
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.parsing-tooltip {
    position: relative;
    display: inline-block;
    margin-top: var(--space-4);
}

.tooltip-trigger {
    color: var(--accent-warm);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    max-width: 90vw;
    background: var(--card-bg);
    border: 1px solid var(--border-visible);
    border-radius: 0.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-editorial);
    z-index: 1000;
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.6;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--border-visible);
}

.tooltip-content::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: var(--card-bg);
    margin-top: -1px;
}

.parsing-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.tooltip-content p {
    margin: 0;
    color: var(--text-primary);
}

.tooltip-content a {
    color: var(--accent-warm);
    text-decoration: underline;
}

.tooltip-content a:hover {
    color: var(--text-primary);
}

/* Controls Grid */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.control-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--surface-elevated);
    border-radius: 0.5rem;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-editorial);
}

.control-item:hover {
    border-color: var(--accent-warm);
    background: var(--surface-glass);
}

.control-item i {
    color: var(--accent-warm);
    font-size: 1.1rem;
    margin-right: 1rem;
}

.control-item span {
    font-family: var(--font-body);
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Mode Grid */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.mode-item {
    background: var(--surface-elevated);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: all var(--transition-editorial);
}

.mode-item:hover {
    border-color: var(--accent-warm);
}

.mode-item h4 {
    font-family: var(--font-display);
    color: var(--accent-warm);
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.mode-item p {
    font-family: var(--font-body);
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    background: var(--bg-primary);
    padding: 4rem 0;
    margin: 2rem 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all var(--transition-editorial);
}

.faq-item:hover {
    border-color: var(--accent-warm);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    transition: background-color 0.2s ease;
    user-select: none;
}

.faq-question:hover {
    background: var(--surface-elevated);
}

.faq-question h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.faq-question i {
    color: var(--accent-warm);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    font-family: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0 1.5rem;
    border-top: 1px solid transparent;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                padding-bottom 0.38s ease,
                border-color 0.2s ease;
}

.faq-answer p {
    margin: 1rem 0 0;
}

.faq-item.active .faq-answer {
    max-height: 1200px;
    padding-bottom: 1.5rem;
    border-top-color: var(--border-subtle);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Tips Section */
.tips-section {
    background: var(--card-bg);
    padding: 4rem 0;
    margin: 2rem 0;
    border-radius: 1rem;
    border: 1px solid var(--card-border);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tip-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 1rem;
    border: 1px solid var(--card-border);
    transition: all var(--transition-editorial);
    position: relative;
}

.tip-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.02) 0%,
        transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-warm);
}

.tip-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-warm) 0%, #8a7454 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.tip-icon i {
    font-size: 2rem;
    color: var(--theatre-black);
}

.tip-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.tip-card p {
    font-family: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, var(--theatre-charcoal) 0%, var(--theatre-slate) 50%, var(--theatre-charcoal) 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    border-top: 1px solid var(--border-visible);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-warm-soft) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.cta-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.cta-content .btn-primary {
    background: var(--theatre-cream);
    color: var(--theatre-black);
    border: none;
}

.cta-content .btn-primary:hover {
    background: var(--btn-theatre-primary-hover-bg);
    color: var(--btn-theatre-primary-hover-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--btn-theatre-primary-hover-shadow);
}

.cta-content .btn-secondary {
    background: transparent;
    color: var(--theatre-silver);
    border: 1px solid var(--border-visible);
}

.cta-content .btn-secondary:hover {
    background: var(--surface-elevated);
    color: var(--theatre-cream);
    border-color: var(--theatre-silver);
    text-decoration: none;
    transform: translateY(-1px);
}

.cta-content .btn i {
    font-size: 0.9em;
}

/* ═══════════════════════════════════════════════════════
   MOBILE / TABLET UX — ≤768px
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Hero ── */
    .hero-section {
        padding: 48px 0 32px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .hero-badges {
        gap: 0.5rem;
    }

    .hero-badges .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.65rem;
    }

    /* ── Quick nav → horizontal scroll pill strip ── */
    .quick-nav-section {
        padding: 0.5rem 0;
    }

    .quick-nav-section .container {
        padding: 0;
        max-width: 100%;
    }

    .quick-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 1rem 0.75rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .quick-nav::-webkit-scrollbar {
        display: none;
    }

    /* Pill-shaped chips inline */
    .nav-item {
        flex-shrink: 0;
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
        min-width: auto;
        padding: 0.45rem 0.875rem;
        border: 1px solid var(--border-visible);
        border-radius: 2rem;
        scroll-snap-align: start;
        transform: none; /* disable lift on touch */
    }

    .nav-item:hover {
        transform: none;
    }

    .nav-item i {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .nav-item span {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* ── Section spacing ── */
    .guide-section {
        padding: 2.5rem 0;
        margin: 0.75rem 0;
        border-radius: 0.75rem;
    }

    .faq-section {
        padding: 2.5rem 0;
        margin: 0.75rem 0;
    }

    .tips-section {
        padding: 2.5rem 0;
        margin: 0.75rem 0;
        border-radius: 0.75rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* ── Steps — keep horizontal, scale down number circle ── */
    .step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 1.25rem;
        gap: 1rem;
    }

    /* Disable the translateX lift — awkward on touch */
    .step:hover {
        transform: none;
        box-shadow: none;
    }

    .step-number {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 1.1rem;
        margin: 0;
    }

    .step-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .step-content p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* ── Guide cards ── */
    .guide-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .guide-card {
        padding: 1.25rem;
    }

    .guide-card h3 {
        font-size: 1.1rem;
    }

    /* ── Controls & modes ── */
    .controls-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* 2-column on mobile — fits more without wasted space */
    .mode-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .mode-item {
        padding: 1rem 0.75rem;
    }

    .mode-item h4 {
        font-size: 0.875rem;
    }

    .mode-item p {
        font-size: 0.8rem;
    }

    /* ── Tips — left-aligned on mobile, friendlier for reading ── */
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tip-card {
        padding: 1.5rem;
        text-align: left;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .tip-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
        margin: 0;
    }

    .tip-icon i {
        font-size: 1.4rem;
    }

    /* ── FAQ ── */
    .faq-question {
        padding: 1.1rem 1.25rem;
    }

    .faq-question h3 {
        font-size: 0.95rem;
    }

    .faq-answer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* ── CTA ── */
    .cta-section {
        padding: 3rem 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-content .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════
   SMALL PHONES — ≤480px
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {

    .hero-section {
        padding: 36px 0 24px;
    }

    /* Hide badges on small phones — too cramped */
    .hero-badges {
        display: none;
    }

    .guide-section,
    .tips-section {
        margin: 0.5rem 0;
        border-radius: 0.5rem;
    }

    .step {
        padding: 1rem;
        gap: 0.75rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.95rem;
    }

    .guide-card {
        padding: 1rem;
    }

    /* Stack modes to 1-col on very small screens */
    .mode-grid {
        grid-template-columns: 1fr;
    }

    /* Tip card — vertical on very small screens */
    .tip-card {
        flex-direction: column;
        padding: 1.25rem;
    }

    .tip-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .tip-icon i {
        font-size: 1.25rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-answer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-item:focus,
.faq-question:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print styles */
@media print {
    .quick-nav-section,
    .cta-section {
        display: none;
    }
    
    .guide-section,
    .faq-section,
    .tips-section {
        break-inside: avoid;
    }
}

/* Dark mode specific adjustments */
[data-theme="dark"] .step-tips {
    background: var(--accent-warm-soft);
    color: var(--text-primary);
}

[data-theme="dark"] .guide-card {
    background: var(--bg-primary);
}

[data-theme="dark"] .tip-card {
    background: var(--bg-primary);
}

[data-theme="dark"] .mode-item {
    background: var(--surface-elevated);
}

[data-theme="dark"] .control-item {
    background: var(--surface-elevated);
}

/* Light mode adjustments */
[data-theme="light"] .hero-section {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f2 50%, #f8f8f8 100%);
}

[data-theme="light"] .cta-section {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f2 50%, #f8f8f8 100%);
}

[data-theme="light"] .tip-icon {
    background: linear-gradient(135deg, #9a8563 0%, #7a6444 100%);
}