/* Generous Work — early prototype styles.
   Matched to Qualified Inbox / Primary: warm paper ground, Inter + Inter Tight,
   lime accent, pill nav, 18px cards, no shadows, tight display tracking. */

:root {
  --bg: #f8f8f4;
  --bg-card: #fbfbf7;
  --ink: #0f0f0f;
  --ink-secondary: #575753;
  --ink-on-dark: #bdbdb6;
  --ink-on-dark-soft: #cfcfca;
  --border: #e3e3de;
  --border-card: #deded6;
  --border-hover: #bdbdb2;
  --border-dark: #2a2a28;
  --accent: #c8ff54;
  --accent-soft: #f7ffe6;
  --tag-ink: #4f5048;
  --tag-border: #d6d6d0;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Inter Tight", system-ui, sans-serif;
  --type-caption: 0.875rem;
  --type-ui: 1rem;
  --type-body: 1.125rem;
  --radius-card: 18px;
  --radius-pill: 999px;
  --wrap: 1180px;
  --space-section: 8rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-wrap: balance;
}

h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .wrap {
    width: min(100% - 80px, var(--wrap));
  }
}

/* Header
   ------------------------------------------------------------------ */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  order: 3;
  width: 100%;
}

@media (min-width: 640px) {
  .nav {
    order: 0;
    width: auto;
  }
}

.nav-link,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--type-ui);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}

.nav-link:hover,
.header-cta:hover {
  text-decoration: none;
  border-color: var(--border-hover);
}

.nav-link.is-current {
  background: #eeeee7;
}

.header-cta {
  gap: 8px;
  padding: 6px 12px 6px 6px;
}

.header-cta-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}

.header-cta-text {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1.2;
  padding-right: 6px;
}

.header-cta-text small {
  font-size: var(--type-caption);
  font-weight: 500;
  color: var(--ink-secondary);
  line-height: 1.2;
}

@media (min-width: 640px) {
  .header-cta-text {
    display: flex;
  }
}

/* Type helpers
   ------------------------------------------------------------------ */

.eyebrow,
.lbl {
  font-size: var(--type-caption);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.lede,
.body-copy {
  font-size: var(--type-body);
  line-height: 1.6;
}

.ui {
  font-size: var(--type-ui);
  line-height: 1.5;
}

.caption {
  font-size: var(--type-caption);
  font-weight: 500;
  line-height: 1.5;
}

.muted {
  color: var(--ink-secondary);
}

.note {
  font-size: var(--type-caption);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-secondary);
}

/* Hero
   ------------------------------------------------------------------ */

.hero {
  padding-top: 40px;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 64px;
  }
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(44px, 8.4vw, 104px);
  line-height: 0.94;
}

.hero-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .hero-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.hero-row .lede {
  max-width: 460px;
  color: var(--ink-secondary);
}

/* Buttons
   ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  font-family: inherit;
  font-size: var(--type-ui);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  background: #262625;
}

.btn-on-dark {
  background: var(--accent);
  color: var(--ink);
}

.btn-on-dark:hover {
  background: #d9ff7a;
}

/* Split panel (QI two-column bordered block)
   ------------------------------------------------------------------ */

.split {
  display: grid;
  margin-top: 56px;
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.split-pane {
  padding: 24px;
}

@media (min-width: 768px) {
  .split-pane {
    padding: 32px;
  }
}

.split-pane + .split-pane {
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .split-pane + .split-pane {
    border-top: 0;
    border-left: 1px solid var(--border);
  }
}

.split-pane h2 {
  margin-top: 32px;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.split-pane p + p,
.split-pane h2 + p {
  margin-top: 20px;
  font-size: var(--type-ui);
  line-height: 1.6;
}

.split-dark {
  background: var(--ink);
  color: var(--bg);
}

.split-dark .eyebrow,
.split-dark p {
  color: var(--ink-on-dark-soft);
}

.split-dark h2 {
  color: var(--bg);
}

/* Sections
   ------------------------------------------------------------------ */

.section {
  padding-top: var(--space-section);
}

.section h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1;
  max-width: 820px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-head .lede {
  max-width: 620px;
  color: var(--ink-secondary);
}

/* Three-up philosophy / steps
   ------------------------------------------------------------------ */

.triple {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .triple {
    grid-template-columns: repeat(3, 1fr);
  }
}

.triple article {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.triple h3 {
  margin-top: 12px;
  font-size: 22px;
}

.triple p {
  margin-top: 12px;
  color: var(--ink-secondary);
}

/* Search + business grid
   ------------------------------------------------------------------ */

.search-bar {
  margin-top: 40px;
  max-width: 460px;
}

.search-bar label {
  display: block;
  margin-bottom: 8px;
}

.search-bar input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--type-ui);
}

.search-bar input[type="search"]::placeholder {
  color: #838383;
}

.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

a.card:hover {
  text-decoration: none;
  border-color: var(--border-hover);
}

.card h3 {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

a.card h3 {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

a.card:hover h3 {
  text-decoration-color: currentColor;
}

.card p {
  margin-top: 12px;
  font-size: var(--type-ui);
  line-height: 1.6;
  color: var(--ink-secondary);
}

.card .card-meta {
  margin-top: auto;
  padding-top: 20px;
  font-size: var(--type-caption);
  font-weight: 500;
  color: var(--ink-secondary);
}

.card.is-static .card-meta {
  color: #838383;
}

.card-compact {
  padding: 16px 18px;
}

.card-compact h3 {
  margin-top: 10px;
  font-size: 20px;
}

.card-compact p {
  margin-top: 8px;
}

/* Chips / tags
   ------------------------------------------------------------------ */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--tag-border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--tag-ink);
  white-space: nowrap;
}

.chip-amplify {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.chip-human {
  background: var(--bg);
  border-color: var(--border-hover);
  color: var(--ink);
}

.chip-automate {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.chip-agent {
  background: transparent;
  border-color: var(--border-card);
  color: var(--ink-secondary);
}

/* Forms
   ------------------------------------------------------------------ */

.form-panel {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-card);
  max-width: 640px;
}

@media (min-width: 768px) {
  .form-panel {
    padding: 32px;
  }
}

.form-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .span-2 {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--type-caption);
  font-weight: 500;
  color: var(--ink-secondary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--type-ui);
  line-height: 1.5;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

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

.form-status {
  display: none;
  margin-top: 16px;
  font-size: var(--type-ui);
  color: var(--ink-secondary);
}

.form-status.is-visible {
  display: block;
}

/* Breadcrumb + page intro
   ------------------------------------------------------------------ */

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  font-size: var(--type-caption);
  font-weight: 500;
  color: var(--ink-secondary);
}

.crumb a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.crumb a:hover {
  text-decoration: underline;
}

.crumb span[aria-current="page"] {
  color: var(--ink);
}

.page-hero {
  padding-top: 32px;
}

.page-hero h1 {
  margin-top: 16px;
  max-width: 920px;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.96;
}

.page-hero .lede {
  max-width: 620px;
  margin-top: 24px;
  color: var(--ink-secondary);
}

/* Philosophy split for a business
   ------------------------------------------------------------------ */

.cx-grid {
  display: grid;
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .cx-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cx-cell {
  padding: 24px;
}

.cx-cell + .cx-cell {
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .cx-cell + .cx-cell {
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .cx-cell {
    padding: 28px;
  }
}

.cx-cell h3 {
  margin-top: 10px;
  font-size: 22px;
}

.cx-cell p {
  margin-top: 12px;
  font-size: var(--type-ui);
  color: var(--ink-secondary);
}

/* Role tasks
   ------------------------------------------------------------------ */

.task-group {
  margin-top: 48px;
}

.task-group h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.task {
  display: grid;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 900px) {
  .task {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
  }
}

.task h4 {
  font-family: var(--font-sans);
  font-size: var(--type-ui);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

.task p {
  margin-top: 6px;
  font-size: var(--type-ui);
  color: var(--ink-secondary);
}

.task-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-meta .agents-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

/* Time freed
   ------------------------------------------------------------------ */

.time-split .split {
  margin-top: 40px;
}

.time-split ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.time-split li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: var(--type-ui);
}

.dot {
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: #8a966e;
  flex-shrink: 0;
}

.split-dark .dot {
  background: var(--accent);
}

/* Footer
   ------------------------------------------------------------------ */

.site-footer {
  margin-top: 96px;
  background: var(--ink);
  color: var(--bg);
}

.footer-inner {
  padding: 36px 0 40px;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-decoration: none;
}

.footer-mail:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.footer-mail-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  flex-shrink: 0;
}

.footer-cta p {
  margin-top: 20px;
  font-size: var(--type-ui);
  color: var(--ink-on-dark-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  margin-top: 0;
  padding-top: 0;
  font-size: var(--type-caption);
  font-weight: 500;
  color: var(--ink-on-dark-soft);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-on-dark-soft);
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

.empty-search {
  margin-top: 24px;
  color: var(--ink-secondary);
}

@media (max-width: 639px) {
  .site-header {
    padding-block: 20px;
  }

  .hero {
    padding-top: 24px;
  }

  .section {
    padding-top: 5rem;
  }
}

/* Placeholder marking (section 8) */
.show-placeholders [data-placeholder] {
  outline: 1px dashed #9ccf2a;
  outline-offset: 2px;
  background: var(--accent-soft);
}

.show-placeholders [data-placeholder]::after {
  content: "PLACEHOLDER";
  margin-left: 6px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--ink);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  vertical-align: middle;
}
