/*
  WP Local Accessibility — brochure site styles.
  Layered on top of tokens.css. No third-party assets, no build step.
*/

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--wla-color-bg);
  color: var(--wla-color-text);
  font-family: var(--wla-font-body);
  line-height: 1.55;
}

img, svg { max-width: 100%; }

a { color: var(--wla-color-link); }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--wla-beacon);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--wla-ink);
  color: var(--wla-fog);
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--wla-font-mono);
  font-size: 14px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--wla-font-display); font-weight: 700; letter-spacing: 0.3px; text-wrap: balance; }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 8px; }

.eyebrow {
  font-family: var(--wla-font-mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--wla-color-accent);
  margin: 0 0 14px;
}

section { padding: 72px 0; border-top: 1px solid rgba(127,127,127,0.18); }
section:first-of-type { border-top: none; }
.lede { max-width: 62ch; opacity: 0.88; font-size: 17px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--wla-color-bg);
  border-bottom: 1px solid rgba(127,127,127,0.18);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand-lockup .mark { width: 28px; height: 28px; flex: none; }
.brand-lockup .name { font-family: var(--wla-font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.4px; }

.site-nav a { color: inherit; text-decoration: none; font-size: 14px; opacity: 0.85; }
.site-nav a:hover { opacity: 1; text-decoration: underline; }

/* Desktop: a plain always-visible row. Mobile: hidden in favor of the
   <details> dropdown below — two markup instances, each display:none in
   its non-active breakpoint, rather than fighting the browser's native
   (and, in current Chrome, non-overridable) closed-<details> hiding. */
.site-nav-inline { display: none; }
@media (min-width: 721px) {
  .site-nav-inline { display: flex; gap: 22px; }
  .nav-details { display: none; }
}

/* Nav toggle — a native <details>/<summary> disclosure, so the mobile menu
   opens and closes correctly with zero JS. site-nav.js only adds the
   polish (auto-close on link click / outside click / Escape) on top. */
.nav-details { position: relative; }
.nav-details summary {
  list-style: none;
  cursor: pointer;
}
.nav-details summary::-webkit-details-marker { display: none; }
.nav-details summary::marker { content: ""; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
}
.nav-details[open] .nav-toggle { background: var(--wla-beacon); color: var(--wla-ink); border-color: var(--wla-beacon); }

.nav-details[open] .site-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--wla-color-bg);
  border: 1px solid rgba(127,127,127,0.25);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 16px 34px -18px rgba(0,0,0,0.4);
}
.nav-details[open] .site-nav a { padding: 11px 12px; border-radius: 6px; }
.nav-details[open] .site-nav a:hover { background: rgba(127,127,127,0.12); text-decoration: none; }

/* Hero */
.hero { padding-top: 56px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 0.95fr 1.05fr; align-items: center; }
}
.hero h1 { font-size: clamp(34px, 5.2vw, 54px); margin: 0 0 16px; }
.hero .tag { font-size: 20px; opacity: 0.85; max-width: 34ch; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--wla-beacon); color: var(--wla-ink); }
.btn-secondary { background: transparent; color: var(--wla-color-text); border-color: currentColor; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-note { font-size: 12px; opacity: 0.65; margin: 6px 0 0; font-family: var(--wla-font-mono); }

/* Hero demo card */
.demo {
  background: var(--wla-fog);
  color: var(--wla-ink);
  border: 1px solid rgba(22,32,43,0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(22,32,43,0.35);
}
.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  background: var(--wla-ink);
}
.demo-toolbar button {
  font-family: var(--wla-font-mono);
  font-size: 12px;
  background: rgba(238,240,234,0.08);
  color: var(--wla-fog);
  border: 1px solid rgba(238,240,234,0.25);
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
}
.demo-toolbar button:hover { background: rgba(238,240,234,0.16); }
.demo-toolbar button[aria-pressed="true"] {
  background: var(--wla-beacon);
  color: var(--wla-ink);
  border-color: var(--wla-beacon);
}
.demo-toolbar button.reset { margin-left: auto; }

.demo-content { padding: 28px; transition: font-size 0.15s ease, letter-spacing 0.15s ease, line-height 0.15s ease; }
.demo-content h3 { font-family: var(--wla-font-body); font-size: 20px; margin: 0 0 10px; }
.demo-content p { margin: 0 0 14px; }
.demo-content .demo-figure {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(22,32,43,0.05);
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 14px;
  font-family: var(--wla-font-mono);
  font-size: 12px;
}
.demo-content .demo-figure svg { width: 40px; height: 40px; flex: none; }

/* Demo mode states — scoped to the preview card only */
.demo.mode-large-text .demo-content { font-size: 1.28em; line-height: 1.7; letter-spacing: 0.2px; }
.demo.mode-contrast { background: #000; color: #fff; border-color: #fff; }
.demo.mode-contrast .demo-content { background: #000; color: #fff; }
.demo.mode-contrast .demo-content a { color: #ffd166; }
.demo.mode-contrast .demo-content .demo-figure { background: #111; }
.demo.mode-dark .demo-content { background: var(--wla-ink); color: var(--wla-fog); }
.demo.mode-dark .demo-content .demo-figure { background: rgba(238,240,234,0.08); }
.demo.mode-grayscale .demo-content { filter: grayscale(1); }
.demo.mode-pause * { animation-play-state: paused !important; }

/* Problem / Solution */
.problem ul { padding-left: 20px; display: grid; gap: 10px; max-width: 62ch; }

.flow-compare {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}
@media (min-width: 800px) {
  .flow-compare { grid-template-columns: 1fr 1fr; }
}
.flow-card {
  border: 1px solid rgba(127,127,127,0.25);
  border-radius: 12px;
  padding: 22px;
}
.flow-card.is-them { border-style: dashed; }
.flow-card.is-us { border-color: var(--wla-sage); background: rgba(107,143,113,0.08); }
.flow-card h3 { display: flex; align-items: center; gap: 8px; }
.flow-card ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.flow-card li {
  font-family: var(--wla-font-mono);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(127,127,127,0.08);
}
.flow-card li.leak { background: rgba(232,163,61,0.18); }
.flow-card .flow-arrow { text-align: center; font-size: 13px; opacity: 0.6; }
.flow-card .flow-result { font-family: var(--wla-font-body); font-size: 14px; margin-top: 14px; font-weight: 600; }

/* Features */
.feature-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 760px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  border: 1px solid rgba(127,127,127,0.2);
  border-radius: 12px;
  padding: 24px;
}
.feature-card .icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: rgba(232,163,61,0.18);
  color: var(--wla-harbor);
  margin-bottom: 14px;
}
.feature-card ul { padding-left: 18px; margin: 12px 0 0; font-size: 14px; opacity: 0.85; display: grid; gap: 6px; }

/* Pricing */
.compare-table-wrap { overflow-x: auto; margin-top: 28px; }
table.compare { border-collapse: collapse; width: 100%; min-width: 560px; }
table.compare caption { text-align: left; font-family: var(--wla-font-mono); font-size: 12px; opacity: 0.6; margin-bottom: 10px; }
table.compare th, table.compare td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(127,127,127,0.18);
  font-size: 14px;
}
table.compare thead th { font-family: var(--wla-font-display); font-size: 15px; }
table.compare td[data-yes] { color: var(--wla-sage); font-weight: 600; }
table.compare .row-group td { font-family: var(--wla-font-mono); font-size: 12px; opacity: 0.6; padding-top: 20px; border-bottom: none; }

.pricing-cards { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 700px) {
  .pricing-cards { grid-template-columns: 1fr 1fr; }
}
.price-card { border: 1px solid rgba(127,127,127,0.25); border-radius: 12px; padding: 26px; }
.price-card.is-pro { border-color: var(--wla-beacon); }
.price-card .price { font-family: var(--wla-font-display); font-size: 34px; margin: 6px 0 4px; }
.price-card .price-note { font-size: 13px; opacity: 0.65; margin: 0 0 18px; }
.price-card ul { padding-left: 18px; margin: 0 0 20px; display: grid; gap: 6px; font-size: 14px; }

/* Trust */
.trust-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 760px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
.trust-card { border-left: 3px solid var(--wla-sage); padding: 4px 0 4px 18px; }

/* FAQ */
.faq-list { margin-top: 28px; display: grid; gap: 12px; max-width: 74ch; }
.faq-item { border: 1px solid rgba(127,127,127,0.2); border-radius: 10px; padding: 4px 18px; }
.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--wla-font-mono); opacity: 0.6; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 16px; opacity: 0.88; }

/* Scanner */
.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;
}

.scanner-tool { padding-top: 56px; }
.scanner-tool h1 { font-size: clamp(28px, 4.4vw, 40px); margin: 0 0 14px; }
.scanner-tool .lede { margin-bottom: 28px; }

.scanner-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.scanner-form input[type="url"] {
  flex: 1 1 320px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(127,127,127,0.35);
  background: var(--wla-color-bg);
  color: var(--wla-color-text);
  font-family: inherit;
  font-size: 15px;
}
.scanner-form input[type="url"]:focus-visible { outline: 3px solid var(--wla-beacon); outline-offset: 1px; }

.scan-note { max-width: 68ch; font-size: 13px; opacity: 0.7; margin: 14px 0 0; }
.scan-note a { color: inherit; }

.link-toggle {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: none;
  padding: 0;
  color: var(--wla-color-link);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}
.link-toggle:hover { opacity: 0.85; }

.paste-panel { margin-top: 16px; max-width: 640px; }
.paste-panel label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.paste-hint { font-size: 13px; opacity: 0.7; margin: 0 0 10px; }
.paste-panel textarea {
  width: 100%;
  min-height: 160px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(127,127,127,0.35);
  background: var(--wla-color-bg);
  color: var(--wla-color-text);
  font-family: var(--wla-font-mono);
  font-size: 13px;
  resize: vertical;
  margin-bottom: 10px;
}
.paste-panel textarea:focus-visible { outline: 3px solid var(--wla-beacon); outline-offset: 1px; }

.scan-status {
  margin-top: 24px;
  font-family: var(--wla-font-mono);
  font-size: 13px;
  min-height: 1.4em;
}
.scan-status.is-loading { opacity: 0.75; }
.scan-status.is-error { color: #b3462c; }
.scan-status.is-done { color: var(--wla-sage); }

.scan-summary { font-weight: 600; margin: 0 0 20px; }

.check-grid { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .check-grid { grid-template-columns: repeat(2, 1fr); }
}
.check-card {
  border: 1px solid rgba(127,127,127,0.25);
  border-radius: 12px;
  padding: 18px 20px;
}
.check-card.is-issues { border-color: var(--wla-beacon); background: rgba(232,163,61,0.08); }
.check-card.is-pass { border-color: var(--wla-sage); background: rgba(107,143,113,0.08); }
.check-card h3 { font-size: 16px; margin: 0 0 6px; }
.check-badge { font-family: var(--wla-font-mono); font-size: 12px; opacity: 0.75; margin: 0 0 10px; }
.check-card ul { padding-left: 18px; margin: 0; display: grid; gap: 6px; font-size: 13px; word-break: break-word; }
.check-more { font-size: 12px; opacity: 0.6; margin: 8px 0 0; }

.scan-disclaimer { max-width: 74ch; font-size: 13px; opacity: 0.7; margin-top: 24px; }

/* Beta signup */
.beta-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; margin-top: 28px; }
.beta-form input[type="email"] {
  flex: 1 1 240px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(127,127,127,0.35);
  background: var(--wla-color-bg);
  color: var(--wla-color-text);
  font-family: inherit;
  font-size: 15px;
}
.beta-form input[type="email"]:focus-visible { outline: 3px solid var(--wla-beacon); outline-offset: 1px; }

.beta-status {
  margin-top: 14px;
  font-family: var(--wla-font-mono);
  font-size: 13px;
  min-height: 1.4em;
}
.beta-status.is-error { color: #b3462c; }
.beta-status.is-done { color: var(--wla-sage); }

/* Footer */
.site-footer { padding: 44px 0; border-top: 1px solid rgba(127,127,127,0.18); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.footer-links a, .footer-links span { color: inherit; opacity: 0.75; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .soon { font-family: var(--wla-font-mono); font-size: 11px; opacity: 0.5; }
.footer-copy { font-size: 13px; opacity: 0.6; width: 100%; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--wla-font-mono);
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid currentColor;
  opacity: 0.8;
}
.status-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wla-color-status-ok); }
