:root {
  color-scheme: light;
  --ink: #10241d;
  --muted: #5f6e67;
  --forest: #0b241c;
  --forest-soft: #173c30;
  --paper: #f6f5ee;
  --card: #fffef9;
  --lime: #d7ff6f;
  --aqua: #81ded4;
  --violet: #7772ec;
  --line: rgba(16, 36, 29, .13);
  --shadow: 0 22px 65px rgba(11, 36, 28, .13);
  font-family: "Aptos", "Segoe UI Variable", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.skip-link {
  background: white;
  color: var(--ink);
  left: 12px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.topbar {
  align-items: center;
  background: rgba(11, 36, 28, .96);
  color: white;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 74px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.wordmark {
  color: inherit;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.07em;
  text-decoration: none;
}
.wordmark span { color: var(--lime); }
.topbar > p { color: rgba(255, 255, 255, .62); font-size: .82rem; margin: 0; text-align: center; }
.quiet-button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: .88rem;
  font-weight: 800;
  gap: 9px;
  justify-self: end;
  min-height: 42px;
  padding: 8px 13px;
}
.quiet-button span {
  background: var(--lime);
  border-radius: 999px;
  color: var(--forest);
  display: grid;
  font-size: .75rem;
  height: 23px;
  min-width: 23px;
  padding: 0 5px;
  place-items: center;
}

.checker {
  background:
    radial-gradient(circle at 8% 8%, rgba(129, 222, 212, .18), transparent 27rem),
    radial-gradient(circle at 88% 4%, rgba(215, 255, 111, .14), transparent 28rem),
    var(--forest);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(380px, 1.15fr);
  min-height: 610px;
  overflow: hidden;
  padding: clamp(62px, 8vw, 118px) clamp(18px, 7vw, 110px);
  position: relative;
}
.checker::after {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: "";
  height: 540px;
  pointer-events: none;
  position: absolute;
  right: -350px;
  top: -330px;
  width: 540px;
}
.checker-copy { align-self: center; max-width: 510px; padding-right: clamp(30px, 6vw, 92px); }
.eyebrow {
  color: #61716a;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .14em;
  margin: 0 0 13px;
  text-transform: uppercase;
}
.checker .eyebrow { color: var(--aqua); }
.checker h1 {
  font-size: clamp(3.5rem, 6.8vw, 6.7rem);
  letter-spacing: -.075em;
  line-height: .9;
  margin: 0;
  text-wrap: balance;
}
.checker-copy > p:last-child { color: #bdcdc3; font-size: 1.08rem; line-height: 1.6; margin: 27px 0 0; max-width: 430px; }

.situation-form {
  align-self: end;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
  grid-column: 2;
  padding: clamp(20px, 3vw, 32px);
  position: relative;
  z-index: 1;
}
.situation-form > label { display: block; font-size: .9rem; font-weight: 800; margin: 0 0 10px; }
.input-row { background: white; border-radius: 18px; display: grid; gap: 7px; grid-template-columns: 1fr auto; padding: 7px; }
.input-row:focus-within { box-shadow: 0 0 0 4px rgba(215, 255, 111, .22); }
.input-row input { background: transparent; border: 0; color: var(--ink); font-size: 1.05rem; min-width: 0; outline: 0; padding: 14px 15px; }
.input-row input::placeholder { color: #829088; }
.input-row input[aria-invalid="true"] { color: #a12727; }
.input-row button,
.primary-button {
  align-items: center;
  background: var(--lime);
  border: 0;
  border-radius: 13px;
  color: var(--forest);
  display: inline-flex;
  font-weight: 850;
  gap: 12px;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
}
.input-help { color: rgba(255, 255, 255, .58); font-size: .78rem; line-height: 1.5; margin: 12px 2px 0; }
.form-status { color: #ffcaad; font-size: .83rem; font-weight: 750; margin: 7px 2px 0; min-height: 19px; }

.examples { align-self: start; display: flex; flex-wrap: wrap; gap: 8px; grid-column: 2; margin-top: 14px; position: relative; z-index: 1; }
.examples button {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: #d8e3dc;
  font-size: .78rem;
  min-height: 37px;
  padding: 8px 12px;
}
.examples button:hover { background: rgba(255, 255, 255, .13); color: white; }

.agreement-strip {
  align-items: center;
  align-self: end;
  background: rgba(255, 255, 255, .06);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  gap: 22px;
  grid-column: 2;
  justify-content: space-between;
  margin-top: 32px;
  padding: 20px 0 0;
  position: relative;
  z-index: 1;
}
.strip-label { color: var(--aqua); display: block; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.agreement-strip p { color: #c1cec6; font-size: .9rem; line-height: 1.45; margin: 5px 0 0; }
.agreement-strip > button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .27);
  border-radius: 999px;
  color: white;
  flex: 0 0 auto;
  font-size: .84rem;
  font-weight: 800;
  min-height: 43px;
  padding: 9px 15px;
}

.result-panel {
  background: #e4eee7;
  border-bottom: 1px solid var(--line);
  padding: clamp(64px, 8vw, 110px) clamp(18px, 7vw, 110px);
}
.result-head { align-items: start; display: flex; gap: 24px; justify-content: space-between; margin: 0 auto 34px; max-width: 1140px; }
.result-head h2, .scope h2 {
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  letter-spacing: -.068em;
  line-height: .94;
  margin: 0;
  text-wrap: balance;
}
.close-result { background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 1.7rem; height: 46px; line-height: 1; width: 46px; }
.result-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; max-width: 1140px; }
.result-card { background: var(--card); border: 1px solid var(--line); border-radius: 23px; padding: 24px; }
.highlight-card { background: var(--lime); grid-column: 1 / -1; }
.card-kicker { color: #617068; display: block; font-size: .72rem; font-weight: 850; letter-spacing: .1em; margin-bottom: 13px; text-transform: uppercase; }
.highlight-card .card-kicker { color: #4d642e; }
.result-card h3 { font-size: clamp(1.55rem, 2.8vw, 2.35rem); letter-spacing: -.05em; line-height: 1.05; margin: 0; }
.result-card p { color: var(--muted); font-size: 1rem; line-height: 1.62; margin: 12px 0 0; }
.highlight-card p { color: #405127; max-width: 850px; }
.result-card a { color: var(--forest); display: inline-block; font-size: .9rem; font-weight: 800; margin-top: 17px; text-underline-offset: 4px; }
.agreement-matches { display: grid; gap: 9px; }
.match-item { align-items: center; background: #eef2ea; border-radius: 15px; display: grid; gap: 12px; grid-template-columns: auto 1fr; padding: 12px; }
.match-icon { background: var(--aqua); border-radius: 11px; display: grid; font-weight: 900; height: 40px; place-items: center; width: 40px; }
.match-item strong, .match-item small { display: block; }
.match-item strong { font-size: .95rem; }
.match-item small { color: #6a7770; font-size: .78rem; margin-top: 2px; }
.empty-match { color: var(--muted); line-height: 1.55; margin: 0; }
.inline-action { background: transparent; border: 0; color: var(--forest); font-weight: 850; margin-top: 13px; padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.next-steps { counter-reset: steps; display: grid; gap: 13px; list-style: none; margin: 0; padding: 0; }
.next-steps li { align-items: start; counter-increment: steps; display: grid; font-size: .95rem; gap: 11px; grid-template-columns: 31px 1fr; line-height: 1.5; }
.next-steps li::before { background: var(--forest); border-radius: 9px; color: white; content: counter(steps); display: grid; font-size: .78rem; font-weight: 850; height: 31px; place-items: center; width: 31px; }
.overlap-card { background: #dedafd; }
.result-actions { display: flex; gap: 10px; margin: 20px auto 0; max-width: 1140px; }
.primary-button { background: var(--forest); color: white; }
.secondary-button { background: transparent; border: 1px solid #94a29a; border-radius: 13px; color: var(--ink); font-weight: 800; min-height: 52px; padding: 12px 18px; }
.important-note { color: #5d6c64; font-size: .84rem; line-height: 1.6; margin: 22px auto 0; max-width: 1140px; }

.scope { display: grid; gap: clamp(42px, 8vw, 110px); grid-template-columns: .8fr 1.2fr; margin: 0 auto; max-width: 1380px; padding: clamp(78px, 9vw, 130px) clamp(18px, 7vw, 110px); }
.scope h2 { font-size: clamp(2.5rem, 4.4vw, 4.7rem); }
.scope-columns { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scope-columns article { border: 1px solid var(--line); border-radius: 22px; padding: 23px; }
.scope-columns article:first-child { background: #e3f1ee; }
.scope-columns article:last-child { background: #efeee8; }
.scope-columns h3 { font-size: 1.18rem; margin: 0 0 16px; }
.scope-columns ul { color: var(--muted); margin: 0; padding-left: 19px; }
.scope-columns li { font-size: .92rem; line-height: 1.55; }
.scope-columns li + li { margin-top: 9px; }

footer { align-items: start; background: #061812; color: #9eafa5; display: grid; gap: 28px; grid-template-columns: auto 1fr auto; padding: 38px clamp(18px, 7vw, 110px); }
footer p { font-size: .85rem; line-height: 1.55; margin: 0; max-width: 680px; }
footer > a:last-child { color: #c9d4cd; font-size: .84rem; text-underline-offset: 4px; }

dialog { background: var(--paper); border: 0; border-radius: 28px; box-shadow: var(--shadow); color: var(--ink); max-height: min(88vh, 820px); padding: 0; width: min(calc(100% - 28px), 760px); }
dialog::backdrop { background: rgba(4, 19, 14, .72); backdrop-filter: blur(5px); }
.dialog-shell { padding: 27px; }
.dialog-head { align-items: start; display: flex; gap: 20px; justify-content: space-between; }
.dialog-head h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.06em; line-height: 1; margin: 0; }
.dialog-head > div > p:last-child { color: var(--muted); line-height: 1.5; margin: 12px 0 0; }
.dialog-close { background: white; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); flex: 0 0 auto; font-size: 1.55rem; height: 43px; line-height: 1; width: 43px; }
.agreement-groups { display: grid; gap: 22px; margin: 26px 0; }
.agreement-group h3 { font-size: .77rem; letter-spacing: .1em; margin: 0 0 9px; text-transform: uppercase; }
.agreement-options { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agreement-option { position: relative; }
.agreement-option input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.agreement-option span { align-items: center; background: white; border: 1px solid var(--line); border-radius: 14px; display: flex; font-size: .9rem; font-weight: 750; gap: 10px; min-height: 50px; padding: 10px 13px; }
.agreement-option span::before { border: 1.5px solid #87938d; border-radius: 7px; content: ""; flex: 0 0 auto; height: 21px; width: 21px; }
.agreement-option input:checked + span { background: #ebf9cf; border-color: #9ec843; }
.agreement-option input:checked + span::before { background: var(--forest); border-color: var(--forest); box-shadow: inset 0 0 0 5px #ebf9cf; }
.agreement-option input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.custom-list { display: grid; gap: 8px; }
.custom-item { align-items: center; display: grid; gap: 8px; grid-template-columns: 1fr auto; }
.custom-item > button { background: transparent; border: 0; color: #7a463a; font-size: .8rem; font-weight: 800; padding: 9px; }
.custom-agreement { border: 1px solid var(--line); border-radius: 18px; margin: 0; padding: 18px; }
.custom-agreement legend { font-size: .9rem; font-weight: 850; padding: 0 7px; }
.custom-row { display: grid; gap: 8px; grid-template-columns: 1fr 1fr auto; }
.custom-row input, .custom-row select { background: white; border: 1px solid #c7cec9; border-radius: 11px; color: var(--ink); min-height: 46px; padding: 9px 11px; }
.custom-row button { background: var(--aqua); border: 0; border-radius: 11px; color: var(--forest); font-weight: 850; padding: 9px 15px; }
.custom-status { color: var(--muted); font-size: .8rem; margin: 8px 2px 0; min-height: 17px; }
.dialog-actions { background: linear-gradient(transparent, var(--paper) 22%); bottom: 0; display: flex; justify-content: flex-end; margin-top: 22px; padding-top: 14px; position: sticky; }
.dialog-actions .primary-button { min-width: 180px; }

@media (max-width: 860px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar > p { display: none; }
  .checker { display: block; min-height: auto; padding-top: 64px; }
  .checker-copy { padding: 0; }
  .checker h1 { font-size: clamp(3.8rem, 13vw, 6rem); }
  .situation-form { margin-top: 42px; }
  .examples, .agreement-strip { margin-top: 14px; }
  .agreement-strip { background: transparent; }
  .scope { display: block; }
  .scope-columns { margin-top: 38px; }
}

@media (max-width: 620px) {
  .topbar { min-height: 64px; padding: 10px 16px; }
  .wordmark { font-size: 1.35rem; }
  .quiet-button { font-size: .78rem; min-height: 39px; padding: 7px 10px; }
  .checker { padding: 50px 16px 48px; }
  .checker h1 { font-size: clamp(3.45rem, 17vw, 5rem); }
  .checker-copy > p:last-child { font-size: 1rem; margin-top: 20px; }
  .situation-form { border-radius: 21px; margin-top: 34px; padding: 15px; }
  .input-row { background: transparent; display: grid; grid-template-columns: 1fr; padding: 0; }
  .input-row input { background: white; border-radius: 13px; min-height: 56px; padding: 14px; }
  .input-row button { min-height: 54px; }
  .examples { flex-wrap: nowrap; margin-inline: -16px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
  .examples::-webkit-scrollbar { display: none; }
  .examples button { flex: 0 0 auto; }
  .agreement-strip { align-items: start; flex-direction: column; gap: 13px; }
  .agreement-strip > button { width: 100%; }
  .result-panel { padding: 58px 16px; }
  .result-head h2 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .result-grid { grid-template-columns: 1fr; }
  .highlight-card { grid-column: auto; }
  .result-card { border-radius: 19px; padding: 20px; }
  .result-actions { display: grid; }
  .scope { padding: 72px 16px; }
  .scope-columns { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; padding: 34px 18px; }
  .dialog-shell { padding: 21px 16px; }
  .agreement-options { grid-template-columns: 1fr; }
  .custom-row { grid-template-columns: 1fr; }
  .custom-row button { min-height: 46px; }
  .dialog-actions .primary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
