/* Everyday Agentry — shared styles
   Palette: slate ink, spruce green, a highlighter yellow for "approved" moments.
   Type: Bricolage Grotesque (headings), Public Sans (body). */

:root {
  --paper: #F5F7F3;
  --paper-2: #E9EEE7;
  --ink: #1E2A2F;
  --ink-soft: #4A5A60;
  --spruce: #2E5E50;
  --spruce-deep: #1F4338;
  --mark: #F2C94C;
  --mark-soft: #FBEDB5;
  --line: #CFD8D1;
  --white: #FFFFFF;

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.375rem;
  --step-4: clamp(2.5rem, 6vw, 4.25rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

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

a { color: var(--spruce); text-underline-offset: 0.18em; }
a:hover { color: var(--spruce-deep); }

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 64ch; }

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}
.brand {
  display: inline-block;
  font-family: var(--font-head); font-weight: 800; font-size: 1.45rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.03em; line-height: 1;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-agentry {
  color: var(--spruce);
  background: linear-gradient(transparent 58%, var(--mark) 58%);
  padding: 0 0.06em;
}

.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none; margin: 0; padding: 0;
  font-size: 0.975rem;
}
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--spruce); text-decoration: underline; }
.nav-links a[aria-current="page"] { color: var(--spruce); font-weight: 600; }

.menu { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid var(--spruce);
  background: var(--spruce); color: var(--white);
  cursor: pointer;
}
.btn:hover { background: var(--spruce-deep); border-color: var(--spruce-deep); color: var(--white); }
.btn-quiet { background: transparent; color: var(--spruce); }
.btn-quiet:hover { background: var(--spruce); color: var(--white); }
.nav-links .btn { padding: 0.55rem 1rem; color: var(--white); }
.nav-links .btn:hover { color: var(--white); text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--spruce-deep); color: var(--paper); }
.band-dark a { color: var(--mark); }
.band-dark h2, .band-dark h3 { color: var(--white); }

.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; max-width: 40ch; }
.band-dark .lede { color: #CFE0D8; }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); }

/* Highlighter: used only for the approval idea */
.mark {
  background: linear-gradient(transparent 55%, var(--mark) 55%);
  padding: 0 0.1em;
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 7vw, 5rem); }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.1fr 0.9fr; align-items: center;
}
.hero h1 { max-width: 13ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* The workday log: the signature element */
.daylog {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(30, 42, 47, 0.35);
  overflow: hidden;
  font-size: 0.95rem;
}
.daylog-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.9rem 1.15rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700;
}
.daylog-head span { font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: 0.875rem; }
.daylog ol { list-style: none; margin: 0; padding: 0; }
.daylog li {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px dashed var(--line);
}
.daylog li:last-child { border-bottom: 0; }
.daylog time { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 600; }
.daylog .task { display: block; color: var(--ink); }
.daylog .who { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.15rem; }
.daylog .ok {
  display: inline-block; margin-top: 0.35rem;
  background: var(--mark-soft); color: #5A4600;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.1rem 0.5rem; border-radius: 4px;
}
.daylog-foot {
  padding: 0.8rem 1.15rem; background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--ink-soft);
}

/* ---------- Live agent log (driven by home.js) ---------- */
.live-tag { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3FA272; display: inline-block;
}
.daylog-saved {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.75rem 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem; color: var(--ink-soft);
}
.daylog-saved strong {
  font-family: var(--font-head); font-size: 1.35rem; color: var(--spruce);
  font-variant-numeric: tabular-nums;
}
.chip-slot { display: block; min-height: 1.75rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.1rem 0.5rem; border-radius: 4px;
}
.chip.working { background: var(--paper-2); color: var(--ink-soft); }
.chip.working::after { content: "..."; display: inline-block; width: 1.1em; overflow: hidden; vertical-align: bottom; }
.chip.waiting { background: var(--mark-soft); color: #5A4600; box-shadow: 0 0 0 0 rgba(242, 201, 76, 0.7); }
.chip.done { background: var(--mark); color: #3D3000; }
.chip.done::before { content: "\2713"; }
.chip.sent { background: #DDEBE4; color: var(--spruce-deep); }

/* Rotating headline word */
.hero h1 { max-width: 17ch; }
.rotator { display: block; white-space: nowrap; }
.rotator-word {
  display: inline-block;
  color: var(--spruce);
  background: linear-gradient(transparent 62%, var(--mark) 62%);
  padding: 0 0.08em;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .daylog.js-live li { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
  .daylog li.show { opacity: 1; transform: none; }
  .rotator-word { transition: opacity 0.3s ease, transform 0.3s ease; }
  .rotator-word.out { opacity: 0; transform: translateY(-0.25em); }
  .live-dot { animation: livePulse 1.6s ease-in-out infinite; }
  .chip.waiting { animation: waitPulse 1.1s ease-out infinite; }
  .chip.working::after { animation: dots 1s steps(4, end) infinite; }
  @keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
  @keyframes waitPulse { 0% { box-shadow: 0 0 0 0 rgba(242, 201, 76, 0.75); } 100% { box-shadow: 0 0 0 8px rgba(242, 201, 76, 0); } }
  @keyframes dots { from { width: 0; } to { width: 1.1em; } }
}

/* ---------- Paths (who we help) ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.path {
  padding: 1.75rem 1.75rem 1.75rem 0;
  border-right: 1px solid var(--line);
}
.path + .path { padding-left: 1.75rem; }
.path:last-child { border-right: 0; }
.path p { color: var(--ink-soft); }
.path a { font-weight: 600; }

/* ---------- Method (a real sequence, so numbered) ---------- */
.method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.method li { counter-increment: step; padding: 0 1.25rem 0 0; position: relative; }
.method li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 2px solid var(--mark); color: var(--white);
  font-family: var(--font-head); font-weight: 700;
  margin-bottom: 0.9rem;
}
.method li::after {
  content: ""; position: absolute; top: 1.125rem; left: 2.6rem; right: 0.6rem;
  border-top: 1px dashed rgba(242, 201, 76, 0.5);
}
.method li:last-child::after { display: none; }
.method h3 { margin-bottom: 0.35rem; }
.method p { font-size: 0.95rem; color: #CFE0D8; }

/* ---------- Generic rows / lists ---------- */
.rows { border-top: 2px solid var(--ink); }
.row {
  display: grid; grid-template-columns: minmax(12rem, 1fr) 2fr; gap: 1.5rem 3rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
.row h3 { margin: 0; }
.row .meta { display: block; margin-top: 0.4rem; font-size: 0.9rem; color: var(--ink-soft); font-family: var(--font-body); font-weight: 400; letter-spacing: 0; }
.row p:last-child { margin-bottom: 0; }
.row ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.row li { margin-bottom: 0.3rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 0.6rem 0 0.6rem 2rem; position: relative; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.95rem;
  width: 1.1rem; height: 0.6rem;
  border-left: 3px solid var(--spruce); border-bottom: 3px solid var(--spruce);
  transform: rotate(-45deg);
}
.band-dark .checklist li { border-color: rgba(255,255,255,0.15); }
.band-dark .checklist li::before { border-color: var(--mark); }

.note {
  border-left: 4px solid var(--mark);
  background: var(--white);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  max-width: 46rem;
}
.note p:last-child { margin: 0; }

/* Page hero for inner pages */
.page-hero { padding-bottom: clamp(2rem, 5vw, 3rem); }
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); max-width: 18ch; }

/* ---------- CTA strip ---------- */
.cta-strip .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cta-strip h2 { margin: 0; max-width: 22ch; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.75rem 0.85rem;
  border: 1px solid #A9B6AE; border-radius: 6px; background: var(--white);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--mark); outline-offset: 1px; border-color: var(--spruce); }
.hidden { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.925rem; color: var(--ink-soft);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }
.site-footer p { margin: 0.25rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .method { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .method li::after { display: none; }
}

@media (max-width: 860px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; }
  .path, .path + .path { padding: 1.5rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: 1fr; gap: 0.75rem; }

  .nav-links { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer;
    font-weight: 600; padding: 0.5rem 0.9rem;
    border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu ul {
    position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 5;
    list-style: none; margin: 0; padding: 0.5rem;
    background: var(--white); border: 1px solid var(--line); border-radius: 8px;
    min-width: 15rem; box-shadow: 0 12px 30px -16px rgba(30,42,47,0.4);
  }
  .menu li a { display: block; padding: 0.7rem 0.8rem; color: var(--ink); text-decoration: none; border-radius: 4px; }
  .menu li a:hover { background: var(--paper-2); }
  .menu li a[aria-current="page"] { color: var(--spruce); font-weight: 600; }
}

@media (max-width: 560px) {
  .method { grid-template-columns: 1fr; }
  .daylog li { grid-template-columns: 3rem 1fr; }
}

/* ---------- Use case explorer (driven by usecases.js) ---------- */
.usecases { margin-top: 0.5rem; }
.uc-tabs {
  display: flex; gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
  margin-bottom: 1.75rem;
}
.uc-tabs::-webkit-scrollbar { display: none; }
.uc-tabs [role=tab] {
  flex: none;
  font: inherit; font-weight: 600; font-size: 0.975rem;
  color: var(--ink-soft);
  background: none; border: 0; cursor: pointer;
  padding: 0.7rem 0.95rem 0.8rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.uc-tabs [role=tab]:hover { color: var(--ink); }
.uc-tabs [role=tab][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--mark); }

.uc-panel { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.uc-panel[hidden] { display: none; }
.uc-story h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.uc-story .problem { color: var(--ink-soft); }
.uc-result {
  margin-top: 1.5rem; padding: 1rem 1.15rem;
  border-left: 4px solid var(--spruce);
  background: var(--paper);
}
.band .uc-result { background: var(--paper); }
section:not(.band) .uc-result { background: var(--white); }
.uc-result strong {
  display: block; font-family: var(--font-head); font-size: var(--step-2);
  line-height: 1.1; color: var(--spruce);
}
.uc-result span { color: var(--ink-soft); font-size: 0.95rem; }
.uc-replay {
  margin-top: 1rem; font: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--spruce); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.18em;
}
.usecases:not(.is-live) .uc-replay { display: none; }
.uc-note { font-size: 0.875rem; color: var(--ink-soft); margin-top: 1.25rem; }

.chip.auto { background: #E3E9EC; color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .usecases.is-live .uc-log li { opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease-out, transform 0.35s ease-out; }
  .usecases.is-live .uc-log li.show { opacity: 1; transform: none; }
  .usecases.is-live .uc-result { opacity: 0.25; transition: opacity 0.5s ease; }
  .usecases.is-live .uc-result.show { opacity: 1; }
}

/* ---------- Rules panel (laws we design around) ---------- */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.rule { padding: 1.25rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.rule + .rule { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.rule:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.rule h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.rule .scope { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.rule p { font-size: 0.95rem; margin: 0; }

@media (max-width: 860px) {
  .uc-panel { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .rule, .rule + .rule { padding: 1.1rem 0; border-left: 0; }
}
.uc-log li { grid-template-columns: 4.75rem 1fr; }
.uc-log time { font-size: 0.875rem; }

/* ---------- Why agents? (home) ---------- */
.why-head { max-width: 46rem; margin-bottom: 2.5rem; }
.why-head h2 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.why-head .lede { max-width: 34ch; color: var(--ink); }
.why-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.why-text p { color: var(--ink-soft); }
.why-text strong { color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.split-col { padding: 1.25rem 1.25rem 1.5rem; }
.split-col h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.split-col ul { list-style: none; margin: 0; padding: 0; }
.split-col li { padding: 0.55rem 0; border-top: 1px dashed var(--line); font-size: 0.95rem; }
.split-col.people { background: var(--spruce-deep); color: #E4EEE9; }
.split-col.people h3 { color: var(--white); }
.split-col.people li { border-top-color: rgba(255, 255, 255, 0.18); }
.split-col.people h3::after {
  content: ""; display: block; width: 2.5rem; height: 4px; margin-top: 0.5rem;
  background: var(--mark); border-radius: 2px;
}
.split-col:not(.people) h3::after {
  content: ""; display: block; width: 2.5rem; height: 4px; margin-top: 0.5rem;
  background: var(--line); border-radius: 2px;
}

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: clamp(3rem, 7vw, 4.5rem); }
.quote { margin: 0; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.quote blockquote {
  margin: 0 0 0.9rem;
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em;
}
.quote blockquote::before { content: "\201C"; color: var(--spruce); }
.quote blockquote::after { content: "\201D"; color: var(--spruce); }
.quote figcaption { font-size: 0.875rem; color: var(--ink-soft); }
.quote cite { font-style: italic; }

@media (max-width: 860px) {
  .why-body, .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Hero background drawing ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }
@media (max-width: 860px) { .hero-bg { opacity: 0.6; } }

/* ---------- Pro bono callout (hero) ---------- */
.callout {
  display: inline-flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
  margin: 1.5rem 0 0; padding: 0.45rem 0.85rem;
  font-size: 0.875rem; color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line); border-radius: 999px;
}
.callout a { font-weight: 600; }
.callout-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mark); flex: none; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.005em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--spruce); font-family: var(--font-body); font-weight: 600;
}
.faq-item[open] summary::after { content: "\2212"; background: var(--mark-soft); border-color: var(--mark); }
.faq-item p { color: var(--ink-soft); margin: 0 0 1.2rem; max-width: 60ch; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .callout { display: block; border-radius: 10px; line-height: 1.5; }
  .callout-dot { display: inline-block; margin-right: 0.45rem; vertical-align: 0.1em; }
}

/* ---------- Check your problem (home) ---------- */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.check-grid .lede { max-width: 38ch; }
.check-form { margin-top: 1.75rem; }
.check-form textarea { min-height: 8.5rem; }
.counter { display: block; text-align: right; font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.3rem; }
.check-privacy { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.check-body { padding: 1.15rem 1.15rem 1.35rem; min-height: 16rem; }
.check-empty p { color: var(--ink-soft); margin-bottom: 0.5rem; }
.check-empty ul, .check-list { margin: 0; padding: 0; list-style: none; }
.check-empty li, .check-list li { position: relative; padding: 0.3rem 0 0.3rem 1.3rem; font-size: 0.95rem; }
.check-empty li { color: var(--ink-soft); }
.check-empty li::before, .check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.8rem;
  width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--line);
}
.check-list li::before { background: var(--mark); }
.check-headline { font-size: 1.35rem; margin: 0.75rem 0 0.4rem; }
.check-summary { color: var(--ink-soft); }
.check-body h4 {
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 700;
  margin: 1.1rem 0 0.25rem;
}
.check-step { margin: 0; }
.check-msg { margin: 0.75rem 0 0; color: var(--ink-soft); }
.check-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.check-actions .btn { padding: 0.6rem 1rem; font-size: 0.95rem; }
.chip.partial { background: var(--mark-soft); color: #5A4600; }

.check-skeleton { margin-top: 1rem; display: grid; gap: 0.7rem; }
.check-skeleton span { display: block; height: 0.8rem; border-radius: 4px; background: var(--paper-2); }
.check-skeleton span:nth-child(1) { width: 75%; height: 1.2rem; }
.check-skeleton span:nth-child(2) { width: 95%; }
.check-skeleton span:nth-child(3) { width: 85%; }
.check-skeleton span:nth-child(4) { width: 60%; }
@media (prefers-reduced-motion: no-preference) {
  .check-skeleton span { animation: skel 1.2s ease-in-out infinite alternate; }
  @keyframes skel { from { opacity: 1; } to { opacity: 0.45; } }
}
@media (max-width: 860px) { .check-grid { grid-template-columns: 1fr; } }
.daylog .check-body li { display: block; border-bottom: 0; padding: 0.3rem 0 0.3rem 1.3rem; }
.callback { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); }
.callback label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.45rem; }
.callback-line { display: flex; gap: 0.5rem; }
.callback-line input {
  flex: 1; min-width: 0; font: inherit; color: var(--ink);
  padding: 0.6rem 0.8rem; border: 1px solid #A9B6AE; border-radius: 6px; background: var(--white);
}
.callback-line input:focus { outline: 3px solid var(--mark); outline-offset: 1px; border-color: var(--spruce); }
.callback-line .btn { padding: 0.6rem 1.1rem; }
.callback .check-privacy { margin-top: 0.6rem; }
.callback .fallback { margin-top: 0.75rem; }

/* ---------- What is agentic AI? (home) ---------- */
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.kind { padding: 1.4rem 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.kind h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.kind p { font-size: 0.975rem; margin-bottom: 0.75rem; }
.kind .eg { color: var(--ink-soft); font-size: 0.9rem; margin: 0; font-style: italic; }
.kind-agent { background: var(--spruce-deep); border-color: var(--spruce-deep); color: #E4EEE9; }
.kind-agent h3 { color: var(--white); }
.kind-agent h3::after { content: ""; display: block; width: 2.5rem; height: 4px; margin-top: 0.5rem; background: var(--mark); border-radius: 2px; }
.kind-agent .eg { color: #CFE0D8; }

.steps-title { margin-top: 2.75rem; }
.agent-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.agent-steps li { counter-increment: s; position: relative; padding-top: 2.75rem; }
.agent-steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--mark-soft); border: 2px solid var(--mark);
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
}
.agent-steps li::after { content: ""; position: absolute; top: 1rem; left: 2.6rem; right: 0.6rem; border-top: 1px dashed var(--line); }
.agent-steps li:last-child::after { display: none; }
.agent-steps strong { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 0.2rem; }
.agent-steps span { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 860px) {
  .kinds { grid-template-columns: 1fr; }
  .agent-steps { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .agent-steps li::after { display: none; }
}
@media (max-width: 480px) { .agent-steps { grid-template-columns: 1fr; } }

/* ---------- Time notes (subtle personal touch) ---------- */
.timenote-band { padding: clamp(2rem, 5vw, 3rem) 0; }
.timenote {
  display: flex; align-items: center; gap: 1rem;
  max-width: 46rem;
  padding: 1rem 0;
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
}
.timenote-icon { width: 2.5rem; height: 2.5rem; flex: none; }
.timenote p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.timenote strong { font-family: var(--font-head); color: var(--ink); font-weight: 700; margin-right: 0.15rem; }

/* ---------- Notes from the founder ---------- */
.notes-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.notes-list:empty { display: none; }
.note-item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.note-item time { font-size: 0.875rem; color: var(--ink-soft); }
.note-item h2 { font-size: var(--step-2); margin: 0.3rem 0 0.4rem; }
.note-item h2 a { color: var(--ink); text-decoration: none; }
.note-item h2 a:hover { color: var(--spruce); text-decoration: underline; }
.note-item p { color: var(--ink-soft); margin: 0; }
.notes-list:not(:empty) + .notes-empty { display: none; }
.notes-empty { max-width: 40rem; }

.note-article { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem); }
.note-article .wrap { max-width: 44rem; }
.note-back { font-size: 0.9rem; margin-bottom: 1.5rem; }
.note-article h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.note-byline { color: var(--ink-soft); font-size: 0.95rem; padding-bottom: 1.5rem; border-bottom: 1px dashed var(--line); margin-bottom: 2rem; }
.note-byline time { margin-left: 0.5rem; padding-left: 0.6rem; border-left: 1px solid var(--line); }
.note-body p { font-size: 1.125rem; line-height: 1.75; max-width: 64ch; }
.note-sign { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; margin-top: 2rem; }

/* Compact menu below 1100px so the longer nav never wraps */
.nav-links a { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer;
    font-weight: 600; padding: 0.5rem 0.9rem;
    border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu ul {
    position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 5;
    list-style: none; margin: 0; padding: 0.5rem;
    background: var(--white); border: 1px solid var(--line); border-radius: 8px;
    min-width: 15rem; box-shadow: 0 12px 30px -16px rgba(30,42,47,0.4);
  }
  .menu li a { display: block; padding: 0.7rem 0.8rem; color: var(--ink); text-decoration: none; border-radius: 4px; }
  .menu li a:hover { background: var(--paper-2); }
  .menu li a[aria-current="page"] { color: var(--spruce); font-weight: 600; }
}
.note-body h2 { font-size: 1.45rem; margin: 2.2rem 0 0.6rem; }
.note-sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px dashed var(--line); }
.note-sources h2 { font-size: 1.1rem; margin-top: 0; }
.note-sources ul { margin: 0; padding-left: 1.1rem; }
.note-sources li { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
