/* ==========================================================================
   SD Formatter — site.css
   ========================================================================== */

:root {
  --primary: #2f5bea;
  --primary-dark: #1f44c4;
  --primary-soft: #eaf0ff;
  --secondary: #0fb5a6;
  --secondary-soft: #e3f7f5;
  --accent: #ffb020;
  --text: #13203f;
  --muted: #5b6478;
  --border: #e3e8f1;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-dark: #0f1a36;
  --success: #12a150;
  --danger: #d6384b;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(19, 32, 63, .06), 0 1px 3px rgba(19, 32, 63, .05);
  --shadow: 0 8px 24px -8px rgba(19, 32, 63, .14), 0 2px 6px rgba(19, 32, 63, .05);
  --shadow-lg: 0 24px 48px -16px rgba(31, 68, 196, .28);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1180px;
  --header-h: 70px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--text); letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); border: 1px solid var(--border); padding: .1em .4em; border-radius: 6px; }
:focus-visible { outline: 3px solid rgba(47, 91, 234, .45); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .78em 1.35em; border-radius: 12px; border: 1.5px solid transparent; font-weight: 650; font-size: .98rem; line-height: 1.2; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s; white-space: nowrap; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 6px 16px -6px rgba(47, 91, 234, .6); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 24px -8px rgba(47, 91, 234, .65); }
.btn-outline { background: #fff; color: var(--primary); border-color: #cdd8f7; }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn-ghost { background: var(--primary-soft); color: var(--primary); }
.btn-ghost:hover { background: #dde6ff; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { color: var(--primary-dark); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-sm { padding: .55em 1em; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: .95em 1.6em; font-size: 1.03rem; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 650; }
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

.eyebrow { display: inline-flex; align-items: center; gap: .45em; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: .4em .85em; border-radius: 999px; margin-bottom: 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; color: var(--text); letter-spacing: -.02em; }
.logo:hover { color: var(--text); }
.logo-text span { color: var(--primary); }
.logo-mark svg { width: 34px; height: 34px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.main-nav .nav-cta-mobile { display: none; }
.main-nav a.nav-cta-mobile, .main-nav a.nav-cta-mobile:hover { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: inline; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; background: radial-gradient(900px 420px at 85% 10%, rgba(15, 181, 166, .12), transparent 60%), radial-gradient(800px 500px at 5% 0%, rgba(47, 91, 234, .12), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .45em; font-size: clamp(2rem, 4.1vw, 2.95rem); }
.hero-tagline { font-size: 1.2rem; font-weight: 650; color: var(--text); margin-bottom: .6em; }
.hero-desc { font-size: 1.06rem; color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: .92rem; font-weight: 550; }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .icon { color: var(--secondary); }
.hero-visual { position: relative; }
.hero-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: floatY 6s ease-in-out infinite; }
.hero-card-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); font-size: .8rem; color: var(--muted); font-weight: 600; }
.hero-card-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; }
.hero-card-bar i:nth-child(2) { background: #ffc145; }
.hero-card-bar i:nth-child(3) { background: #2bd17e; }
.hero-card-bar span { margin-left: 8px; }
.hero-svg { width: 100%; height: auto; padding: 8px; }
.hero-progress { animation: progress 3.2s var(--ease) infinite; transform-origin: left; }
.hero-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: .86rem; font-weight: 650; box-shadow: var(--shadow); }
.hero-float .icon { color: var(--success); }
.hero-float-1 { left: -18px; bottom: 34px; animation: floatY 5s ease-in-out infinite reverse; }
.hero-float-2 { right: -10px; top: -14px; animation: floatY 7s ease-in-out infinite; }
.hero-float-2 .icon { color: var(--primary); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes progress { 0% { transform: scaleX(.05); } 70%, 100% { transform: scaleX(1); } }

/* ---------- Trust bar ---------- */
.trust-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 22px 18px; }
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-item > span { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.trust-item:nth-child(even) > span { background: var(--secondary-soft); color: #0b8a7e; }
.trust-item .icon { width: 22px; height: 22px; }
.trust-item strong { display: block; font-size: 1rem; }
.trust-item small { color: var(--muted); font-size: .86rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head-left { text-align: left; margin-left: 0; }
.section-title-sm { font-size: 1.5rem; margin-bottom: 24px; }
.center-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- Tool ---------- */
.tool-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); margin-bottom: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; font-size: .93rem; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: .8em 1em; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47, 91, 234, .14); }
.field textarea { resize: vertical; min-height: 140px; }
.help { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.input-group { display: flex; }
.input-group input { border-radius: 12px 0 0 12px; font-size: 1.15rem; font-weight: 700; }
.input-group select { width: auto; border-radius: 0 12px 12px 0; border-left: 0; font-weight: 650; background: var(--bg-soft); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon input { padding-left: 2.6em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 1.5px solid var(--border); background: #fff; border-radius: 999px; padding: .38em .9em; font-size: .86rem; font-weight: 650; cursor: pointer; color: var(--muted); transition: all .2s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.tool-preview { display: flex; gap: 24px; align-items: center; background: linear-gradient(145deg, var(--primary-soft), var(--secondary-soft)); border-radius: var(--radius); padding: 24px; }
.sd-visual { flex-shrink: 0; }
.sd-body { position: relative; width: 120px; height: 158px; background: linear-gradient(150deg, var(--primary), var(--primary-dark)); clip-path: polygon(0 0, 72% 0, 100% 18%, 100% 100%, 0 100%); border-radius: 12px; padding: 14px 12px; box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.sd-body.pulse { animation: pulse .45s var(--ease); }
@keyframes pulse { 50% { transform: scale(1.05) rotate(-2deg); } }
.sd-pins { display: flex; gap: 5px; }
.sd-pins i { width: 11px; height: 26px; background: #ffd45c; border-radius: 3px; }
.sd-label { position: absolute; left: 10px; right: 10px; bottom: 14px; background: #fff; border-radius: 8px; padding: 10px 6px; text-align: center; }
.sd-label strong { display: block; font-size: 1.15rem; line-height: 1.1; }
.sd-label span { font-size: .78rem; font-weight: 800; color: var(--primary); letter-spacing: .05em; }
.preview-list { margin: 0; display: grid; gap: 10px; min-width: 0; }
.preview-list div { min-width: 0; }
.preview-list dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.preview-list dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; }
.fs-badge { display: inline-block; background: var(--secondary); color: #fff; padding: .2em .75em; border-radius: 999px; font-size: 1rem; }
.fs-badge.is-fat { background: var(--primary); }

.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.device-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.device-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd9f5; }
.device-card.is-extra { display: none; }
.device-grid.show-all .device-card.is-extra { display: flex; }
.device-card.is-hidden { display: none !important; }
.device-card.is-match { display: flex; }
.device-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.device-top h3 { margin: 0 0 2px; font-size: 1.07rem; }
.device-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.device-icon .icon { width: 24px; height: 24px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: .15em .65em; }
.device-rec { font-size: .93rem; background: var(--bg-soft); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.device-rec .rec { color: #0b8a7e; transition: color .2s; }
.device-rec .rec.flash { animation: flash .5s; }
@keyframes flash { 50% { color: var(--primary); } }
.device-summary { color: var(--muted); font-size: .93rem; flex: 1; }
.device-meta { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: .86rem; color: var(--muted); }
.device-meta li { display: flex; gap: 8px; align-items: flex-start; }
.device-meta .icon { margin-top: 3px; color: var(--primary); }
.no-results { text-align: center; color: var(--muted); background: var(--bg-soft); padding: 20px; border-radius: var(--radius); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
#show-more .icon { transition: transform .25s; }
#show-more[aria-expanded="true"] .icon { transform: rotate(180deg); }

.software-block { margin-top: 84px; }
.software-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.software-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.software-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.software-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.software-head h2, .software-head h3 { margin: 0; }
.software-head span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.os-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; flex-shrink: 0; }
.os-icon .icon { width: 24px; height: 24px; }
.spec-list { margin: 0 0 20px; flex: 1; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.spec-list dt { color: var(--muted); font-weight: 600; }
.spec-list dd { margin: 0; text-align: right; font-weight: 600; }
.mini-steps { padding-left: 1.2em; margin-bottom: 18px; flex: 1; }
.mini-steps li { margin-bottom: 8px; font-size: .94rem; color: var(--muted); }
.mini-steps li::marker { color: var(--primary); font-weight: 800; }
.fine-print { display: flex; gap: 8px; align-items: flex-start; justify-content: center; color: var(--muted); font-size: .88rem; max-width: 780px; margin: 24px auto 0; }
.fine-print .icon { margin-top: 3px; color: var(--primary); }

/* ---------- About / stats ---------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.split p { color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: .92rem; font-weight: 550; }

/* ---------- Feature / step / info / benefit cards ---------- */
.feature-grid, .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-grid-2 { grid-template-columns: repeat(2, 1fr); }
.feature-card, .info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.feature-card:hover, .info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card p, .info-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature-icon, .info-card > span { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft)); color: var(--primary); margin-bottom: 18px; }
.feature-icon .icon, .info-card > span .icon { width: 25px; height: 25px; }

.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow-sm); }
.step-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.step-num { position: absolute; top: 18px; right: 20px; font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--primary-soft); }
.step-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; margin-bottom: 16px; box-shadow: 0 8px 18px -8px rgba(47, 91, 234, .7); }
.step-icon .icon { width: 22px; height: 22px; }

.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.benefit-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.benefit-card h3 { margin-bottom: .3em; }
.benefit-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.benefit-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--secondary-soft); color: #0b8a7e; flex-shrink: 0; }
.benefit-icon .icon { width: 23px; height: 23px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--bg-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbff; }
.compat-table { min-width: 680px; }
.compat-table tbody th { white-space: nowrap; font-weight: 700; }
.compat-table tbody th .icon { display: inline-block; vertical-align: -3px; margin-right: 6px; color: var(--primary); }
.compat-table td:last-child { color: var(--muted); }
.yes, .no, .na { display: inline-block; font-size: .8rem; font-weight: 700; padding: .2em .7em; border-radius: 999px; white-space: nowrap; }
.yes { background: #e2f6ea; color: #0c7a3b; }
.no { background: #fdeaec; color: #b0293b; }
.na { background: var(--bg-soft); color: var(--muted); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-thumb { position: relative; height: 128px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), #4e7bff 50%, var(--secondary)); color: #fff; }
.blog-thumb .icon { width: 46px; height: 46px; opacity: .95; }
.blog-thumb span { position: absolute; left: 16px; bottom: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(255, 255, 255, .2); padding: .25em .7em; border-radius: 999px; }
.blog-card:nth-child(3n+2) .blog-thumb { background: linear-gradient(135deg, #0f8f84, var(--secondary) 50%, #4e7bff); }
.blog-card:nth-child(3n) .blog-thumb { background: linear-gradient(135deg, #1b2d66, var(--primary)); }
.blog-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-body h2, .blog-body h3 { font-size: 1.08rem; }
.blog-body h2 a, .blog-body h3 a { color: var(--text); }
.blog-body h2 a:hover, .blog-body h3 a:hover { color: var(--primary); }
.blog-body p { color: var(--muted); font-size: .93rem; flex: 1; }

/* ---------- FAQ ---------- */
.faq-group { font-size: 1.15rem; margin: 34px 0 14px; display: flex; align-items: center; gap: 10px; }
.faq-group::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(var(--primary), var(--secondary)); }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.faq-item.is-open { border-color: #c9d6fa; box-shadow: var(--shadow); }
.faq-heading { margin: 0; font-size: 1rem; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: 0; padding: 18px 20px; font-weight: 650; font-size: 1rem; cursor: pointer; color: var(--text); }
.faq-q:hover { color: var(--primary); }
.faq-chevron { transition: transform .3s var(--ease); color: var(--primary); }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-a { overflow: hidden; transition: height .3s var(--ease); }
.faq-a p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta { padding: 76px 0; background: radial-gradient(600px 300px at 90% 10%, rgba(15, 181, 166, .45), transparent 60%), linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.final-cta-inner { text-align: center; max-width: 760px; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255, 255, 255, .85); font-size: 1.08rem; }
.final-cta .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 56px 0 44px; background: radial-gradient(700px 300px at 90% 0%, rgba(15, 181, 166, .1), transparent 60%), linear-gradient(180deg, var(--primary-soft), #fff); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9rem; margin: 0; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }

.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: #334061; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--primary); }
.prose table { margin: 1.2em 0 1.6em; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.prose a { text-decoration: underline; text-decoration-color: rgba(47, 91, 234, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--primary); }
.legal h2 { font-size: 1.35rem; }

.guide-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.toc-title { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 6px; font-size: .93rem; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); }
.guide-content { max-width: 760px; }

.post-cta { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-top: 48px; padding: 26px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft)); border: 1px solid #d6e0fb; }
.post-cta p { margin: 0; color: var(--muted); }
.post-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--primary-soft); border: 1px solid #cfdafa; border-radius: 12px; padding: 16px 18px; margin-bottom: 24px; }
.notice p { margin: 0; color: var(--text) !important; }
.notice .icon { color: var(--primary); margin-top: 3px; }
.notice-warn { background: #fff6e5; border-color: #ffe0a3; }
.notice-warn .icon { color: #c27c00; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact-card { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.4rem; margin-bottom: .3em; }
.contact-card .help { margin-bottom: 20px; }
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--secondary); margin-top: 4px; }
.contact-email { display: flex; gap: 10px; align-items: center; font-size: 1.1rem; font-weight: 650; }
.contact-email .icon { color: var(--primary); }
.form-status { font-size: .9rem; min-height: 1.3em; margin: 0 0 10px; }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--success); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--danger); }

/* Download pages */
.guide-list { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.guide-list li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.guide-list .device-icon { width: 42px; height: 42px; }
.guide-name { flex: 1; min-width: 0; }
.guide-name strong { display: block; font-size: .96rem; }
.guide-name small { color: var(--muted); font-size: .82rem; }
.redirect-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.redirect-icon .icon { width: 34px; height: 34px; }
.redirect-box { max-width: 420px; margin: 26px auto 0; }
.redirect-box p { margin-bottom: 10px; color: var(--muted); }
.redirect-bar { height: 8px; background: #dfe6f7; border-radius: 999px; overflow: hidden; }
.redirect-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 1s linear; }
.error-code { font-size: 5rem; font-weight: 800; line-height: 1; margin: 0 0 10px; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Ads */
.ad-slot { max-width: var(--container); margin: 24px auto; padding: 0 20px; min-height: 90px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #b7c1d9; padding: 64px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-text span { color: #7fa0ff; }
.footer-brand p { margin-top: 16px; max-width: 360px; }
.footer-contact { display: flex; align-items: center; gap: 8px; }
.footer-contact a { color: #fff; }
.footer-title { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col ul, .social-links { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.site-footer a { color: #b7c1d9; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.social-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding: 22px 20px 28px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom p { margin: 0; }
.footer-note { color: #8794b3; max-width: 620px; }

/* Scroll to top */
.scroll-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease); z-index: 90; }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 9px; font-size: .92rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-flex; }
  .header-cta span { display: none; }
  .header-cta { padding: .6em .7em; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 12px 20px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s var(--ease); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
  .main-nav .nav-cta-mobile { display: flex; margin-top: 12px; width: 100%; padding: 12px 14px; }
  .header-actions { margin-left: auto; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 44px 0 56px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .tool-panel { grid-template-columns: 1fr; }
  .device-grid, .feature-grid, .info-grid, .steps-grid, .blog-grid, .software-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .guide-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .contact-card { position: static; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  body { font-size: .98rem; }
  .container { padding: 0 16px; }
  .device-grid, .feature-grid, .info-grid, .info-grid-2, .steps-grid, .blog-grid, .software-grid, .software-grid-2, .benefit-grid, .guide-list { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 16px 10px; gap: 10px; flex-direction: column; text-align: center; }
  .trust-item small { display: none; }
  .tool-panel { padding: 18px; }
  .tool-preview { flex-direction: column; text-align: center; padding: 20px 16px; }
  .preview-list { width: 100%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .tool-actions .btn, .center-actions .btn { width: 100%; }
  .hero-float-1 { left: 6px; bottom: -16px; }
  .hero-float-2 { right: 6px; }
  .stat strong { font-size: 2rem; }
  .post-cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 30px; }
  .benefit-card { padding: 18px; }
  .software-block { margin-top: 60px; }
}

@media (max-width: 380px) {
  .logo { font-size: 1.08rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .scroll-top, .final-cta, .post-cta, .ad-slot { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Guide hub & homepage additions ---------- */
.start-here { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft)); border: 1px solid #d3ddfa; color: var(--text); margin-bottom: 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.start-here:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); }
.start-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: #fff; flex-shrink: 0; }
.start-icon .icon { width: 28px; height: 28px; }
.start-body { display: grid; gap: 4px; flex: 1; }
.start-body .eyebrow { margin: 0 0 4px; justify-self: start; background: #fff; }
.start-body strong { font-size: 1.25rem; line-height: 1.3; }
.start-body > span:last-child { color: var(--muted); font-size: .95rem; }
.start-arrow { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--primary); flex-shrink: 0; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.guide-jump a { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em; border: 1.5px solid var(--border); border-radius: 999px; font-weight: 650; font-size: .92rem; color: var(--text); background: #fff; }
.guide-jump a:hover { border-color: var(--primary); color: var(--primary); }
.guide-jump span { background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 0 .55em; font-size: .8rem; }
.guide-group { padding-top: 36px; }
.guide-group-head { margin-bottom: 20px; }
.guide-group-head h2 { font-size: 1.55rem; margin-bottom: .25em; }
.guide-group-head p { color: var(--muted); margin: 0; }

.fs-table { min-width: 720px; }
.fs-table tbody th { font-weight: 700; white-space: nowrap; }
.fs-pill { display: inline-block; font-size: .82rem; font-weight: 700; padding: .2em .75em; border-radius: 999px; white-space: nowrap; }
.fs-pill.fat { background: var(--primary-soft); color: var(--primary-dark); }
.fs-pill.ex { background: var(--secondary-soft); color: #0b7a70; }
.fix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fix-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.fix-card h3 { font-size: 1.04rem; margin-bottom: .35em; }
.fix-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.fix-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff3e0; color: #c27c00; flex-shrink: 0; }
.fix-icon .icon { width: 22px; height: 22px; }
.best-practices { margin-top: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.best-practices h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.best-practices h3 .icon { color: var(--secondary); width: 24px; height: 24px; }
.best-practices ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin: 0 0 18px; }
.best-practices li { display: flex; gap: 10px; color: var(--muted); font-size: .95rem; }
.best-practices li .icon { color: var(--secondary); margin-top: 4px; }
@media (max-width: 960px) { .fix-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .fix-grid, .best-practices ul { grid-template-columns: 1fr; }
  .start-here { flex-direction: column; align-items: flex-start; padding: 20px; }
  .start-arrow { display: none; }
  .best-practices { padding: 20px; }
}

/* ---------- Download progress popup ---------- */
.dl-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; }
.dl-backdrop { position: absolute; inset: 0; background: rgba(15, 26, 54, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.dl-dialog { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: var(--radius-lg); padding: 32px 28px 26px; text-align: center; box-shadow: 0 30px 60px -20px rgba(15, 26, 54, .5); transform: translateY(16px) scale(.97); opacity: 0; transition: transform .25s var(--ease), opacity .2s; }
.dl-modal.is-open .dl-backdrop { opacity: 1; }
.dl-modal.is-open .dl-dialog { transform: none; opacity: 1; }
.dl-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--bg-soft); font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; }
.dl-x:hover { color: var(--text); background: #e9eef8; }
.dl-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; animation: dlBounce 1.2s ease-in-out infinite; }
.dl-icon svg { width: 30px; height: 30px; }
.dl-modal.is-done .dl-icon { animation: none; background: var(--success); }
@keyframes dlBounce { 50% { transform: translateY(-5px); } }
.dl-title { font-size: 1.3rem; margin-bottom: .4em; }
.dl-file { font-weight: 700; margin: 0; word-break: break-word; }
.dl-note { color: var(--muted); font-size: .9rem; margin: 2px 0 18px; }
.dl-progress { height: 12px; background: #e6ecf8; border-radius: 999px; overflow: hidden; }
.dl-progress span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--secondary)); background-size: 200% 100%; animation: dlShine 1.2s linear infinite; }
@keyframes dlShine { to { background-position: -200% 0; } }
.dl-status { color: var(--muted); font-size: .92rem; margin: 14px 0 18px; min-height: 1.4em; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
