:root {
  color-scheme: light;
  --bg: #f4efe7;
  --surface: #ffffff;
  --surface-2: #f8f4ed;
  --text: #1f2a37;
  --muted: #626b75;
  --line: rgba(57, 64, 78, .13);
  --line-strong: rgba(57, 64, 78, .22);
  --brand: #0d7c86;
  --brand-strong: #075f67;
  --brand-soft: rgba(13, 124, 134, .10);
  --accent: #d18d00;
  --accent-soft: rgba(209, 141, 0, .12);
  --danger: #b64040;
  --danger-soft: #fff0f1;
  --warning: #865800;
  --warning-soft: #fff7df;
  --shadow: 0 24px 60px rgba(102, 93, 75, .12);
  --shadow-sm: 0 8px 25px rgba(102, 93, 75, .09);
  --radius: 18px;
  --radius-sm: 10px;
  --shell: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); line-height: 1.55; }
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 520px;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 10%, rgba(88, 173, 180, .18), transparent 36%),
    radial-gradient(circle at 86% 15%, rgba(228, 177, 86, .16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(244, 239, 231, 0) 100%);
}

img, svg { max-width: 100%; }
a { color: var(--brand-strong); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--brand); }
button, input, select { font: inherit; }
button { cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-180%); padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--brand-strong); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(244,239,231,.9); backdrop-filter: blur(14px); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); font-size: .8rem; box-shadow: 0 8px 20px rgba(13,124,134,.2); }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 650; font-size: .94rem; }
.top-nav a:hover { color: var(--brand); }

.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: clamp(38px, 7vw, 86px); align-items: center; padding-block: clamp(70px, 10vw, 128px) clamp(54px, 8vw, 96px); }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-size: .79rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 850px; margin: 0; font-size: clamp(2.55rem, 6vw, 5.35rem); line-height: .99; letter-spacing: -.058em; }
.lede { max-width: 760px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.34rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 9px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; font-weight: 700; }
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--accent); }
.hero-proof { position: relative; padding: 34px; overflow: hidden; border: 1px solid rgba(189,200,218,.75); border-radius: 24px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); }
.hero-proof::after { content: ""; position: absolute; width: 190px; height: 190px; right: -65px; bottom: -90px; border-radius: 50%; background: var(--accent-soft); }
.hero-proof > * { position: relative; z-index: 1; }
.proof-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-size: 2rem; font-weight: 800; }
.hero-proof strong { display: block; font-size: 1.35rem; letter-spacing: -.02em; }
.hero-proof p { color: var(--muted); }
.hero-proof code { display: block; margin-top: 20px; padding: 12px 14px; border-radius: 8px; color: #18454a; background: var(--brand-soft); font-size: .78rem; }

.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 780; line-height: 1.2; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .drop-zone:focus-within { outline: 3px solid rgba(13,124,134,.26); outline-offset: 2px; }
.button.primary { color: #fff; background: var(--brand); box-shadow: 0 9px 24px rgba(13,124,134,.22); }
.button.primary:hover { color: #fff; background: var(--brand-strong); }
.button.secondary { color: var(--brand-strong); border-color: rgba(13,124,134,.24); background: var(--brand-soft); }
.button.ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.button.compact { min-height: 36px; padding: 8px 12px; border-radius: 8px; font-size: .84rem; }
.button:disabled { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }

.capability-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.66); }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.capability-grid article { min-height: 122px; padding: 27px 28px; border-right: 1px solid var(--line); }
.capability-grid article:first-child { border-left: 1px solid var(--line); }
.capability-grid strong, .capability-grid span { display: block; }
.capability-grid strong { margin-bottom: 4px; font-size: 1rem; }
.capability-grid span { color: var(--muted); font-size: .88rem; }

.tool-section, .content-section { padding-block: clamp(72px, 9vw, 118px); }
.section-heading { margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p:not(.eyebrow) { max-width: 740px; margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; }
.section-heading.narrow { max-width: 780px; }

.app-shell { display: grid; gap: 18px; }
.app-card { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.step-badge { display: grid; place-items: start center; padding-top: 32px; color: var(--brand); border-right: 1px solid var(--line); background: var(--surface-2); font-weight: 900; font-size: 1.1rem; }
.step-badge.success { color: var(--accent); background: var(--accent-soft); }
.card-content { min-width: 0; padding: clamp(25px, 4vw, 40px); }
.card-content h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -.025em; }
.card-content h3 + p, .card-heading-row p { margin: 6px 0 0; color: var(--muted); }
.card-heading-row { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.card-heading-row.align-end { align-items: flex-end; }
.card-actions { display: flex; justify-content: flex-end; margin-top: 28px; }
.button-group { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.drop-zone { display: grid; place-items: center; min-height: 260px; margin-top: 26px; padding: 36px; text-align: center; border: 2px dashed var(--line-strong); border-radius: 15px; background: linear-gradient(180deg, #fff, #f8f4ed); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.drop-zone strong, .drop-zone span, .drop-zone small { display: block; }
.drop-zone strong { margin-top: 12px; font-size: 1.08rem; }
.drop-zone span { color: var(--muted); }
.drop-zone small { margin-top: 10px; color: var(--muted); }
.drop-icon { display: grid !important; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 1.7rem; font-weight: 900; }
.status-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 260px); gap: 20px; align-items: center; margin-top: 19px; color: var(--muted); font-size: .9rem; }
progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 20px; background: var(--surface-2); }
progress::-webkit-progress-bar { background: var(--surface-2); }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--brand), var(--accent)); }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--brand), var(--accent)); }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 28px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.summary-grid > div { min-width: 0; padding: 18px; background: var(--surface); }
.summary-grid dt { color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.summary-grid dd { margin: 5px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.status-pill { display: inline-flex; min-height: 31px; align-items: center; padding: 6px 10px; border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.status-pill.success { color: #08685c; background: var(--accent-soft); }
.status-pill.danger { color: var(--danger); background: var(--danger-soft); }
.privacy-proof { margin: 20px 0 0; padding-left: 24px; color: var(--muted); font-size: .88rem; }
.privacy-proof::before { content: "✓"; float: left; margin-left: -24px; color: var(--accent); font-weight: 900; }

.alert { padding: 15px 17px; border: 1px solid; border-radius: 10px; }
.alert.danger { color: var(--danger); border-color: #efbdc0; background: var(--danger-soft); }
.alert.warning { margin-top: 18px; color: var(--warning); border-color: #ead28b; background: var(--warning-soft); }
.alert ul { margin-block: 0; padding-left: 22px; }

.form-grid { display: grid; gap: 18px; margin-top: 28px; }
.form-grid.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 7px; }
.field > span, .fieldset-card legend { color: #35415a; font-size: .83rem; font-weight: 800; }
input[type="number"], select { width: 100%; min-height: 44px; padding: 9px 12px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.scope-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 18px; margin-top: 20px; }
.fieldset-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.fieldset-card legend { padding: 0 7px; }
.column-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 285px; overflow: auto; padding-right: 5px; }
.column-choice, .check-row { display: flex; gap: 9px; align-items: flex-start; min-width: 0; padding: 8px 9px; border-radius: 7px; color: var(--muted); font-size: .88rem; }
.column-choice:hover, .check-row:hover { background: var(--surface-2); }
.column-choice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
input[type="checkbox"] { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); }
.fieldset-card .field + .check-row { margin-top: 12px; }
.field-note { color: var(--muted); font-size: .82rem; }
.advanced-options { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; }
.advanced-options summary { padding: 16px 18px; cursor: pointer; font-weight: 800; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; padding: 0 18px 18px; }
.inline-field { grid-column: 1 / -1; grid-template-columns: minmax(180px, .8fr) minmax(220px, 1fr); align-items: center; }
.reference-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 16px 18px; border-radius: 11px; background: var(--surface-2); }
.reference-panel p { margin: 4px 0 0; color: var(--muted); font-size: .84rem; }
.file-button { cursor: pointer; }

.table-wrap { margin-top: 25px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.findings-table { width: 100%; min-width: 1040px; border-collapse: collapse; font-size: .84rem; }
.findings-table th { position: sticky; top: 0; z-index: 1; padding: 12px 14px; text-align: left; color: #46536b; border-bottom: 1px solid var(--line-strong); background: #f8f4ed; font-size: .73rem; text-transform: uppercase; letter-spacing: .05em; }
.findings-table td { max-width: 300px; padding: 13px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
.findings-table tr:last-child td { border-bottom: 0; }
.findings-table tbody tr:hover { background: rgba(13,124,134,.05); }
.findings-table td code, .findings-table td small { display: block; }
.findings-table td small { margin-top: 5px; color: var(--muted); }
.candidate-select { min-width: 260px; max-width: 100%; }

.success-card { border-color: #a6dacf; }
.download-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.download-button { text-align: left; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { position: relative; min-height: 265px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.feature-number { color: var(--brand); font-weight: 900; font-size: .82rem; letter-spacing: .06em; }
.feature-card h3 { margin: 45px 0 10px; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; }
.feature-card p { margin: 0; color: var(--muted); }
.center-link { margin: 27px 0 0; text-align: center; }

.privacy-section { padding-block: clamp(70px, 9vw, 108px); color: var(--text); border-block: 1px solid var(--line); background: rgba(255,255,255,.46); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 8vw, 105px); align-items: start; }
.privacy-section .eyebrow { color: var(--brand); }
.privacy-section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.045em; }
.privacy-section p { color: var(--muted); }
.privacy-list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.privacy-list li { padding: 19px 21px; background: rgba(255,255,255,.84); }
.privacy-list strong, .privacy-list span { display: block; }
.privacy-list span { margin-top: 4px; color: var(--muted); font-size: .88rem; }

.faq-list { display: grid; gap: 10px; max-width: 950px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq-list summary { padding: 20px 22px; cursor: pointer; font-weight: 820; }
.faq-list p { margin: 0; padding: 0 22px 22px; color: var(--muted); }
.related-section { padding-bottom: clamp(72px, 9vw, 118px); }
.related-section h2 { font-size: 1.6rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-grid a { display: block; min-height: 145px; padding: 23px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: var(--surface); text-decoration: none; }
.related-grid a:hover { border-color: rgba(13,124,134,.35); box-shadow: var(--shadow-sm); }
.related-grid strong, .related-grid span { display: block; }
.related-grid span { margin-top: 8px; color: var(--muted); font-size: .9rem; }

.site-footer { color: var(--muted); border-top: 1px solid var(--line); background: rgba(255,255,255,.72); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; padding-block: 38px; }
.footer-inner strong { color: var(--text); }
.footer-inner p { margin: 5px 0 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.footer-inner a { color: var(--brand-strong); }

.prose-page { min-height: 75vh; padding-block: 70px 100px; }
.prose-shell { width: min(calc(100% - 40px), 860px); margin-inline: auto; }
.prose-shell h1 { margin: 0; font-size: clamp(2.35rem, 6vw, 4.7rem); line-height: 1.02; letter-spacing: -.055em; }
.prose-shell h2 { margin-top: 52px; font-size: 1.7rem; letter-spacing: -.025em; }
.prose-shell h3 { margin-top: 34px; }
.prose-shell p, .prose-shell li { color: var(--muted); }
.prose-shell table { width: 100%; border-collapse: collapse; margin: 25px 0; font-size: .9rem; }
.prose-shell th, .prose-shell td { padding: 11px 12px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.prose-shell th { background: var(--surface-2); }
.prose-callout { margin: 28px 0; padding: 20px 22px; border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; background: var(--brand-soft); }
.prose-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-proof { max-width: 620px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-grid article:nth-child(odd) { border-left: 1px solid var(--line); }
  .capability-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .site-header { position: static; }
  .header-inner { min-height: 62px; }
  .top-nav { display: none; }
  .hero { padding-top: 55px; }
  .hero h1 { font-size: clamp(2.4rem, 13vw, 4.2rem); }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article, .capability-grid article:first-child, .capability-grid article:nth-child(odd) { border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .app-card { grid-template-columns: 42px minmax(0, 1fr); }
  .step-badge { padding-top: 25px; }
  .card-content { padding: 23px 17px; }
  .card-heading-row, .reference-panel, .footer-inner { align-items: flex-start; flex-direction: column; }
  .status-row { grid-template-columns: 1fr; }
  .summary-grid, .form-grid.two-column, .scope-grid, .column-list, .rule-grid, .feature-grid { grid-template-columns: 1fr; }
  .inline-field { grid-column: auto; grid-template-columns: 1fr; }
  .button-group { justify-content: flex-start; }
  .card-actions { justify-content: stretch; }
  .card-actions .button { width: 100%; }
  .download-list { display: grid; }
  .download-list .button { width: 100%; }
  .footer-inner nav { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
