/* Almanac Office — bright, calm, card-based.
   Spacing is a 4px system (--s-*). Hierarchy comes from tones of text and
   surface, not from bold everywhere. Blue is spent on CTAs and key highlights.
   "Machine" views (ops log, structured data) are the only dark surfaces. */

:root {
  /* Surfaces, light to deep */
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eff2f6;
  --line: #e3e6eb;
  --line-strong: #cdd2da;

  /* Text tones */
  --ink: #0d1117;
  --text-2: #4a5261;
  --text-3: #687181;

  /* Accent */
  --accent: #2356f6;
  --accent-hover: #1a45d1;
  --accent-tint: #eaf0ff;

  /* Machine surfaces */
  --dark: #0f141b;
  --dark-line: rgba(230, 234, 240, 0.1);
  --dark-text: #e6eaf0;
  --dark-muted: #8b95a5;
  --dark-accent: #8fb4ff;

  --shadow: 0 1px 2px rgba(13, 17, 23, 0.04), 0 8px 24px rgba(13, 17, 23, 0.06);
  --shadow-lg: 0 2px 4px rgba(13, 17, 23, 0.04), 0 16px 48px rgba(35, 86, 246, 0.14);
  --r-card: 16px;
  --r-inner: 12px;
  --r-pill: 999px;

  /* 4px spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --display: "Archivo", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: var(--s-6);
  --max: 1160px;
  --section: var(--s-9);
  --head-gap: var(--s-7);
}
@media (min-width: 800px) {
  :root { --gutter: var(--s-7); --section: 112px; --head-gap: var(--s-7); }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: var(--s-9); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section) 0; }

/* Type */
h1, h2 { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
h1 { font-size: clamp(2.5rem, 8vw, 5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); font-stretch: 112%; max-width: 18ch; text-wrap: balance; }
h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.eyebrow { font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.lede { color: var(--text-2); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); max-width: 54ch; }
.lede strong { color: var(--ink); font-weight: 500; }
.head { display: grid; gap: var(--s-4); margin-bottom: var(--head-gap); }
@media (min-width: 960px) {
  .head { grid-template-columns: 1.1fr 1fr; column-gap: var(--s-8); align-items: end; }
  .head .eyebrow { grid-column: 1 / -1; }
  .head .lede { padding-bottom: var(--s-1); }
  .split .head { grid-template-columns: 1fr; }
}

/* Buttons: one solid primary per view, everything else quiet */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--s-7); padding: 0 var(--s-5); white-space: nowrap;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover { border-color: var(--ink); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 16px rgba(35, 86, 246, 0.24); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--sm { min-height: 40px; padding: 0 var(--s-4); font-size: 0.9375rem; box-shadow: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(246, 247, 249, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--s-8); }
@media (max-width: 380px) { .nav .wrap { padding: 0 var(--s-4); } }
.wordmark { white-space: nowrap; font: 800 1.125rem/1 var(--display); font-stretch: 125%; letter-spacing: -0.02em; text-decoration: none; }
.nav ul { display: none; list-style: none; gap: var(--s-6); }
.nav ul a { color: var(--text-2); text-decoration: none; font-size: 0.9375rem; transition: color 0.15s; }
.nav ul a:hover { color: var(--ink); }
@media (min-width: 1000px) { .nav ul { display: flex; } }

/* Hero */
.hero {
  padding: var(--s-9) 0 0;
  background: radial-gradient(1100px 520px at 78% -12%, var(--accent-tint), transparent 70%);
}
@media (min-width: 800px) { .hero { padding-top: var(--s-10); } }
.hero .eyebrow { margin-bottom: var(--s-5); }
.hero__grid { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.3fr 1fr; gap: var(--s-7); }
  .hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { margin-top: var(--s-5); max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.stats { display: grid; gap: var(--s-3); margin-top: var(--s-8); }
.hero { padding-bottom: var(--s-4); }
.stats div { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-8); }
  .stats div { flex-direction: column-reverse; justify-content: flex-end; align-items: stretch; gap: var(--s-2); padding: var(--s-6) var(--s-5); }
}
.stats dd { font: 800 clamp(1.5rem, 3.6vw, 2.75rem)/1 var(--display); font-stretch: 125%; letter-spacing: -0.03em; }
.stats dt { color: var(--text-3); font-size: 0.875rem; line-height: 1.4; }
.stats dd { white-space: nowrap; }
@media (max-width: 639px) { .stats dd { font-size: 1.375rem; } .stats dt { text-align: right; } }

/* Hero activity feed */
.feed { display: grid; gap: var(--s-3); }
.feed__card { padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
@media (min-width: 1200px) {
  .feed__card:nth-child(1) { margin-right: var(--s-7); }
  .feed__card:nth-child(2) { margin-left: var(--s-7); box-shadow: var(--shadow-lg); }
  .feed__card:nth-child(3) { margin-right: var(--s-5); }
}
.feed__tag { display: flex; align-items: center; gap: var(--s-2); font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.feed__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.feed__title { margin-top: var(--s-2); font-weight: 600; }
.feed__stars { color: #f5a524; letter-spacing: 0.05em; }
.feed__meta { margin-top: var(--s-1); font-size: 0.9375rem; color: var(--text-2); }
.feed__note { font-size: 0.8125rem; color: var(--text-3); }
@media (max-width: 899px) { .feed { display: none; } }

/* Cards */
.cells { display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .cells--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .cells--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cells--3 { grid-template-columns: repeat(3, 1fr); } }
.cell { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
@media (min-width: 800px) { .cell { padding: var(--s-6); } }
.num { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-1); }
.cell p { color: var(--text-2); max-width: 44ch; }

/* Services */
.bento { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.bento a { color: var(--accent); text-underline-offset: 3px; }
.chip { justify-self: start; margin-bottom: var(--s-2); padding: var(--s-1) var(--s-3); font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; border-radius: var(--r-pill); }
.chip--found { color: var(--accent); background: var(--accent-tint); }
.chip--chosen { color: var(--ink); background: var(--surface-2); }
.chip--booked { color: #fff; background: var(--ink); }

/* Process */
.steps { list-style: none; display: grid; gap: var(--s-4); }
.steps li { display: grid; gap: var(--s-3); padding: var(--s-6) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
@media (min-width: 800px) {
  .steps li { grid-template-columns: 96px 1fr 1.4fr; gap: var(--s-6); padding: var(--s-6); align-items: start; }
}
.step__n { font: 800 2.25rem/1 var(--display); font-stretch: 125%; color: var(--accent); letter-spacing: -0.03em; }
.steps h3 { font: 800 1.5rem/1.1 var(--display); font-stretch: 125%; letter-spacing: -0.02em; }
.step__when { display: inline-block; margin-top: var(--s-3); padding: var(--s-1) var(--s-3); font: 500 0.75rem/1.4 var(--mono); color: var(--accent); background: var(--accent-tint); border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: 0.06em; }
.steps li > p { color: var(--text-2); max-width: 52ch; }

/* Ops log (machine view) */
.log { background: var(--dark); color: var(--dark-text); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lg); font: 400 0.875rem/1.5 var(--mono); }
.log__bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); color: var(--dark-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }
.log__dot { width: var(--s-2); height: var(--s-2); border-radius: 50%; background: #3ddc97; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.log ol { list-style: none; }
.log li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-4); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--dark-line); }
.log time { color: var(--dark-muted); }
.log b { color: var(--dark-accent); font-weight: 500; }
.log li span { grid-column: 1 / -1; }
@media (min-width: 800px) {
  .log li { grid-template-columns: 11ch 9ch 1fr; padding: var(--s-4) var(--s-6); }
  .log li span { grid-column: auto; }
}
.log.is-armed li { opacity: 0; transform: translateY(var(--s-2)); }
.log.is-live li { opacity: 1; transform: none; transition: opacity 0.4s, transform 0.4s; transition-delay: calc(var(--i) * 160ms); }
@media (prefers-reduced-motion: reduce) { .log__dot { animation: none; } }

/* Agent readability */
.agent-demo { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .agent-demo { grid-template-columns: 1fr 1.25fr; } }
.agent-demo__pane { display: flex; flex-direction: column; padding: var(--s-6) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); min-width: 0; }
@media (min-width: 800px) { .agent-demo__pane { display: flex; flex-direction: column; padding: var(--s-6); } }
.agent-demo__label { margin-bottom: var(--s-5); font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.biz-card { margin-block: auto; display: grid; gap: var(--s-1); padding: var(--s-5); background: var(--surface-2); border-radius: var(--r-inner); color: var(--text-2); }
.biz-card__name { margin-bottom: var(--s-2); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.biz-card__btn { justify-self: start; margin-top: var(--s-4); padding: var(--s-2) var(--s-4); font-size: 0.875rem; font-weight: 600; color: #fff; background: var(--accent); border-radius: var(--r-pill); }
.agent-demo__pane--code { background: var(--dark); border-color: var(--dark); box-shadow: var(--shadow-lg); }
.agent-demo__pane--code .agent-demo__label { color: var(--dark-muted); }
.code { overflow-x: auto; font: 400 0.8125rem/1.75 var(--mono); color: var(--dark-text); }
.code i { font-style: normal; color: var(--dark-muted); }
.code s { text-decoration: none; color: var(--dark-accent); }
@media (max-width: 639px) { .code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.75rem; } }
.agent-demo__note { margin: var(--s-3) 0 var(--s-8); font-size: 0.875rem; color: var(--text-3); }
.dogfood { margin-top: var(--s-7); font: 400 0.875rem/1.5 var(--mono); color: var(--text-3); }
.dogfood a { color: var(--accent); margin-left: var(--s-3); text-underline-offset: 4px; }

/* Pricing */
.plans { display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); align-items: stretch; } }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-6) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
@media (min-width: 800px) { .plan { padding: var(--s-7) var(--s-6); } }
.plan--featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: calc(-1 * var(--s-3)); left: var(--s-5); padding: var(--s-1) var(--s-3); font: 500 0.6875rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: #fff; background: var(--accent); border-radius: var(--r-pill); }
.plan h3, .plan__h { font: 800 1.375rem/1.1 var(--display); font-stretch: 125%; letter-spacing: 0; max-width: none; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2); font: 800 2.75rem/1 var(--display); font-stretch: 125%; letter-spacing: -0.035em; }
.price small { font: 400 0.875rem/1 var(--sans); color: var(--text-3); letter-spacing: 0; }
.plan__pitch { color: var(--text-2); }
.plan ul { list-style: none; display: grid; gap: var(--s-3); color: var(--text-2); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.plan li { padding-left: var(--s-6); position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: var(--s-4); height: var(--s-4); border-radius: 50%; background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232356f6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.plan .btn { margin-top: auto; }
.plans__note { margin-top: var(--s-7); color: var(--text-2); max-width: 70ch; }
.plans__rule { margin-top: var(--s-3); font-weight: 600; }

/* Teardown */
.audit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.audit__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); padding: var(--s-4) var(--s-5); font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); }
.audit__meta span:first-child { color: var(--accent); }
.audit__row { display: grid; gap: var(--s-3); padding: var(--s-5); border-top: 1px solid var(--line); }
.audit__row--head { display: none; }
.audit__area { font-weight: 600; font-size: 1.0625rem; }
.audit__row p { max-width: 48ch; }
.audit__row p[data-label="Found"] { color: var(--text-2); }
.audit__row p::before { content: attr(data-label); display: block; margin-bottom: var(--s-1); font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.audit__row p[data-label="Fix"]::before { color: var(--accent); }
@media (min-width: 800px) {
  .audit__row { grid-template-columns: 160px 1fr 1fr; gap: var(--s-6); padding: var(--s-5) var(--s-6); }
  .audit__row--head { display: grid; padding-block: var(--s-3); font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
  .audit__row p::before { display: none; }
}

/* Split layout (FAQ, contact) */
@media (min-width: 960px) {
  .split { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-8); align-items: start; }
  .split .head { margin-bottom: 0; position: sticky; top: var(--s-9); }
}

/* FAQ */
.faq { padding: 0 var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
@media (min-width: 800px) { .faq { padding: 0 var(--s-6); } }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: var(--s-5); padding: var(--s-5) 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: var(--s-6); height: var(--s-6); margin-top: calc(-1 * var(--s-1)); font: 400 1.125rem/1 var(--mono); color: var(--text-2); background: var(--surface-2); border-radius: 50%; transition: transform 0.2s, background-color 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); background: var(--accent-tint); }
.faq details p { padding: 0 0 var(--s-5); color: var(--text-2); max-width: 58ch; }

/* Form */
.form { display: grid; gap: var(--s-5); padding: var(--s-6) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
@media (min-width: 800px) { .form { padding: var(--s-7) var(--s-6); } }
.form label { display: grid; gap: var(--s-2); font-size: 0.875rem; font-weight: 500; color: var(--text-2); }
.form input, .form select, .form textarea {
  width: 100%; padding: var(--s-3) var(--s-4); font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-inner); resize: vertical;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.form input::placeholder { color: var(--text-3); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.form .btn { justify-self: start; margin-top: var(--s-1); }
.form__status { min-height: 1.5em; font-size: 0.9375rem; color: var(--accent); }

/* Skip link */
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 20; padding: var(--s-2) var(--s-4); background: var(--ink); color: #fff; border-radius: var(--r-pill); }
.skip:focus { top: var(--s-3); }

/* Nav: current page + phone menu */
.nav ul a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__right { display: flex; align-items: center; gap: var(--s-3); }
.menu { position: relative; }
.menu summary { display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer; list-style: none; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.2s, background-color 0.2s; }
.menu summary span::before, .menu summary span::after { content: ""; position: absolute; left: 0; }
.menu summary span::before { top: -5px; }
.menu summary span::after { top: 5px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { transform: translateY(5px) rotate(45deg); }
.menu[open] summary span::after { transform: translateY(-5px) rotate(-45deg); }
.nav .menu ul { display: grid; gap: 0; position: absolute; right: 0; top: calc(100% + var(--s-3)); min-width: 220px; padding: var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lg); }
.nav .menu li a { display: block; padding: var(--s-3) var(--s-4); border-radius: var(--r-inner); color: var(--ink); font-size: 1rem; }
.nav .menu li a:hover { background: var(--surface-2); }
@media (min-width: 1000px) { .menu { display: none; } }

/* Breadcrumbs + byline */
.crumbs { padding-top: var(--s-6); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.byline { margin-top: var(--s-5); font-size: 0.875rem; color: var(--text-3); }
.byline a { color: var(--text-2); }

/* Inner-page hero */
.page-hero { padding: var(--s-7) 0 var(--s-8); }
.page-hero .eyebrow { margin-bottom: var(--s-4); }
.page-hero h1 { font-size: clamp(2.25rem, 6vw, 4rem); max-width: 18ch; text-wrap: balance; }
.page-hero .lede { margin-top: var(--s-5); max-width: 60ch; }
.page-hero .ctas { margin-top: var(--s-6); }
.page-hero + section { padding-top: 0; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); list-style: none; }
.facts li { padding: var(--s-2) var(--s-4); font-size: 0.875rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); }
.facts strong { color: var(--ink); font-weight: 600; }

/* Answer box: the one-paragraph answer up top (what search and AI quote) */
.answer { padding: var(--s-5) var(--s-6); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-inner); box-shadow: var(--shadow); }
.answer p { color: var(--ink); font-size: 1.0625rem; }
.answer .answer__label { margin-bottom: var(--s-2); font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* Long-form prose (guides, about, privacy) */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: var(--s-5); }
.prose h2 { margin-top: var(--s-8); font-size: clamp(1.5rem, 3vw, 2rem); max-width: none; }
.prose h3 { margin-top: var(--s-6); font-size: 1.25rem; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { display: grid; gap: var(--s-2); padding-left: var(--s-5); }
.prose li::marker { color: var(--accent); }
.prose .answer, .prose .table-wrap, .prose .note { margin-top: var(--s-6); }
.note { padding: var(--s-4) var(--s-5); font-size: 0.9375rem; color: var(--text-2); background: var(--surface-2); border-radius: var(--r-inner); }
.note strong { color: var(--ink); }
.toc { padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.toc p { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.toc ol { margin-top: var(--s-3); padding-left: var(--s-5); display: grid; gap: var(--s-1); }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.article { display: grid; gap: var(--s-7); }
@media (min-width: 1040px) {
  .article { grid-template-columns: minmax(0, 70ch) 260px; justify-content: space-between; align-items: start; }
  .article .toc { position: sticky; top: var(--s-9); order: 2; }
}

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { border-top: 0; font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); }
td { color: var(--text-2); }
td:first-child, th[scope="row"] { color: var(--ink); font-weight: 600; }

/* Links as cards (hubs, related) */
.card-link, .bento a.card-link { color: var(--ink); }
.card-link { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.card-link:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-link p { color: var(--text-2); }
.card-link .more { color: var(--accent); font-weight: 600; font-size: 0.9375rem; }
@media (min-width: 800px) { .card-link { padding: var(--s-6); } }
@media (prefers-reduced-motion: reduce) { .card-link { transition: none; } .card-link:hover { transform: none; } }
.section-related { padding-top: 0; }
.section-related .eyebrow { margin-bottom: var(--s-5); }
.cell a, .steps a { color: var(--accent); text-underline-offset: 3px; }

/* Two-column list of checks */
.checks { display: grid; gap: var(--s-3); list-style: none; }
@media (min-width: 800px) { .checks--2 { grid-template-columns: 1fr 1fr; } }
.checks li { position: relative; padding: var(--s-4) var(--s-5) var(--s-4) var(--s-8); color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-inner); }
.checks li::before { content: ""; position: absolute; left: var(--s-5); top: calc(var(--s-4) + 0.25em); width: var(--s-4); height: var(--s-4); border-radius: 50%; background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232356f6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.checks strong { color: var(--ink); font-weight: 600; }

/* CTA band */
.cta-band { padding-top: 0; }
.cta-band__inner { display: grid; gap: var(--s-6); padding: var(--s-7) var(--s-5); background: var(--dark); color: var(--dark-text); border-radius: var(--r-card); box-shadow: var(--shadow-lg); }
@media (min-width: 800px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; align-items: end; padding: var(--s-8) var(--s-7); } }
.cta-band h2 { color: #fff; }
.cta-band .lede { margin-top: var(--s-4); color: var(--dark-muted); }
.cta-band .ctas { margin-top: 0; }
.cta-band .btn:not(.btn--primary) { background: transparent; color: var(--dark-text); border-color: var(--dark-line); }
.cta-band .btn:not(.btn--primary):hover { border-color: var(--dark-text); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-7); font-size: 0.9375rem; color: var(--text-3); background: var(--surface); }
.footer__top { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .footer__top { grid-template-columns: 1fr 2.4fr; gap: var(--s-8); } }
.footer__brand p { margin-top: var(--s-4); max-width: 36ch; color: var(--text-2); }
.footer__cols { display: grid; gap: var(--s-6); grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }
.footer__h { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); max-width: none; }
.footer ul { margin-top: var(--s-4); list-style: none; display: grid; gap: var(--s-2); }
.footer a { text-decoration: none; color: var(--text-2); }
.footer a:hover { color: var(--ink); }
.footer__copy { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: 0.875rem; }

/* Tools -> agent -> you */
.flow { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .flow { grid-template-columns: 1fr 1.2fr 1fr; align-items: stretch; } }
.flow__col { position: relative; display: grid; align-content: start; gap: var(--s-3); padding: var(--s-6) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.flow__col p { color: var(--text-2); }
.flow__col--agent { background: var(--dark); border-color: var(--dark); box-shadow: var(--shadow-lg); }
.flow__col--agent p { color: var(--dark-muted); }
.flow__col--agent .flow__title { color: #fff; }
.flow__label { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent) !important; }
.flow__col--agent .flow__label { color: var(--dark-accent) !important; }
.flow__title { font-weight: 600; font-size: 1.125rem; color: var(--ink) !important; }
.flow__list { list-style: none; display: grid; gap: var(--s-2); }
.flow__list li { padding: var(--s-2) var(--s-3); font-size: 0.9375rem; color: var(--ink); background: var(--surface-2); border-radius: var(--r-inner); }
@media (min-width: 900px) {
  .flow__col + .flow__col::before { content: ""; position: absolute; left: calc(-1 * var(--s-4)); top: 50%; width: var(--s-4); height: 2px; background: var(--accent); }
}

.facts a { color: inherit; text-decoration: none; }
.facts a:hover strong { color: var(--accent); }
.tools { margin: 0 0 var(--s-5); }
.table-wrap + .log { margin-top: var(--s-5); }
.mini { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-1); }
.mini li { position: relative; padding-left: var(--s-5); color: var(--text-2); }
.mini li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Verdict badges (connector checker) */
.verdict { display: inline-block; padding: var(--s-1) var(--s-3); font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; border-radius: var(--r-pill); white-space: nowrap; }
.verdict--ready { color: #fff; background: var(--accent); }
.verdict--workable { color: var(--accent); background: var(--accent-tint); }
.verdict--limited { color: var(--ink); background: var(--surface-2); }
.verdict--closed { color: var(--text-2); background: var(--surface); border: 1px solid var(--line-strong); }
.prose--wide { max-width: none; }
.prose--wide h3 { margin-top: var(--s-7); }
.src { font-size: 0.8125rem; color: var(--accent); white-space: nowrap; }

/* Checker */
.checker { display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .checker { grid-template-columns: 1.2fr 1fr; align-items: start; } .checker__result { position: sticky; top: var(--s-9); } }
.checker__picks { display: grid; gap: var(--s-4); }
.checker__group { padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.checker__group legend { padding: 0 var(--s-2); font: 500 0.6875rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.checker__chip { display: inline-flex; margin: var(--s-1); }
.checker__chip input { position: absolute; opacity: 0; pointer-events: none; }
.checker__chip span { padding: var(--s-2) var(--s-4); font-size: 0.9375rem; color: var(--ink); background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-pill); cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.checker__chip input:checked + span { color: #fff; background: var(--accent); }
.checker__chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.checker__result { display: grid; gap: var(--s-3); padding: var(--s-6) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.checker__empty, .checker__advice, .checker__catch { color: var(--text-2); }
.checker__headline { font: 800 1.5rem/1.15 var(--display); font-stretch: 112%; letter-spacing: -0.02em; }
.checker__item { display: grid; gap: var(--s-1); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.checker__item .verdict { justify-self: start; }
.checker__item p { font-size: 0.9375rem; color: var(--text-2); }
.checker__item strong { color: var(--ink); font-weight: 600; }

/* Calculator */
.calc { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } }
.calc__inputs { display: grid; gap: var(--s-4); padding: var(--s-6) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.calc__inputs label { display: grid; gap: var(--s-2); font-size: 0.875rem; font-weight: 500; color: var(--text-2); }
.calc__inputs input { width: 100%; padding: var(--s-3) var(--s-4); font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-inner); }
.calc__inputs input:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.calc__out { display: grid; gap: var(--s-3); }
.calc__stat { padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.calc__stat--accent { background: var(--dark); border-color: var(--dark); }
.calc__stat--accent .calc__label { color: var(--dark-muted); }
.calc__stat--accent .calc__num { color: #fff; }
.calc__label { font-size: 0.875rem; color: var(--text-3); }
.calc__num { margin-top: var(--s-1); font: 800 clamp(1.75rem, 4vw, 2.5rem)/1 var(--display); font-stretch: 125%; letter-spacing: -0.03em; }
.calc__note { font-size: 0.8125rem; color: var(--text-3); }
