:root {
  --bg: #f4efe6;
  --surface: #fffaf2;
  --surface-alt: #ede5d8;
  --border: #dfd4c3;
  --text: #2a2420;
  --text-muted: #5c524a;
  --slate: #3d4654;
  --terracotta: #c8553d;
  --terracotta-text: #b0432c;
  --terracotta-btn: #b5452e;
  --terracotta-btn-hover: #9a3823;
  --btn-text: #fffaf2;
  --badge-bg: #efe3d8;
  --badge-text: #8c311e;
  --focus-ring: #b0432c;
  --shadow: 0 2px 10px rgba(42, 36, 32, 0.05);
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1b18;
    --surface: #292420;
    --surface-alt: #181411;
    --border: #3d352e;
    --text: #f4efe6;
    --text-muted: #c2b6aa;
    --slate: #3d4654;
    --terracotta: #c8553d;
    --terracotta-text: #e37159;
    --terracotta-btn: #b5452e;
    --terracotta-btn-hover: #c8553d;
    --btn-text: #fffaf2;
    --badge-bg: #3b2722;
    --badge-text: #f09582;
    --focus-ring: #e37159;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--terracotta-text);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand-mark {
  width: clamp(44px, 5vw, 54px);
  height: auto;
  flex-shrink: 0;
}

.brand-accent {
  color: var(--terracotta-text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 2px;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Hero */
.hero {
  padding: 56px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 780px) {
  .hero {
    padding: 72px 0 60px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 48px;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background-color: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--terracotta-text);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background-color: var(--terracotta-btn);
  color: var(--btn-text);
}

.btn-primary:hover {
  background-color: var(--terracotta-btn-hover);
  color: var(--btn-text);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-alt);
  color: var(--text);
}

.hero-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.hero-card img {
  width: clamp(120px, 14vw, 152px);
  height: auto;
}

.hero-card-wordmark {
  font-size: clamp(2.1rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
}

.hero-card-caption {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Sections */
.section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 64ch;
  margin-bottom: 28px;
}

.section-eyebrow {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta-text);
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Cards & Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 18px;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Search Example */
.example-frame {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.example-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.example-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--badge-text);
  background-color: var(--badge-bg);
  padding: 3px 10px;
  border-radius: 999px;
}

.example-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-word;
}

.query-box {
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.query-row {
  margin: 4px 0;
}

.query-key {
  color: var(--terracotta-text);
  font-weight: 700;
}

.relax-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  background-color: var(--surface-alt);
  border-left: 3px solid var(--terracotta-text);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 18px;
}

.relax-note code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--text);
}

.hit-list {
  display: grid;
  gap: 14px;
}

.hit {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background-color: var(--bg);
}

.hit-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.hit-path {
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.hit-time {
  color: var(--text-muted);
}

.hit-snippet {
  margin: 0 0 10px;
  font-size: 0.94rem;
  color: var(--text);
}

.hit-snippet mark {
  background-color: var(--badge-bg);
  color: var(--text);
  padding: 0 3px;
  border-radius: 3px;
}

.hit-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 18px;
  counter-reset: step;
}

.step-card {
  counter-increment: step;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--slate);
  color: #fffaf2;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Agents strip */
.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.agent-tag {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

/* Pricing */
.pricing-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 720px) {
  .pricing-card {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    padding: 36px;
  }
}

.price-amount {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 8px 0 12px;
}

.pricing-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.pricing-list li + li {
  margin-top: 6px;
}

.pricing-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

@media (min-width: 720px) {
  .pricing-cta {
    align-items: flex-end;
    text-align: right;
  }
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--terracotta-text);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 44px;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.footer-brand img {
  width: 38px;
  height: auto;
}

.footer-meta {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.92rem;
}
