/* Chrome-specific font rendering fixes */
@supports (-webkit-mask: none) and (not (-webkit-backdrop-filter: blur(1px))) {
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-weight: 400;
        font-synthesis: none;
    }
    
    h1, h2, h3, h4 {
        font-weight: 600 !important;
        font-synthesis: none;
    }
    
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: var(--canvas);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 20px 60px color-mix(in srgb, var(--ink) 8%, transparent);
    overflow: hidden;
}

/* ---------------------------------------------------------------------------
   Hero. Slogan and the button. It has to hold up on a 390px phone and on a
   2560px monitor where the card used to be mostly empty.
   --------------------------------------------------------------------------- */

.hero {
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid var(--border);
    padding: 40px 40px;
    text-align: center;
}

/* The page's own wordmark. The site header carries a small one too, but this is the h1 the
   page is actually about, and the slogan under it is what turns it into a hero rather than
   a band with nothing in it. */
.hero-wordmark {
    color: var(--ink);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 10px;
}

.hero-line {
    color: var(--text-muted);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 auto;
    max-width: 620px;
    text-wrap: balance;
}

.hero .back-btn {
    margin-top: 32px;
}

@media (max-width: 720px) {
    .hero {
        padding: 28px 24px 32px;
    }

    .hero-wordmark {
        font-size: 26px;
    }

    .hero-line {
        font-size: 19px;
    }

    .hero .back-btn {
        margin-top: 24px;
    }
}

@media (max-width: 380px) {
    .hero {
        padding: 24px 16px 28px;
    }

    .hero-wordmark {
        font-size: 24px;
    }

    .hero-line {
        font-size: 18px;
    }
}

/* How It Works (collapsed table of contents) */
.toc-section {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.toc-summary {
    padding: 20px 40px;
    cursor: pointer;
    list-style: none;
    color: var(--brand);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    user-select: none;
}

.toc-summary::-webkit-details-marker {
    display: none;
}

.toc-summary::after {
    content: '▾';
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.toc-section[open] .toc-summary::after {
    transform: rotate(-180deg);
}

.toc-summary:hover {
    background: var(--brand-soft);
}

.toc-title {
    color: var(--brand);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    padding: 8px 40px 32px;
}

.toc-item {
    background: var(--surface);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--brand) 8%, transparent), 0 1.5px 4px color-mix(in srgb, var(--ink) 4%, transparent);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(.4,0,.2,1);
}

.toc-item:hover, .toc-item:focus-visible {
    box-shadow: 0 8px 32px color-mix(in srgb, var(--brand) 15%, transparent), 0 2px 8px color-mix(in srgb, var(--ink) 6%, transparent);
    border-color: var(--brand);
    background: var(--brand-soft);
    transform: translateY(-2px) scale(1.02);
    transition: all 0.18s cubic-bezier(.4,0,.2,1);
}

.toc-item h4 {
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    transition: color 0.3s ease;
}

.toc-item.active h4 {
    color: var(--brand);
}

.toc-item p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    transition: color 0.3s ease;
}

.toc-item.active p {
    color: var(--brand);
}

/* Content sections - collapsible */
.content-section {
    padding: 40px;
    border-bottom: 1px solid var(--canvas);
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.content-section.active {
    display: block;
}

.content-section:first-of-type {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--brand);
}

.section-header::before {
    display: none;
}

.section-icon {
    font-size: 32px;
    background: var(--brand);
    color: var(--surface);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header h2 {
    color: var(--brand);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.subsection {
    margin-bottom: 32px;
}

.subsection h3 {
    color: var(--ink);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subsection h4 {
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 12px 0;
}

.subsection p {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Mode explanations */
.mode-explanation {
    background: var(--surface);
    border: 3px solid var(--brand);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--brand) 10%, transparent);
}

.mode-explanation.waitlist-mode {
    border-color: var(--warning);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--warning) 10%, transparent);
}

.mode-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mode-header h4 {
    color: var(--brand);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.mode-explanation.waitlist-mode .mode-header h4 {
    color: var(--warning);
}

.mode-icon {
    font-size: 24px;
}

/* Step lists */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding: 20px;
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    border-radius: 12px;
    border-left: 4px solid var(--ink);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 8%, transparent);
}

.step-number {
    background: var(--ink);
    color: var(--surface);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
}

.step-text strong {
    color: var(--brand);
    font-weight: 700;
}

/* First Come First Serve Mode Styling */
.mode-flow-section.fcfs-mode .steps-list li {
    border-left-color: var(--brand);
}

.mode-flow-section.fcfs-mode .step-number {
    background: var(--brand);
}

.mode-flow-section.fcfs-mode .step-text strong {
    color: var(--brand);
}

/* Waitlist Mode Styling */
.mode-flow-section.waitlist-mode .steps-list li {
    border-left-color: var(--warning);
}

.mode-flow-section.waitlist-mode .step-number {
    background: var(--warning);
}

.mode-flow-section.waitlist-mode .step-text strong {
    color: var(--warning);
}

/* Management Link Section Styling */
.management-flow-section[style*="border-color: var(--ink)"] .steps-list li {
    border-left-color: var(--ink);
}

.management-flow-section[style*="border-color: var(--ink)"] .step-number {
    background: var(--ink);
}

.management-flow-section[style*="border-color: var(--ink)"] .step-text strong {
    color: var(--ink);
}

/* Make waitlist mode steps orange */
.mode-flow-section.waitlist-mode .steps-list li {
    border-left-color: var(--warning);
}

.mode-flow-section.waitlist-mode .step-number {
    background: var(--warning);
}

.mode-flow-section.waitlist-mode .step-text strong {
    color: var(--warning);
}

/* SMS Examples */
.sms-examples {
    background: var(--canvas);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

/* Management Flow Sections */
.management-flow-section {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--ink) 6%, transparent);
}

.management-flow-section.fcfs-management {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.management-flow-section.waitlist-management {
    border-color: var(--warning);
    background: var(--warning-soft);
}

.management-flow-section.universal-management {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.management-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.management-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface);
    font-weight: bold;
}

.management-flow-section.fcfs-management .management-icon {
    background: var(--brand);
}

.management-flow-section.waitlist-management .management-icon {
    background: var(--warning);
}

.management-flow-section.universal-management .management-icon {
    background: var(--brand);
}

.management-title {
    flex: 1;
}

.management-title h3 {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
}

.management-flow-section.fcfs-management .management-title h3 {
    color: var(--brand);
}

.management-flow-section.waitlist-management .management-title h3 {
    color: var(--warning);
}

.management-flow-section.universal-management .management-title h3 {
    color: var(--brand);
}

.management-description {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
    color: var(--ink);
}

.management-steps {
    margin-top: 24px;
}

.management-step {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

/* Mode Explanation Sections */
.mode-flow-section {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--ink) 6%, transparent);
}

.mode-flow-section.fcfs-mode {
    border-color: var(--brand-hover);
    background: var(--brand-soft);
}

.mode-flow-section.waitlist-mode {
    border-color: var(--warning);
    background: var(--warning-soft);
}

.mode-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.mode-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface);
    font-weight: bold;
}

.mode-flow-section.fcfs-mode .mode-icon {
    background: var(--brand);
}

.mode-flow-section.waitlist-mode .mode-icon {
    background: var(--warning);
}

.mode-title {
    flex: 1;
}

.mode-title h4 {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
}

.mode-flow-section.fcfs-mode .mode-title h4 {
    color: var(--brand);
}

.mode-flow-section.waitlist-mode .mode-title h4 {
    color: var(--warning);
}

.mode-steps {
    margin-top: 24px;
}

.mode-step {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

/* Creation Flow Sections */
.creation-flow-section {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--ink) 6%, transparent);
}

.creation-flow-section.fcfs-creation {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.creation-flow-section.waitlist-creation {
    border-color: var(--warning);
    background: var(--warning-soft);
}

.creation-flow-section.universal-creation {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.creation-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.creation-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface);
    font-weight: bold;
}

.creation-flow-section.fcfs-creation .creation-icon {
    background: var(--brand);
}

.creation-flow-section.waitlist-creation .creation-icon {
    background: var(--warning);
}

.creation-flow-section.universal-creation .creation-icon {
    background: var(--brand);
}

.creation-title {
    flex: 1;
}

.creation-title h3 {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
}

.creation-flow-section.fcfs-creation .creation-title h3 {
    color: var(--brand);
}

.creation-flow-section.waitlist-creation .creation-title h3 {
    color: var(--warning);
}

.creation-flow-section.universal-creation .creation-title h3 {
    color: var(--brand);
}

.creation-steps {
    margin-top: 24px;
}

.creation-step {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

/* FAQ Flow Sections */
.faq-flow-section {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--ink) 6%, transparent);
}

.faq-flow-section.setup-faq {
    border-color: var(--warning);
    background: var(--warning-soft);
}

.faq-flow-section.management-faq {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.faq-flow-section.troubleshooting-faq {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.faq-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface);
    font-weight: bold;
}

.faq-flow-section.setup-faq .faq-icon {
    background: var(--warning);
}

.faq-flow-section.management-faq .faq-icon {
    background: var(--brand);
}

.faq-flow-section.troubleshooting-faq .faq-icon {
    background: var(--danger);
}

.faq-title {
    flex: 1;
}

.faq-title h3 {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
}

.faq-flow-section.setup-faq .faq-title h3 {
    color: var(--warning);
}

.faq-flow-section.management-faq .faq-title h3 {
    color: var(--brand);
}

.faq-flow-section.troubleshooting-faq .faq-title h3 {
    color: var(--danger);
}

.faq-steps {
    margin-top: 24px;
}

.faq-step {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.faq-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* FAQ-specific styling */
.faq-question {
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.faq-answer {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    margin-left: 0;
}

.faq-answer strong {
    color: var(--ink);
    font-weight: 600;
}

.faq-answer ul, .faq-answer ol {
    margin: 12px 0 0 20px;
    color: var(--ink);
    line-height: 1.6;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* FAQ-specific step styling */
.faq-flow-section .steps-list li {
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    border-left-color: var(--brand);
}

.faq-flow-section.setup-faq .steps-list li {
    border-left-color: var(--warning);
}

.faq-flow-section.management-faq .steps-list li {
    border-left-color: var(--brand);
}

.faq-flow-section.troubleshooting-faq .steps-list li {
    border-left-color: var(--danger);
}

.faq-flow-section .step-number {
    background: var(--brand);
}

.faq-flow-section.setup-faq .step-number {
    background: var(--warning);
}

.faq-flow-section.management-faq .step-number {
    background: var(--brand);
}

.faq-flow-section.troubleshooting-faq .step-number {
    background: var(--danger);
}

.faq-flow-section .step-text strong {
    color: var(--brand);
}

.faq-flow-section.setup-faq .step-text strong {
    color: var(--warning);
}

.faq-flow-section.management-faq .step-text strong {
    color: var(--brand);
}

.faq-flow-section.troubleshooting-faq .step-text strong {
    color: var(--danger);
}

.sms-examples h4 {
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    text-align: center;
}

.sms-example {
    background: var(--border);
    color: var(--ink);
    padding: 14px 18px;
    border-radius: 18px;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    max-width: 85%;
    margin-left: 0;
    margin-right: auto;
    position: relative;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 10%, transparent);
}

.sms-example::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: var(--border);
    border-left: 0;
    border-bottom-left-radius: 4px;
    margin-right: -8px;
    margin-bottom: -8px;
}

.sms-example:last-child {
    margin-bottom: 0;
}

.sms-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    margin-left: 18px;
}

/* Received SMS (green bubbles for organizer notifications) */
.sms-example.received {
    background: var(--brand);
    margin-left: 0;
    margin-right: auto;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 30%, transparent);
}

.sms-example.received::after {
    right: auto;
    left: -8px;
    border-bottom-color: var(--brand);
    border-right: 8px solid transparent;
    border-left: 0;
    border-bottom-left-radius: 4px;
    margin-left: 0;
    margin-right: -8px;
}

.sms-example.received + .sms-label {
    text-align: left;
    margin-left: 18px;
    margin-right: 0;
}

/* Screenshots/Interface examples */
.interface-example {
    background: var(--canvas);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--ink) 6%, transparent);
}

.interface-example h4 {
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    text-align: center;
}

.mock-interface {
    background: var(--surface);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px color-mix(in srgb, var(--ink) 12%, transparent);
    max-width: 400px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.mock-spots-full {
    background: var(--warning);
    color: var(--surface);
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 16px;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--warning) 30%, transparent);
}

/* Highlight boxes */
.highlight-box {
    background: var(--brand-soft);
    border: 2px solid var(--brand);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.highlight-box.success {
    background: var(--brand-soft);
    border-color: var(--brand);
}

.highlight-box.warning {
    background: var(--warning-soft);
    border-color: var(--warning);
}

.highlight-box h4 {
    color: var(--brand);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.highlight-box.success h4 {
    color: var(--brand);
}

.highlight-box.warning h4 {
    color: var(--warning);
}

.highlight-box p {
    color: var(--brand);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.highlight-box.success p {
    color: var(--brand);
}

.highlight-box.warning p {
    color: var(--warning);
}

/* Back to create button */
.back-to-create {
    text-align: center;
    padding: 40px;
    background: var(--canvas);
}

.back-btn {
    display: inline-block;
    background: var(--brand);
    color: var(--surface);
    padding: 18px 36px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--brand) 30%, transparent);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--surface);
    transition: left 0.5s;
}

.back-btn:hover {
    background: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--brand) 40%, transparent);
}

.back-btn:hover::before {
    left: 100%;
}

.back-text {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
        margin: 0;
    }

    .container {
        border-radius: 16px;
        box-shadow: none;
        margin: 0;
    }

    .toc-section,
    .content-section {
        padding: 24px;
    }

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

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 24px 16px 16px 16px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .mode-explanation {
        padding: 20px;
    }

    .mode-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .back-to-create {
        padding: 32px 24px;
    }

    /* Mobile-specific interface examples */
    .interface-example {
        padding: 0;
        margin: 8px -4px;
    }

    .mock-interface {
        max-width: 100%;
    }

    /* Mobile step list adjustments */
    .steps-list li {
        padding: 16px;
        margin-bottom: 12px;
    }

    .step-text {
        font-size: 15px;
    }

    /* Mobile flow sections - extend to edges */
    .sms-flow-section,
    .management-flow-section,
    .mode-flow-section,
    .creation-flow-section,
    .player-flow-section,
    .faq-flow-section {
        border-radius: 0;
        margin: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
        padding: 24px 16px;
    }

    /* Mobile content sections - no padding */
    .content-section {
        padding: 0;
    }

    .toc-section {
        padding: 24px 0;
    }

    .subsection {
        padding: 24px;
        margin-bottom: 0;
    }

    .flow-header,
    .management-header,
    .mode-header,
    .creation-header,
    .player-header,
    .faq-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .flow-icon,
    .management-icon,
    .mode-icon,
    .creation-icon,
    .player-icon,
    .faq-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .flow-title h3,
    .management-title h3,
    .mode-title h4,
    .creation-title h3,
    .player-title h3,
    .faq-title h3 {
        font-size: 20px;
    }

    .flow-description,
    .management-description,
    .mode-subtitle,
    .creation-description,
    .player-description,
    .faq-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .container {
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }

    .toc-section {
        padding: 20px 0;
    }

    .toc-grid {
        padding: 0 16px;
    }

    .subsection {
        padding: 20px 16px;
    }
}

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

.content-section {
    scroll-margin-top: 20px;
}

.section-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 48px 0 0 0;
}
.section-nav-btn {
  background: var(--brand);
  color: var(--surface);
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--brand) 18%, transparent);
  transition: background 0.2s, transform 0.2s;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.5px;
  min-width: 220px;
  flex: 1 1 0;
  max-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-nav-btn.close {
  background: var(--surface);
}
.section-nav-btn:hover {
  background: var(--brand);
  transform: translateY(-2px) scale(1.03);
}
.section-nav-btn.close:hover {
  background: var(--surface);
}
@media (max-width: 600px) {
  .section-nav-buttons {
    flex-direction: column;
    gap: 12px;
    margin: 32px 0 0 0;
    padding: 0 16px;
  }
  .section-nav-btn {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    font-size: 17px;
    padding: 16px 0;
  }
}
