:root {
  --paper: #faf8f3;
  --ink: #1e2420;
  --muted: #5a6159;
  --green: #1d3a2f;
  --green-tint: #eaf0ea;
  --brass: #a9834a;
  --line: #e3ded2;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 { font-family: "Schibsted Grotesk", "Inter", -apple-system, sans-serif; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
}

/* Nav */
.nav { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: 1040px; margin: 0 auto; }
.wordmark { font-family: "Schibsted Grotesk", "Inter", -apple-system, sans-serif; font-size: 22px; font-weight: 700; color: var(--green); text-decoration: none; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--green); }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: #162c24; }
.btn--small { padding: 10px 20px; font-size: 14px; }

/* Hero */
.hero { padding: 80px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 64px; align-items: center; }
.hero h1 { font-size: 46px; max-width: 720px; margin-bottom: 24px; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 640px; margin-bottom: 36px; }
.hero-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-alt { font-size: 16px; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: none; font-family: inherit; }
.trust-line { margin-top: 28px; font-size: 14px; color: var(--muted); }

/* Hero mockup */
.hero-visual { position: relative; }
.mock-window {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 60px -28px rgba(30, 36, 32, 0.35), 0 4px 16px -8px rgba(30, 36, 32, 0.12);
  overflow: hidden;
  font-size: 13px;
}
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; }
.mock-dots i:nth-child(1) { background: #d98b7c; }
.mock-dots i:nth-child(2) { background: #d9bd7c; }
.mock-dots i:nth-child(3) { background: #8fb48f; }
.mock-title { font-weight: 600; font-size: 13px; }
.mock-pill { margin-left: auto; display: flex; align-items: center; gap: 6px; background: var(--green-tint); color: var(--green); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.mock-live { width: 6px; height: 6px; border-radius: 50%; background: #3e7a55; }
.mock-pill.is-running .mock-live { animation: mock-pulse 1.1s ease-in-out infinite; }
.mock-body { display: grid; grid-template-columns: 176px 1fr; }
.mock-rail { border-right: 1px solid var(--line); background: var(--paper); padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.mock-rail-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.mock-rail-item svg { width: 13px; height: 13px; flex-shrink: 0; }
.mock-rail-item--active { background: var(--green-tint); color: var(--green); font-weight: 600; }
.mock-rail-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 10px 2px; color: var(--muted); font-size: 11.5px; }
.mock-rail-foot svg { width: 12px; height: 12px; }
.mock-main { padding: 18px 20px 42px; }
.mock-task-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mock-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); margin-bottom: 3px; }
.mock-task-title { font-size: 15px; font-weight: 700; }
.mock-pct { font-size: 15px; font-weight: 700; color: var(--green); }
.mock-track { height: 6px; background: #ede8db; border-radius: 999px; margin-top: 12px; overflow: hidden; }
.mock-fill { height: 100%; width: 100%; background: var(--green); border-radius: 999px; transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.mock-tasks { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.mock-tasks li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.mock-tasks svg { width: 15px; height: 15px; flex-shrink: 0; }
.mock-task { color: var(--muted); }
.mock-task .mt-check { display: none; color: #3e7a55; }
.mock-task .mt-dot { width: 8px; height: 8px; margin: 0 3.5px; border-radius: 50%; background: #d5cfc0; flex-shrink: 0; }
.mock-task.is-active .mt-dot { background: var(--brass); animation: mock-pulse 1.1s ease-in-out infinite; }
.mock-task.is-done { color: var(--ink); }
.mock-task.is-done .mt-check { display: block; }
.mock-task.is-done .mt-dot { display: none; }
@keyframes mock-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}
.mock-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.mock-foot svg { width: 13px; height: 13px; color: var(--brass); flex-shrink: 0; }
.mock-toast {
  position: absolute;
  right: -14px; bottom: -22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px -16px rgba(30, 36, 32, 0.3);
  padding: 10px 14px;
}
.mock-toast { transition: opacity 0.45s ease, transform 0.45s ease; }
.mock-toast.is-hidden { opacity: 0; transform: translateY(10px); }
.mock-toast-label { font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.mock-toast-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.mock-toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.mock-toast-row svg { width: 13px; height: 13px; color: #3e7a55; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 38px; margin-bottom: 16px; max-width: 680px; }
.section-intro { font-size: 18px; color: var(--muted); max-width: 620px; margin-bottom: 48px; }

/* Pain cards */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.pain-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.pain-card h3 { font-size: 20px; margin-bottom: 12px; }
.pain-card p { font-size: 15.5px; color: var(--muted); }
section.alt .pain-card { background: var(--paper); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.step { padding-top: 20px; border-top: 3px solid var(--green); }
.step .step-num { font-size: 12px; color: var(--brass); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); }

/* Lifecycle */
.lifecycle { margin-top: 48px; display: flex; flex-direction: column; gap: 0; }
.agent { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.agent:last-child { border-bottom: none; }
.agent-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  color: var(--green);
}
.agent-body h3 { font-size: 21px; margin-bottom: 6px; }
.agent-body p { color: var(--muted); font-size: 16px; max-width: 640px; }
.agent--featured {
  background: var(--green-tint);
  border: 1px solid #cfdccf;
  border-radius: 10px;
  padding: 28px;
  margin: 8px 0;
}
.agent--featured .agent-num { background: var(--green); color: var(--white); }
.badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* Timeline */
.timeline-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 8px; }
.day { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.day .day-num { color: var(--brass); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.day p { font-size: 15px; color: var(--ink); }
.timeline-contrast { margin-top: 32px; font-size: 17px; color: var(--muted); }

/* How we work */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.process-step h3 { font-size: 22px; margin-bottom: 10px; color: var(--green); }
.process-step p { font-size: 15.5px; color: var(--muted); }
.process-step .arrow { color: var(--brass); font-size: 22px; margin-bottom: 12px; }

/* Security strip */
.security { background: var(--green); color: var(--white); padding: 36px 0; }
.security-inner { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 32px; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.security-item { display: flex; align-items: center; gap: 14px; justify-content: center; }
.security-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  color: #cfa96a;
}
.security-icon svg { width: 19px; height: 19px; }
.security-text { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.35; }

/* FAQ */
.faq-section { margin-top: 40px; max-width: 760px; }
.faq-section details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-section summary { font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-icon::after { content: "+"; font-size: 24px; color: var(--brass); font-weight: 400; }
details[open] .faq-icon::after { content: "\2212"; }
.faq-answer { padding-top: 12px; color: var(--muted); font-size: 16px; max-width: 680px; }

/* Bottom CTA */
.bottom-cta { background: var(--white); border-top: 1px solid var(--line); text-align: center; padding: 96px 0; }
.bottom-cta h2 { margin: 0 auto 16px; }
.bottom-cta p { max-width: 560px; margin: 0 auto 36px; color: var(--muted); font-size: 18px; }

/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; max-width: 1040px; margin: 0 auto; padding: 0 24px; font-size: 14px; color: var(--muted); }
.footer-inner a { color: var(--muted); }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  z-index: 60;
  display: none;
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-cta .btn { width: 100%; text-align: center; }
.sticky-cta.visible { transform: none; }

@media (max-width: 820px) {
  .hero h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  .hero { padding: 48px 0 56px; }
  .hero .lede { font-size: 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; }
  .mock-toast { right: 0; bottom: -22px; }
  section { padding: 56px 0; }
  .pain-grid, .steps, .timeline, .process { grid-template-columns: 1fr; }
  .security { padding: 32px 0; }
  .security-inner { grid-template-columns: 1fr; gap: 16px; max-width: 400px; }
  .security-item { justify-content: flex-start; }
  .security-icon { width: 38px; height: 38px; }
  .nav-links a:not(.btn) { display: none; }
  .agent { flex-direction: row; }
  .sticky-cta { display: block; }
  footer { padding-bottom: 96px; }
}

@media (max-width: 480px) {
  .mock-rail { display: none; }
  .mock-body { grid-template-columns: 1fr; }
}
