/* =============================================================
   Linnae — homepage styles
   Editorial restraint · deep green ink · single leaf accent
   ============================================================= */

/* Fonts ------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Inter:wght@400;500;600&display=swap");

/* Tokens ------------------------------------------------------ */
:root {
  /* Palette */
  --paper:        #f5f2e8;
  --paper-soft:   #efeadb;
  --surface:      #ffffff;
  --ink:          #0c1f1a;
  --ink-2:        #18302a;
  --body:         #3d4842;
  --muted:        #6c7670;
  --rule:         #d9d4c2;
  --rule-soft:    #e5e1d2;
  --green:        #0c1f1a;
  --green-deep:   #061310;
  --green-mid:    #1c3a32;
  --leaf:         #d7f26d;
  --leaf-hover:   #c4e44d;
  --leaf-deep:    #94b32d;
  --amber:        #b8722c;
  --blue:         #2b5a7e;

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", "Source Serif Pro", Georgia, serif;
  --font-text:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* Shell */
  --shell-max: 1180px;
  --shell-pad: 40px;
}

@media (max-width: 820px) {
  :root { --shell-pad: 24px; }
}
@media (max-width: 520px) {
  :root { --shell-pad: 20px; }
}

/* Reset / base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Type -------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 500;
}
h1 em { font-style: italic; font-weight: 500; color: var(--ink-2); }
h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h3 {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.eyebrow {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink);
  display: inline-block;
}
.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--body);
  max-width: 38ch;
  margin: 0;
}

/* Shell ------------------------------------------------------- */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}

/* Header ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule-soft); }
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand img { width: 28px; height: 28px; color: var(--ink); }
.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.site-nav a:hover { color: var(--ink); background: rgba(12,31,26,0.04); }
.site-nav .nav-cta {
  background: var(--ink);
  color: var(--paper);
  margin-left: 8px;
}
.site-nav .nav-cta:hover { background: var(--green-mid); color: var(--paper); }

@media (max-width: 820px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav .nav-cta { margin-left: 0; }
}

/* CTA buttons ------------------------------------------------- */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.cta.primary {
  background: var(--ink);
  color: var(--paper);
}
.cta.primary:hover { background: var(--green-mid); }
.cta.primary .arrow { transition: transform .2s ease; }
.cta.primary:hover .arrow { transform: translateX(3px); }
.cta.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.cta.ghost:hover { border-color: var(--ink); }
.cta.leaf {
  background: var(--leaf);
  color: var(--green-deep);
}
.cta.leaf:hover { background: var(--leaf-hover); }
.cta.outline-paper {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245,242,232,0.28);
}
.cta.outline-paper:hover { border-color: var(--paper); }

/* Hero -------------------------------------------------------- */
.hero {
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(72px, 10vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-copy .eyebrow { margin-bottom: 4px; }
.hero h1 { max-width: 14ch; }
.hero .cta-row { margin-top: 8px; }

.hero-meta {
  display: flex;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  margin-top: 12px;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-meta-num em { font-style: italic; }
.hero-meta-label {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* Workflow card ---------------------------------------------- */
.workflow-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--rule-soft);
  box-shadow:
    0 1px 0 rgba(12,31,26,0.04),
    0 24px 60px -28px rgba(12,31,26,0.25),
    0 6px 18px -10px rgba(12,31,26,0.12);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.workflow-card::after {
  /* soft inner highlight */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(215,242,109,0.10), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.workflow-card > * { position: relative; z-index: 1; }

.wc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--rule-soft);
}
.wc-head-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.wc-head-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
  letter-spacing: 0.01em;
}
.wc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(215,242,109,0.22);
  padding: 5px 9px 5px 8px;
  border-radius: 999px;
}
.wc-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--leaf-deep);
  box-shadow: 0 0 0 3px rgba(148,179,45,0.18);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(148,179,45,0.18); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(148,179,45,0.04); }
}

.wc-list {
  list-style: none;
  padding: 0; margin: 0;
}
.wc-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--rule-soft);
}
.wc-row:last-child { border-bottom: none; }
.wc-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wc-icon svg { width: 14px; height: 14px; }
.wc-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}
.wc-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 2px 0 0;
}
.wc-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  background: var(--paper);
  white-space: nowrap;
}
.wc-tag.tag-draft   { color: #6a4b0e; background: #faf0d8; border-color: #ecd9a7; }
.wc-tag.tag-routed  { color: #1a3c55; background: #e2ecf3; border-color: #c5d6e2; }
.wc-tag.tag-sent    { color: #2a4a26; background: #e2ecda; border-color: #c8d8be; }

.wc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--paper);
  border-top: 1px solid var(--rule-soft);
  font-size: 12.5px;
  color: var(--muted);
}
.wc-foot strong { color: var(--ink); font-weight: 500; }
.wc-foot-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* Section --------------------------------------------------- */
.section {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  position: relative;
}
.section + .section { padding-top: 0; }
.section.dark {
  background: var(--green);
  color: rgba(245,242,232,0.78);
}
.section.dark h2 { color: var(--paper); }
.section.dark .eyebrow { color: var(--leaf); }
.section.dark .eyebrow::before { background: var(--leaf); }

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section.dark .section-header { border-bottom-color: rgba(245,242,232,0.12); }
.section-header h2 { max-width: 18ch; }
.section-header p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 52ch;
}
.section.dark .section-header p { color: rgba(245,242,232,0.7); }

@media (max-width: 820px) {
  .section-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }
}

/* What we automate — quiet 6-up grid ----------------------- */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.auto-item {
  padding: 32px 28px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: background .2s ease;
}
.auto-item:nth-child(3n) { border-right: none; }
.auto-item:hover { background: rgba(255,255,255,0.45); }
.auto-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}
.auto-item h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.auto-item p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--body);
  margin: 0;
  max-width: 36ch;
}

@media (max-width: 820px) {
  .auto-grid { grid-template-columns: repeat(2, 1fr); }
  .auto-item:nth-child(3n) { border-right: 1px solid var(--rule); }
  .auto-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 520px) {
  .auto-grid { grid-template-columns: 1fr; }
  .auto-item, .auto-item:nth-child(3n), .auto-item:nth-child(2n) { border-right: none; }
  .auto-item { padding: 24px 0; }
}

/* Built for — 2x2 industry cards --------------------------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.industry {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.industry:hover { border-color: var(--rule); }
.industry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.industry-head h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
  max-width: 14ch;
}
.industry-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--rule-soft);
}
.industry-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
}
.industry-hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.industry-hero-line {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  font-style: italic;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}
.industry ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.industry li {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--body);
  padding-left: 18px;
  position: relative;
}
.industry li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 1px;
  background: var(--ink-2);
}

@media (max-width: 820px) {
  .industry-grid { grid-template-columns: 1fr; }
  .industry { padding: 28px; }
}

/* How it works — 4 steps ----------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  padding: 0 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.step + .step { padding-left: 28px; border-left: 1px solid var(--rule); }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.step p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--body);
  margin: 0;
  max-width: 32ch;
}
.step-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 16px;
}

@media (max-width: 820px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .step, .step + .step { padding: 0; border-left: none; border-top: 1px solid var(--rule); padding-top: 24px; }
  .step:first-child { border-top: none; padding-top: 0; }
}

/* Guardrails — dark section -------------------------------- */
.guardrails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.guardrail {
  padding: 0 28px 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guardrail + .guardrail { padding-left: 28px; border-left: 1px solid rgba(245,242,232,0.12); }
.guardrail-glyph {
  width: 28px; height: 28px;
  color: var(--leaf);
  margin-bottom: 6px;
}
.guardrail h3 {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.guardrail p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(245,242,232,0.7);
  margin: 0;
  max-width: 32ch;
}

@media (max-width: 820px) {
  .guardrails { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .guardrail:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 520px) {
  .guardrails { grid-template-columns: 1fr; row-gap: 28px; }
  .guardrail, .guardrail + .guardrail {
    padding: 24px 0 0; border-left: none;
    border-top: 1px solid rgba(245,242,232,0.12);
  }
  .guardrail:first-child { border-top: none; padding-top: 0; }
}

/* Audit CTA — the moment ----------------------------------- */
.audit {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.audit-block {
  background: var(--green);
  color: var(--paper);
  border-radius: 20px;
  padding: clamp(48px, 7vw, 96px) clamp(36px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.audit-block::before {
  content: "";
  position: absolute;
  right: -120px; bottom: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(215,242,109,0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.audit-block > * { position: relative; z-index: 1; }
.audit-block .eyebrow { color: var(--leaf); }
.audit-block .eyebrow::before { background: var(--leaf); }
.audit-block h2 {
  color: var(--paper);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 18px 0 24px;
  max-width: 16ch;
}
.audit-block p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(245,242,232,0.78);
  max-width: 46ch;
  margin: 0 0 32px;
}
.audit-side {
  border-left: 1px solid rgba(245,242,232,0.12);
  padding-left: clamp(32px, 4vw, 56px);
}
.audit-side dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.audit-side dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 6px;
}
.audit-side dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.35;
  color: var(--paper);
  letter-spacing: -0.005em;
}
.audit-side dd em { font-style: italic; color: rgba(245,242,232,0.85); }

@media (max-width: 820px) {
  .audit-block {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .audit-side {
    border-left: none;
    border-top: 1px solid rgba(245,242,232,0.12);
    padding-left: 0;
    padding-top: 36px;
  }
}

/* Footer ---------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0 56px;
}
.site-footer-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}
.site-footer a { color: var(--ink); }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
