/* AskedPro site. Tokens match aivis/brand.py and docs/brand.md. */
:root {
  --ink: #121A2B;
  --text: #2B3445;
  --muted: #5B6474;
  --green: #057A55;
  --green-dark: #035E41;
  --tint: #E8F5EF;
  --tint-line: #BFE3D2;
  --mist: #F6F7F9;
  --line: #E4E7EC;
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(18, 26, 43, .06), 0 16px 40px -12px rgba(18, 26, 43, .22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: #fff; color: var(--text); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 20; }
.skip:focus { left: 0; }
.muted, .note, .source { color: var(--muted); }
.source { font-size: 0.9rem; margin-top: 2rem; }

/* Buttons: white on green is 5.5:1. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--green); color: #fff;
  font: 600 1rem/1 var(--font); text-decoration: none; padding: 0.9rem 1.3rem; border-radius: 10px; border: 1px solid var(--green);
  transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-small { padding: 0.6rem 0.95rem; font-size: 0.95rem; }
.btn-quiet { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--tint); border-color: var(--tint); }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--tint-line); text-decoration-thickness: 2px; }
.link:hover { text-decoration-color: var(--green); }

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 2rem; height: 4.25rem; }
.brand img { display: block; height: 30px; width: auto; }
nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: 0.97rem; }
nav a { text-decoration: none; color: var(--text); }
nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 52rem) { nav { display: none; } .bar .btn { margin-left: auto; } }

/* Hero */
.hero { padding: 4.5rem 0 5rem; }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4.5rem; } }
.lede { font-size: 1.25rem; line-height: 1.55; max-width: 34rem; color: var(--text); }
.cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.note { font-size: 0.95rem; }

.chat { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.25rem 1.1rem; box-shadow: var(--shadow); }
.chat-head { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--muted);
  padding-bottom: 0.9rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.msg-user { margin: 0 0 1rem auto; width: fit-content; max-width: 88%; background: var(--mist); border: 1px solid var(--line);
  border-radius: 16px 16px 4px 16px; padding: 0.7rem 1rem; font-weight: 500; color: var(--ink); }
#category { display: inline-block; font-weight: 700; transition: opacity .22s ease, transform .22s ease; }
#category.out { opacity: 0; transform: translateY(4px); }
.msg-ai > p:first-child { margin-bottom: 0.85rem; }
.pick { display: flex; align-items: center; gap: 0.85rem; background: var(--tint); border: 1px solid var(--tint-line); border-radius: 12px; padding: 0.9rem 1rem; }
.pick img { flex: none; }
.pick p { margin: 0; }
.pick-name { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.pick-why { font-size: 0.92rem; color: var(--text); }
.cited { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 1rem 0 0; font-size: 0.85rem; color: var(--muted); }
.cited span:first-child { margin-right: 0.25rem; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.6rem; color: var(--text); }
.chat figcaption { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }

/* Any business */
.any { background: var(--mist); padding: 3.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.any h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.any-lede { max-width: 36rem; }
.kinds { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kinds li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.95rem; color: var(--ink); }

/* Facts */
.why { padding: 5rem 0 4rem; }
.facts { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 52rem) { .facts { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.facts > div { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.fact { font-size: 3rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); margin-bottom: 0.6rem; }

/* Product */
.product { padding: 4.5rem 0; background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .product-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; } }
.shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot img { display: block; width: 100%; }

.checks { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; }
.checks li { position: relative; padding: 0.35rem 0 0.35rem 1.9rem; }
.checks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.75rem; width: 0.8rem; height: 0.42rem;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

/* Steps: a real sequence, so numbered. */
.how { padding: 5rem 0; }
.steps { list-style: none; counter-reset: step; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 2.25rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--tint); color: var(--green-dark); font-weight: 700; margin-bottom: 1rem; }

/* Pricing */
.pricing { padding: 5rem 0; background: var(--mist); border-top: 1px solid var(--line); }
.plans { display: grid; gap: 1.25rem; margin-top: 2.25rem; align-items: stretch; }
@media (min-width: 60rem) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem; }
.plan .checks { margin-bottom: 1.75rem; }
.plan .btn { margin-top: auto; }
.price { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1; color: var(--ink); margin: 0.75rem 0 0.4rem; }
.price span { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 0.2rem; }
.terms { color: var(--muted); font-size: 0.95rem; min-height: 3em; }
.featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.badge { display: inline-block; align-self: flex-start; background: var(--tint); color: var(--green-dark); font-size: 0.8rem; font-weight: 700;
  border-radius: 999px; padding: 0.25rem 0.7rem; margin: 0 0 0.75rem; }

/* FAQ */
.faq { padding: 5rem 0; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 1.5rem; }
summary { cursor: pointer; list-style: none; position: relative; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; color: var(--ink); font-size: 1.08rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.45rem; width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
details p { max-width: 40rem; }

/* Closing band */
.closing { background: var(--ink); padding: 4rem 0; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.closing h2 { color: #fff; margin: 0; max-width: 30rem; }

/* Footer */
footer.site { padding: 3rem 0 2.5rem; }
.foot { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .foot { grid-template-columns: 1fr 1fr; } .legal { grid-column: 1 / -1; } }
.foot img { height: 28px; width: auto; display: block; margin-bottom: 0.6rem; }
.legal { color: var(--muted); font-size: 0.85rem; max-width: 52rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #category, .btn, summary::after { transition: none; }
}
