/* OnUtil - Design System */

:root {
    --bg: #FAFAF9;
    --surface: #FFF;
    --surface-2: #F5F4F0;
    --surface-3: #ECEAE4;
    --border: #E5E3DE;
    --border-focus: #0F766E;
    --text: #1C1917;
    --text-2: #57534E;
    --text-3: #A8A29E;
    --text-muted: #57534E;
    --text-dim: #A8A29E;
    --accent: #0F766E;
    --accent-hover: #0D9488;
    --accent-soft: rgba(15,118,110,0.07);
    --accent-glow: rgba(15,118,110,0.12);
    --green: #16A34A;
    --green-soft: rgba(22,163,74,0.08);
    --orange: #EA580C;
    --orange-soft: rgba(234,88,12,0.08);
    --red: #DC2626;
    --red-soft: rgba(220,38,38,0.08);
    --blue: #2563EB;
    --blue-soft: rgba(37,99,235,0.08);
    --purple: #7C3AED;
    --purple-soft: rgba(124,58,237,0.08);
    --yellow: #CA8A04;
    --yellow-soft: rgba(202,138,4,0.08);
    --radius: 10px;
    --radius-lg: 14px;
    --font: 'DM Sans', sans-serif;
    --display: 'Instrument Serif', Georgia, serif;
    --mono: 'JetBrains Mono', monospace;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.07);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.page-outer {
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.sidebar-ad {
    width: 160px;
    flex-shrink: 0;
    padding: 100px 12px 40px;
}

.sidebar-ad-inner {
    position: sticky;
    top: 24px;
    background: var(--surface-2);
    border-radius: var(--radius);
    padding: 16px 8px;
    text-align: center;
    color: var(--text-3);
    font-size: 11px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-wrapper {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 20px;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: white;
}

.logo-text {
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: flex;
    gap: 2px;
    background: var(--surface-2);
    border-radius: 7px;
    padding: 2px;
}

.lang-btn {
    padding: 4px 10px;
    border: none;
    background: none;
    color: var(--text-3);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 5px;
    transition: color 0.15s, background 0.15s;
}

.lang-btn.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

/* Ad Slots */
.ad-slot {
    background: var(--surface-2);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    color: var(--text-3);
    font-size: 12px;
    margin-bottom: 32px;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--surface-2);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 16px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--display);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero p {
    color: var(--text-2);
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Section Title */
.section-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .icon { font-size: 18px; }

/* Related Tools */
.related-section { margin-top: 48px; }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s;
}

.tool-link:hover { border-color: var(--text-3); }

.tool-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    font-family: var(--mono);
}

.tool-link-text { font-size: 13px; font-weight: 500; }

/* SEO Content */
.seo-content {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.seo-content h2 {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 12px;
    margin-top: 32px;
}

.seo-content h2:first-child { margin-top: 0; }

.seo-content p {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.seo-content strong { color: var(--text); }

/* FAQ */
.faq-section { margin-top: 40px; }

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.faq-question {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-question::after {
    content: '+';
    font-size: 18px;
    color: var(--text-3);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 10px;
}

/* Footer */
.site-footer {
    margin-top: 64px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-3);
    font-size: 12px;
}

.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

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

/* Common Form Elements */
.divider { height: 1px; background: var(--border); }

/* Responsive */
@media (max-width: 1200px) { .sidebar-ad { display: none; } }

@media (max-width: 600px) {
    .hero h1 { font-size: 28px; }
    .page-wrapper { padding: 16px 16px 60px; }
    .tools-grid { grid-template-columns: 1fr; }
}
