/* SAFE_EML_VIEW_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;
  --danger: #9a3c32;
  --warning: #84601d;
  --info: #39745f;
  --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 { font: inherit; }
a { color: var(--accent-dark); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
code, pre { font-family: var(--mono); }

.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 { 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 { 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 0 .5rem; 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: 55ch; margin: .7rem 0 0; color: var(--muted); font-size: .78rem; }

.workbench { min-width: 0; overflow: hidden; border: 1px solid #3c433f; border-radius: 18px; background: var(--ink); color: var(--white); 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; }
.input-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.field-card { position: relative; min-width: 0; padding: clamp(1rem, 2vw, 1.35rem); }
.field-card + .field-card { border-left: 1px solid rgba(255, 254, 250, .14); }
.field-number { position: absolute; top: 1.1rem; right: 1.2rem; color: rgba(255, 254, 250, .35); font-family: var(--mono); font-size: .68rem; }
label { display: block; padding-right: 2rem; font-weight: 750; }
.field-intro { min-height: 2.6em; margin: .25rem 0 1rem; color: #b7b9b3; font-size: .78rem; }
input[type="file"], textarea { width: 100%; border: 1px solid rgba(255, 254, 250, .28); border-radius: 10px; color: var(--white); background: #282e2b; }
input[type="file"] { min-height: 116px; padding: .8rem; font-size: .76rem; }
input[type="file"]::file-selector-button { display: block; min-height: 40px; margin: 0 0 .72rem; padding: .55rem .8rem; border: 0; border-radius: 7px; color: var(--ink); background: #dfe9e3; font: inherit; font-weight: 750; cursor: pointer; }
input[type="file"]:hover::file-selector-button { background: #c7dbd1; }
textarea { min-height: 116px; resize: vertical; padding: .75rem; font-family: var(--mono); font-size: .78rem; line-height: 1.5; }
input[type="file"]:hover, textarea:hover { border-color: rgba(255, 254, 250, .52); }
input[type="file"]:focus, textarea:focus { border-color: #9bc3b3; background: #2d3430; }
.hint { color: var(--muted); font-size: .8rem; }
.workbench .hint { margin: .65rem 0 0; color: #aeb2ac; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0 1.25rem 1rem; }
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-panel { 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; }
.preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; background: rgba(251, 249, 243, .8); }
.preview-grid article { min-width: 0; padding: clamp(1rem, 2vw, 1.4rem); }
.preview-grid article + article { border-left: 1px solid var(--line); }
.preview-grid p { margin: 0; color: var(--muted); font-size: .84rem; }
.preview-index { display: block; margin-bottom: 1.5rem; color: var(--accent-dark); font-family: var(--mono); font-size: .7rem; }

.results-panel { animation: enter 240ms ease both; }
.result-heading { align-items: center; }
.result-label { justify-self: end; padding: .42rem .62rem; border: 1px solid var(--line); border-radius: 999px; color: var(--accent-dark); font-family: var(--mono); font-size: .7rem; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.result-grid > section { min-width: 0; padding: 1.15rem; }
.result-grid > section + section { border-left: 1px solid var(--line); }
.key-values { display: grid; grid-template-columns: minmax(7rem, auto) minmax(0, 1fr); gap: .35rem .7rem; margin: 0; font-size: .84rem; }
.key-values dt { color: var(--muted); font-family: var(--mono); font-size: .7rem; }
.key-values dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.result-section { min-width: 0; margin-top: 1rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.result-detail-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; min-width: 38rem; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; }
th, td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
th { color: var(--muted); background: var(--paper-deep); font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.finding-list { display: grid; gap: .55rem; margin: 0; padding-left: 1.2rem; font-size: .84rem; }
.finding-error { color: var(--danger); }
.finding-warning { color: var(--warning); }
.finding-info { color: var(--info); }
.preview { min-height: 9rem; max-height: 22rem; overflow: auto; margin: 0; padding: 1rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; color: #e9ede9; background: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .78rem; font-variant-numeric: tabular-nums; }

.boundary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; max-width: 950px; 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(--warning); border-radius: 50%; color: var(--warning); font-family: var(--mono); font-weight: 800; }
.boundary h2 { font-size: 1.25rem; }
.boundary p:last-child { max-width: 65ch; margin: .55rem 0 0; color: var(--muted); font-size: .86rem; }

.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-results { padding-left: 1.4rem; }
.result-pass { color: var(--accent-dark); }
.result-fail { color: var(--danger); }

@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: 100px 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; }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .preview-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .result-grid, .result-detail-grid { grid-template-columns: 1fr; }
  .result-grid > section + section { border-left: 0; border-top: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; gap: .6rem; }
  .result-label { justify-self: start; }
}
@media (max-width: 620px) {
  .brand-bar { grid-template-columns: 1fr auto; }
  .product-name { display: none; }
  main { gap: 3rem; padding-top: 2rem; }
  .input-grid { grid-template-columns: 1fr; }
  .field-card + .field-card { border-left: 0; border-top: 1px solid rgba(255, 254, 250, .14); }
  .actions button { width: 100%; }
  .proof-list { grid-template-columns: 1fr; }
  .proof-list li { display: grid; grid-template-columns: 95px 1fr; gap: .5rem; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-grid article + article, .preview-grid article:nth-child(3), .preview-grid article:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .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, .field-card { padding-inline: .9rem; }
  .actions { padding-inline: .9rem; }
  .offer { padding-inline: 1rem; }
}
/* Resolve intrinsic and automatic minimum sizing at the component source. */
input[type="file"], textarea { min-width: 0; max-width: 100%; }
.brand-bar > *, .hero-grid > *, .workbench-bar > *, .input-grid > *, .actions > *,
.section-heading > *, .preview-grid > *, .result-grid > *, .result-detail-grid > *,
.boundary > *, .offer > *, .offer-scope > *, footer > * { min-width: 0; }
.brand, .privacy-chip, .button-link, button { max-width: 100%; }
.button-link, button { white-space: normal; overflow-wrap: anywhere; text-align: center; }
.status, .finding-list li, .offer p, .offer li, footer { overflow-wrap: anywhere; }
.table-wrap, .preview { min-width: 0; max-width: 100%; }
.table-wrap { overscroll-behavior-inline: contain; }

@media (max-width: 1040px) {
  .proof-list li { grid-template-columns: 100px minmax(0, 1fr); }
  .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .hero-grid, .result-grid, .result-detail-grid, .section-heading { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .brand-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .input-grid, .proof-list, .preview-grid, .offer { grid-template-columns: minmax(0, 1fr); }
  .proof-list li { grid-template-columns: 95px minmax(0, 1fr); }
  .offer-scope { grid-template-columns: auto 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; }
}
