/* ==========================================================
   Tricaal — landing page
   Theme: light & fresh — warm off-white, forest green, soft lime
   ========================================================== */

:root {
  --graphite: #f7f8f3;   /* page background (and text on green fills) */
  --surface: #ffffff;
  --surface-2: #eef2e8;
  --line: rgba(28, 42, 33, 0.08);
  --line-strong: rgba(28, 42, 33, 0.14);
  --lime: #2f6b3f;        /* primary: forest green */
  --lime-dim: rgba(47, 107, 63, 0.09);
  --highlight: #c9ee9a;   /* soft lime */
  --tint: #eff3ea;
  --green: #6aa84f;
  --text: #1c2a21;
  --muted: #56665b;
  --faint: #7a867c;

  --radius: 18px;
  --radius-sm: 12px;
  --gutter: 16px;
  --max: 1180px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --mono: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; /* small labels */
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--lime); color: var(--graphite); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--lime); color: var(--graphite); padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { left: 8px; }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.mono { font-family: var(--mono); font-size: 0.78em; letter-spacing: 0.02em; }
.accent { color: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn--primary { background: var(--lime); color: var(--graphite); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(47, 107, 63, .35); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Eyebrow / dots / pills ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 18px; line-height: 1.5;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); display: inline-block; flex: none; }
.dot--live { box-shadow: 0 0 0 0 rgba(47, 107, 63, .6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 107, 63, .55); }
  70% { box-shadow: 0 0 0 8px rgba(47, 107, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 107, 63, 0); }
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: var(--lime-dim); color: var(--lime);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 243, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(247, 248, 243, .94); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { font-family: var(--font-head); display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line-strong); display: grid; place-items: center; }
.brand__mark svg { width: 24px; height: 24px; fill: var(--lime); stroke: var(--lime); stroke-width: 2; }
.nav__links { display: none; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: none; }
.nav__toggle {
  margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: transparent; display: grid; place-content: center; gap: 6px; cursor: pointer;
}
.nav__toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  display: flex; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 12px; }
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(201, 238, 154, .55), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(28, 42, 33, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero h1 { font-size: clamp(44px, 9vw, 84px); letter-spacing: -0.045em; line-height: 1; margin-bottom: 24px; }
.lead { font-size: clamp(17px, 2vw, 19.5px); color: var(--muted); max-width: 580px; }
.hero__sub { margin-top: 14px; color: var(--text); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__chips { display: grid; gap: 10px; margin-top: 40px; grid-template-columns: 1fr; }
.hero__chips li {
  padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: rgba(255, 255, 255, .75); color: var(--muted); font-size: 14px; line-height: 1.4;
}
.hero__chips strong { display: block; color: var(--text); font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; margin-bottom: 2px; }
@media (min-width: 560px) { .hero__chips { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) {
  .hero { padding: 88px 0 110px; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; }
}

/* Hero console */
.hero__visual { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.console {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(28, 42, 33, .16), 0 0 0 1px rgba(47, 107, 63, .04) inset;
  overflow: hidden;
}
.console__bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); color: var(--faint);
}
.console__bar .mono { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console__dots { display: flex; gap: 6px; }
.console__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.console__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.bubble {
  max-width: 86%; padding: 12px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45;
}
.bubble__meta { display: block; font-family: var(--mono); font-size: 11px; color: var(--faint); margin-bottom: 4px; }
.bubble--in { background: #eef2e8; border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble--out { background: var(--lime); color: var(--graphite); font-weight: 600; border-bottom-right-radius: 4px; align-self: flex-end; }
.bubble--sys {
  align-self: center; max-width: 100%; text-align: center; background: transparent; border: 1px dashed var(--line-strong);
  color: var(--muted); font-family: var(--mono); font-size: 12px; padding: 8px 12px; border-radius: 10px;
}

.pipeline { position: relative; display: flex; flex-direction: column; gap: 10px; padding-left: 18px; }
.pipeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--lime), var(--green)); opacity: .35;
}
.node {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
}
.node::before {
  content: ""; position: absolute; left: -17px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--graphite); border: 2px solid var(--lime);
}
.node b { display: block; font-size: 14px; }
.node small { display: block; color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.node__icon {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--lime-dim); color: var(--lime); font-weight: 700; font-size: 14px;
}
.node__icon--sm { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }

/* Hero loop animation */
.hv { opacity: 0; transform: translateY(8px); animation: heroLoop 9s infinite; animation-delay: calc(var(--d) * .7s); }
@keyframes heroLoop {
  0% { opacity: 0; transform: translateY(8px); }
  6%, 82% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: none; }
}
.node.hv { animation-name: heroNode; }
@keyframes heroNode {
  0% { opacity: 0; transform: translateY(8px); border-color: var(--line); }
  6% { opacity: 1; transform: none; border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-dim); }
  20%, 82% { opacity: 1; border-color: var(--line); box-shadow: none; }
  90%, 100% { opacity: 0; }
}

.float-card {
  position: absolute; z-index: 2; display: none; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -20px rgba(28, 42, 33, .18);
  animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 13.5px; }
.float-card small { display: block; font-size: 12px; color: var(--muted); }
.float-card--a { left: -48px; bottom: 64px; }
.float-card--b { right: -36px; top: 72px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (min-width: 1100px) { .float-card { display: flex; } }

.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { width: 3px; border-radius: 3px; background: var(--lime); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(1) { animation-delay: -.9s; } .wave i:nth-child(2) { animation-delay: -.7s; }
.wave i:nth-child(3) { animation-delay: -.5s; } .wave i:nth-child(4) { animation-delay: -.3s; }
.wave i:nth-child(5) { animation-delay: -.6s; } .wave i:nth-child(6) { animation-delay: -.2s; }
.wave i:nth-child(7) { animation-delay: -.4s; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 24px; } }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--tint); }
.strip__inner { padding-top: 48px; padding-bottom: 48px; display: grid; gap: 16px; }
.strip__kicker { color: var(--lime); text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; }
.strip__text { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.4; font-weight: 600; letter-spacing: -.015em; max-width: 960px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.section__lead { margin-top: 18px; color: var(--muted); font-size: 18px; }
.section__head--row { max-width: none; display: grid; gap: 20px; }
.section__head--row .section__lead { margin-top: 0; max-width: 460px; }
@media (min-width: 900px) {
  .section__head--row { grid-template-columns: 1.3fr 1fr; align-items: end; }
}
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Checks list ---------- */
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--lime-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232F6B3F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Demo ---------- */
.demo {
  border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface);
  padding: 16px; overflow: hidden;
}
@media (min-width: 768px) { .demo { padding: 28px; } }
.demo__tabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 24px;
  scrollbar-width: none;
}
.demo__tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all .2s ease;
}
.tab:hover { color: var(--text); border-color: var(--faint); }
.tab.is-active { background: var(--lime); border-color: var(--lime); color: var(--graphite); }

.demo__stage { display: grid; gap: 24px; }
@media (min-width: 900px) { .demo__stage { grid-template-columns: 1.1fr 1fr; gap: 32px; } }

.demo__steps-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.demo__label { color: var(--faint); }

.steps { display: grid; gap: 8px; counter-reset: s; }
.step {
  position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7);
  opacity: .45; transition: opacity .35s ease, border-color .35s ease, background-color .35s ease;
}
.step__num {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; background: var(--surface-2); color: var(--muted);
  transition: all .35s ease;
}
.step b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.step.is-active { opacity: 1; border-color: var(--lime); background: rgba(47, 107, 63, .05); }
.step.is-active .step__num { background: var(--lime); color: var(--graphite); }
.step.is-done { opacity: 1; }
.step.is-done .step__num { background: var(--lime-dim); color: var(--lime); }

.demo__screen { display: flex; flex-direction: column; gap: 16px; }
.phone {
  flex: 1; display: flex; flex-direction: column; border-radius: 22px;
  background: var(--graphite); border: 1px solid var(--line-strong); overflow: hidden;
}
.phone__head {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.phone__head b { display: block; font-size: 15px; }
.phone__head small { display: block; font-size: 12px; color: var(--lime); }
.phone__avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--graphite); font-weight: 800;
}
.phone__feed {
  flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px;
  height: 440px; overflow-y: auto; scrollbar-width: thin;
  background-image: radial-gradient(rgba(28, 42, 33, .04) 1px, transparent 1px); background-size: 20px 20px;
}
.phone__feed > * { flex: none; animation: pop .35s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: #eef2e8; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.card-msg {
  align-self: stretch; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 13.5px;
}
.card-msg__title { font-family: var(--mono); font-size: 11px; color: var(--lime); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; display: block; }
.card-msg dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.card-msg dt { color: var(--faint); }
.card-msg dd { margin: 0; color: var(--text); }
.demo__cta { align-self: stretch; }

/* ---------- Services ---------- */
.services { display: grid; gap: 20px; }
@media (min-width: 960px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
  position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); box-shadow: 0 1px 2px rgba(28, 42, 33, .04); display: flex; flex-direction: column; gap: 16px;
  transition: border-color .25s ease, transform .25s ease;
}
.service:hover { border-color: rgba(47, 107, 63, .4); transform: translateY(-3px); }
.service--featured { border-color: rgba(47, 107, 63, .3); background: linear-gradient(180deg, rgba(47, 107, 63, .06), var(--graphite) 45%); }
.service__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--lime-dim); display: grid; place-items: center; }
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service__tag { color: var(--lime); }
.service h3 { font-size: 22px; }

/* ---------- Industries ---------- */
.industries { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .industries { grid-template-columns: repeat(3, 1fr); } }
.industry { padding: 28px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; transition: background-color .25s ease; }
.industry:hover { background: var(--tint); }
.industry__num { color: var(--lime); }
.industry h3 { font-size: 20px; }
.industry p { color: var(--muted); font-size: 15.5px; }
.industry__note { font-size: 13.5px !important; color: var(--faint) !important; border-left: 2px solid var(--green); padding-left: 10px; }

/* ---------- Process ---------- */
.process { display: grid; gap: 16px; position: relative; }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .process { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .process::before {
    content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--lime) 0 8px, transparent 8px 16px); opacity: .35;
    animation: dash 1.2s linear infinite;
  }
}
@keyframes dash { to { background-position: 16px 0; } }
.process__step { position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.process__num {
  position: relative; z-index: 1; width: 54px; height: 54px; margin-top: -2px; margin-bottom: 18px; border-radius: 16px;
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
  background: var(--surface-2); border: 1px solid var(--lime); color: var(--lime);
}
@media (min-width: 1000px) { .process__step { padding: 0; background: none; border: 0; } }
.process__step h3 { font-size: 18px; margin-bottom: 8px; }
.process__step p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Pillars / metrics ---------- */
.pillars { display: grid; gap: 16px; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(5, 1fr); } }
.pillar { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pillar h3 { font-size: 17px; margin-bottom: 8px; color: var(--lime); }
.pillar p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.metrics {
  margin-top: 24px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line);
  display: grid; gap: 24px; background: linear-gradient(135deg, rgba(47, 107, 63, .05), transparent 60%);
}
@media (min-width: 900px) { .metrics { grid-template-columns: 1fr 1.6fr; align-items: center; padding: 36px; } }
.metrics__head h3 { font-size: 24px; margin-bottom: 10px; }
.metrics__head p { color: var(--muted); font-size: 15.5px; }
.metrics__list { display: grid; gap: 10px; }
@media (min-width: 600px) { .metrics__list { grid-template-columns: 1fr 1fr; } }
.metrics__list li { display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 15px; font-weight: 600; }
.metrics__list .mono { color: var(--lime); }

/* ---------- Form fields ---------- */
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.field > span b { color: var(--lime); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-width: 0; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--graphite); color: var(--text); font: inherit; font-size: 15.5px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2356665B' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-dim); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c2410c; }
.input-group { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
input[type="range"] { width: 100%; accent-color: var(--lime); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--lime); flex: none; }
.consent.is-invalid span { color: #c2410c; }

/* ---------- Trust ---------- */
.trust { display: grid; gap: 20px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust__card { padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(28, 42, 33, .04); border: 1px solid var(--line); }
.trust__card h3 { font-size: 20px; margin-bottom: 18px; }
.honest {
  margin-top: 24px; padding: 24px 28px; border-radius: var(--radius); border: 1px dashed rgba(47, 107, 63, .4);
  display: grid; gap: 12px; align-items: center;
}
@media (min-width: 760px) { .honest { grid-template-columns: auto 1fr; gap: 24px; } }
.honest__badge { justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--graphite); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.honest p { font-size: 17px; font-weight: 600; line-height: 1.5; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 20px; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan {
  position: relative; padding: 32px 28px; border-radius: 22px; border: 1px solid var(--line);
  background: var(--surface); display: flex; flex-direction: column; gap: 16px;
}
.plan h3 { font-size: 24px; }
.plan__desc { color: var(--muted); }
.plan .checks { flex: 1; margin: 8px 0 12px; }
.plan--featured { border-color: var(--lime); background: linear-gradient(180deg, rgba(47, 107, 63, .08), var(--surface) 50%); box-shadow: 0 30px 60px -30px rgba(47, 107, 63, .25); }
.plan__badge { position: absolute; top: -12px; left: 28px; padding: 5px 12px; border-radius: 999px; background: var(--lime); color: var(--graphite); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.plans__note { margin-top: 28px; padding: 20px 24px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.plans__note b { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s ease; }
.faq details[open] { border-color: rgba(47, 107, 63, .35); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--lime-dim); color: var(--lime); font-weight: 600; font-size: 18px; transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; }

/* ---------- CTA / form ---------- */
.cta { position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: -200px; bottom: -300px; width: 700px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(201, 238, 154, .5), transparent 70%);
}
.cta__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
@media (min-width: 960px) { .cta__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; } }
.cta h2 { font-size: clamp(34px, 4.8vw, 54px); margin-bottom: 20px; }
.cta__list { display: grid; gap: 14px; margin-top: 32px; }
.cta__list li { display: flex; align-items: center; gap: 14px; font-weight: 600; }

.cta__compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.cta__compare > div { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 2px; }
.cta__compare .mono { color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.cta__compare b { font-size: 20px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(194, 65, 12, .6); }
.cta__compare small { color: var(--faint); font-size: 13px; line-height: 1.4; }
.cta__compare .is-us { border-color: rgba(47, 107, 63, .45); background: linear-gradient(180deg, rgba(47, 107, 63, .08), var(--surface)); }
.cta__compare .is-us .mono { color: var(--lime); }
.cta__compare .is-us b { color: var(--text); text-decoration: none; }
.cta__compare .is-us small { color: var(--muted); }

/* Intake agent */
.intake {
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -40px rgba(28, 42, 33, .18), 0 0 0 6px rgba(47, 107, 63, .04);
}
.intake__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.intake__who { flex: 1; min-width: 0; }
.intake__who b { display: block; font-size: 15px; }
.intake__who small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--lime); }
.intake__who .dot { width: 6px; height: 6px; }
.intake__timer { padding: 6px 10px; border-radius: 8px; background: var(--graphite); border: 1px solid var(--line-strong); color: var(--lime); font-size: 13px; font-variant-numeric: tabular-nums; }
.intake__progress { height: 3px; background: var(--line); }
.intake__progress span { display: block; height: 100%; width: 0; background: var(--lime); transition: width .5s ease; }
.intake__feed {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; height: 380px; overflow-y: auto; scrollbar-width: thin;
  background-image: radial-gradient(rgba(28, 42, 33, .04) 1px, transparent 1px); background-size: 20px 20px;
}
.intake__feed > * { flex: none; animation: pop .35s ease both; }
.intake__feed .bubble { font-size: 14.5px; }
.intake__controls { padding: 16px 18px 18px; border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; }
.intake__controls > * { animation: pop .3s ease both; }
.intake__hint { font-size: 12.5px; color: var(--faint); font-family: var(--mono); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--graphite);
  color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s ease; text-align: left;
}
.chip:hover { border-color: var(--lime); }
.chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--graphite); }
.chip[aria-pressed="true"]::before { content: "✓ "; }

.intake__row { display: grid; gap: 10px; }
@media (min-width: 520px) { .intake__row { grid-template-columns: 1fr 1fr; } }
.intake__controls input.is-invalid { border-color: #c2410c; }
.intake__error { color: #c2410c; font-size: 13.5px; }
.intake__actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 0; }
.link-btn:hover { color: var(--text); }

/* Live pipeline + snapshot */
.run { align-self: stretch; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); padding: 12px 14px; display: grid; gap: 8px; }
.run__title { font-family: var(--mono); font-size: 11px; color: var(--lime); text-transform: uppercase; letter-spacing: .06em; }
.run__step { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); }
.run__step i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); font-style: normal; display: grid; place-items: center; font-size: 10px; }
.run__step.is-running i { border-color: var(--lime); border-top-color: transparent; animation: spin .7s linear infinite; }
.run__step.is-done { color: var(--text); }
.run__step.is-done i { background: var(--lime); border-color: var(--lime); color: var(--graphite); font-weight: 800; }
.run__step.is-done i::after { content: "✓"; }
.run__step .mono { color: var(--faint); font-variant-numeric: tabular-nums; }
@keyframes spin { to { transform: rotate(360deg); } }

.snapshot { align-self: stretch; border: 1px solid rgba(47, 107, 63, .45); border-radius: 14px; padding: 14px; background: linear-gradient(180deg, rgba(47, 107, 63, .07), var(--surface)); display: grid; gap: 10px; }
.snapshot__head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.snapshot__head b { font-size: 15px; }
.snapshot__head span { font-family: var(--mono); font-size: 11px; color: var(--lime); }
.opp { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px; border-radius: 10px; background: var(--graphite); border: 1px solid var(--line); }
.opp__rank { width: 26px; height: 26px; border-radius: 8px; background: var(--lime); color: var(--graphite); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.opp b { display: block; font-size: 14px; line-height: 1.3; }
.opp p { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.opp__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.opp__tags span { font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: var(--lime-dim); color: var(--lime); }
.opp__tags span.alt { background: var(--surface-2); color: var(--muted); }
.snapshot__note { font-size: 12px; color: var(--faint); line-height: 1.5; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--tint); padding: 64px 0 32px; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__brand p { color: var(--muted); font-size: 15px; margin: 16px 0; max-width: 360px; }
.footer__mail { color: var(--lime); font-weight: 600; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 { font-size: 13px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 4px; }
.footer__col a { color: var(--muted); font-size: 15px; }
.footer__col a:hover { color: var(--text); }
.footer__fine { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13px; color: var(--faint); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hv { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Light theme refinements ---------- */
.hero h1 .accent {
  background: linear-gradient(transparent 64%, var(--highlight) 64%, var(--highlight) 92%, transparent 92%);
  padding: 0 .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.console, .phone, .intake, .form, .plan, .pillar, .metrics, .demo { box-shadow: 0 1px 2px rgba(28, 42, 33, .04), 0 18px 40px -24px rgba(28, 42, 33, .18); }
.service:hover, .plan:hover { box-shadow: 0 1px 2px rgba(28, 42, 33, .04), 0 24px 48px -24px rgba(47, 107, 63, .28); }
.plan--featured { background: linear-gradient(180deg, rgba(201, 238, 154, .35), var(--surface) 50%); }
.service--featured { background: linear-gradient(180deg, rgba(201, 238, 154, .3), var(--surface) 45%); }
.bubble--in { color: var(--text); }
.bubble--out { box-shadow: 0 6px 16px -10px rgba(47, 107, 63, .6); }
.pill--live, .industry__num, .eyebrow, .service__tag, .run__title, .card-msg__title { color: #2a5f38; }
.process__num { background: var(--surface); }
.honest { background: rgba(201, 238, 154, .18); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea { background: var(--surface); }
.metrics__list li { background: var(--surface); border: 1px solid var(--line); }
.metrics { background: linear-gradient(135deg, rgba(201, 238, 154, .25), var(--surface) 60%); }
.phone__feed, .intake__feed { background-color: #f3f6ef; }
.wave i { background: var(--green); }

/* ---------- Typography: Inter for body & labels, Manrope for headings ---------- */
body { font-size: 16.5px; line-height: 1.7; letter-spacing: -0.006em; }
.mono { font-size: .8em; font-weight: 600; letter-spacing: .01em; }
.eyebrow, .strip__kicker, .service__tag, .run__title, .card-msg__title, .footer__col h4,
.hero__chips strong, .plan__badge, .honest__badge, .cta__compare .mono, .intake__hint {
  font-weight: 600; letter-spacing: .06em;
}
.intake__timer, .run__step .mono, .step__num { font-variant-numeric: tabular-nums; }
.strip__text, .honest p { font-family: var(--font-head); }
.btn { font-weight: 600; letter-spacing: -0.005em; }

/* Lead delivery states */
.run__step.is-failed { color: #c2410c; }
.run__step.is-failed i { background: #c2410c; border-color: #c2410c; color: #fff; font-weight: 800; }
.run__step.is-failed i::after { content: "!"; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
