/* hi4.in design system v2 — tokens, base, components.
   One accent colour, generous space, mobile first (360px). */

/* ---------- Tokens ---------- */
:root {
  --ink: #101326;
  --ink-2: #2B3045;
  --muted: #4A5068;
  --muted-2: #5B6178;
  --faint: #8A8FA6;
  --line: #E4E6EF;
  --line-2: #D5D8E4;
  --soft: #F5F6FA;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FAFAFD;

  --accent: #3730C9;
  --accent-hover: #251F9A;
  --accent-soft: #EEEDFC;
  --accent-tint: #F6F5FE;
  --accent-line: #CFCCF6;
  --accent-on: #FFFFFF;
  --accent-light: #8E88F0;

  --green: #0B7A55;
  --green-ink: #0B6446;
  --green-soft: #E7F5EF;
  --orange: #B4480C;
  --orange-soft: #FDF0E6;
  --red: #B42318;
  --red-soft: #FDECEA;
  --amber: #A15C07;
  --amber-soft: #FEF4E2;
  --wa: #128C4B;

  --dark: #101326;
  --dark-2: #1B1F3A;
  --dark-line: #2E3350;
  --dark-text: #C9CCDA;

  --r-sm: 8px;
  --r: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(16, 19, 38, .10);
  --shadow: 0 12px 40px rgba(16, 19, 38, .08);
  --shadow-lg: 0 24px 64px rgba(16, 19, 38, .16);

  --font: 'Plus Jakarta Sans', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1200px;
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EEF0F8; --ink-2: #D6D9E6; --muted: #A9AEC4; --muted-2: #979CB3; --faint: #6E7390;
    --line: #262B45; --line-2: #343A5A; --soft: #151932; --bg: #0C0F22; --surface: #12162C; --surface-2: #151932;
    --accent: #8E88F0; --accent-hover: #A9A4F5; --accent-soft: #221F4D; --accent-tint: #1A1840; --accent-line: #3C378A; --accent-on: #0C0F22;
    --green: #3CC28F; --green-ink: #5AD3A3; --green-soft: #10291F; --orange: #F08A4B; --orange-soft: #2E1C10;
    --red: #F27A6E; --red-soft: #33171A; --amber: #E8A84A; --amber-soft: #2E2210; --wa: #3CC28F;
    --dark: #070916; --dark-2: #12162C; --dark-line: #262B45;
    --shadow: 0 12px 40px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 64px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #EEF0F8; --ink-2: #D6D9E6; --muted: #A9AEC4; --muted-2: #979CB3; --faint: #6E7390;
  --line: #262B45; --line-2: #343A5A; --soft: #151932; --bg: #0C0F22; --surface: #12162C; --surface-2: #151932;
  --accent: #8E88F0; --accent-hover: #A9A4F5; --accent-soft: #221F4D; --accent-tint: #1A1840; --accent-line: #3C378A; --accent-on: #0C0F22;
  --green: #3CC28F; --green-ink: #5AD3A3; --green-soft: #10291F; --orange: #F08A4B; --orange-soft: #2E1C10;
  --red: #F27A6E; --red-soft: #33171A; --amber: #E8A84A; --amber-soft: #2E2210; --wa: #3CC28F;
  --dark: #070916; --dark-2: #12162C; --dark-line: #262B45;
  --shadow: 0 12px 40px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 64px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code, kbd { font-family: var(--mono); font-size: .9em; }
kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-size: 12px; color: var(--muted); background: var(--surface); }
[hidden] { display: none !important; }
html[lang="hi"] body { line-height: 1.7; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r); font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.container-sm { max-width: 860px; }
.container-xs { max-width: 640px; }
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted, .section-dark p { color: var(--dark-text); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.split { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; }
.split > * { flex: 1 1 380px; min-width: 0; }
.grid { display: grid; gap: var(--gap, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 280px)), 1fr)); }
.grid-2 { --min: 380px; }
.grid-3 { --min: 300px; }
.grid-4 { --min: 230px; }
.between { justify-content: space-between; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }

/* ---------- Type ---------- */
.display { font-size: clamp(34px, 6vw, 56px); line-height: 1.06; letter-spacing: -.035em; }
.h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; letter-spacing: -.03em; }
.h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.025em; }
.h3 { font-size: clamp(20px, 2.2vw, 24px); }
.h4 { font-size: 18px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--muted-2); }
.small { font-size: 14px; }
.xs { font-size: 13px; }
.bold { font-weight: 700; }
.eyebrow { font-size: 13px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
html[lang="hi"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; align-items: center; }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: var(--ink-2); }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gradient-text { background: linear-gradient(100deg, var(--accent) 10%, #B0479B 60%, var(--orange) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { --bh: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--bh); padding: 0 18px; border-radius: var(--r); border: 1.5px solid transparent; font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .08s, box-shadow .15s; user-select: none; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-on); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); color: var(--bg); }
.btn-outline { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent-tint); color: var(--accent); }
.btn-secondary { background: var(--surface); border-color: var(--line-2); color: var(--ink-2); }
.btn-secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.94); color: #fff; }
.btn-light { background: #fff; color: #101326; }
.btn-light:hover { background: #EEEDFC; color: #101326; }
.btn-lg { --bh: 54px; padding: 0 24px; font-size: 17px; border-radius: var(--r); }
.btn-sm { --bh: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-xs { --bh: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-icon { --bh: 40px; width: var(--bh); padding: 0; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-color: var(--accent-on) var(--accent-on) transparent transparent; animation: spin .7s linear infinite; }
.btn-secondary.is-loading::after, .btn-outline.is-loading::after { border-color: var(--accent) var(--accent) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Badges & pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.dot-pulse { box-shadow: 0 0 0 0 rgba(11, 122, 85, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(11, 122, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 122, 85, 0); } }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-green { background: var(--green-soft); color: var(--green-ink); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-orange { background: var(--orange-soft); color: var(--orange); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-dark { background: var(--ink); color: var(--bg); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: var(--r-sm); padding: 6px 10px; font-size: 13px; color: var(--muted); }
.chip svg { width: 14px; height: 14px; flex: 0 0 auto; }
.chip-btn { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chip-btn:hover { border-color: var(--ink-2); }
.chip-btn[aria-pressed="true"], .chip-btn.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 2px; background: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.check-list.accent li::before { background: var(--accent); }
.x-list li::before { background: var(--faint); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--ink); font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.logo span { color: var(--accent); }
.logo:hover { color: var(--ink); }
.nav { display: none; align-items: center; gap: 4px; flex: 1; }
.nav > li { list-style: none; position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--soft); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-link .caret { width: 14px; height: 14px; transition: transform .2s; }
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions .hide-sm { display: none; }
@media (min-width: 1040px) {
  .nav { display: flex; }
  .header-actions .hide-sm { display: inline-flex; }
  .menu-toggle { display: none !important; }
}
.mega { position: absolute; top: calc(100% + 10px); left: -12px; min-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; }
.mega.wide { min-width: 760px; grid-template-columns: 1fr 1fr 1fr; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--r); text-decoration: none; color: var(--ink); }
.mega-item:hover { background: var(--soft); color: var(--ink); }
.mega-item .ico { flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.mega-item .ico svg { width: 20px; height: 20px; }
.mega-item strong { display: block; font-size: 15px; }
.mega-item span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; padding: 12px; border-radius: var(--r); background: var(--soft); font-size: 14px; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; background: var(--surface); }
.seg button, .seg a { border: 0; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; line-height: 1.2; }
.seg button[aria-pressed="true"], .seg a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.seg-lg button { font-size: 15px; padding: 10px 18px; }

.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

.search-trigger { display: none; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 14px; cursor: pointer; min-width: 180px; }
.search-trigger svg { width: 18px; height: 18px; }
.search-trigger kbd { margin-left: auto; }
@media (min-width: 1240px) { .search-trigger { display: inline-flex; } .search-icon-only { display: none !important; } }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer.is-open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 24, .5); animation: fade .2s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: var(--bg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide-in .22s ease-out; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 16px 24px; }
.drawer-body details { border-bottom: 1px solid var(--line); }
.drawer-body summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-weight: 700; font-size: 17px; cursor: pointer; }
.drawer-body summary::-webkit-details-marker { display: none; }
.drawer-body summary::after { content: "+"; font-size: 22px; color: var(--muted); }
.drawer-body details[open] summary::after { content: "–"; }
.drawer-body .sub { display: flex; flex-direction: column; padding: 0 0 12px; }
.drawer-body .sub a { padding: 10px 4px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.drawer-body > a { display: block; padding: 16px 4px; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer-foot { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }
body.no-scroll { overflow: hidden; }

/* Announcement bar */
.announce { background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; text-align: center; padding: 9px 40px; position: relative; }
.announce a { color: #fff; }
.announce button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; opacity: .7; cursor: pointer; width: 32px; height: 32px; font-size: 18px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card-lg { padding: 28px; }
@media (min-width: 640px) { .card-lg { padding: 32px; } }
.card-soft { background: var(--soft); border-color: transparent; }
.card-accent { background: var(--accent-tint); border-color: var(--accent-line); }
.card-shadow { box-shadow: var(--shadow); }
.card-hover { transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-hover:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
a.card { display: block; text-decoration: none; color: inherit; }
.icon-tile { width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile.green { background: var(--green-soft); color: var(--green); }
.icon-tile.orange { background: var(--orange-soft); color: var(--orange); }
.icon-tile.red { background: var(--red-soft); color: var(--red); }
.icon-tile.amber { background: var(--amber-soft); color: var(--amber); }
.icon-tile.dark { background: var(--ink); color: var(--bg); }
.icon-tile.sm { width: 38px; height: 38px; border-radius: 10px; }
.icon-tile.sm svg { width: 20px; height: 20px; }

.tool-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); background: var(--surface); position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tool-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.tool-card .t { font-weight: 800; font-size: 17px; display: flex; gap: 10px; align-items: center; }
.tool-card .d { font-size: 14px; color: var(--muted); line-height: 1.5; }
.tool-card .badge { position: absolute; top: 14px; right: 14px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label { font-size: 14px; font-weight: 700; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.input-sm { min-height: 40px; padding: 8px 12px; font-size: 15px; border-radius: 10px; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5068' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.input-group { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; background: var(--soft); color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; border-right: 1.5px solid var(--line-2); }
.input-group .addon.end { border-right: 0; border-left: 1.5px solid var(--line-2); }
.input-group .input { border: 0; box-shadow: none !important; border-radius: 0; min-width: 0; }
.hint { font-size: 13px; color: var(--muted-2); }
.error-text { font-size: 14px; color: var(--red); font-weight: 600; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.form-row > .field { flex: 1 1 200px; }
.form-row > .field.narrow { flex: 0 1 120px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--accent); margin: 2px 0 0; flex: 0 0 auto; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; flex: 0 0 auto; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--accent); outline-offset: 2px; }
.color-input { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 6px 10px; background: var(--surface); }
.color-input input[type="color"] { width: 34px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 8px; }
.color-input input[type="text"] { border: 0; width: 90px; font-family: var(--mono); font-size: 14px; background: transparent; }
.color-input input[type="text"]:focus { outline: none; }
.range { width: 100%; accent-color: var(--accent); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; background: var(--soft); border-radius: var(--r); padding: 5px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 9px; padding: 10px 12px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tab svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .tab { padding: 10px 8px; font-size: 13px; gap: 4px; } .tab svg { display: none; } }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.pill-tabs { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Hero tool ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 60%), var(--soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; padding-top: 40px; padding-bottom: 48px; }
@media (min-width: 900px) { .hero-inner { padding-top: 72px; padding-bottom: 80px; } }
.hero-copy > .pill { align-self: flex-start; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.hero-tool { flex: 1 1 480px; min-width: 0; }
.tool-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .tool-panel { padding: 24px; } }
.result { border: 1.5px solid var(--accent-line); background: var(--accent-tint); border-radius: var(--r-md); padding: 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.98) translateY(4px); } }
.result .qr-box { flex: 0 0 auto; width: 128px; height: 128px; background: #fff; border-radius: 12px; padding: 8px; display: grid; place-items: center; }
.result .qr-box canvas, .result .qr-box img, .result .qr-box svg { width: 100%; height: 100%; image-rendering: pixelated; }
.result .info { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.result .big { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; color: var(--ink); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.trust-row span { display: inline-flex; gap: 6px; align-items: center; }
.trust-row svg { width: 16px; height: 16px; color: var(--green); }

/* ---------- Strip ---------- */
.strip { border-bottom: 1px solid var(--line); }
.strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding-top: 20px; padding-bottom: 20px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.strip span { display: inline-flex; align-items: center; gap: 8px; }
.strip svg { width: 18px; height: 18px; color: var(--accent); }

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-weight: 800; color: var(--ink); background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
.table tbody th { font-weight: 600; color: var(--ink-2); }
.table tr:last-child > * { border-bottom: 0; }
.table .hl { background: var(--accent-tint); font-weight: 700; }
.table thead .hl { color: var(--accent); }
.table.compact th, .table.compact td { padding: 10px 14px; font-size: 14px; }
.table tbody tr:hover > * { background: var(--surface-2); }
.table tbody tr:hover > .hl { background: var(--accent-soft); }
.table .group-row th { background: var(--soft); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 10px; padding-bottom: 10px; }
.yes { color: var(--green); font-weight: 800; }
.no { color: var(--faint); }
.cmp-min { min-width: 760px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--surface); }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-card .ribbon { position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--accent-on); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.price-card .name { font-size: 20px; font-weight: 800; }
.price-card .for { font-size: 14px; color: var(--muted); min-height: 42px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.price .amt { font-size: clamp(30px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.price .per { font-size: 15px; color: var(--muted); font-weight: 600; }
.price .was { font-size: 18px; color: var(--faint); text-decoration: line-through; font-weight: 600; }
.price-card .note { font-size: 13px; color: var(--muted-2); min-height: 20px; }
.price-card ul { font-size: 15px; }
.price-card .btn { margin-top: 4px; }
.save-tag { background: var(--green-soft); color: var(--green-ink); font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.dark-price { border: 1px solid var(--dark-line); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; gap: 6px; color: #fff; text-decoration: none; transition: border-color .15s, background .15s; }
.dark-price:hover { border-color: var(--accent-light); color: #fff; }
.dark-price.featured { border: 2px solid var(--accent-light); background: var(--dark-2); }
.dark-price .k { font-weight: 700; color: var(--dark-text); }
.dark-price .v { font-size: 32px; font-weight: 800; }
.dark-price .v small { font-size: 15px; font-weight: 600; color: var(--dark-text); }
.dark-price .d { font-size: 14px; color: var(--dark-text); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color .15s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-size: 17px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 18px; color: var(--muted); line-height: 1.65; }
.faq .a p + p { margin-top: 10px; }

/* ---------- Phone mockup ---------- */
.phone { width: 300px; max-width: 100%; margin: 0 auto; border-radius: 40px; padding: 12px; background: #0C0F22; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2E3350; position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 999px; background: #0C0F22; z-index: 2; }
.phone-screen { border-radius: 30px; overflow: hidden; background: #fff; height: 600px; overflow-y: auto; scrollbar-width: none; color: #101326; }
.phone-screen::-webkit-scrollbar { display: none; }

/* ---------- Bio page (public profile) ---------- */
.bio { --bio-accent: #3730C9; --bio-bg: #F5F6FA; --bio-card: #FFFFFF; --bio-text: #101326; --bio-muted: #4A5068; min-height: 100vh; background: var(--bio-bg); color: var(--bio-text); }
.bio-wrap { max-width: 480px; margin: 0 auto; padding: 0 16px 40px; }
.bio-cover { height: 130px; background: linear-gradient(135deg, var(--bio-accent), #B0479B); border-radius: 0 0 24px 24px; margin: 0 -16px; background-size: cover; background-position: center; }
.bio-avatar { width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--bio-card); margin-top: -46px; background: var(--bio-accent); color: #fff; display: grid; place-items: center; font-size: 32px; font-weight: 800; object-fit: cover; box-shadow: var(--shadow-sm); }
.bio-name { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--bio-text); }
.bio-name svg { width: 20px; height: 20px; color: var(--bio-accent); }
.bio-meta { color: var(--bio-muted); font-size: 14px; }
.bio-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }
.bio-actions a, .bio-actions button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; background: var(--bio-card); border: 1px solid rgba(16, 19, 38, .08); text-decoration: none; color: var(--bio-text); font-size: 12px; font-weight: 700; cursor: pointer; }
.bio-actions svg { width: 22px; height: 22px; color: var(--bio-accent); }
.bio-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--bio-card); border: 1px solid rgba(16, 19, 38, .08); text-decoration: none; color: var(--bio-text); font-weight: 700; margin-bottom: 10px; transition: transform .12s, box-shadow .12s; }
.bio-link:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--bio-text); }
.bio-link small { display: block; font-weight: 500; color: var(--bio-muted); font-size: 12px; }
.bio-block { background: var(--bio-card); border-radius: 18px; padding: 18px; border: 1px solid rgba(16, 19, 38, .08); margin-bottom: 12px; }
.bio-block h2 { font-size: 17px; margin-bottom: 10px; color: var(--bio-text); }
.bio-badge { text-align: center; font-size: 13px; color: var(--bio-muted); margin-top: 24px; }
.bio-badge a { color: var(--bio-text); font-weight: 700; }

/* ---------- Stats / dashboard ---------- */
.stat { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.stat .k { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.stat .v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.stat .d { font-size: 13px; color: var(--muted-2); }
.stat .up { color: var(--green); font-weight: 700; }
.stat .down { color: var(--red); font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: 12px; color: var(--muted); }
.bars .bar i { display: block; width: 100%; max-width: 44px; border-radius: 8px 8px 3px 3px; background: var(--accent-light); min-height: 3px; transition: height .4s ease-out; }
.bars .bar.max i { background: var(--accent); }
.meter { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.meter.green > i { background: var(--green); }

/* ---------- Steps / timeline ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step { position: relative; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.step::before { counter-increment: step; content: counter(step); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-on); font-weight: 800; margin-bottom: 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent-soft); border-radius: var(--r-xl); padding: 40px 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
@media (min-width: 640px) { .cta-band { padding: 48px 40px; } }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; }
.claim { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; max-width: 520px; position: relative; z-index: 1; }
.claim .input-group { flex: 1 1 260px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); font-size: 15px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding: 48px 0 32px; }
.footer-grid .col { display: flex; flex-direction: column; gap: 10px; }
.footer-grid .col strong { font-size: 15px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand { grid-column: span 2; max-width: 320px; }
@media (max-width: 520px) { .footer-brand { grid-column: 1 / -1; } }
.footer-legal { border-top: 1px solid var(--line); padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted-2); }
.footer-legal a { color: var(--muted-2); }
.social { display: flex; gap: 8px; }
.social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); }
.social svg { width: 18px; height: 18px; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; gap: 8px; padding: 8px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .25s ease-out; }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { pointer-events: auto; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: toast-in .22s ease-out; }
.toast.ok::before { content: "✓"; color: #5AD3A3; font-weight: 800; }
.toast.err { background: var(--red); color: #fff; }
.toast.out { animation: toast-out .2s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ---------- Modal ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 48px); }
dialog.modal::backdrop { background: rgba(8, 10, 24, .55); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: pop .2s ease-out; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------- Command palette ---------- */
dialog.palette { border: 0; padding: 0; border-radius: var(--r-lg); width: min(640px, calc(100vw - 24px)); margin-top: 12vh; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.palette::backdrop { background: rgba(8, 10, 24, .5); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.palette-input input { flex: 1; border: 0; background: transparent; padding: 18px 0; font-size: 17px; outline: none; }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 8px; list-style: none; margin: 0; }
.palette-list .grp { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); padding: 10px 10px 6px; }
.palette-list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.palette-list a .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--soft); color: var(--accent); flex: 0 0 auto; }
.palette-list a .ico svg { width: 18px; height: 18px; }
.palette-list a small { display: block; color: var(--muted); font-size: 13px; }
.palette-list a[aria-selected="true"], .palette-list a:hover { background: var(--accent-tint); }
.palette-empty { padding: 28px; text-align: center; color: var(--muted); }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); list-style: none; padding: 0; margin: 0 0 16px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: radial-gradient(900px 380px at 90% -20%, var(--accent-soft), transparent 60%), var(--soft); border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
@media (min-width: 900px) { .page-hero { padding: 64px 0 64px; } }
.page-hero .inner { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }

/* ---------- Tool page layout ---------- */
.tool-layout { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .tool-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; } .tool-layout .preview-col { position: sticky; top: calc(var(--header-h) + 16px); } }
.preview-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.qr-stage { background: var(--soft); border-radius: var(--r-md); padding: 20px; display: grid; place-items: center; min-height: 260px; }
.qr-stage canvas { width: 100%; max-width: 280px; height: auto; border-radius: 8px; box-shadow: var(--shadow-sm); }
.qr-empty { color: var(--muted-2); font-size: 14px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.qr-empty svg { width: 56px; height: 56px; opacity: .35; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line-2); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.opt-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.opt { border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.opt svg { width: 28px; height: 28px; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
/* "optional" hint inside a label (same class name as the option tile above) */
.label .opt { display: inline; border: 0; padding: 0; background: none; border-radius: 0; font-size: inherit; font-weight: 500; color: var(--muted-2); cursor: auto; }
.output-box { display: flex; align-items: center; gap: 8px; border: 1.5px dashed var(--accent-line); background: var(--accent-tint); border-radius: var(--r); padding: 10px 10px 10px 14px; }
.output-box code, .output-box .out { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; color: var(--ink); font-family: var(--mono); }
.callout { border-radius: var(--r-md); padding: 16px 18px; background: var(--soft); border-left: 4px solid var(--accent); font-size: 15px; color: var(--ink-2); }
.callout.green { border-color: var(--green); background: var(--green-soft); }
.callout.amber { border-color: var(--amber); background: var(--amber-soft); }
.callout.red { border-color: var(--red); background: var(--red-soft); }
.verdict { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--r-md); padding: 18px; border: 1.5px solid var(--line); }
.verdict.safe { border-color: color-mix(in srgb, var(--green) 40%, transparent); background: var(--green-soft); }
.verdict.warn { border-color: color-mix(in srgb, var(--amber) 40%, transparent); background: var(--amber-soft); }
.verdict.danger { border-color: color-mix(in srgb, var(--red) 40%, transparent); background: var(--red-soft); }
.hop-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.hop-list li { position: relative; padding: 10px 0 10px 28px; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.hop-list li::before { content: ""; position: absolute; left: 6px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.hop-list li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 28px; bottom: -6px; width: 2px; background: var(--accent-line); }

/* Font generator list */
.font-list { display: flex; flex-direction: column; gap: 8px; }
.font-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 12px 16px; background: var(--surface); }
.font-row .txt { flex: 1; min-width: 0; font-size: 18px; overflow-wrap: anywhere; }
.font-row .nm { font-size: 12px; color: var(--muted-2); display: block; }

/* ---------- Template gallery ---------- */
.tpl { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); display: block; transition: transform .15s, box-shadow .15s; }
.tpl:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.tpl .thumb { aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; padding: 20px 14px; gap: 8px; }
.tpl .thumb i { display: block; width: 100%; height: 22px; border-radius: 8px; background: rgba(255, 255, 255, .85); }
.tpl .thumb b { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .9); margin-bottom: 6px; }
.tpl .meta { padding: 12px 14px; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Consent banner ---------- */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120; max-width: 560px; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--ink-2); }

/* ---------- Status ---------- */
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.uptime { display: flex; gap: 2px; height: 28px; align-items: stretch; }
.uptime i { flex: 1; border-radius: 2px; background: var(--green); opacity: .85; }
.uptime i.warn { background: var(--amber); }
.uptime i.na { background: var(--line-2); }

/* ---------- Misc ---------- */
.kbd-hint { display: inline-flex; gap: 4px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-on); font-weight: 800; font-size: 14px; flex: 0 0 auto; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 13px; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty svg { width: 48px; height: 48px; opacity: .4; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: 14px; }
.notice svg { flex: 0 0 20px; margin-top: 1px; }
.yes svg { display: inline-block; vertical-align: middle; }
.notice.ok { background: var(--green-soft); color: var(--green-ink); }
.notice.err { background: var(--red-soft); color: var(--red); }
.notice.info { background: var(--accent-tint); color: var(--ink-2); }
.anchor-nav { position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.anchor-nav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.anchor-nav a { white-space: nowrap; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.anchor-nav a:hover, .anchor-nav a.is-active { background: var(--soft); color: var(--ink); }
.calc-out { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--green); }
.compare-mini { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 15px; }
.compare-mini .k { color: var(--muted); }
.compare-mini .v { font-weight: 800; text-align: right; }
.logo-wall { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.app-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.app-pill i { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Image captcha ---------- */
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-img { width: 220px; max-width: 100%; height: auto; aspect-ratio: 22 / 7; border-radius: var(--r); border: 1.5px solid var(--line-2); background: #F5F6FA; }
.captcha-input { text-transform: uppercase; letter-spacing: .25em; font-weight: 700; max-width: 220px; }
