:root {
  --navy: #0b1633;
  --navy-2: #14234a;
  --blue: #4f6df5;
  --blue-dark: #3655df;
  --blue-soft: #eef2ff;
  --green: #17a968;
  --orange: #e99520;
  --red: #dc4c4c;
  --ink: #15213d;
  --muted: #5f6d86;
  --line: #dfe5f0;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --radius: 20px;
  --shadow: 0 18px 55px rgba(24, 45, 97, .10);
  --max: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { max-width: 780px; margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 10px 14px; background: #fff; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(223,229,240,.9); backdrop-filter: blur(14px);
}
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); font-size: 1.05rem; font-weight: 800; text-decoration: none; }
.brand img { flex: 0 0 42px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: #33415f; font-size: .94rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue-dark); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--navy); }

.hero { position: relative; overflow: hidden; padding: 90px 0 84px; background: linear-gradient(135deg, #f8faff 0%, #fff 54%, #f0fff7 100%); }
.hero::before { content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%; right: -260px; top: -250px; background: rgba(79,109,245,.09); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 13px; color: var(--blue-dark); font-size: .78rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(23,169,104,.11); }
h1, h2, h3 { color: var(--navy); line-height: 1.18; letter-spacing: -.025em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(2.45rem, 5.3vw, 4.4rem); }
h2 { margin: 0 0 16px; font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { margin: 0 0 10px; font-size: 1.18rem; }
.hero-lead { max-width: 670px; margin: 24px 0 0; color: var(--muted); font-size: 1.16rem; }
.hero-actions, .result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 11px 20px; font-weight: 800; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--blue-dark); box-shadow: 0 10px 22px rgba(54,85,223,.23); }
.button-primary:hover, .button-primary:focus-visible { background: #2944b8; }
.button-primary:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.button-secondary { color: var(--navy); background: #fff; border-color: var(--line); }
.button-wide { width: 100%; margin-top: 18px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 0; margin: 30px 0 0; list-style: none; color: #52617b; font-size: .9rem; }
.trust-list li::before { content: "\2713"; margin-right: 7px; color: var(--green); font-weight: 900; }
.device-card { position: relative; padding: 20px; border: 1px solid rgba(214,222,239,.9); border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); transform: rotate(1deg); }
.device-card::after { content: ""; position: absolute; inset: 10px -14px -14px 10px; z-index: -1; border-radius: 26px; background: linear-gradient(145deg, rgba(79,109,245,.12), rgba(23,169,104,.12)); }
.device-top { display: flex; gap: 6px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.device-top span { width: 9px; height: 9px; border-radius: 50%; background: #d8deea; }
.battery-preview { display: grid; justify-items: center; padding: 42px 20px 36px; }
.battery-preview strong { margin-top: 18px; font-size: 2.7rem; line-height: 1; }
.battery-preview > span { margin-top: 8px; color: var(--muted); font-size: .88rem; }
.battery-shell { position: relative; width: 148px; height: 68px; border: 6px solid var(--navy); border-radius: 14px; padding: 6px; }
.battery-shell::after { content: ""; position: absolute; right: -14px; top: 19px; width: 8px; height: 22px; border-radius: 0 6px 6px 0; background: var(--navy); }
.battery-fill { width: 87%; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--green), #45d89a); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fbfcff; }
.mini-stats div { padding: 14px 8px; text-align: center; }
.mini-stats div + div { border-left: 1px solid var(--line); }
.mini-stats small { display: block; color: var(--muted); }
.mini-stats b { color: var(--navy); }

.tool-section { padding: 92px 0; background: var(--navy); }
.tool-section .section-heading h2, .tool-section .section-heading p:not(.eyebrow) { color: #fff; }
.tool-section .eyebrow { color: #aebcff; }
.section-heading { margin-bottom: 36px; }
.section-heading > p:not(.eyebrow) { max-width: 690px; margin: 0; color: var(--muted); font-size: 1.04rem; }
.section-heading.centered { text-align: center; }
.section-heading.centered > p:not(.eyebrow) { margin-inline: auto; }
.tool-shell { max-width: 900px; margin: 0 auto; padding: 12px; border-radius: 26px; background: #fff; box-shadow: 0 24px 65px rgba(0,0,0,.25); }
.tool-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 15px; background: var(--surface-alt); }
.tool-tab { min-height: 48px; border: 0; border-radius: 11px; color: #66718a; background: transparent; font-weight: 800; }
.tool-tab.is-active { color: var(--navy); background: #fff; box-shadow: 0 4px 16px rgba(31,49,90,.09); }
.tool-panel { padding: 26px; }
.drop-zone { position: relative; padding: 43px 26px; border: 2px dashed #cdd6ea; border-radius: 18px; background: #f9fbff; text-align: center; transition: border-color .15s, background .15s; }
.drop-zone.is-dragging { border-color: var(--blue); background: var(--blue-soft); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 17px; color: var(--blue); background: var(--blue-soft); }
.drop-icon svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone h3 { margin-bottom: 4px; font-size: 1.35rem; }
.drop-zone p { margin: 0 0 19px; color: var(--muted); }
.drop-zone .drop-note { margin: 13px 0 0; font-size: .78rem; }
.selected-file { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.selected-file > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.selected-file strong, .selected-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file small { color: var(--muted); }
.file-badge { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 12px; color: var(--blue-dark); background: var(--blue-soft); font-size: .75rem; font-weight: 900; }
.text-button { border: 0; color: var(--blue-dark); background: transparent; font-weight: 800; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field:last-child { grid-column: 1 / -1; }
.field > span:first-child { display: block; margin-bottom: 7px; color: var(--navy); font-weight: 800; }
.field em { color: var(--muted); font-size: .82rem; font-style: normal; font-weight: 500; }
.field small { display: block; margin-top: 6px; color: var(--muted); }
.input-wrap { display: flex; align-items: center; overflow: hidden; border: 1px solid #cfd7e8; border-radius: 12px; background: #fff; }
.input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,109,245,.12); }
.input-wrap input { width: 100%; min-width: 0; height: 50px; border: 0; outline: 0; padding: 0 14px; color: var(--ink); }
.input-wrap b { flex: 0 0 auto; padding: 0 13px; color: #72809a; font-size: .8rem; }
.form-error { margin: 16px 0 0; padding: 11px 13px; border-radius: 9px; color: #a92525; background: #fff0f0; }
.tool-status { margin: 6px 26px 22px; padding: 12px 15px; border-radius: 10px; color: var(--navy); background: var(--blue-soft); }
.results { margin: 10px; padding: 30px; border-top: 1px solid var(--line); }
.results-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.results-head h2 { font-size: 2rem; }
.device-name { margin: -5px 0 0; color: var(--muted); }
.source-chip, .result-label { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; color: var(--blue-dark); background: var(--blue-soft); font-size: .76rem; font-weight: 850; }
.result-summary { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 34px; padding: 28px 0; }
.health-gauge { position: relative; display: grid; place-items: center; width: 200px; height: 200px; border-radius: 50%; background: conic-gradient(var(--gauge-color) var(--health), #e7ebf3 0); }
.health-gauge::before { content: ""; position: absolute; width: 162px; height: 162px; border-radius: 50%; background: #fff; }
.health-gauge div { position: relative; z-index: 1; text-align: center; }
.health-gauge strong { display: block; color: var(--navy); font-size: 2.55rem; line-height: 1; }
.health-gauge span { color: var(--muted); font-size: .75rem; }
.result-copy h3 { margin-top: 14px; font-size: 1.55rem; }
.result-copy p { color: var(--muted); }
.safety-alert { margin-top: 15px; padding: 12px 14px; border-left: 4px solid var(--red); border-radius: 8px; color: #782626; background: #fff3f3; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-alt); }
.metric span, .metric small { display: block; color: var(--muted); font-size: .78rem; }
.metric strong { display: block; margin: 5px 0 2px; font-size: 1.18rem; }
.history-card { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.history-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.history-heading h3 { margin: 0; }
.history-heading p, .history-heading span { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.history-chart { min-height: 185px; margin-top: 18px; }
.history-chart svg { width: 100%; height: 185px; overflow: visible; }
.next-step-card { display: flex; gap: 16px; margin-top: 20px; padding: 19px; border: 1px solid #caeadd; border-radius: 16px; background: #f1fbf6; }
.next-step-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; color: #fff; background: var(--green); font-size: 1.3rem; }
.next-step-card span, .next-step-card p { display: block; margin: 0; color: #4c6a5d; font-size: .82rem; }
.next-step-card strong { display: block; color: #104c32; }
.result-disclaimer { color: var(--muted); font-size: .8rem; }

.steps-section, .content-section, .guides-section, .faq-section, .source-section { padding: 88px 0; }
.split-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.align-start { align-items: start; }
.steps-list { padding: 0; margin: 0; list-style: none; }
.steps-list li { display: flex; gap: 17px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps-list li > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; color: var(--blue-dark); background: var(--blue-soft); font-weight: 900; }
.steps-list strong { color: var(--navy); }
.steps-list p { margin: 4px 0 0; color: var(--muted); }
.command-box { display: flex; align-items: center; margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--navy); }
.command-box code { flex: 1; padding: 13px 15px; color: #dce5ff; overflow-x: auto; }
.command-box button { align-self: stretch; border: 0; padding: 0 16px; color: #fff; background: var(--blue-dark); font-weight: 800; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .guide-card, .page-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(29,48,92,.05); }
.feature-card { padding: 25px; }
.feature-card > span { color: var(--blue-dark); font-size: .76rem; font-weight: 900; }
.feature-card p { margin-bottom: 0; color: var(--muted); }
.privacy-banner { display: flex; gap: 17px; margin-top: 22px; padding: 23px; border: 1px solid #ccebdd; border-radius: var(--radius); background: #f0fbf6; }
.privacy-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px; color: #fff; background: var(--green); font-weight: 900; }
.privacy-banner h3, .privacy-banner p { margin: 0; }
.privacy-banner p { color: #537064; }
.alt-section { background: var(--surface-alt); }
.sticky-heading { position: sticky; top: 108px; }
.text-link { font-weight: 800; }
.range-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.range-list article { display: flex; gap: 16px; padding: 20px; }
.range-list article + article { border-top: 1px solid var(--line); }
.range-list p { margin: 2px 0 0; color: var(--muted); }
.range-color { width: 10px; min-height: 54px; flex: 0 0 auto; border-radius: 99px; }
.excellent { background: #17a968; } .good { background: #54b66c; } .fair { background: #d9aa2b; } .worn { background: #e27d2e; } .replace { background: #dc4c4c; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-card { display: block; padding: 26px; color: inherit; text-decoration: none; }
.guide-card:hover { border-color: #b7c5ef; transform: translateY(-2px); }
.guide-card > span { color: var(--blue-dark); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.guide-card p { color: var(--muted); }
.guide-card b { color: var(--blue-dark); }
.guide-card.featured { background: linear-gradient(135deg, #eff3ff, #f7fffb); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 20px 4px; color: var(--navy); font-weight: 800; cursor: pointer; }
.faq-list details p { margin: -7px 4px 20px; color: var(--muted); }
.source-section { padding-block: 58px; background: #f1f4fa; }
.source-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; align-items: start; }
.source-inner h2 { font-size: 1.65rem; }
.source-inner > p { margin: 0; color: var(--muted); }

.site-footer { padding: 62px 0 22px; color: #c9d3eb; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid > div:first-child { max-width: 330px; }
.footer-grid p { margin: 7px 0 0; color: #9eacc8; }
.footer-grid strong { color: #fff; }
.footer-grid a { color: #c9d3eb; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand, .footer-brand span { color: #fff !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #93a2c0; font-size: .82rem; }

.page-hero { padding: 70px 0 58px; background: linear-gradient(135deg, #f5f8ff, #fff); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.25rem, 4.5vw, 3.65rem); }
.page-hero p { max-width: 770px; color: var(--muted); font-size: 1.1rem; }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: .84rem; }
.breadcrumbs a { color: var(--blue-dark); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 58px; padding-top: 68px; padding-bottom: 90px; }
.article-content { min-width: 0; }
.article-toc { position: sticky; top: 100px; align-self: start; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-alt); }
.article-toc strong { display: block; margin-bottom: 9px; }
.article-toc a { display: block; padding: 5px 0; color: var(--muted); font-size: .88rem; text-decoration: none; }
.prose { color: #34415c; font-size: 1.04rem; }
.prose h2 { margin-top: 2em; font-size: 1.85rem; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { max-width: 780px; }
.prose li + li { margin-top: 7px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--navy); background: var(--surface-alt); }
.callout { margin: 26px 0; padding: 20px; border-left: 5px solid var(--blue); border-radius: 10px; background: var(--blue-soft); }
.callout.warning { border-color: var(--orange); background: #fff8ed; }
.callout.danger { border-color: var(--red); background: #fff2f2; }
.inline-cta { margin: 34px 0; padding: 25px; border-radius: var(--radius); color: #fff; background: var(--navy); }
.inline-cta h2, .inline-cta h3 { color: #fff; }
.inline-cta p { color: #c1cbe0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 70px 0 90px; }
.page-card { padding: 28px; }
.page-card p { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .split-layout, .source-inner, .article-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .hero-visual { max-width: 550px; }
  .feature-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-heading, .article-toc { position: static; }
  .article-toc { order: -1; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; left: 14px; right: 14px; top: 66px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  .hero { padding: 66px 0; }
  .hero-actions .button { width: 100%; }
  .trust-list { display: block; }
  .trust-list li + li { margin-top: 7px; }
  .tool-section, .steps-section, .content-section, .guides-section, .faq-section { padding: 68px 0; }
  .tool-shell { padding: 7px; }
  .tool-tabs { grid-template-columns: 1fr; }
  .tool-panel, .results { padding: 18px 10px; }
  .drop-zone { padding: 34px 15px; }
  .field-grid, .guide-grid, .contact-grid { grid-template-columns: 1fr; }
  .result-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .health-gauge { width: 180px; height: 180px; }
  .health-gauge::before { width: 146px; height: 146px; }
  .results-head { display: block; }
  .source-chip { margin-top: 10px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 430px) {
  h1 { font-size: 2.35rem; }
  .metric-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr; }
  .mini-stats div + div { border-left: 0; border-top: 1px solid var(--line); }
  .selected-file { align-items: flex-start; }
}

@media print {
  .site-header, .site-footer, .hero, .tool-tabs, .tool-panel:not([hidden]), .steps-section,
  .content-section, .guides-section, .faq-section, .source-section, .result-actions { display: none !important; }
  .tool-section { padding: 0; background: #fff; }
  .tool-shell { box-shadow: none; }
  .results { display: block !important; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
:root {
  --navy: #0b1633;
  --navy-2: #14234a;
  --blue: #4f6df5;
  --blue-dark: #3655df;
  --blue-soft: #eef2ff;
  --green: #17a968;
  --orange: #e99520;
  --red: #dc4c4c;
  --ink: #15213d;
  --muted: #5f6d86;
  --line: #dfe5f0;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --radius: 20px;
  --shadow: 0 18px 55px rgba(24, 45, 97, .10);
  --max: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { max-width: 780px; margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 10px 14px; background: #fff; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(223,229,240,.9); backdrop-filter: blur(14px);
}
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); font-size: 1.05rem; font-weight: 800; text-decoration: none; }
.brand img { flex: 0 0 42px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: #33415f; font-size: .94rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue-dark); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--navy); }

.hero { position: relative; overflow: hidden; padding: 90px 0 84px; background: linear-gradient(135deg, #f8faff 0%, #fff 54%, #f0fff7 100%); }
.hero::before { content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%; right: -260px; top: -250px; background: rgba(79,109,245,.09); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 13px; color: var(--blue-dark); font-size: .78rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(23,169,104,.11); }
h1, h2, h3 { color: var(--navy); line-height: 1.18; letter-spacing: -.025em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(2.45rem, 5.3vw, 4.4rem); }
h2 { margin: 0 0 16px; font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { margin: 0 0 10px; font-size: 1.18rem; }
.hero-lead { max-width: 670px; margin: 24px 0 0; color: var(--muted); font-size: 1.16rem; }
.hero-actions, .result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 11px 20px; font-weight: 800; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 10px 22px rgba(79,109,245,.23); }
.button-primary:hover, .button-primary:focus-visible { background: var(--blue-dark); }
.button-primary:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.button-secondary { color: var(--navy); background: #fff; border-color: var(--line); }
.button-wide { width: 100%; margin-top: 18px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 0; margin: 30px 0 0; list-style: none; color: #52617b; font-size: .9rem; }
.trust-list li::before { content: "\2713"; margin-right: 7px; color: var(--green); font-weight: 900; }
.device-card { position: relative; padding: 20px; border: 1px solid rgba(214,222,239,.9); border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); transform: rotate(1deg); }
.device-card::after { content: ""; position: absolute; inset: 10px -14px -14px 10px; z-index: -1; border-radius: 26px; background: linear-gradient(145deg, rgba(79,109,245,.12), rgba(23,169,104,.12)); }
.device-top { display: flex; gap: 6px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.device-top span { width: 9px; height: 9px; border-radius: 50%; background: #d8deea; }
.battery-preview { display: grid; justify-items: center; padding: 42px 20px 36px; }
.battery-preview strong { margin-top: 18px; font-size: 2.7rem; line-height: 1; }
.battery-preview > span { margin-top: 8px; color: var(--muted); font-size: .88rem; }
.battery-shell { position: relative; width: 148px; height: 68px; border: 6px solid var(--navy); border-radius: 14px; padding: 6px; }
.battery-shell::after { content: ""; position: absolute; right: -14px; top: 19px; width: 8px; height: 22px; border-radius: 0 6px 6px 0; background: var(--navy); }
.battery-fill { width: 87%; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--green), #45d89a); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fbfcff; }
.mini-stats div { padding: 14px 8px; text-align: center; }
.mini-stats div + div { border-left: 1px solid var(--line); }
.mini-stats small { display: block; color: var(--muted); }
.mini-stats b { color: var(--navy); }

.tool-section { padding: 92px 0; background: var(--navy); }
.tool-section .section-heading h2, .tool-section .section-heading p:not(.eyebrow) { color: #fff; }
.section-heading { margin-bottom: 36px; }
.section-heading > p:not(.eyebrow) { max-width: 690px; margin: 0; color: var(--muted); font-size: 1.04rem; }
.section-heading.centered { text-align: center; }
.section-heading.centered > p:not(.eyebrow) { margin-inline: auto; }
.tool-shell { max-width: 900px; margin: 0 auto; padding: 12px; border-radius: 26px; background: #fff; box-shadow: 0 24px 65px rgba(0,0,0,.25); }
.tool-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 15px; background: var(--surface-alt); }
.tool-tab { min-height: 48px; border: 0; border-radius: 11px; color: #66718a; background: transparent; font-weight: 800; }
.tool-tab.is-active { color: var(--navy); background: #fff; box-shadow: 0 4px 16px rgba(31,49,90,.09); }
.tool-panel { padding: 26px; }
.drop-zone { position: relative; padding: 43px 26px; border: 2px dashed #cdd6ea; border-radius: 18px; background: #f9fbff; text-align: center; transition: border-color .15s, background .15s; }
.drop-zone.is-dragging { border-color: var(--blue); background: var(--blue-soft); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 17px; color: var(--blue); background: var(--blue-soft); }
.drop-icon svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone h3 { margin-bottom: 4px; font-size: 1.35rem; }
.drop-zone p { margin: 0 0 19px; color: var(--muted); }
.drop-zone .drop-note { margin: 13px 0 0; font-size: .78rem; }
.selected-file { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.selected-file > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.selected-file strong, .selected-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file small { color: var(--muted); }
.file-badge { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 12px; color: var(--blue-dark); background: var(--blue-soft); font-size: .75rem; font-weight: 900; }
.text-button { border: 0; color: var(--blue-dark); background: transparent; font-weight: 800; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field:last-child { grid-column: 1 / -1; }
.field > span:first-child { display: block; margin-bottom: 7px; color: var(--navy); font-weight: 800; }
.field em { color: var(--muted); font-size: .82rem; font-style: normal; font-weight: 500; }
.field small { display: block; margin-top: 6px; color: var(--muted); }
.input-wrap { display: flex; align-items: center; overflow: hidden; border: 1px solid #cfd7e8; border-radius: 12px; background: #fff; }
.input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,109,245,.12); }
.input-wrap input { width: 100%; min-width: 0; height: 50px; border: 0; outline: 0; padding: 0 14px; color: var(--ink); }
.input-wrap b { flex: 0 0 auto; padding: 0 13px; color: #72809a; font-size: .8rem; }
.form-error { margin: 16px 0 0; padding: 11px 13px; border-radius: 9px; color: #a92525; background: #fff0f0; }
.tool-status { margin: 6px 26px 22px; padding: 12px 15px; border-radius: 10px; color: var(--navy); background: var(--blue-soft); }
.results { margin: 10px; padding: 30px; border-top: 1px solid var(--line); }
.results-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.results-head h2 { font-size: 2rem; }
.device-name { margin: -5px 0 0; color: var(--muted); }
.source-chip, .result-label { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; color: var(--blue-dark); background: var(--blue-soft); font-size: .76rem; font-weight: 850; }
.result-summary { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 34px; padding: 28px 0; }
.health-gauge { position: relative; display: grid; place-items: center; width: 200px; height: 200px; border-radius: 50%; background: conic-gradient(var(--gauge-color) var(--health), #e7ebf3 0); }
.health-gauge::before { content: ""; position: absolute; width: 162px; height: 162px; border-radius: 50%; background: #fff; }
.health-gauge div { position: relative; z-index: 1; text-align: center; }
.health-gauge strong { display: block; color: var(--navy); font-size: 2.55rem; line-height: 1; }
.health-gauge span { color: var(--muted); font-size: .75rem; }
.result-copy h3 { margin-top: 14px; font-size: 1.55rem; }
.result-copy p { color: var(--muted); }
.safety-alert { margin-top: 15px; padding: 12px 14px; border-left: 4px solid var(--red); border-radius: 8px; color: #782626; background: #fff3f3; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-alt); }
.metric span, .metric small { display: block; color: var(--muted); font-size: .78rem; }
.metric strong { display: block; margin: 5px 0 2px; font-size: 1.18rem; }
.history-card { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.history-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.history-heading h3 { margin: 0; }
.history-heading p, .history-heading span { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.history-chart { min-height: 185px; margin-top: 18px; }
.history-chart svg { width: 100%; height: 185px; overflow: visible; }
.next-step-card { display: flex; gap: 16px; margin-top: 20px; padding: 19px; border: 1px solid #caeadd; border-radius: 16px; background: #f1fbf6; }
.next-step-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; color: #fff; background: var(--green); font-size: 1.3rem; }
.next-step-card span, .next-step-card p { display: block; margin: 0; color: #4c6a5d; font-size: .82rem; }
.next-step-card strong { display: block; color: #104c32; }
.result-disclaimer { color: var(--muted); font-size: .8rem; }

.steps-section, .content-section, .guides-section, .faq-section, .source-section { padding: 88px 0; }
.split-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.align-start { align-items: start; }
.steps-list { padding: 0; margin: 0; list-style: none; }
.steps-list li { display: flex; gap: 17px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps-list li > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; color: var(--blue-dark); background: var(--blue-soft); font-weight: 900; }
.steps-list strong { color: var(--navy); }
.steps-list p { margin: 4px 0 0; color: var(--muted); }
.command-box { display: flex; align-items: center; margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--navy); }
.command-box code { flex: 1; padding: 13px 15px; color: #dce5ff; overflow-x: auto; }
.command-box button { align-self: stretch; border: 0; padding: 0 16px; color: #fff; background: var(--blue); font-weight: 800; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .guide-card, .page-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(29,48,92,.05); }
.feature-card { padding: 25px; }
.feature-card > span { color: var(--blue); font-size: .76rem; font-weight: 900; }
.feature-card p { margin-bottom: 0; color: var(--muted); }
.privacy-banner { display: flex; gap: 17px; margin-top: 22px; padding: 23px; border: 1px solid #ccebdd; border-radius: var(--radius); background: #f0fbf6; }
.privacy-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px; color: #fff; background: var(--green); font-weight: 900; }
.privacy-banner h3, .privacy-banner p { margin: 0; }
.privacy-banner p { color: #537064; }
.alt-section { background: var(--surface-alt); }
.sticky-heading { position: sticky; top: 108px; }
.text-link { font-weight: 800; }
.range-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.range-list article { display: flex; gap: 16px; padding: 20px; }
.range-list article + article { border-top: 1px solid var(--line); }
.range-list p { margin: 2px 0 0; color: var(--muted); }
.range-color { width: 10px; min-height: 54px; flex: 0 0 auto; border-radius: 99px; }
.excellent { background: #17a968; } .good { background: #54b66c; } .fair { background: #d9aa2b; } .worn { background: #e27d2e; } .replace { background: #dc4c4c; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-card { display: block; padding: 26px; color: inherit; text-decoration: none; }
.guide-card:hover { border-color: #b7c5ef; transform: translateY(-2px); }
.guide-card > span { color: var(--blue-dark); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.guide-card p { color: var(--muted); }
.guide-card b { color: var(--blue-dark); }
.guide-card.featured { background: linear-gradient(135deg, #eff3ff, #f7fffb); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 20px 4px; color: var(--navy); font-weight: 800; cursor: pointer; }
.faq-list details p { margin: -7px 4px 20px; color: var(--muted); }
.source-section { padding-block: 58px; background: #f1f4fa; }
.source-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; align-items: start; }
.source-inner h2 { font-size: 1.65rem; }
.source-inner > p { margin: 0; color: var(--muted); }

.site-footer { padding: 62px 0 22px; color: #c9d3eb; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid > div:first-child { max-width: 330px; }
.footer-grid p { margin: 7px 0 0; color: #9eacc8; }
.footer-grid strong { color: #fff; }
.footer-grid a { color: #c9d3eb; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand, .footer-brand span { color: #fff !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #93a2c0; font-size: .82rem; }

.page-hero { padding: 70px 0 58px; background: linear-gradient(135deg, #f5f8ff, #fff); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.25rem, 4.5vw, 3.65rem); }
.page-hero p { max-width: 770px; color: var(--muted); font-size: 1.1rem; }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: .84rem; }
.breadcrumbs a { color: var(--blue-dark); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 58px; padding-top: 68px; padding-bottom: 90px; }
.article-content { min-width: 0; }
.article-toc { position: sticky; top: 100px; align-self: start; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-alt); }
.article-toc strong { display: block; margin-bottom: 9px; }
.article-toc a { display: block; padding: 5px 0; color: var(--muted); font-size: .88rem; text-decoration: none; }
.prose { color: #34415c; font-size: 1.04rem; }
.prose h2 { margin-top: 2em; font-size: 1.85rem; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { max-width: 780px; }
.prose li + li { margin-top: 7px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--navy); background: var(--surface-alt); }
.callout { margin: 26px 0; padding: 20px; border-left: 5px solid var(--blue); border-radius: 10px; background: var(--blue-soft); }
.callout.warning { border-color: var(--orange); background: #fff8ed; }
.callout.danger { border-color: var(--red); background: #fff2f2; }
.inline-cta { margin: 34px 0; padding: 25px; border-radius: var(--radius); color: #fff; background: var(--navy); }
.inline-cta h2, .inline-cta h3 { color: #fff; }
.inline-cta p { color: #c1cbe0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 70px 0 90px; }
.page-card { padding: 28px; }
.page-card p { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .split-layout, .source-inner, .article-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .hero-visual { max-width: 550px; }
  .feature-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-heading, .article-toc { position: static; }
  .article-toc { order: -1; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; left: 14px; right: 14px; top: 66px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  .hero { padding: 66px 0; }
  .hero-actions .button { width: 100%; }
  .trust-list { display: block; }
  .trust-list li + li { margin-top: 7px; }
  .tool-section, .steps-section, .content-section, .guides-section, .faq-section { padding: 68px 0; }
  .tool-shell { padding: 7px; }
  .tool-tabs { grid-template-columns: 1fr; }
  .tool-panel, .results { padding: 18px 10px; }
  .drop-zone { padding: 34px 15px; }
  .field-grid, .guide-grid, .contact-grid { grid-template-columns: 1fr; }
  .result-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .health-gauge { width: 180px; height: 180px; }
  .health-gauge::before { width: 146px; height: 146px; }
  .results-head { display: block; }
  .source-chip { margin-top: 10px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 430px) {
  h1 { font-size: 2.35rem; }
  .metric-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr; }
  .mini-stats div + div { border-left: 0; border-top: 1px solid var(--line); }
  .selected-file { align-items: flex-start; }
}

@media print {
  .site-header, .site-footer, .hero, .tool-tabs, .tool-panel:not([hidden]), .steps-section,
  .content-section, .guides-section, .faq-section, .source-section, .result-actions { display: none !important; }
  .tool-section { padding: 0; background: #fff; }
  .tool-shell { box-shadow: none; }
  .results { display: block !important; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
