:root { color-scheme: light dark; --field-line: #5F7590;
  --bg: #E0E1DD; --surface: #F4F5F2; --ink: #0D1B2A; --muted: #415A77;
  --line: #B9C2CF; --accent: #415A77; --accent-ink: #FFFFFF;
  --good: #1f7a4d; --bad: #a33a2b; --radius: 14px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1B2A; --surface: #1B263B; --ink: #E0E1DD; --muted: #8FA2BB;
    --line: #2C3A52; --accent: #A9BBD1; --accent-ink: #0D1B2A; --field-line: #5F7590;
    --good: #5fc28f; --bad: #e57f6f;
  }
}
:root[data-theme="dark"] { color-scheme: dark;
  --bg: #0D1B2A; --surface: #1B263B; --ink: #E0E1DD; --muted: #8FA2BB;
  --line: #2C3A52; --accent: #A9BBD1; --accent-ink: #0D1B2A; --field-line: #5F7590;
  --good: #5fc28f; --bad: #e57f6f; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.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 { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
header.top { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand img { display: block; border-radius: 7px; }
.topnav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.topnav a:not(.btn) { color: var(--ink); text-decoration: none; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 14px 24px; border-radius: 999px; font-weight: 650;
  text-decoration: none; border: 0; cursor: pointer; font: inherit; font-size: 16px; font-weight: 650; }
.btn.small { padding: 11px 18px; font-size: 14px; }
.btn { transition: transform .15s; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
button:disabled { opacity: .55; cursor: not-allowed; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.lede { color: var(--muted); font-size: 19px; margin: 0 0 24px; max-width: 36em; }
.intro { padding: 32px 0 24px; }
section { padding: 48px 0; border-top: 1px solid var(--line); }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 6px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.grid3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.num { font-weight: 800; color: var(--accent); font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 10px; }
.status { font-size: 14px; color: var(--muted); margin: 10px 0 0; min-height: 1.2em; }
.pricenote { font-size: 15px; font-weight: 600; color: var(--muted); }
.mb-0 { margin-bottom: 0 !important; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.checks li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 15px; }
ul.checks .ic { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding-top: 3px; }
ul.checks .ic.pass { color: var(--good); } ul.checks .ic.fail { color: var(--bad); }
ul.checks .t { font-weight: 650; color: var(--ink); }
ul.checks .d { color: var(--muted); display: block; }
table.spec { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.spec th, table.spec td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ctaband { text-align: center; }
.ctaband .card { padding: 36px 22px; }
.ctaband .sub { margin-left: auto; margin-right: auto; }
.ctaband .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.field { margin: 0 0 28px; }
.field h3 { margin: 0 0 8px; font-size: 19px; }
ul.exlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.exlist li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
ul.exlist .h { font-weight: 600; display: block; word-break: break-word; }
ul.exlist .why { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.avoid li { margin-bottom: 6px; color: var(--muted); }

.photo .phgrid { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 20px; align-items: start; margin-top: 14px; }
.photo .drop { border: 1.5px dashed var(--field-line); border-radius: 12px; padding: 14px; background: var(--bg); }
.photo .drop.over { border-color: var(--accent); }
.photo .drop label { display: block; font-weight: 650; margin-bottom: 8px; }
.photo input[type=file] { max-width: 100%; font: inherit; font-size: 15px; color: var(--ink); }
.photo input[type=file]::file-selector-button { font: inherit; font-weight: 650; border: 0; border-radius: 999px; padding: 9px 16px; margin-right: 10px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.photo canvas.stage { display: block; width: 100%; max-width: 340px; aspect-ratio: 1; border-radius: 12px; background: repeating-conic-gradient(var(--line) 0 25%, var(--bg) 0 50%) 0 0 / 20px 20px; touch-action: none; cursor: grab; margin-top: 12px; }
.photo canvas.stage:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.photo:not(.has-photo) canvas.stage { cursor: default; }
.photo .ctrl { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; font-weight: 650; }
.photo input[type=range] { width: 100%; height: 32px; accent-color: var(--accent); }
.photo .sizes { display: flex; align-items: flex-end; gap: 14px; margin: 12px 0 0; flex-wrap: wrap; }
.photo .sizes figure { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.photo .sizes img { display: block; border-radius: 50%; border: 1px solid var(--line); margin: 0 auto 4px; }
.photo .btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.photo .selfcheck { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.photo .selfcheck li { margin-bottom: 4px; }

.mask { display: block; overflow: hidden; }
.mask-in { display: block; }
.toolcards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.toolcards .toolcard .surface { height: 100%; }
.toolcards .toolcard:first-child { grid-row: span 2; }
.toolcards .toolcard:first-child .tc-title { font-size: 22px; }
.toolcard { display: block; text-decoration: none; color: inherit; border-radius: var(--radius); }
.toolcard .surface { display: block; position: relative; isolation: isolate; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .2s cubic-bezier(.22,1,.36,1); }
.toolcard .surface::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: 0 10px 24px -12px rgba(13,27,42,.35); opacity: 0; transition: opacity .2s; z-index: -1; }
@media (hover: hover) { .toolcard:hover .surface { transform: translateY(-3px); } .toolcard:hover .surface::after { opacity: 1; } }
.toolcard:active .surface { transform: translateY(-1px) scale(.99); }
.toolcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tc-title { display: block; font-weight: 700; color: var(--ink); }
.tc-body { display: block; color: var(--muted); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .toolcard .surface { transition: none; } .toolcard:hover .surface, .toolcard:active .surface, .btn:active { transform: none; } }

footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer p { margin: 4px 0; }
.fcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 22px; }
.fcols h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.fcols ul { list-style: none; padding: 0; margin: 0; }
.fcols li { margin: 0 0 6px; }
.fcols a { color: var(--muted); }

@media (max-width: 820px) {
  .grid3, .grid2, .photo .phgrid, .toolcards { grid-template-columns: 1fr; }
  .toolcards .toolcard:first-child { grid-row: auto; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .topnav a:not(.btn) { display: none; }
  .btn.small { min-height: 44px; padding: 11px 18px; }
}
