/* Clearance Wire — static marketing site. No frameworks, no external assets. */

:root {
  --ink: #101418;
  --muted: #5b6470;
  --faint: #8a94a0;
  --accent: #0b4f8a;
  --accent-dark: #083a66;
  --accent-soft: #e9f1f9;
  --line: #e2e7ec;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --ok: #157a3d;
  --warn: #a35400;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--accent) !important;
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent-soft); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 48px; text-align: left; }
.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 700px;
}
.hero p.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas .btn { padding: 13px 26px; font-size: 16px; }

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 14px 0;
  font-size: 14px;
  color: var(--muted);
}
.proof-strip .wrap { display: flex; gap: 26px; flex-wrap: wrap; }
.proof-strip strong { color: var(--ink); font-weight: 700; }

/* ---------- sections ---------- */
section.block { padding: 56px 0; }
section.block.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.section-title {
  font-size: 28px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
p.section-sub { color: var(--muted); margin-bottom: 30px; max-width: 620px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg);
}
.step .num {
  display: inline-block;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  text-align: center;
  line-height: 30px;
  font-size: 15px;
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p, .card li { font-size: 15px; color: var(--muted); }
.card ul { padding-left: 20px; margin-top: 10px; }
.card li { margin-bottom: 6px; }

/* sample alert */
.alert-sample {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--bg);
  max-width: 640px;
}
.alert-sample .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
  margin-right: 8px;
}
.alert-sample .tag.sample { color: var(--faint); background: var(--bg-alt); }
.alert-sample p { font-size: 15px; }
.alert-sample .meta { font-size: 13px; color: var(--faint); margin-top: 8px; }

/* ---------- pricing ---------- */
.price-card {
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 36px;
  max-width: 520px;
  background: var(--bg);
}
.price-card .price { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; }
.price-card .price small { font-size: 17px; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin: 20px 0 26px; }
.price-card li { font-size: 15px; padding: 7px 0 7px 28px; position: relative; color: var(--ink); }
.price-card li::before {
  content: "✓";
  position: absolute; left: 4px;
  color: var(--ok); font-weight: 800;
}

/* ---------- faq ---------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--bg);
}
.faq summary {
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { margin-top: 12px; font-size: 15px; color: var(--muted); }
.faq .answer blockquote {
  border-left: 3px solid var(--line);
  padding-left: 14px;
  margin: 10px 0;
  font-style: italic;
  color: var(--ink);
}
.faq .answer a { color: var(--accent); }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--accent); }
.field .hint { font-size: 13px; color: var(--faint); margin-top: 5px; }
.form-note { font-size: 13px; color: var(--faint); margin-top: 14px; }

.signup-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  background: var(--bg);
  max-width: 560px;
}
.signup-box h3 { font-size: 22px; margin-bottom: 8px; }
.signup-box .restate { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.thankyou { display: none; text-align: left; }
.thankyou.show { display: block; }
.thankyou h3 { font-size: 22px; margin-bottom: 10px; }
.thankyou p { color: var(--muted); font-size: 15px; }

/* ---------- check tool ---------- */
.tool-form { display: flex; gap: 10px; margin: 26px 0 10px; max-width: 560px; }
.tool-form input {
  flex: 1;
  padding: 13px 16px;
  font-size: 17px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tool-form input:focus { outline: none; border-color: var(--accent); }
.example-chips { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--faint); margin-bottom: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.06em;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

.result-state { margin-top: 26px; }
.result-count { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.result-count strong { color: var(--ink); }
.clearance {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
  background: var(--bg);
}
.clearance .k {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-decoration: none;
}
.clearance .k:hover { text-decoration: underline; }
.clearance h3 { font-size: 18px; margin: 6px 0 4px; }
.clearance .who { font-size: 15px; color: var(--muted); }
.clearance .when { font-size: 13px; color: var(--faint); margin-top: 6px; }
.clearance .pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 8px;
  color: var(--muted);
}
.state-box {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  background: var(--bg-alt);
}
.state-box.error { border-color: #d8a0a0; background: #fdf3f3; color: var(--ink); }
.spinner {
  display: inline-block;
  width: 22px; height: 22px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -5px;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tool-disclaimer { font-size: 13px; color: var(--faint); margin-top: 26px; max-width: 640px; }
.tool-disclaimer a { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--faint);
  background: var(--bg-alt);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-disclaimer { max-width: 560px; margin-top: 14px; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 36px; }
  .hero h1 { font-size: 31px; }
  .hero p.lede { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .tool-form { flex-direction: column; }
  .tool-form .btn { width: 100%; }
  .signup-box { padding: 26px 20px; }
}
