:root {
  --bg: #f8f9fd;
  --surface: #ffffff;
  --surface-2: #f2f3fb;
  --text: #17192b;
  --muted: #686b82;
  --line: #e7e8f0;
  --primary: #5b5cf0;
  --primary-2: #7a5af8;
  --accent: #eef0ff;
  --success: #168e5f;
  --warning: #b26a00;
  --shadow: 0 18px 45px rgba(34, 36, 74, .10);
  --radius: 22px;
  --max: 1240px;
}

[data-theme="dark"] {
  --bg: #10111c;
  --surface: #181a29;
  --surface-2: #202234;
  --text: #f7f7fb;
  --muted: #a9acc0;
  --line: #2e3044;
  --accent: #252747;
  --shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.section-shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.announcement { background: linear-gradient(90deg, #5354e8, #7657ed); color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.site-header-wrap { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.site-header { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; min-height: 76px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { width: 38px; height: 38px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; padding: 7px; border-radius: 12px; background: linear-gradient(145deg, var(--primary), var(--primary-2)); box-shadow: 0 9px 22px rgba(91, 92, 240, .28); transform: rotate(-5deg); }
.brand-mark span { background: #fff; border-radius: 3px; }
.brand-copy { font-size: 20px; letter-spacing: -.04em; white-space: nowrap; }
.brand-copy strong, .brand-copy b { font-weight: 800; }
.brand-copy b { color: var(--primary); }
.desktop-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 28px); font-size: 13px; font-weight: 760; color: var(--muted); white-space: nowrap; }
.desktop-nav a { padding: 11px 0; position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 2px; border-radius: 2px; background: var(--primary); transition: right .2s ease; }
.desktop-nav a:hover { color: var(--primary); }
.desktop-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex: 0 0 auto; }
.icon-button, .menu-button, .search-trigger, .language-button { height: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; }
.icon-button, .menu-button, .search-trigger { width: 40px; display: grid; place-items: center; }
.menu-button { display: none; }
.header-search { position: relative; width: 152px; height: 40px; display: flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; transition: width .2s ease, box-shadow .2s ease, border-color .2s ease; }
.header-search:focus-within { width: 210px; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,92,240,.10); }
.search-trigger { flex: 0 0 39px; border: 0; background: transparent; font-size: 23px; color: var(--primary); transform: rotate(-20deg); }
.header-search input { width: 100%; min-width: 0; padding: 0 10px 0 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.search-results { position: absolute; z-index: 90; top: calc(100% + 9px); right: 0; width: min(370px, calc(100vw - 32px)); max-height: 430px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); text-align: left; }
.search-result { width: 100%; display: flex; align-items: center; gap: 11px; border: 0; background: transparent; color: var(--text); border-radius: 12px; padding: 10px; text-align: left; }
.search-result:hover { background: var(--surface-2); }
.search-result strong { display: block; font-size: 13px; }
.search-result small { color: var(--muted); display: block; font-size: 11px; }
.language-switcher { height: 40px; display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
.language-button { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; font-size: 18px; filter: saturate(.72); opacity: .66; }
.language-button:hover, .language-button.active { background: var(--accent); filter: none; opacity: 1; }
.language-button img { width: 24px; height: 16px; display: block; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15,23,42,.10); }

.mobile-nav { display: none; }

.hero { padding: 84px 0 58px; text-align: center; position: relative; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(91,92,240,.17), transparent 66%); top: -155px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.hero > * { position: relative; }
.hero-badge, .eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero-badge { background: var(--accent); border: 1px solid rgba(91,92,240,.13); border-radius: 999px; padding: 8px 13px; letter-spacing: .04em; text-transform: none; }
.hero h1 { margin: 22px 0 16px; font-size: clamp(44px, 6.6vw, 76px); line-height: 1.03; letter-spacing: -.065em; }
.hero h1 .hero-accent { color: var(--primary); }
.hero > p { max-width: 760px; margin: 0 auto 28px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.primary-hero-button, .secondary-hero-button { min-height: 48px; border-radius: 14px; padding: 13px 18px; font-weight: 830; border: 1px solid transparent; }
.primary-hero-button { background: var(--primary); color: #fff; box-shadow: 0 12px 24px rgba(91,92,240,.24); }
.secondary-hero-button { color: var(--text); background: var(--surface); border-color: var(--line); }
.hero-pills { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-pills button { border: 1px solid var(--line); color: var(--muted); background: var(--surface); padding: 8px 12px; border-radius: 999px; font-size: 12px; }
.hero-pills button:hover { color: var(--primary); border-color: var(--primary); }
.trust-strip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: 0 10px 32px rgba(29,31,65,.05); }
.trust-strip div { padding: 4px 22px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 11px; align-items: center; }
.trust-strip div + div { border-left: 1px solid var(--line); }
.trust-strip span { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); }
.trust-strip strong { font-size: 14px; }
.trust-strip small { color: var(--muted); font-size: 12px; }
.tools-section, .category-section { padding: 94px 0 38px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-heading h2, .how-copy h2, .cta-section h2 { margin: 7px 0 7px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.045em; line-height: 1.08; }
.section-heading p, .how-copy > p, .cta-section p { margin: 0; color: var(--muted); }
.section-heading > a { color: var(--primary); font-weight: 800; font-size: 14px; }
.section-heading.centered { text-align: center; justify-content: center; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-card { min-height: 226px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 21px; display: flex; flex-direction: column; text-align: left; color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative; overflow: hidden; }
.tool-card::after { content: "→"; position: absolute; right: 20px; bottom: 18px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); transition: .2s ease; }
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(91,92,240,.3); }
.tool-card:hover::after { background: var(--primary); color: #fff; transform: translateX(3px); }
.tool-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--tool-bg, var(--accent)); color: var(--tool-color, var(--primary)); font-size: 21px; font-weight: 900; margin-bottom: 25px; }
.tool-icon.large { width: 60px; height: 60px; flex: 0 0 auto; margin: 0; font-size: 25px; }
.tool-card h3 { margin: 0 0 7px; font-size: 17px; letter-spacing: -.02em; }
.tool-card p { color: var(--muted); margin: 0 0 28px; font-size: 13px; }
.tool-card small { margin-top: auto; color: var(--primary); font-weight: 800; font-size: 10px; text-transform: uppercase; letter-spacing: .065em; padding-right: 40px; }
.ad-slot { min-height: 150px; margin-top: 58px; border: 1px dashed #c8cad9; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); background: linear-gradient(135deg, transparent, rgba(91,92,240,.03)); text-align: center; }
.ad-slot span { font-size: 9px; letter-spacing: .16em; }
.ad-slot strong { color: var(--text); margin-top: 7px; font-size: 14px; }
.ad-slot small { margin-top: 4px; }
.category-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 0 0 26px; }
.category-tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 10px 15px; border-radius: 999px; font-weight: 750; font-size: 13px; }
.category-tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 8px 18px rgba(91,92,240,.22); }
.how-section { margin-top: 90px; background: var(--surface); border-block: 1px solid var(--line); }
.how-layout { padding: 90px 0; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 95px; }
.step-list { margin-top: 28px; display: grid; gap: 13px; }
.step-list div { display: flex; gap: 13px; align-items: center; }
.step-list > div > span { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; color: var(--primary); background: var(--accent); font-weight: 900; }
.step-list p { margin: 0; color: var(--muted); }
.step-list strong { color: var(--text); }
.finance-preview { border: 1px solid var(--line); border-radius: 24px; background: var(--surface-2); box-shadow: var(--shadow); overflow: hidden; transform: rotate(1.4deg); }
.preview-toolbar { height: 44px; display: flex; gap: 6px; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.preview-toolbar i { width: 9px; height: 9px; border-radius: 50%; background: #d3d5df; }
.preview-toolbar span { margin-left: auto; margin-right: auto; color: var(--muted); font-size: 11px; }
.finance-preview-content { padding: 30px; }
.preview-kicker { color: var(--primary); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.finance-preview h3 { margin: 5px 0 18px; font-size: 25px; }
.mock-field { display: flex; align-items: center; justify-content: space-between; padding: 12px 13px; margin-top: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.mock-field small, .mock-total small { color: var(--muted); }
.mock-chart { height: 105px; display: flex; align-items: end; gap: 8px; margin: 24px 0 16px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.mock-chart span { flex: 1; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, var(--primary-2), var(--primary)); }
.mock-chart span:nth-child(1) { height: 27%; }.mock-chart span:nth-child(2) { height: 36%; }.mock-chart span:nth-child(3) { height: 49%; }.mock-chart span:nth-child(4) { height: 63%; }.mock-chart span:nth-child(5) { height: 78%; }.mock-chart span:nth-child(6) { height: 96%; }
.mock-total { display: flex; justify-content: space-between; align-items: end; padding-top: 4px; }
.mock-total strong { color: var(--primary); font-size: 21px; }
.cta-section { margin-top: 90px; margin-bottom: 90px; border-radius: 28px; padding: 54px; background: linear-gradient(135deg, #5152df, #7656ec); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; box-shadow: 0 22px 54px rgba(80,81,224,.25); }
.cta-section .eyebrow.light, .cta-section p { color: rgba(255,255,255,.75); }
.cta-section h2 { max-width: 620px; }
.cta-section a { flex: 0 0 auto; background: #fff; color: #4f50d7; padding: 14px 18px; border-radius: 13px; font-weight: 850; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { padding: 62px 0 40px; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
.footer-grid p { color: var(--muted); max-width: 340px; font-size: 14px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.footer-grid > div:not(:first-child) strong { color: var(--text); margin-bottom: 4px; }
.footer-bottom { padding: 18px 0 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12,13,24,.72); backdrop-filter: blur(7px); }
.modal-panel { position: relative; width: min(800px, 100%); max-height: min(900px, calc(100vh - 40px)); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.modal-close { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 12px; font-size: 22px; }
.modal-heading { display: flex; align-items: center; gap: 17px; padding-right: 40px; margin-bottom: 28px; }
.modal-heading h2 { margin: 3px 0 2px; font-size: 26px; letter-spacing: -.04em; }
.modal-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.workspace { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 800; font-size: 13px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 13px; padding: 13px 14px; outline: 0; }
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,92,240,.1); }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field-grid.three { grid-template-columns: repeat(3, 1fr); }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.action-row label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.primary-button, .secondary-button { border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 850; }
.primary-button { background: var(--primary); color: #fff; }
.secondary-button { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
.result-box { border: 1px solid var(--line); background: var(--surface-2); border-radius: 15px; padding: 16px; }
.result-box > strong { display: block; margin-bottom: 6px; }
.result-value { font-size: 28px; color: var(--primary); font-weight: 900; overflow-wrap: anywhere; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.result-item { padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.result-item small { display: block; color: var(--muted); margin-bottom: 3px; }
.result-item strong { display: block; font-size: 16px; }
.result-item.featured { background: var(--accent); border-color: rgba(91,92,240,.18); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.metric { background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 13px; }
.metric strong { display: block; font-size: 22px; }
.metric small { color: var(--muted); }
.drop-input { border: 1px dashed #b8bad0; background: var(--surface-2); border-radius: 16px; min-height: 170px; display: grid; place-items: center; text-align: center; padding: 18px; }
.drop-input input { max-width: 100%; }
.image-preview { max-width: 100%; max-height: 320px; display: block; margin: 0 auto; border-radius: 14px; }
.file-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; }
.calculation-note { color: var(--muted); font-size: 11px; margin: 0; }
.status-success { color: var(--success); }
.status-warning { color: var(--warning); }
.tool-note { margin-top: 24px; padding: 13px 15px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 13px; color: var(--muted); font-size: 12px; }
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; }
.toast { background: #1f2131; color: #fff; border-radius: 12px; padding: 11px 14px; box-shadow: var(--shadow); animation: toastIn .2s ease; font-size: 13px; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1120px) {
  .site-header { gap: 15px; }
  .desktop-nav { gap: 15px; font-size: 12px; }
  .header-search { width: 42px; }
  .header-search input { opacity: 0; padding: 0; pointer-events: none; }
  .header-search:focus-within, .header-search.open { width: 190px; }
  .header-search:focus-within input, .header-search.open input { opacity: 1; padding-right: 9px; pointer-events: auto; }
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; }
  .mobile-nav { position: fixed; z-index: 70; left: 16px; right: 16px; top: 122px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); }
  .mobile-nav.open { display: grid; }
  .mobile-nav a { padding: 11px; border-radius: 10px; font-weight: 700; }
  .mobile-nav a:hover { background: var(--surface-2); color: var(--primary); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip div:nth-child(3) { border-left: 0; }
  .trust-strip div:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 14px; }
  .how-layout { gap: 50px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { display: none; }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; gap: 8px; }
  .brand-copy { display: none; }
  .header-actions { margin-left: auto; }
  .language-switcher { gap: 1px; }
  .language-button { width: 28px; font-size: 16px; }
  .icon-button, .menu-button, .search-trigger { width: 38px; height: 38px; }
  .header-search { height: 38px; }
  .header-search.open, .header-search:focus-within { position: absolute; top: 62px; left: 16px; right: 16px; width: auto; box-shadow: var(--shadow); }
  .header-search.open input, .header-search:focus-within input { opacity: 1; pointer-events: auto; }
  .mobile-nav { top: 109px; }
  .hero { padding-top: 54px; }
  .hero h1 { font-size: 43px; }
  .hero > p { font-size: 16px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { padding: 12px 6px; }
  .trust-strip div + div { border-left: 0; border-top: 1px solid var(--line); margin-top: 0; }
  .tools-section, .category-section { padding-top: 72px; }
  .section-heading { align-items: start; }
  .section-heading > a { display: none; }
  .how-layout { grid-template-columns: 1fr; }
  .finance-preview { max-width: 520px; }
  .cta-section { padding: 36px 26px; align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .field-grid, .field-grid.three { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .announcement { font-size: 10px; }
  .section-shell { width: min(calc(100% - 22px), var(--max)); }
  .language-switcher { padding: 2px; }
  .language-button { width: 25px; font-size: 15px; }
  .hero h1 { font-size: 37px; }
  .hero-actions { display: grid; }
  .primary-hero-button, .secondary-hero-button { width: 100%; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 188px; }
  .modal { padding: 10px; }
  .modal-panel { padding: 24px 18px; border-radius: 20px; }
  .modal-heading { align-items: flex-start; }
  .modal-heading .tool-icon { display: none; }
  .result-grid { grid-template-columns: 1fr; }
}

/* SEO content and new image tools */
.tool-card { text-align: left; }
.seo-content { padding-top: 92px; }
.seo-intro { max-width: 820px; margin: 0 auto 34px; text-align: center; }
.seo-intro p { color: var(--muted); font-size: 16px; line-height: 1.75; }
.seo-link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.seo-link-grid a { display: grid; gap: 7px; padding: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.seo-link-grid a:hover { transform: translateY(-3px); border-color: rgba(91,92,240,.4); box-shadow: var(--shadow); }
.seo-link-grid strong { color: var(--text); }
.seo-link-grid span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.faq-block { max-width: 860px; margin: 60px auto 0; }
.faq-block h2 { text-align: center; margin-bottom: 24px; }
.faq-block details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 18px; margin-top: 10px; }
.faq-block summary { cursor: pointer; padding: 17px 0; font-weight: 800; color: var(--text); }
.faq-block p { color: var(--muted); line-height: 1.65; padding: 0 0 17px; margin: 0; }
.checkerboard { background-color: #fff; background-image: linear-gradient(45deg,#e9e9ef 25%,transparent 25%),linear-gradient(-45deg,#e9e9ef 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9e9ef 75%),linear-gradient(-45deg,transparent 75%,#e9e9ef 75%); background-size: 22px 22px; background-position: 0 0,0 11px,11px -11px,-11px 0; border: 1px solid var(--line); border-radius: 15px; overflow: auto; }
.canvas-preview { min-height: 170px; display: grid; place-items: center; padding: 10px; }
.canvas-preview canvas { max-width: 100%; max-height: 430px; cursor: crosshair; border-radius: 8px; }
.svg-preview { min-height: 180px; display: grid; place-items: center; padding: 14px; }
.svg-preview svg { max-width: 100%; max-height: 430px; }
.noscript-message { margin: 20px; padding: 16px; border: 1px solid #d7d8e4; border-radius: 12px; background: #fff; color: #222; }
@media (max-width: 980px) { .seo-link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .seo-link-grid { grid-template-columns: 1fr; } .seo-content { padding-top: 62px; } }

.landing-body { background: var(--bg); color: var(--text); min-height: 100vh; }
.landing-header { width: min(1120px, calc(100% - 32px)); margin: 0 auto; min-height: 82px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.landing-header > a:last-child { color:var(--primary); font-weight:800; font-size:14px; }
.landing-main { width:min(840px, calc(100% - 32px)); margin:0 auto; padding:72px 0 90px; }
.landing-main h1 { font-size:clamp(38px,7vw,68px); line-height:1.02; letter-spacing:-.055em; margin:12px 0 20px; }
.landing-lead { color:var(--muted); font-size:20px; line-height:1.7; max-width:760px; }
.landing-cta { display:inline-flex; margin:20px 0 58px; }
.landing-main section { margin-top:38px; padding-top:28px; border-top:1px solid var(--line); }
.landing-main section h2 { font-size:27px; }
.landing-main section p { color:var(--muted); line-height:1.8; }
.breadcrumb { display:flex; flex-wrap:wrap; gap:8px; color:var(--muted); font-size:13px; margin-bottom:36px; }
.breadcrumb a { color:var(--primary); }
.landing-related { margin-top:48px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.landing-related strong { width:100%; }
.landing-related a { color:var(--primary); padding:7px 10px; background:var(--accent); border-radius:9px; font-size:13px; font-weight:750; }
.landing-footer { padding:25px 16px; text-align:center; border-top:1px solid var(--line); color:var(--muted); font-size:13px; }
.landing-steps { display:grid; gap:12px; padding-left:22px; color:var(--muted); line-height:1.7; }
.landing-steps li::marker { color:var(--primary); font-weight:900; }
.landing-faq details { margin-top:10px; border:1px solid var(--line); border-radius:13px; background:var(--surface); padding:0 16px; }
.landing-faq summary { cursor:pointer; padding:15px 0; font-weight:800; }
.landing-faq details p { padding-bottom:15px; margin:0; }

/* Expanded toolkit components */
.result-box-text { white-space: pre-wrap; line-height: 1.65; color: var(--text); max-height: 320px; overflow: auto; font-size: 13px; }
.result-value.small-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.color-palette { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 10px; margin-top: 14px; }
.color-chip { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; padding: 8px; cursor: pointer; }
.color-chip span { width: 34px; height: 34px; border-radius: 9px; background: var(--chip); border: 1px solid rgba(0,0,0,.08); }
.color-chip strong { font-size: 12px; }
.signature-preview { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #222; min-height: 90px; }
.tool-count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--primary); font-size: 11px; font-weight: 850; margin-left: 5px; }
@media (max-width: 620px) { .color-palette { grid-template-columns: repeat(2,1fr); } }
.category-tabs button.active .tool-count-badge { background: rgba(255,255,255,.18); color: #fff; }

/* Ferramentas globais */
.timer-display{font-size:clamp(3rem,9vw,5.8rem);font-weight:850;letter-spacing:-.05em;text-align:center;padding:28px 12px;border:1px solid var(--line);border-radius:22px;background:var(--surface-2);font-variant-numeric:tabular-nums}.button-group{display:flex;gap:10px;flex-wrap:wrap}.button-group>*{flex:1;min-width:120px}.lap-list{display:grid;gap:8px;max-height:220px;overflow:auto;padding:0;margin:12px 0;list-style:none}.lap-list li{display:flex;justify-content:space-between;padding:10px 12px;border:1px solid var(--line);border-radius:12px}.network-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.network-grid>div{display:flex;flex-direction:column;gap:3px;padding:11px;border:1px solid var(--line);border-radius:12px}.network-grid small{color:var(--muted)}.tool-progress{width:100%;height:12px;accent-color:#5b5cf0}.text-output{white-space:pre-wrap;word-break:break-word;margin:0;font:inherit}.status-error{color:#c33}.desktop-nav{gap:13px}.desktop-nav a{font-size:.83rem}@media(max-width:1180px){.desktop-nav{display:none}}@media(max-width:640px){.network-grid{grid-template-columns:1fr}.timer-display{font-size:3.5rem}}


/* Accessibility + keyboard focus audit 2026-08 */
:root { --focus-ring: #5b5cf0; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(91,92,240,.16);
}
:where(button, a, input, select, textarea, summary):focus:not(:focus-visible) { outline: none; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .55; }
.modal-panel { outline: none; }
.modal-panel:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
.tool-card:focus-visible, .search-result:focus-visible, .category-tabs button:focus-visible, .language-button:focus-visible {
  border-color: var(--focus-ring);
}
.tool-status[role="status"], [aria-live="polite"] { scroll-margin-top: 100px; }

/* Manual Google AdSense-ready slots. The real ad is injected only after IDs are configured. */
.adsense-tool-wrap {
  margin: 30px 0 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.adsense-tool-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}
.adsense-tool-slot {
  width: 100%;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  overflow: hidden;
}
.adsense-tool-slot .adsense-placeholder {
  display: grid;
  gap: 4px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
}
.adsense-tool-slot .adsense-placeholder strong { color: var(--text); font-size: 13px; }
.adsense-tool-slot .adsense-placeholder small { font-size: 11px; }
.landing-ad { margin: 34px 0; }
@media (max-width: 640px) {
  .adsense-tool-slot { min-height: 90px; }
}
