:root {
  --bg: #F3F5F3;
  --surface: #FFFFFF;
  --ink: #0F1E18;
  --muted: #54615A;
  --faint: #8A968F;
  --line: #E3E8E3;
  --line-strong: #D3DAD4;
  --accent: #0B6E4F;
  --accent-ink: #085B40;
  --accent-soft: #E4F1EA;
  --accent-mint: #F0F7F2;
  --shadow: 0 1px 2px rgba(15, 30, 24, .04), 0 12px 32px rgba(15, 30, 24, .06);
  --shadow-lg: 0 2px 4px rgba(15, 30, 24, .05), 0 24px 60px rgba(15, 30, 24, .10);
  --r: 16px;
  --r-sm: 10px;
  --maxw: 1080px;
}

html {
  scroll-behavior: smooth;
}

#top {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 245, 243, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}

header.site.scrolled {
  border-bottom-color: var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

.brand .logo {
  width: 64px;
  height: 64px;
  flex: none;
  object-fit: contain;
  display: block;
  margin: 0;
}

.brand .name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.01em;
  line-height: 1;
  align-self: center;
}

.brand .name em {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links .cta-link {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-icon svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(243, 245, 243, .98);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  header.site {
    position: sticky;
  }

  .navbar {
    position: relative;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.section-tight {
  padding-top: 0;
}

/* ---------- Hero + Tool ---------- */
.hero {
  padding: 44px 0 20px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid #CDE6D9;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 26px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}

.eyebrow .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: .5;
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: .5; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}

h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 auto 20px;
  max-width: 26ch;
}

h1 .hl {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.lead {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 74ch;
  margin: 0 auto;
  line-height: 1.55;
  white-space: pre-line;
}

/* ---------- Tool ---------- */
.tool-shell {
  margin: 44px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 820px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.pane {
  padding: 20px 22px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.pane.input {
  border-right: 1px solid var(--line);
}

@media (max-width: 820px) {
  .pane.input {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  min-height: 30px;
}

.pane-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pane-title .num {
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  background: var(--accent-mint);
  border-radius: 6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}

.tool-textarea {
  flex: 1;
  border: none;
  resize: none;
  width: 100%;
  min-height: 260px;
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  outline: none;
  padding: 0;
}

.tool-textarea::placeholder {
  color: var(--faint);
}

.tool-output {
  flex: 1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  overflow: auto;
  min-height: 260px;
}

.tool-output .placeholder {
  color: var(--faint);
}

.chip-token {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid #CFE7DB;
  border-radius: 6px;
  padding: 1px 7px;
  margin: 0 1px;
  line-height: 1.5;
}

.copy-btn {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 13px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color .18s, background .18s, border-color .18s, box-shadow .18s, transform .18s, opacity .18s;
}

.copy-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
}

.copy-btn:not(:disabled) {
  opacity: 1;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(11, 110, 79, .35), 0 4px 12px rgba(11, 110, 79, .22);
}

.copy-btn:not(:disabled):hover {
  color: #fff;
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(11, 110, 79, .35), 0 8px 18px rgba(11, 110, 79, .26);
}

.copy-btn:not(:disabled):active {
  transform: translateY(0);
}

.copy-btn.copied {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: #FBFCFB;
}

.toolbar-row--config {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-row--actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
}

.toolbar-row--actions:has(.toolbar-turnstile) {
  justify-content: space-between;
}

.toolbar-turnstile {
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  line-height: 0;
  flex-shrink: 0;
}

.toolbar-row--actions .actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.toolbar-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toolbar-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--faint);
}

.toolbar-select {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  outline: none;
  cursor: pointer;
}

.toolbar-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.toolbar-select:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  background: var(--bg);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border-radius: 11px;
  padding: 11px 22px;
  border: 1px solid transparent;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 110, 79, .35), 0 6px 16px rgba(11, 110, 79, .24);
}

.btn-primary:hover {
  background: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(11, 110, 79, .35), 0 10px 22px rgba(11, 110, 79, .28);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.is-loading {
  opacity: .85;
  cursor: wait;
  transform: none;
}

.btn-primary.is-loading .btn-spinner {
  display: inline-block;
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tool-spin .7s linear infinite;
  flex-shrink: 0;
}

.tool-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  padding: 32px 20px;
  text-align: center;
}

.tool-processing-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: tool-spin .8s linear infinite;
}

.tool-processing-message {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.tool-processing-hint {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
}

@keyframes tool-spin {
  to { transform: rotate(360deg); }
}

.tool-shell[aria-busy="true"] .tool-textarea {
  opacity: .72;
  cursor: wait;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--faint);
}

@media (max-width: 640px) {
  .tool-shell {
    border-radius: 16px;
  }

  .pane {
    min-height: 0;
    padding: 16px;
  }

  .pane-head {
    gap: 8px;
    flex-wrap: wrap;
  }

  .tool-textarea,
  .tool-output {
    min-height: 180px;
  }

  .toolbar {
    padding: 14px 16px;
  }

  .toolbar-row--config {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-options {
    flex-direction: column;
    gap: 12px;
  }

  .toolbar-select {
    width: 100%;
  }

  .toolbar-row--actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .toolbar-turnstile {
    order: -2;
    flex: 1 1 100%;
    margin-bottom: 4px;
  }

  .toolbar-row--actions .actions {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .toolbar-row--actions .actions .btn-primary {
    order: -1;
    flex: 1 1 100%;
    justify-content: center;
  }

  .toolbar-row--actions .actions .btn-ghost {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    padding-inline: 12px;
  }

  .btn-label--full {
    display: none;
  }

  .trust-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    max-width: 360px;
    margin-inline: auto;
    justify-items: start;
    text-align: left;
  }

  .trust-row span {
    font-size: 13px;
    line-height: 1.4;
  }
}

@media (min-width: 641px) {
  .btn-label--short {
    display: none;
  }
}

.tool-errors {
  margin: 16px auto 0;
  max-width: var(--maxw);
  padding: 0 24px;
}

.alert-error {
  border-radius: 12px;
  border: 1px solid #F5C6C6;
  background: #FEF2F2;
  color: #9B1C1C;
  padding: 12px 16px;
  font-size: 14px;
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 13.5px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex: none;
}

/* ---------- Section scaffolding ---------- */
section {
  padding: 88px 0;
}

.sec-eyebrow {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  margin: 0 0 16px;
  max-width: 20ch;
}

.sec-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 54ch;
  margin: 0;
}

.sec-head {
  margin-bottom: 44px;
}

.detect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.detect-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.detect-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.detect-card .tok {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 13px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid #CFE7DB;
  border-radius: 7px;
  padding: 3px 9px;
  display: inline-block;
  margin-bottom: 12px;
}

.detect-card .dt-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 3px;
}

.detect-card .dt-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.aud-band {
  background: var(--ink);
  color: #EAF0EC;
  border-radius: 24px;
  padding: 56px 44px;
}

.aud-band .sec-eyebrow {
  color: #6FD3A8;
}

.aud-band h2 {
  color: #fff;
}

.aud-band .sec-lead {
  color: #A7B5AD;
}

.aud-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.aud-tag {
  font-size: 14.5px;
  font-weight: 500;
  color: #DCE6E0;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  border-radius: 100px;
  padding: 9px 17px;
  transition: all .2s;
}

.aud-tag:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(11, 110, 79, .28);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding-top: 28px;
}

.step .snum {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.step h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}

.step p {
  color: var(--muted);
  margin: 0;
  font-size: 14.5px;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.privacy {
  background: var(--accent-mint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.privacy .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 760px) {
  .privacy .wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
}

.pv {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pv .ico {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.pv .ico svg {
  width: 100%;
  height: 100%;
}

.pv strong {
  font-size: 15px;
  font-weight: 600;
}

.pv span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 52px 48px;
  box-shadow: var(--shadow);
  text-align: center;
}

.cta h2 {
  margin: 0 auto 14px;
}

.cta .sec-lead {
  margin: 0 auto 30px;
  max-width: 62ch;
}

.cta-detail {
  margin-top: 0;
  font-size: 0.98rem;
}

.cta-feats {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-feats .cf {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 14px;
}

.lead-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.lead-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}

.lead-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lead-form input[type="email"].field-error {
  border-color: #C0453C;
}

.lead-form .btn-primary {
  flex: none;
  white-space: nowrap;
}

.form-note {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 14px;
}

.form-error {
  font-size: 13px;
  color: #C0453C;
  margin-top: 10px;
}

.form-done {
  color: var(--accent-ink);
  font-weight: 500;
  font-size: 15px;
  margin: 0;
}

footer.site {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}

.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.foot-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col .h {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 2px;
}

.foot-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}

.foot-col a:hover {
  color: var(--ink);
}

.foot-brand {
  max-width: 280px;
}

.foot-brand p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 12px 0 0;
  line-height: 1.55;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
}

@media (max-width: 760px) {
  .foot-top {
    flex-direction: column;
    gap: 28px;
  }

  .foot-links {
    width: 100%;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

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