:root {
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #4b5563;
}

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

html {
    scroll-behavior: smooth;
}

/* German: hyphenate long compounds on narrow screens */
html[lang="de"] {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
}

html[lang="es"] {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
}

html[lang="zh-CN"] {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 中文 Hero：避免「国际音标」与「（IPA）」拆行；桌面端避免「的」等单字孤行 */
html[lang="zh-CN"] .hero h1 .hero-h1-zh-ipa {
    white-space: nowrap;
}
@media (max-width: 768px) {
    html[lang="zh-CN"] .hero h1 .hero-h1-zh-ipa {
        white-space: normal;
    }
}
@media (min-width: 769px) {
    html[lang="zh-CN"] .hero h1 {
        word-break: keep-all;
        overflow-wrap: normal;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #111827;
    background: #fafaf9;
}

html[lang="zh-CN"] body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #111827;
    padding: 1.5rem 0;
    box-shadow: 0 1px 0 #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}

.header-content > a {
    flex-shrink: 0;
    margin-right: 2.5rem;
}

nav {
    flex: 1;
    min-width: 0;
}

.header-cta {
    flex-shrink: 0;
    display: none;
}

@media (min-width: 769px) {
    .header-cta {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.65rem 1.4rem;
        background: #2563eb;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
        transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    }
    
    .header-cta svg {
        width: 20px;
        height: 20px;
    }
    
    .header-cta:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4);
    }
    
    .header-cta:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

/* Mobile menu toggle — hidden on desktop */
.nav-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.nav-menu-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.nav-menu-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.nav-menu-btn:focus:not(:focus-visible) {
    outline: none;
}

.nav-menu-icon {
    display: block;
}

@media (min-width: 769px) {
    .nav-menu-btn {
        display: none !important;
    }
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 0.9rem;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    outline: none;
    box-shadow: none;
}

.lang-dropdown-trigger:hover {
    color: #111827;
    background: #f9fafb;
    border-color: #9ca3af;
}

.lang-dropdown-trigger:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.lang-dropdown-trigger:focus:not(:focus-visible) {
    outline: none;
}

.lang-dropdown-trigger:active {
    outline: none;
}

.lang-chevron {
    font-size: 0.65em;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.lang-dropdown.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 150px;
    padding: 6px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 120;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 0.95em;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-dropdown-menu a:hover {
    background: #f3f4f6;
    color: #111827;
}

.lang-dropdown-menu a.active {
    color: #2563eb;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.06);
}

/* Marketing homepages (index*) & i18n doc pages: globe + chevron (desktop) / aligned icons (mobile) */
body.site-home .lang-dropdown-trigger,
body.site-header-i18n .lang-dropdown-trigger {
    position: relative;
}

/* Hide current-language label in trigger; rely on aria-label + menu for context */
body.site-home .lang-current,
body.site-header-i18n .lang-current {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.site-home .lang-globe-icon,
body.site-header-i18n .lang-globe-icon {
    display: inline-flex;
    flex-shrink: 0;
    vertical-align: middle;
    color: #374151;
}

@media (min-width: 769px) {
    body.site-home .lang-dropdown-trigger,
    body.site-header-i18n .lang-dropdown-trigger {
        gap: 6px;
        padding: 8px 12px;
    }

    body.site-home .lang-dropdown-trigger .lang-globe-icon,
    body.site-header-i18n .lang-dropdown-trigger .lang-globe-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    body.site-home .logo,
    body.site-header-i18n .logo {
        height: 40px;
        max-width: 140px;
    }

    body.site-home .lang-dropdown-trigger,
    body.site-header-i18n .lang-dropdown-trigger {
        border: none;
        background: transparent;
        padding: 0;
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
        gap: 0;
    }

    body.site-home .lang-dropdown-trigger:hover,
    body.site-header-i18n .lang-dropdown-trigger:hover {
        background: rgba(0, 0, 0, 0.05);
        border-color: transparent;
    }

    body.site-home .lang-dropdown-trigger .lang-globe-icon,
    body.site-header-i18n .lang-dropdown-trigger .lang-globe-icon {
        width: 24px;
        height: 24px;
    }

    body.site-home .lang-chevron,
    body.site-header-i18n .lang-chevron {
        display: none !important;
    }

    body.site-home .nav-menu-btn,
    body.site-header-i18n .nav-menu-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border: none;
        background: transparent;
    }

    body.site-home .nav-menu-btn:hover,
    body.site-header-i18n .nav-menu-btn:hover {
        background: rgba(0, 0, 0, 0.05);
        border: none;
    }

    body.site-home .nav-menu-icon,
    body.site-header-i18n .nav-menu-icon {
        width: 24px;
        height: 24px;
    }
}

/* Blog listing & posts (English only): compact row + hamburger, no language control */
@media (max-width: 768px) {
    body.site-blog-en .logo {
        height: 40px;
        max-width: 140px;
    }

    body.site-blog-en .nav-menu-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border: none;
        background: transparent;
    }

    body.site-blog-en .nav-menu-btn:hover {
        background: rgba(0, 0, 0, 0.05);
        border: none;
    }

    body.site-blog-en .nav-menu-icon {
        width: 24px;
        height: 24px;
    }
}

/* Blog posts: related reading (English blog pages) */
.related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e4;
}

.related-posts h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #1c1c1a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    display: block;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    background: #fdfdfc;
    border: 1px solid #e5e5e4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
    border-color: #d1d1cf;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Inside blog .article-wrap, generic `a` hover color must not tint card copy */
.article-wrap .related-card:hover,
.article-wrap .related-card:hover h4 {
    color: #1c1c1a;
}

.article-wrap .related-card:hover p {
    color: #6b6b64;
}

.related-card h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #1c1c1a;
    line-height: 1.4;
}

.related-card p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b6b64;
    line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
    .related-card {
        transition: none;
    }
}

.logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

nav {
    display: flex;
    align-items: center;
}

.nav-swipe-hint {
    display: none;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 2.5rem;
    margin: 0;
}

nav a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, transform 0.15s;
}

nav a:hover {
    color: #2563eb;
    transform: translateY(-1px);
}

.hero {
    position: relative;
    text-align: center;
    padding: 5rem 0 4.5rem;
    background: #fafaf9;
    overflow: hidden;
}

/* Soft blend into the white section below (home-summary) */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(3.5rem, 12vw, 5.5rem);
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        to bottom,
        rgba(250, 250, 249, 0) 0%,
        rgba(255, 255, 255, 0.35) 45%,
        #ffffff 100%
    );
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-left {
    order: 1;
}

.hero-right {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 3.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #111827;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero h2 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Hero: device compatibility badges (iPad / iPhone) */
.device-badge-container {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html[lang="zh-CN"] .device-badge-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.device-label {
    font-size: 0.85rem;
    color: #8b8b8b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

html[lang="zh-CN"] .device-label {
    text-transform: none;
    letter-spacing: 0.02em;
}

.badge-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.device-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    transition: background 0.2s ease, color 0.2s ease;
}

.device-badge:hover {
    background: rgba(0, 0, 0, 0.06);
}

.badge-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .device-badge-container {
        flex-direction: column;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (min-width: 769px) {
    .hero-left .device-badge-container {
        justify-content: flex-start;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0;
    background: transparent;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.btn-secondary:hover {
    color: #1d4ed8;
}

.hero-image {
    max-width: 100%;
    margin-top: 2rem;
    background: transparent;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
}

.hero-screenshot {
    width: 100%;
    max-width: min(360px, 92vw);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 14px;
    display: block;
    margin: 2rem auto 0 auto;
    background: transparent;
}

@media (min-width: 769px) {
    .hero {
        padding: 4.25rem 0 3.75rem;
    }

    .hero-inner {
        flex-direction: row;
        align-items: center;
        gap: clamp(2.25rem, 5vw, 4rem);
        text-align: left;
    }
    
    .hero-left {
        flex: 1 1 0;
        min-width: 0;
    }
    
    .hero-right {
        flex: 0 1 44%;
        max-width: 480px;
        min-width: 280px;
        align-items: center;
        margin-right: 0;
    }
    
    .hero-right .hero-image {
        margin-top: 0;
        width: 100%;
        max-width: min(460px, 100%);
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero h1 {
        margin-left: 0;
        margin-right: 0;
        max-width: 720px;
        margin-bottom: 1.25rem;
    }
    
    .hero h2 {
        margin-left: 0;
        margin-right: 0;
        max-width: 720px;
        margin-bottom: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: flex-start;
        margin-bottom: 2.5rem;
    }
    
    .hero-screenshot {
        margin: 0 auto;
        max-width: min(460px, 100%);
        border-radius: 16px;
        box-shadow: none;
    }
    
}

@media (min-width: 1100px) {
    .hero-right {
        max-width: 520px;
    }
    .hero-right .hero-image {
        max-width: min(500px, 100%);
    }
    .hero-screenshot {
        max-width: min(500px, 100%);
    }
}

/* Home summary — editorial block, visually separate from hero (not SaaS cards) */
.home-summary {
    background: #fff;
    padding: clamp(2.25rem, 4vw, 3.25rem) 0 clamp(2.75rem, 5vw, 3.75rem);
    border-top: none;
    border-bottom: 1px solid #f6f6f4;
}

.home-summary-inner {
    max-width: 820px;
}

.summary-lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #374151;
    margin: 0 0 1.75rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}

.summary-lead strong {
    color: #111827;
    font-weight: 600;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 1.5rem;
}

.summary-col {
    padding: 1.25rem 0;
}

.summary-col + .summary-col {
    border-top: 1px solid #f3f4f6;
}

.summary-col-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 0.65rem 0;
}

.summary-list {
    margin: 0;
    padding-left: 1.15rem;
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.summary-list li + li {
    margin-top: 0.35rem;
}

.summary-note {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6b7280;
    text-align: left;
    padding-top: 0.25rem;
    border-top: 1px solid #f3f4f6;
}

@media (min-width: 640px) {
    .summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0 2.5rem;
        margin-bottom: 1.5rem;
    }

    .summary-col {
        padding: 0.25rem 0 0 0;
    }

    .summary-col + .summary-col {
        border-top: none;
        border-left: 1px solid #e5e7eb;
        padding-left: 2.5rem;
    }
}

.cmu-credit {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #4b5563;
    text-align: center;
}

.cmu-credit a {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s;
}

.cmu-credit a:hover {
    color: #1d4ed8;
}

.feature-detail-link {
    color: #2563eb;
    text-decoration: underline;
}

.feature-detail-link:hover {
    color: #1d4ed8;
}

.app-store-badge {
    display: inline-block;
    height: 60px;
    width: auto;
    transition: opacity 0.2s;
}

.app-store-badge:hover {
    opacity: 0.9;
}

.app-store-badge img {
    height: 100%;
    width: auto;
    display: block;
}

/* Pro formatter demo — formatting modes (hero → features) */
.pro-demo-section {
    padding: 80px 20px;
    background: #fff;
    border-bottom: 1px solid #f6f6f4;
}
.pro-demo-wrap {
    max-width: 950px;
    margin: 0 auto;
}
.pro-demo-intro {
    text-align: center;
    margin-bottom: 40px;
}
.pro-demo-intro h2 {
    font-size: 2rem;
    font-weight:700;
    color: #1c1c19;
    margin: 0 0 10px 0;
}
.pro-demo-intro p {
    margin: 0;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.5;
}
.pro-demo-card {
    background: #fff;
    border: 1px solid #e5e5e0;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.pro-demo-toolbar {
    padding: 20px;
    background: #fcfcfb;
    border-bottom: 1px solid #f0f0ee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.pro-demo-layout-toggle {
    display: flex;
    background: #eee;
    padding: 4px;
    border-radius: 12px;
    width: fit-content;
    max-width: 100%;
}
.pro-demo-layout-btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.pro-demo-layout-btn.is-active {
    background: #fff;
    color: #1c1c19;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.pro-demo-layout-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.pro-demo-delimiters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #444;
}
.pro-demo-bracket-row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pro-demo-bracket-input {
    width: 28px;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f3f3f3;
    font-weight: 700;
    font-size: 13px;
    color: #374151;
}
.pro-demo-bracket-mid {
    line-height: 28px;
    color: #999;
    font-size: 13px;
    user-select: none;
}
.pro-demo-output {
    padding: 30px;
    min-height: 300px;
    background: #fff;
    font-family: 'Charis SIL', 'Times New Roman', 'Liberation Serif', serif;
    overflow-y: auto;
}
.pro-demo-out-block {
    margin-bottom: 25px;
}
.pro-demo-out-block:last-child {
    margin-bottom: 0;
}
.pro-demo-out-en {
    margin: 0 0 8px 0;
    color: #1c1c19;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
}
.pro-demo-out-ipa {
    margin: 0;
    color: #2563eb;
    font-size: 19px;
    letter-spacing: 0.02em;
    line-height: 1.65;
}
.pro-demo-wbw-section {
    margin-bottom: 30px;
}
.pro-demo-wbw-head {
    margin: 0 0 15px 0;
    font-weight: 700;
    color: #1c1c19;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
.pro-demo-wbw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 17px;
}
.pro-demo-wbw-table td {
    padding: 4px 0;
    vertical-align: top;
}
.pro-demo-wbw-td-en {
    color: #666;
    width: 120px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.pro-demo-wbw-td-ipa {
    color: #2563eb;
}
.pro-demo-wbw-note {
    font-size: 13px;
    color: #999;
    margin: 10px 0 0 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.pro-demo-actions {
    padding: 20px;
    background: #fafaf9;
    border-top: 1px solid #f0f0ee;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.pro-demo-actions-hint {
    margin-right: auto;
    color: #999;
    font-size: 13px;
    line-height: 1.4;
}
.pro-demo-actions button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pro-demo-btn-secondary {
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
}
.pro-demo-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
.pro-demo-btn-primary {
    border: none;
    background: #2563eb;
    color: #fff;
}
.pro-demo-btn-primary:hover {
    background: #1d4ed8;
}
.pro-demo-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
@media (max-width: 640px) {
    .pro-demo-section {
        padding: 56px 16px;
    }
    .pro-demo-intro h2 {
        font-size: 1.55rem;
    }
    .pro-demo-layout-toggle {
        width: 100%;
    }
    .pro-demo-layout-btn {
        flex: 1;
        text-align: center;
    }
    .pro-demo-actions-hint {
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
    .pro-demo-actions {
        justify-content: center;
    }
}

.features {
    background: #fff;
}

.features .container {
    max-width: 48rem;
}

.section {
    padding: 80px 0;
}
.section-alt {
    background: #f9fafb;
}
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px auto;
}
.section-header h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}
.section-header p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    font-size: 1.05rem;
}
.section-header p + p {
    margin-top: 1rem;
}
.section-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 60px auto;
    max-width: 1000px;
}
.section-cta {
    text-align: center;
    margin-top: 2rem;
}
.section-cta .app-store-badge {
    display: inline-block;
}
@media (max-width: 768px) {
    .section {
        padding: 48px 0;
    }
    .section-header {
        margin-bottom: 32px;
    }
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    align-items: stretch;
}
.feature-card {
    background: #fff;
    padding: 26px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}
.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    line-height: 1.35;
}
.feature-card h3 a {
    color: inherit;
    text-decoration: none;
}
.feature-card h3 a:hover {
    text-decoration: underline;
}
.feature-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}
.feature-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.feature-card-more {
    margin-top: auto;
    padding-top: 0.75rem;
    margin-bottom: 0 !important;
}
@media (max-width: 480px) {
    .feature-card h3 {
        font-size: 1.05rem;
    }
}
.feature-card p {
    font-size: 0.9375rem;
    color: #4b5563;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
    max-width: 260px;
}
.feature-card-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}
.feature-card-link:hover {
    color: #1d4ed8;
}
.feature-learn-more {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.feature-learn-more:hover {
    color: #1d4ed8;
}

.how-it-works .section-content {
    max-width: 640px;
    margin: 0 auto;
}
.how-it-works-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}
.how-it-works-steps {
    margin: 0;
    padding-left: 1.5rem;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
}
.how-it-works-steps li {
    margin-bottom: 0.75rem;
}
.how-it-works-steps li:last-child {
    margin-bottom: 0;
}
.how-it-works-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 1.5rem;
    background: linear-gradient(to bottom, #fdfdfd, #ffffff);
    border-radius: 24px;
    border: 1px dashed #d1d5db;
}
.cta-content-box {
    max-width: 420px;
    margin: 0 auto;
}
.cta-mini-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2563eb;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}
.cta-main-text {
    font-size: 1.25rem;
    color: #111827;
    margin: 0 0 2rem 0;
    font-weight: 500;
    line-height: 1.4;
}
.btn-cta-pill {
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}
.btn-cta-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}
.btn-cta-pill:active {
    transform: scale(0.98);
}
.btn-cta-pill svg {
    flex-shrink: 0;
    vertical-align: middle;
}
.btn-cta-pill .cta-label-short {
    display: none;
}
.how-it-works-cta-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    gap: 0.35rem;
}
.cta-note-icon {
    flex-shrink: 0;
    stroke: #10b981;
}
@media (max-width: 768px) {
    .btn-cta-pill {
        display: inline-flex;
        min-width: 200px;
        justify-content: center;
    }
    .how-it-works-cta-note {
        margin-top: 1rem;
    }
}
@media (max-width: 480px) {
    .cta-main-text {
        font-size: 1.15rem;
    }
    .btn-cta-pill .cta-label-long {
        display: none;
    }
    .btn-cta-pill .cta-label-short {
        display: inline;
    }
    .btn-cta-pill {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
    .how-it-works-cta {
        margin-top: 2rem;
        padding: 2rem 1rem;
    }
}

.feature-video {
    text-align: center;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-video .phone-frame {
    padding: 12px 10px 14px;
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 28px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: inline-block;
}

.feature-video video {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 14px;
    display: block;
    background: #000;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.feature-item {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-title-row h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
    color: #111827;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    max-width: 48rem;
    margin: 0;
}
.feature-description p {
    margin: 0 0 0.75rem 0;
}
.feature-description p:last-child {
    margin-bottom: 0;
}

#core-capabilities .section-header {
    max-width: none;
}
#core-capabilities h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem 0;
    color: #111827;
    scroll-margin-top: 5.5rem;
}
#core-capabilities h3:not(:first-of-type) {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e5e7eb;
}
#core-capabilities > .container > p {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin: 0 0 0.75rem 0;
    max-width: none;
}
#core-capabilities > .container > p:last-of-type {
    margin-bottom: 0;
}

.pricing {
    padding: 4.5rem 0;
    background: #fafaf9;
}

.pricing h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: #111827;
    font-weight: 700;
}

.pricing-table-wrapper {
    max-width: 900px;
    margin: 3rem auto;
}
.pricing-swipe-hint {
    display: none;
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
    margin: 0 0 0.5rem 0;
}
.pricing-table-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.pricing-table-footer {
    background: #fff;
    color: #111827;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    gap: 2rem;
    align-items: center;
    border-top: 1px solid #e5e7eb;
}

.pricing-table-footer > * {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-footer-label {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    justify-content: flex-start;
}

.pricing-footer-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    text-align: center;
}

.pricing-footer-price-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.pricing-footer-price-note {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

.pricing-footer-price.pro-price {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.pro-price .pricing-footer-price-value {
    color: #2563eb;
    font-size: 2rem;
    font-weight: 700;
}
.pro-price .pricing-footer-price-note {
    background: #2563eb;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 15px;
}

.pricing-table th,
.pricing-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table thead {
    background: #f9fafb;
    color: #111827;
}

.pricing-table thead th {
    font-weight: 600;
    text-align: center;
}

.pricing-table th {
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.pricing-table th:first-child,
.pricing-table .plan-label {
    text-align: left;
}

.pricing-table th:first-child {
    width: 200px;
    min-width: 200px;
}

.pricing-table th.free-col,
.pricing-table th.pro-col {
    width: auto;
}

.pricing-table th.pro-col {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[lang="zh-CN"] .pricing-table th.pro-col {
    flex-direction: row;
    gap: 0.15rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

html[lang="zh-CN"] .pricing-table th.pro-col .pro-col-subtitle {
    font-size: 1em;
    font-weight: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.pricing-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.pricing-table tbody tr:last-child {
    font-weight: 600;
}

.pricing-table tbody tr:last-child td {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.pricing-table td {
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.pricing-table td:first-child,
.feature-name {
    text-align: left;
    color: var(--text-primary);
}

.pricing-table td:first-child {
    font-weight: 500;
}

.value {
    text-align: center;
    color: var(--text-secondary);
}

.pricing-table td.free-col {
    color: var(--text-secondary);
}

.pricing-table td.pro-col,
.pricing-table th.pro-col,
.pro-col {
    color: #111827;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.03);
}

.price-row td {
    border-top: 1.5px solid var(--text-primary);
    font-weight: 600;
}

.price-value {
    font-size: 16px;
    color: var(--text-primary);
}

.price-note {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 4px;
}

.pricing-cta {
    text-align: center;
    margin-top: 3rem;
}

.universal-footer {
    max-width: 900px;
    margin: 1rem auto 0 auto;
    padding: 12px;
    background-color: #f9f9f8;
    border-radius: 8px;
    border: 1px solid #e5e5e0;
    text-align: center;
    box-sizing: border-box;
}

.universal-footer p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
}

.universal-footer strong {
    color: #111827;
    font-weight: 600;
}

.btn-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-upgrade:hover {
    background: #1d4ed8;
}

.btn-upgrade svg {
    width: 24px;
    height: 24px;
}

.faq {
    background: #fff;
    padding: 4rem 0;
}
.faq .container {
    max-width: 48rem;
}
.faq h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2rem 0;
    text-align: center;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}
.faq-item p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}
.faq-item p + p {
    margin-top: 0.75rem;
}

.blog-highlights {
    padding: 4rem 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}
.blog-highlights-inner {
    max-width: 800px;
}
.blog-highlights h2 {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}
.blog-highlights-intro {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.6;
}
.blog-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.blog-highlight-card {
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
}
.blog-highlight-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}
.blog-highlight-card p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}
.blog-highlight-card a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-highlight-card a:hover {
    color: #1d4ed8;
}
.blog-highlight-card .blog-highlight-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0.65rem 0 0 0;
    line-height: 1.45;
}
.blog-highlights-all {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
}
.blog-highlights-all a {
    color: #4b5563;
    text-decoration: underline;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.blog-highlights-all a:hover {
    color: #111827;
}

.who-is-it-for {
    padding: 4rem 0;
    background: #fff;
}
.who-is-it-for-inner {
    max-width: 900px;
    text-align: center;
}
.who-is-it-for h2 {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    color: #111827;
}
.who-is-it-for-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.who-is-it-for-card h4 {
    color: #2563eb;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}
.who-is-it-for-card p {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.developer-note {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}
.developer-note p {
    color: #6b7280;
    font-style: italic;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

footer {
    background: #f3f4f6;
    color: #374151;
    padding: 4rem 0 3rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #2563eb;
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1d4ed8;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.8;
    margin: 0;
}

footer a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #1d4ed8;
}

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

    .logo {
        height: 48px;
        max-width: 160px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }

    header {
        position: relative;
    }
    
    .header-content {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        position: relative;
    }
    
    .header-content > a {
        margin-right: 0;
        flex: 0 1 auto;
        min-width: 0;
        display: flex;
        justify-content: flex-start;
    }
    
    .header-content > a img,
    .header-content .logo-text {
        margin-left: 0;
        margin-right: 0;
    }
    
    .primary-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        flex: none;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.3s ease, visibility 0.3s ease;
        z-index: 110;
    }

    .primary-navigation.is-open {
        max-height: min(70vh, 420px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        visibility: visible;
    }
    
    .primary-navigation .nav-scroll-wrap {
        overflow: visible;
        margin: 0;
        padding: 0.5rem 0 0.75rem;
    }

    .nav-swipe-hint {
        display: none;
    }
    
    .primary-navigation ul {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .primary-navigation ul li a {
        display: block;
        font-size: 1rem;
        padding: 0.85rem 0.25rem;
        white-space: normal;
        border-bottom: 1px solid #f3f4f6;
        transform: none;
    }

    .primary-navigation ul li:last-child a {
        border-bottom: none;
    }
    
    .header-cta {
        display: none;
    }
    
    .header-actions {
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
        flex-shrink: 0;
        gap: 0.45rem;
        padding: 0;
    }

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

    /* Pages without mobile hamburger (until migrated): keep scrollable nav row */
    header nav:not(.primary-navigation) {
        order: 3;
        width: 100%;
        flex: 1 1 100%;
        position: relative;
        margin-top: 0.25rem;
        margin-right: -20px;
    }

    header nav:not(.primary-navigation) .nav-scroll-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 -1rem;
        padding: 0.35rem 1rem 0.4rem 0;
    }

    header nav:not(.primary-navigation) .nav-scroll-wrap::-webkit-scrollbar {
        display: none;
    }

    header nav:not(.primary-navigation)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.98), transparent);
        pointer-events: none;
        z-index: 1;
    }

    header nav:not(.primary-navigation) ul {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        gap: 1.25rem;
        margin: 0;
        padding: 0 56px 0 0;
        list-style: none;
    }

    header nav:not(.primary-navigation) ul li {
        flex-shrink: 0;
    }

    header nav:not(.primary-navigation) ul li a {
        display: block;
        font-size: 1rem;
        padding: 0.35rem 0.15rem;
        white-space: nowrap;
    }

    .header-content:has(nav:not(.primary-navigation)) {
        flex-wrap: wrap;
        gap: 0.5rem 0;
    }

    .header-content:has(nav:not(.primary-navigation)) > a {
        flex: 0 0 100%;
        justify-content: center;
    }

    .header-content:has(nav:not(.primary-navigation)) > a img,
    .header-content:has(nav:not(.primary-navigation)) .logo-text {
        margin-left: auto;
        margin-right: auto;
    }

    .header-content:has(nav:not(.primary-navigation)) .header-actions {
        order: 2;
        width: 100%;
        justify-content: flex-end;
        padding: 0 0.25rem 0.35rem 0;
    }
    
    .hero {
        padding: 3rem 0 3rem;
    }
    
    .hero-buttons {
        margin-bottom: 1.5rem;
    }
    
    .hero-image {
        margin-top: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.75rem;
        max-width: 100%;
        padding: 0 1rem;
        text-wrap: balance;
        -webkit-text-wrap: balance;
    }
    
    .hero h1 br {
        display: none;
    }
    
    .hero h2 {
        font-size: 1.05rem;
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        min-height: 48px;
    }
    
    .hero-buttons .app-store-badge {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-buttons .app-store-badge img {
        max-height: 56px;
        width: auto;
    }
    
    .btn-secondary {
        width: auto;
        max-width: 200px;
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
        justify-content: center;
        align-self: center;
    }
    
    .app-store-badge {
        height: 56px;
    }
    
    .hero-screenshot {
        max-width: min(340px, 90vw);
    }
    
    .pricing-table-wrapper {
        margin: 2rem 1rem;
        position: relative;
    }
    .pricing-swipe-hint {
        display: block;
        margin-bottom: 1rem;
    }
    .pricing-table-container {
        margin: 0;
        border-radius: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .pricing-table th:first-child,
    .pricing-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background: #fff;
        box-shadow: 2px 0 6px rgba(0,0,0,0.06);
    }
    .pricing-table thead th:first-child {
        background: #f9fafb;
    }
    .pricing-table td.pro-col,
    .pricing-table th.pro-col,
    .pro-col {
        background: rgba(37, 99, 235, 0.05);
    }
    .pricing-table-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 28px;
        pointer-events: none;
        background: linear-gradient(to left, rgba(0,0,0,0.04), transparent);
        border-radius: 0 8px 8px 0;
    }
    
    /* 覆盖 colgroup 的 42%，否则首列会按百分比变宽 */
    .pricing-table col:first-child {
        width: 76px !important;
        min-width: 76px !important;
    }
    .pricing-table {
        min-width: 480px;
    }
    
    .pricing-table th {
        padding: 1rem 0.5rem;
        font-size: 1.1rem;
    }
    
    /* 首列 76px：保证标签可读，第二、三列仍可滑动完整查看 */
    .pricing-table th:first-child,
    .pricing-table td:first-child {
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        font-size: 0.8rem;
        line-height: 1.3;
        padding: 0.55rem 0.35rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .pricing-table th:first-child {
        padding: 0.55rem 0.35rem;
    }
    
    .pricing-table th.free-col,
    .pricing-table th.pro-col {
        width: auto;
        min-width: 100px;
    }
    
    .pricing-table th.pro-col {
        flex-direction: row;
        font-size: 1.1rem;
    }
    
    .pricing-table-footer {
        display: grid;
        grid-template-columns: 76px 1fr 1fr;
        gap: 0.5rem;
        padding: 1.25rem 1rem;
        min-width: 480px;
    }
    
    .pricing-footer-label {
        text-align: left;
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }
    
    .pricing-footer-price {
        padding: 0.5rem 0;
    }
    
    .pricing-footer-price-value {
        font-size: 1.4rem;
    }
    
    .pricing-footer-price-note {
        font-size: 0.75rem;
    }
    
    .pricing-table td {
        padding: 0.85rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .pricing-table td:first-child {
        padding: 0.55rem 0.35rem;
    }
    
    .pricing-table td.free-col,
    .pricing-table td.pro-col {
        white-space: normal;
        min-width: 100px;
    }
    
    footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-links {
        margin-bottom: 1rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .pricing-table col:first-child {
        width: 76px !important;
        min-width: 76px !important;
    }
    .pricing-table th:first-child,
    .pricing-table td:first-child {
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
    }
    .pricing-table .price-row td {
        padding-top: 1rem;
    }
    .pro-price .pricing-footer-price-value {
        font-size: 1.25rem !important;
    }
}

/* Section scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal .feature-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-reveal.is-visible .feature-item {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal .feature-item:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal .feature-item:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal .feature-item:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal .feature-item:nth-child(4) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal .feature-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-reveal.is-visible .feature-item {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Legal pages (privacy, terms) — was inline in English HTML; shared by all locales
   -------------------------------------------------------------------------- */
.page-content {
    max-width: 48rem;
    margin: 0 auto;
    padding: 4rem 0;
}

.page-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.page-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-content p {
    color: #374151;
    margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
    margin: 0 0 1rem 1.5rem;
    color: #374151;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.page-content a:hover {
    color: #1d4ed8;
}

.page-content code {
    font-size: 0.95em;
    background: #f3f4f6;
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

.last-updated {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .page-content {
        padding: 2.5rem 0;
    }

    .page-content h1 {
        font-size: 1.875rem;
    }
}

/* --------------------------------------------------------------------------
   Support page (body.support-page)
   -------------------------------------------------------------------------- */
.support-page .page-title {
    background: #fafaf9;
    padding: 3rem 0 2rem;
    margin-bottom: 0;
}

.support-page .page-title h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.support-page .page-title .subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    margin: 0;
}

.support-page .anchor-nav {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    margin: 0 0 2rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.support-page .anchor-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.support-page .anchor-nav ul::-webkit-scrollbar {
    display: none;
}

.support-page .anchor-nav a {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.support-page .anchor-nav a:hover {
    color: #1d4ed8;
}

.support-page .content {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 0 4rem;
}

/* Override marketing `.section { padding: 80px 0 }` — support docs use same class name */
.support-page .section {
    scroll-margin-top: 100px;
    padding: 0;
}

.support-page .content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.support-page .content h3.subsection {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0;
    background: none;
    border-radius: 0;
    cursor: default;
    display: block;
}

.support-page .content h3:not(.subsection) {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.25rem;
    margin-bottom: 0;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.support-page .content h3:not(.subsection):hover {
    background: #f3f4f6;
}

.support-page .content h3 .toggle-icon {
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.support-page .content h3.expanded .toggle-icon {
    transform: rotate(180deg);
}

.support-page .faq-answer {
    display: none;
    padding: 1rem 1rem 0.5rem;
    color: #374151;
    line-height: 1.7;
}

.support-page .faq-answer.expanded {
    display: block;
}

.support-page .faq-answer ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.support-page .content p,
.support-page .faq-answer p {
    color: #374151;
    margin-bottom: 1rem;
}

.support-page .content ul,
.support-page .content ol {
    margin: 0 0 1rem 1.5rem;
    color: #374151;
}

.support-page .content li {
    margin-bottom: 0.5rem;
}

.support-page .content a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.support-page .content a:hover {
    color: #1d4ed8;
}

.support-page .contact-box {
    background: #f0f9ff;
    border-left: 3px solid #2563eb;
    padding: 1.5rem 1.5rem 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.support-page .contact-box a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.support-page .contact-box a:hover {
    color: #1d4ed8;
}

.support-page .contact-button {
    display: inline-block;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    transition: background 0.2s;
}

.support-page .contact-button:hover,
.support-page .contact-button:focus {
    background: #1d4ed8;
    color: #fff !important;
}

.support-page .format-note {
    background: #fffbeb;
    border-left: 3px solid #e5e7eb;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    color: #374151;
}

@media (max-width: 768px) {
    .support-page .page-title {
        padding: 2rem 0 1.5rem;
    }

    .support-page .page-title h1 {
        font-size: 1.875rem;
    }

    .support-page .anchor-nav {
        margin-bottom: 1.5rem;
    }

    .support-page .anchor-nav ul {
        justify-content: flex-start;
        padding: 0.5rem 1rem;
    }

    .support-page .content {
        padding-bottom: 2.5rem;
    }

    .support-page .content h2 {
        margin-top: 2rem;
        font-size: 1.25rem;
    }

    .support-page .content h3:not(.subsection) {
        font-size: 1rem;
        padding: 0.65rem 0.75rem;
    }

    .support-page .contact-box {
        padding: 1.25rem;
    }

    .support-page .contact-button {
        width: 100%;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Blogs listing (body.blogs-page) — English-only; no lang switcher in header
   -------------------------------------------------------------------------- */
.blogs-page .page-title {
    background: #fafaf9;
    padding: 3rem 0 2rem;
    margin-bottom: 0;
}

.blogs-page .page-title h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.blogs-page .page-title .subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    margin: 0;
}

.blogs-page .blog-list {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 0 4rem;
}

.blogs-page .blog-card {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.blogs-page .blog-card:first-of-type {
    padding-top: 2.5rem;
}

.blogs-page .blog-card:last-of-type {
    border-bottom: none;
}

.blogs-page .blog-card h2 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.blogs-page .blog-lang-tag {
    display: inline-block;
    margin-right: 0.35rem;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #64748b;
    vertical-align: 0.08em;
}

.blogs-page .blog-card h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blogs-page .blog-card h2 a:hover {
    color: #2563eb;
}

.blogs-page .blog-card .date {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.blogs-page .blog-card .excerpt {
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.blogs-page .blog-card .read-more {
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.blogs-page .blog-card .read-more:hover {
    color: #1d4ed8;
}

@media (max-width: 768px) {
    .blogs-page .page-title {
        padding: 2rem 0 1.5rem;
    }

    .blogs-page .page-title h1 {
        font-size: 1.875rem;
    }

    .blogs-page .blog-card {
        padding: 1.5rem 0;
    }
}