/* AudioTools.dev — shared look ("Signal path"): design tokens, type, site nav and footer,
   tool header and panel. Tool-specific layout stays in each page's own <style>. */

:root {
    color-scheme: only light; /* light design only: opt out of browsers' automatic dark mode */
    --bg: #EEF1F0;          /* page ground: cool light grey */
    --surface: #FFFFFF;     /* panels and cards */
    --surface2: #F5F7F6;    /* insets: drop zones, waveforms */
    --border: #D5DAD8;      /* quiet lines */
    --ink: #15191C;         /* text and strong outlines */
    --text: #15191C;
    --text2: #4A5257;
    --accent: #2346F5;      /* cobalt: the one accent */
    --accent2: #1D3BD1;     /* links */
    --green: #2346F5;       /* legacy name used by pages for the primary accent */
    --green2: #1A36C9;
    --cyan: #0E7490;
    --orange: #B45309;
    --red: #C62828;
    --radius: 14px;
    --chrome-width: 1240px;
}

body { font-family: 'Archivo', system-ui, sans-serif; }
html[lang^="zh"] body { font-family: 'Archivo', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; }
h1, h2 { font-stretch: 115%; letter-spacing: -0.015em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* waveform glyph strokes (logo, tool headers) */
.g-ink { stroke: var(--ink); }
.g-acc { stroke: var(--accent); }
.g-faint { stroke: var(--ink); stroke-opacity: 0.22; }

/* ---------- nav ---------- */
.at-nav { border-bottom: 1.5px solid var(--ink); padding: 16px 24px; background: var(--bg); }
.at-nav-inner { max-width: var(--chrome-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 32px; }
.at-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; font-stretch: 125%; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.at-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.at-nav-links a { color: var(--ink); text-decoration: none; font-size: 15px; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.at-nav-links a:hover { color: var(--accent); }
.at-nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); }
.at-nav-links .at-lang { font-size: 13px; padding: 3px 10px; border: 1.5px solid var(--ink); border-radius: 999px; }

/* ---------- footer ---------- */
.at-footer { background: var(--ink); color: #D9DEDC; margin-top: 64px; padding: 40px 24px 48px; font-size: 14px; }
.at-footer-inner { max-width: var(--chrome-width); margin: 0 auto; display: grid; gap: 16px; }
.at-footer p { margin: 0; color: #D9DEDC; }
.at-footer a { color: #FFFFFF; text-decoration: none; }
.at-footer a:hover { text-decoration: underline; }
.at-footer-tools, .at-footer-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.at-footer-tools { font-weight: 600; padding-bottom: 16px; border-bottom: 1px solid #3A4146; }
.at-footer-meta a { color: #D9DEDC; }
.at-footer .at-support { color: #A9BBFF; font-weight: 600; }

@media (max-width: 600px) {
    .at-nav-links { gap: 6px 18px; }
}

/* ---------- tool pages: header ---------- */
.hero { text-align: left; padding: 52px 0 32px; }
.hero-glyph { display: block; width: 150px; height: 44px; margin-bottom: 16px; fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; font-stretch: 125%; letter-spacing: -0.025em; line-height: 1; margin: 0 0 14px; color: var(--ink); }
.hero h1 em { font-style: normal; color: inherit; }
.hero p { color: var(--text2); font-size: 18px; max-width: 620px; margin: 0; }

/* ---------- tool pages: the working panel ---------- */
.tool-area { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }

/* ---------- tool pages: result — format choice and next steps ---------- */
.out-format { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0; font-size: 14px; color: var(--text2); }
.out-format select { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; min-height: 40px; }
.next-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--text2); }
.next-actions a { padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; background: var(--surface); }
.next-actions a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- tool pages: below the panel (how it works, formats, features, explanations, FAQ) ---------- */
.privacy-badge { display: inline-flex; margin-top: 20px; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); }
.how-it-works, .formats-section, .features, .seo-content, .faq { margin: 56px 0 0; }
.how-it-works h2, .formats-section h2, .seo-content h2, .faq h2 { margin: 0 0 18px; font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--ink); }

/* steps and features: one ink-outlined block, cells split by ink rules */
.steps, .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.features { grid-template-columns: 1fr 1fr; }
.step, .feature { background: var(--surface); padding: 20px; text-align: left; }
.step-num { margin-bottom: 8px; font-size: 14px; font-weight: 800; color: var(--accent); }
.step-title, .feature-title { margin-bottom: 4px; font-size: 16px; font-weight: 700; color: var(--ink); }
.step-desc, .feature-desc { font-size: 14px; color: var(--text2); }

.formats-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.formats-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text2); background: var(--surface2); border-bottom: 1.5px solid var(--ink); }
.formats-table td { padding: 11px 16px; border-top: 1px solid var(--border); }
.formats-table tr:first-child td { border-top: 0; }
.formats-table .check { color: var(--accent); font-weight: 700; }

.seo-content h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 700; color: var(--ink); }
.seo-content p, .seo-content li { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--text2); }
.seo-content ul { margin: 0 0 12px; padding-left: 20px; }

.faq-item { padding: 18px 0; border-top: 1.5px solid var(--ink); }
.faq-item:last-child { border-bottom: 1.5px solid var(--ink); }
.faq-q { margin-bottom: 6px; font-size: 17px; font-weight: 700; color: var(--ink); }
.faq-a { font-size: 15px; line-height: 1.6; color: var(--text2); }

.seo-content a, .faq-a a, .formats-section a { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 600px) {
    .steps, .features { grid-template-columns: 1fr; }
}
