/* IMPORT_MAP_CSP_STYLE_MARKER */
:root {
  color-scheme: light;
  --ink: #1d211f;
  --ink-soft: #303733;
  --muted: #686b63;
  --paper: #f2efe7;
  --paper-deep: #e9e4d9;
  --panel: #fbf9f3;
  --white: #fffefa;
  --line: #cfc8ba;
  --line-dark: #aaa293;
  --accent: #39745f;
  --accent-dark: #245744;
  --accent-soft: #dce9e1;
  --focus: #9b5e20;
  --pass: #2f6d54;
  --review: #84601d;
  --error: #9a3c32;
  --display: "Segoe UI Variable", "SF Pro Display", "Aptos Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Aptos", "Segoe UI Variable Text", "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-family: var(--body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(29, 33, 31, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 33, 31, .028) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: var(--body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
a { color: var(--accent-dark); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
code, pre { font-family: var(--mono); overflow-wrap: anywhere; }

.page-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.brand-bar, main, footer { width: min(1240px, calc(100% - clamp(1rem, 4vw, 3rem))); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100; padding: .75rem 1rem; border-radius: 0 0 .5rem .5rem; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 0; }

.brand-bar {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; color: var(--ink); font-weight: 750; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: .75rem; }
.product-name { color: var(--muted); font-weight: 650; }
.privacy-chip { justify-self: end; display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(251, 249, 243, .72); font-weight: 700; }
.privacy-chip > span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

main { flex: 1; display: grid; gap: clamp(2.5rem, 6vw, 5rem); padding: clamp(2rem, 5vw, 4.75rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-grid { min-height: calc(100dvh - 64px - clamp(4rem, 10vw, 9.5rem)); display: grid; grid-template-columns: minmax(0, .82fr) minmax(540px, 1.18fr); align-items: center; gap: clamp(2rem, 5vw, 5.5rem); }
.hero-copy { min-width: 0; padding-block: 1rem; }
.eyebrow, .step, .preview-label { margin: 0 0 .65rem; color: var(--accent-dark); font-family: var(--mono); font-size: .72rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; }
h1 { max-width: 12ch; margin: 0; font-size: clamp(2.65rem, 5.8vw, 5.25rem); font-weight: 720; letter-spacing: -.055em; line-height: .96; }
h2 { margin: 0; font-size: clamp(1.55rem, 2.5vw, 2.35rem); letter-spacing: -.025em; line-height: 1.08; }
h3 { margin: 0; font-size: 1rem; letter-spacing: -.01em; line-height: 1.2; }
p { text-wrap: pretty; }
.lede { max-width: 62ch; margin: 1.35rem 0 0; color: var(--ink-soft); font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.65; }
.proof-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: clamp(1.5rem, 3vw, 2.25rem) 0; padding: 0; list-style: none; }
.proof-list li { min-width: 0; padding-top: .85rem; border-top: 1px solid var(--line-dark); }
.proof-list strong, .proof-list span { display: block; }
.proof-list strong { font-size: .86rem; }
.proof-list span { margin-top: .18rem; color: var(--muted); font-size: .74rem; line-height: 1.35; }
.button-link, button { min-height: 46px; border-radius: 8px; font-weight: 750; transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease; }
.button-link { display: inline-flex; align-items: center; justify-content: center; padding: .72rem 1rem; border: 1px solid var(--accent-dark); background: var(--accent-dark); color: var(--white); text-decoration: none; }
.button-link:hover { transform: translateY(-2px); background: var(--ink); border-color: var(--ink); text-decoration: none; }
.button-link:active, button:active:not(:disabled) { transform: translateY(1px); }
.microcopy { max-width: 58ch; margin: .7rem 0 0; color: var(--muted); font-size: .78rem; }

.workbench { min-width: 0; overflow: hidden; border: 1px solid #3c433f; border-radius: 18px; color: var(--white); background: var(--ink); box-shadow: 0 28px 70px rgba(29, 33, 31, .18); }
.workbench-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.25rem; border-bottom: 1px solid rgba(255, 254, 250, .14); }
.workbench .step { color: #9bc3b3; }
.workbench h2 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.ready-indicator { display: inline-flex; align-items: center; gap: .45rem; flex: none; padding: .35rem .55rem; border: 1px solid rgba(155, 195, 179, .38); border-radius: 999px; color: #b9d8cc; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }
.ready-indicator::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #86bea8; }
.workbench-section { min-width: 0; padding: 1rem 1.25rem; }
.workbench-section + .workbench-section { border-top: 1px solid rgba(255, 254, 250, .14); }
.compact-label { display: block; margin: 0 0 .35rem; font-size: .76rem; font-weight: 750; }
select, input[type="file"], textarea { width: 100%; border: 1px solid rgba(255, 254, 250, .28); border-radius: 9px; color: var(--white); background: #282e2b; }
select { min-height: 44px; padding: .58rem 2rem .58rem .7rem; }
textarea { min-height: 86px; resize: vertical; padding: .7rem; font-family: var(--mono); font-size: .76rem; line-height: 1.5; }
textarea::placeholder { color: #929890; opacity: 1; }
select:hover, input[type="file"]:hover, textarea:hover { border-color: rgba(255, 254, 250, .52); }
select:focus, input[type="file"]:focus, textarea:focus { border-color: #9bc3b3; background: #2d3430; }
.file-field { margin: .85rem 0; }
.drop-zone { display: grid; grid-template-columns: minmax(0, 1fr); padding: .85rem; border: 1px dashed rgba(155, 195, 179, .48); border-radius: 10px; background: rgba(57, 116, 95, .09); }
.drop-kicker { color: #9bc3b3; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.drop-title { margin: .2rem 0 .65rem; font-size: .9rem; font-weight: 750; }
input[type="file"] { min-height: 42px; padding: .35rem; font-size: .72rem; }
input[type="file"]::file-selector-button { min-height: 34px; margin-right: .6rem; padding: .42rem .65rem; border: 0; border-radius: 6px; color: var(--ink); background: #dfe9e3; font: inherit; font-weight: 750; cursor: pointer; }
input[type="file"]:hover::file-selector-button { background: #c7dbd1; }
.hint { color: var(--muted); font-size: .8rem; }
.workbench .hint { margin: .45rem 0 0; color: #aeb2ac; }
.workbench code { color: #c2d9d0; }
.policy-section { background: #202522; }
.policy-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.policy-heading .step { margin-bottom: .2rem; }
.policy-heading > span { color: #969b94; font-family: var(--mono); font-size: .65rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; padding: 1rem 1.25rem; border-top: 1px solid rgba(255, 254, 250, .14); }
button { border: 1px solid rgba(255, 254, 250, .25); padding: .68rem .95rem; cursor: pointer; }
button.primary { border-color: #8bb9a7; background: #8bb9a7; color: #132019; }
button.primary:hover:not(:disabled) { border-color: #a9cbbb; background: #a9cbbb; transform: translateY(-2px); }
button.secondary { background: transparent; color: var(--white); }
button.secondary:hover:not(:disabled) { border-color: #8bb9a7; background: rgba(139, 185, 167, .1); transform: translateY(-2px); }
button.tertiary { border-color: transparent; background: transparent; color: #b8bcb6; }
button.tertiary:hover:not(:disabled) { color: var(--white); background: rgba(255, 255, 255, .06); }
button:disabled { cursor: not-allowed; opacity: .38; transform: none; }
.status { min-height: 2.7rem; margin: 0; padding: .7rem 1.25rem; border-top: 1px solid rgba(255, 254, 250, .14); color: #c7cac4; background: #171b19; font-family: var(--mono); font-size: .73rem; }
.status::before { content: "> "; color: #8bb9a7; }
.status.error { color: #f0aaa2; }
.status.error::before { color: #f0aaa2; }

.example-preview, .results { min-width: 0; border-top: 1px solid var(--line-dark); padding-top: clamp(1.4rem, 3vw, 2.2rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr); align-items: end; gap: 2rem; margin-bottom: 1.4rem; }
.section-heading > p { max-width: 52ch; margin: 0; color: var(--muted); font-size: .9rem; }
.hash-preview { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid #3c433f; border-radius: 16px; color: #e9ede9; background: var(--ink); }
.preview-rail { grid-column: 1 / -1; display: flex; gap: .35rem; padding: .7rem .9rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.preview-rail span { width: 7px; height: 7px; border-radius: 50%; background: #59605b; }
.preview-rail span:first-child { background: #739d8c; }
.preview-label { display: block; margin-bottom: .7rem; color: #9bc3b3; }
.preview-block { grid-row: span 2; padding: 1.2rem; border-right: 1px solid rgba(255, 255, 255, .12); }
.preview-block dl { margin: 0; }
.preview-block dl > div { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: .7rem; padding: .52rem 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.preview-block dt { color: #aeb2ac; font-family: var(--mono); font-size: .67rem; }
.preview-block dd { margin: 0; font-family: var(--mono); font-size: .72rem; overflow-wrap: anywhere; }
.preview-fragment { min-width: 0; padding: 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.preview-fragment code { display: block; padding: .8rem; border-radius: 7px; color: #d5e8e0; background: #131715; font-size: .78rem; white-space: pre-wrap; }
.preview-notes { display: grid; grid-template-columns: 1fr 1fr; }
.preview-notes > div { min-width: 0; padding: 1rem 1.2rem; }
.preview-notes > div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.preview-notes p { margin: 0; color: #b8bcb6; font-size: .78rem; }

.warning { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; max-width: 1040px; padding: clamp(1rem, 2vw, 1.4rem); border: 1px solid var(--line); border-radius: 12px; background: rgba(251, 249, 243, .7); }
.boundary-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--review); border-radius: 50%; color: var(--review); font-family: var(--mono); font-weight: 800; }
.warning h2 { font-size: 1.25rem; }
.warning p:not(.step) { max-width: 65ch; margin: .55rem 0 0; color: var(--muted); font-size: .86rem; }

.results { animation: enter 240ms ease both; }
.result-heading { align-items: center; }
.status-badge { justify-self: end; padding: .42rem .62rem; border: 1px solid currentColor; border-radius: 999px; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; }
.state-pass { color: var(--pass); font-weight: 800; }
.state-review { color: var(--review); font-weight: 800; }
.state-error { color: var(--error); font-weight: 800; }
.result-section { min-width: 0; margin-top: 1rem; padding: clamp(1rem, 2vw, 1.25rem); border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.result-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.block-list { display: grid; gap: .8rem; margin-top: .8rem; }
.block-card { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.block-card h4 { margin: 0 0 .6rem; }
.block-card dl { display: grid; grid-template-columns: minmax(175px, .55fr) minmax(0, 1.45fr); margin: 0; font-size: .82rem; }
.block-card dt, .block-card dd { min-width: 0; margin: 0; padding: .48rem; border-bottom: 1px solid var(--line); }
.block-card dt { color: var(--muted); font-family: var(--mono); font-size: .7rem; }
.block-card dd { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.policy-fragment { min-height: 3rem; margin: .7rem 0 0; padding: 1rem; border: 1px solid #3c433f; border-radius: 9px; color: #d5e8e0; background: var(--ink); white-space: pre-wrap; font-size: .78rem; font-variant-numeric: tabular-nums; }
.result-list { margin: .7rem 0 0; padding-left: 1.3rem; }
.result-list li { margin-bottom: .7rem; padding-left: .15rem; }
.finding-code { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 800; }

.limits { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: clamp(1.5rem, 5vw, 5rem); padding-top: clamp(1.4rem, 3vw, 2.2rem); border-top: 1px solid var(--line-dark); }
.limits h2 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.limits-copy { max-width: 65ch; color: var(--muted); font-size: .86rem; }
.limits-copy p { margin: 0; }
.limits-copy p + p { margin-top: .75rem; }

.offer { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(220px, .72fr) minmax(280px, .95fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding: clamp(1.4rem, 3.5vw, 2.5rem); border-radius: 18px; color: var(--white); background: var(--ink); }
.offer .eyebrow { color: #9bc3b3; }
.offer-summary > p:last-child { max-width: 52ch; margin: .8rem 0 0; color: #c0c3bd; }
.offer-scope { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; }
.price { padding-right: 1.1rem; border-right: 1px solid rgba(255, 255, 255, .16); font-variant-numeric: tabular-nums; }
.price span, .price strong { display: block; }
.price span { color: #9bc3b3; font-family: var(--mono); font-size: .68rem; }
.price strong { font-family: var(--display); font-size: 2.65rem; line-height: 1; }
.offer ul { margin: 0; padding-left: 1.15rem; color: #d8dad5; font-size: .84rem; }
.offer li + li { margin-top: .35rem; }
.offer-action .button-link { border-color: #9bc3b3; background: #9bc3b3; color: #132019; }
.offer-action .button-link:hover { border-color: var(--white); background: var(--white); }
.offer-action p { max-width: 58ch; margin: .8rem 0 0; color: #c0c3bd; font-size: .8rem; }
.offer-action .hint { color: #9fa49d; }

footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.25rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
footer p { max-width: 65ch; margin: 0; text-align: right; }
.footer-brand { color: var(--ink); font-weight: 750; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.test-page main { display: block; width: min(900px, calc(100% - 2rem)); padding-top: 2rem; }
.test-page h1 { max-width: none; font-size: clamp(2rem, 5vw, 3.4rem); }
.test-summary { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; font-weight: 800; }
.test-summary.pass { color: #275d49; background: #dfece4; }
.test-summary.fail { color: #8d352c; background: #f5dfdb; }
.test-results { padding-left: 1.4rem; }
.result-pass { color: var(--pass); }
.result-fail { color: var(--error); }

@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1040px) {
  .hero-grid { min-height: auto; grid-template-columns: minmax(0, .72fr) minmax(480px, 1.28fr); gap: 2rem; }
  .proof-list { grid-template-columns: 1fr; gap: .4rem; }
  .proof-list li { display: grid; grid-template-columns: 110px 1fr; gap: .5rem; }
  .offer { grid-template-columns: 1fr 1fr; }
  .offer-action { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  h1 { max-width: 13ch; }
  .proof-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof-list li { display: block; }
  .section-heading { grid-template-columns: 1fr; gap: .6rem; }
  .status-badge { justify-self: start; }
  .result-pair { grid-template-columns: 1fr; }
  .limits { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 620px) {
  .brand-bar { grid-template-columns: 1fr auto; }
  .product-name { display: none; }
  main { gap: 3rem; padding-top: 2rem; }
  .actions button { width: 100%; }
  .proof-list { grid-template-columns: 1fr; }
  .proof-list li { display: grid; grid-template-columns: 105px 1fr; gap: .5rem; }
  .hash-preview { grid-template-columns: 1fr; }
  .preview-block { grid-row: auto; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .preview-notes { grid-template-columns: 1fr; }
  .preview-notes > div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .block-card dl { grid-template-columns: 1fr; }
  .block-card dd { padding-top: 0; }
  .offer { grid-template-columns: 1fr; }
  .offer-action { grid-column: auto; }
  footer { display: block; }
  footer p { margin-top: .5rem; text-align: left; }
}
@media (max-width: 380px) {
  .brand-bar, main, footer { width: calc(100% - 1rem); }
  .brand-bar { min-height: 56px; }
  .privacy-chip { padding: .35rem .5rem; font-size: .72rem; }
  h1 { font-size: clamp(2.35rem, 13vw, 3.1rem); }
  .workbench { border-radius: 12px; }
  .workbench-bar, .workbench-section, .actions { padding-inline: .9rem; }
  .policy-heading { align-items: start; }
  .offer { padding-inline: 1rem; }
}
/* Resolve intrinsic and automatic minimum sizing at the component source. */
select, input[type="file"], textarea { min-width: 0; max-width: 100%; }
.brand-bar > *, .hero-grid > *, .workbench-bar > *, .workbench-section > *,
.policy-heading > *, .actions > *, .section-heading > *, .hash-preview > *,
.preview-notes > *, .warning > *, .result-pair > *, .limits > *, .offer > *,
.offer-scope > *, footer > * { min-width: 0; }
.brand, .privacy-chip, .drop-zone, .button-link, button, .policy-fragment { max-width: 100%; }
.button-link, button { white-space: normal; overflow-wrap: anywhere; text-align: center; }
.status, .finding-code, .result-list li, .offer p, .offer li, footer { overflow-wrap: anywhere; }
.result-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer-scope { grid-template-columns: auto minmax(0, 1fr); }

@media (max-width: 1040px) {
  .proof-list li { grid-template-columns: 110px minmax(0, 1fr); }
  .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .hero-grid, .section-heading, .result-pair, .limits { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .brand-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .proof-list, .hash-preview, .preview-notes, .block-card dl, .offer { grid-template-columns: minmax(0, 1fr); }
  .proof-list li { grid-template-columns: 105px minmax(0, 1fr); }
}

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