/* LocalConvert — site stylesheet. Hand-written, no framework. See docs/DESIGN.md. */

:root {
  --bg: #FBFBFD;
  --surface: #FFFFFF;
  --surface-2: #F3F3F7;
  --ink: #0B0B12;
  --ink-2: #2A2A36;
  --muted: #5E5E6E;
  --hairline: rgba(10, 10, 30, .08);
  --hairline-2: rgba(10, 10, 30, .14);
  --accent: #5B5BF6;
  --accent-ink: #4343D8;
  --accent-soft: rgba(91, 91, 246, .10);
  --on-accent: #FFFFFF;
  --good: #0F9F6E;
  --bad: #C2410C;
  --shadow-sm: 0 1px 2px rgba(10, 10, 30, .05), 0 1px 1px rgba(10, 10, 30, .03);
  --shadow-md: 0 8px 24px -8px rgba(10, 10, 40, .14), 0 2px 6px rgba(10, 10, 40, .05);
  --shadow-lg: 0 40px 80px -24px rgba(30, 30, 90, .28), 0 12px 24px -12px rgba(10, 10, 40, .12);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --header-bg: rgba(251, 251, 253, .72);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0F;
    --surface: #14141B;
    --surface-2: #1B1B24;
    --ink: #F2F2F7;
    --ink-2: #D6D6E0;
    --muted: #A1A1AE;
    --hairline: rgba(255, 255, 255, .08);
    --hairline-2: rgba(255, 255, 255, .14);
    --accent: #8C8CFF;
    --accent-ink: #A9A9FF;
    --accent-soft: rgba(140, 140, 255, .14);
    --on-accent: #0A0A1F;
    --good: #34D399;
    --bad: #FB923C;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, .7);
    --header-bg: rgba(10, 10, 15, .68);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 clamp(16px, .2vw + 15.4px, 17px)/1.6 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
.ic { display: inline-block; flex: none; vertical-align: middle; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.022em; line-height: 1.12; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw + .6rem, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.25rem); }
h3 { font-size: 1.15rem; letter-spacing: -.012em; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
code { font-family: var(--font-mono); font-size: .86em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
.lead { font-size: clamp(1.06rem, .5vw + .95rem, 1.25rem); color: var(--muted); line-height: 1.55; max-width: 68ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.h-sm { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.mt { margin-top: 16px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 6vw, 88px) 0; }
.section-tight { padding-block: 28px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--accent-ink); letter-spacing: .01em; text-transform: none; margin-bottom: 14px; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--font); border-radius: 999px; padding: 13px 22px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--hairline-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 26px; font-size: 1.04rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow .ic { transition: transform .2s ease; }
.link-arrow:hover .ic { transform: translateX(3px); }
p.center { margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hairline); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.logo { border-radius: 8px; box-shadow: 0 4px 12px -4px rgba(69, 69, 224, .6); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; border-radius: 10px; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; margin: 0; background: var(--bg); border-bottom: 1px solid var(--hairline); box-shadow: var(--shadow-md); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--hairline); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
}

/* Breadcrumbs */
.crumbs { padding-top: 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; opacity: .6; }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }
.hero-glow { position: absolute; inset: -20% -10% auto -10%; height: 760px; background:
  radial-gradient(40% 50% at 78% 30%, rgba(91, 91, 246, .22), transparent 70%),
  radial-gradient(30% 40% at 95% 70%, rgba(244, 63, 94, .12), transparent 70%),
  radial-gradient(35% 45% at 10% 10%, rgba(20, 184, 166, .10), transparent 70%);
  pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.grad { background: linear-gradient(100deg, var(--accent) 0%, #A855F7 55%, #F43F5E 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-actions.center { justify-content: center; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .92rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof .ic { color: var(--good); }
.hero-visual { display: flex; justify-content: center; position: relative; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
}

/* Phone mockup */
.phone { position: relative; width: min(330px, 86vw); aspect-ratio: 9 / 19.2; border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #2B2B33, #0E0E12); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.phone-screen { height: 100%; border-radius: 42px; background: #F2F2F7; color: #0B0B12; overflow: hidden; padding: 12px 16px; display: flex; flex-direction: column; gap: 9px; font-size: 13px; line-height: 1.3; }
@media (prefers-color-scheme: dark) { .phone-screen { background: #000; color: #F2F2F7; } }
.pm-status { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 12.5px; padding: 2px 6px 0; }
.pm-island { width: 92px; height: 26px; background: #000; border-radius: 20px; }
.pm-sys { letter-spacing: -2px; font-size: 9px; }
.pm-nav { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; text-align: center; font-weight: 600; font-size: 14px; }
.pm-back { font-size: 26px; line-height: 1; color: #5B5BF6; text-align: left; }
.pm-preview { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
@media (prefers-color-scheme: dark) { .pm-preview, .pm-opt, .pm-row { background: #1C1C1E !important; } }
.pm-photo { position: relative; height: 128px; background: linear-gradient(180deg, #FFB86B 0%, #FF7A9A 55%, #7A6BFF 100%); overflow: hidden; }
.sun { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: #FFF4D6; left: 58%; top: 26px; box-shadow: 0 0 40px #FFE7A8; }
.hill { position: absolute; border-radius: 50%; }
.hill.h1 { width: 240px; height: 120px; background: #3C2E78; left: -40px; bottom: -70px; }
.hill.h2 { width: 260px; height: 130px; background: #1E1A4A; right: -70px; bottom: -86px; }
.pm-meta { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 12px; color: #6E6E78; }
.pm-h { margin: 4px 4px -3px; font-size: 11.5px; font-weight: 600; color: #6E6E78; text-transform: uppercase; letter-spacing: .04em; }
.pm-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.pm-opt { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 10px; font-weight: 600; border: 1.5px solid transparent; }
.pm-opt.is-rec { border-color: #5B5BF6; box-shadow: 0 0 0 3px rgba(91, 91, 246, .15); }
.pm-opt em { position: absolute; top: -8px; right: 8px; font-style: normal; font-size: 9.5px; background: #5B5BF6; color: #fff; padding: 2px 6px; border-radius: 999px; }
.pm-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 11px 12px; font-weight: 500; }
.pm-row .ic { color: #5B5BF6; }
.pm-chev { margin-left: auto; color: #A1A1AA; font-size: 18px; line-height: 1; }
.pm-cta { margin-top: auto; text-align: center; background: #5B5BF6; color: #fff; font-weight: 600; padding: 14px; border-radius: 999px; box-shadow: 0 10px 20px -8px rgba(91, 91, 246, .8), inset 0 1px 0 rgba(255,255,255,.35); margin-bottom: 8px; }
.pm-toast { position: absolute; left: -44px; top: 21%; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #0B0B12; font-weight: 600; font-size: 14px; padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,.6); animation: float 6s ease-in-out infinite; }
.pm-toast .ic { color: #0F9F6E; }
@media (prefers-color-scheme: dark) { .pm-toast { background: rgba(40,40,50,.78); color: #F2F2F7; border-color: rgba(255,255,255,.12); } }
@media (max-width: 480px) { .pm-toast { left: -4px; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.trust-item { background: var(--surface); padding: 22px 20px; display: flex; flex-direction: column; gap: 2px; }
.trust-item strong { font-family: var(--font-display); font-size: clamp(1.5rem, 2vw + .8rem, 2.1rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.trust-item span { color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.step p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; margin-bottom: 16px; font-family: var(--font-display); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Badges & chips */
.badge { --tint: #64748B; display: inline-flex; align-items: center; justify-content: center; min-width: 46px; font: 700 .72rem/1 var(--font-mono); letter-spacing: .02em; padding: 6px 8px; border-radius: 8px; color: var(--tint); background: color-mix(in srgb, var(--tint) 13%, transparent); border: 1px solid color-mix(in srgb, var(--tint) 22%, transparent); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .badge { color: color-mix(in srgb, var(--tint) 70%, #fff); } }
.badge-lg { font-size: 1.05rem; padding: 12px 16px; border-radius: 14px; min-width: 84px; }
.cat-ic { --tint: #64748B; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--tint); background: color-mix(in srgb, var(--tint) 13%, transparent); vertical-align: middle; }
h2 .cat-ic { width: 34px; height: 34px; border-radius: 10px; margin-right: 6px; }
.mini-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.mini-badge { font: 600 .7rem/1 var(--font-mono); padding: 5px 7px; border-radius: 7px; background: var(--surface-2); color: var(--ink-2); }
.mini-badge:hover { text-decoration: none; background: var(--accent-soft); color: var(--accent-ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill { --tint: #64748B; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline-2); color: var(--ink-2); font-weight: 500; font-size: .92rem; }
.pill:hover { text-decoration: none; border-color: var(--tint); color: var(--tint); }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.cat-card h3 { margin: 14px 0 6px; }
.cat-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.cat-count { position: absolute; top: 24px; right: 20px; font-size: .78rem; color: var(--muted); font-weight: 500; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* Route cards */
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.route-card { display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.route-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.route-arrow { color: var(--muted); display: inline-flex; }
.route-label { font-weight: 500; font-size: .92rem; color: var(--ink-2); justify-self: end; text-align: right; }
@media (max-width: 400px) { .route-label { display: none; } }

/* Tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tool-card { --tint: var(--accent); display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.tool-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--tint) 40%, transparent); }
.tool-ic { --tint: var(--accent); flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--tint); background: color-mix(in srgb, var(--tint) 13%, transparent); }
.tool-ic.big { width: 76px; height: 76px; border-radius: 22px; }
.tool-text { display: flex; flex-direction: column; gap: 3px; }
.tool-text span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
@media (max-width: 400px) { .tool-grid { grid-template-columns: 1fr; } }

/* Privacy */
.privacy-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; background: linear-gradient(135deg, #12122A, #1E1B4B 60%, #2E1065); color: #F2F2F7; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px); overflow: hidden; position: relative; }
.privacy-card h2 { color: #fff; }
.privacy-card .lead { color: #C8C8D8; }
.privacy-card .eyebrow, .privacy-card .link-arrow { color: #B4B4FF; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--good); margin-top: 3px; }
.privacy-card .checks .ic { color: #6EE7B7; }
.privacy-visual { position: relative; display: grid; place-items: center; min-height: 260px; }
.orb { position: relative; z-index: 2; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 40px; background: linear-gradient(145deg, #7B7BFF, #4545E0); color: #fff; box-shadow: 0 30px 60px -20px rgba(91, 91, 246, .8); }
.orb-ring { position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(180, 180, 255, .25); animation: pulse 4s ease-out infinite; }
.orb-ring.r2 { animation-delay: 2s; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@media (max-width: 820px) { .privacy-card { grid-template-columns: 1fr; } .privacy-visual { min-height: 200px; order: -1; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .85rem; color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.compare tbody th { font-weight: 500; color: var(--ink-2); width: 32%; }
@media (max-width: 560px) { .compare th, .compare td { padding: 11px 12px; font-size: .9rem; } .compare thead th { white-space: normal; } }
.compare td.yes, .yes { color: var(--good); font-weight: 600; }
.no { color: var(--muted); }
.facts { font-size: .9rem; }
.facts th, .facts td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 500; width: 42%; padding-right: 12px; }
.facts td { word-break: break-word; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 20px 6px; color: var(--ink-2); }

/* CTA band */
.cta-band { margin-top: clamp(56px, 7vw, 96px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%), var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-md); }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; color: var(--muted); max-width: 54ch; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* Page heads */
.page-head { padding-top: clamp(28px, 4vw, 56px); }
.page-head h1 { font-size: clamp(2rem, 3.4vw + .8rem, 3.25rem); }
.search-box { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 24px; background: var(--surface); border: 1px solid var(--hairline-2); border-radius: 999px; padding: 0 18px; box-shadow: var(--shadow-sm); color: var(--muted); }
.search-box input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 14px 0; outline: none; min-width: 0; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* Hub */
.hub-section { padding-top: 44px; }
.hub-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.hub-group { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px; }
.hub-group h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.hub-group h3 a { color: var(--ink); }
.hub-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.hub-group li a { display: block; padding: 5px 0; color: var(--ink-2); font-size: .93rem; }
.hub-group li a:hover { color: var(--accent-ink); }
[hidden] { display: none !important; }

/* Route / format / tool pages */
.route-hero { padding-top: clamp(24px, 4vw, 52px); }
.route-hero h1 { font-size: clamp(2rem, 3.6vw + .8rem, 3.5rem); }
.route-hero-badges { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.route-arrow.big { color: var(--muted); }
.answer { margin-top: 20px; padding: 18px 20px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); max-width: 820px; }
.answer-label { display: block; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 4px; }
.answer p { margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.two-col h2 { font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.side-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: 88px; }
.howto { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; margin: 0 0 16px; }
.howto li { counter-increment: s; position: relative; padding: 12px 14px 12px 52px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-sm); }
.howto li::before { content: counter(s); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .85rem; }
.format-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.fmt-blurb { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px; }
.fmt-blurb p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 720px) { .format-pair { grid-template-columns: 1fr; } }
.link-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.plain-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; }
.plain-links li { padding: 4px 0; font-size: .93rem; break-inside: avoid; color: var(--muted); }
@media (max-width: 720px) { .link-cols { grid-template-columns: 1fr; } }
.app-card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); }
.app-card-body { flex: 1 1 280px; }
.app-card-body p { margin: 0; color: var(--muted); }
.app-card .logo { border-radius: 14px; }
.open-guide { display: grid; gap: 12px; margin: 0; }
.open-guide div { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 14px 16px; }
.open-guide dt { font-weight: 600; margin-bottom: 2px; }
.open-guide dd { margin: 0; color: var(--ink-2); }
.conv-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.conv-link { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-sm); color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.conv-link:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--ink); }
.conv-link.is-plain { color: var(--muted); background: transparent; border-style: dashed; }
.format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.format-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-sm); color: var(--ink-2); font-size: .9rem; min-width: 0; }
.format-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.format-chip:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--ink); }
.count { font-size: .9rem; color: var(--muted); font-weight: 500; margin-left: 6px; }
.feature-card { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--radius-lg); background: radial-gradient(120% 160% at 0% 0%, var(--accent-soft), transparent 60%), var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); color: var(--ink); box-shadow: var(--shadow-sm); }
.feature-card:hover { text-decoration: none; box-shadow: var(--shadow-md); }
.feature-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.feature-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: var(--on-accent); flex: none; }
.feature-go { color: var(--accent-ink); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin: 14px 0 4px; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }
.app-icon-xl { display: flex; justify-content: center; margin-bottom: 20px; }
.app-icon-xl .logo { border-radius: 26px; box-shadow: var(--shadow-lg); }

/* Converter */
.converter { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-md); }
.conv-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.conv-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.conv-title .ic { color: var(--good); }
.conv-note { font-size: .85rem; color: var(--muted); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 180px; padding: 24px; border: 2px dashed var(--hairline-2); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.converter.is-compact .dropzone { min-height: 150px; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dz-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-sm); margin-bottom: 6px; }
.dz-title { font-weight: 600; }
.dz-title u { color: var(--accent-ink); text-underline-offset: 3px; }
.dz-sub { font-size: .85rem; color: var(--muted); }
.conv-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 24px; align-items: end; margin-top: 18px; }
.conv-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.conv-label { font-size: .82rem; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.conv-label output { color: var(--ink); font-variant-numeric: tabular-nums; }
.segmented { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 12px; gap: 2px; }
.seg { font: 600 .9rem/1 var(--font); padding: 10px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
@media (prefers-color-scheme: dark) { .seg.is-on { background: #2A2A36; } }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
select { font: inherit; font-size: .95rem; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--hairline-2); background: var(--surface); color: var(--ink); }
@media (max-width: 640px) { .conv-controls { grid-template-columns: 1fr 1fr; } .conv-controls .conv-field:first-child { grid-column: 1 / -1; } }
.conv-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.conv-list:empty { display: none; }
.conv-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px; background: var(--surface-2); border-radius: var(--radius-sm); }
.conv-item img, .conv-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--hairline); }
.conv-name { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-meta { font-size: .82rem; color: var(--muted); }
.conv-meta .good { color: var(--good); font-weight: 600; }
.conv-meta .err { color: var(--bad); }
.conv-item .btn { padding: 9px 14px; font-size: .88rem; }
.conv-foot { margin: 14px 0 0; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.post-card, .post-feature { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover, .post-feature:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-card strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.25; }
.post-card .muted { font-size: .93rem; }
.post-feature { padding: clamp(24px, 4vw, 40px); background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.post-feature strong { font-family: var(--font-display); font-size: clamp(1.5rem, 2vw + .8rem, 2.25rem); letter-spacing: -.025em; line-height: 1.15; }
.post-meta { font-size: .8rem; font-weight: 600; color: var(--accent-ink); letter-spacing: .01em; }
.article { padding-top: clamp(24px, 4vw, 48px); }
.article-head { max-width: 780px; }
.article-head h1 { font-size: clamp(2rem, 3vw + .9rem, 3.1rem); }
.byline { color: var(--muted); font-size: .92rem; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 56px; margin-top: 28px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: .88rem; }
.toc ol { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; border-left: 2px solid var(--hairline); }
.toc a { display: block; padding-left: 12px; color: var(--muted); }
.toc a:hover { color: var(--accent-ink); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.prose { font-size: 1.06rem; line-height: 1.72; color: var(--ink-2); }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 1vw + 1rem, 1.8rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose .table-wrap { margin: 1.2em 0 1.6em; }
.prose .compare { font-size: .92rem; }
.narrow .prose, .narrow .article-head { max-width: 760px; }
.tip { display: flex; gap: 12px; padding: 16px 18px; background: var(--accent-soft); border-radius: var(--radius-sm); margin: 1.4em 0; }
.tip .ic { color: var(--accent-ink); margin-top: 4px; }
.tip p { margin: 0; }

/* Footer */
.site-footer { margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--hairline); background: var(--surface); padding: 56px 0 28px; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; }
.footer-brand p { color: var(--muted); margin: 14px 0 18px; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-cols h2 { font-size: .82rem; font-family: var(--font); font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 12px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--hairline); margin-top: 40px; padding-top: 20px; color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

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

/* Small headings inside cards win over section heading sizes. */
.side-card .h-sm, .two-col .h-sm, .app-card .h-sm { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .8em; }
