/* FormSprout — static site stylesheet
   Change the brand colours here and they update everywhere. */
:root {
  --sprout: #00de68;      /* logo bright green */
  --sprout-hover: #00c95e;
  --leaf: #00af52;        /* logo leaf green */
  --leaf-dark: #007a39;   /* green for text/links on white */
  --forest: #0b2a1b;
  --mint: #e6f7ec;
  --ink: #1c2621;
  --muted: #52665a;
  --line: #cfe5d7;
  --paper: #ffffff;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-dark); }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--forest);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.5rem;
  font: 600 1rem/1 var(--font-body);
  border-radius: 999px; border: 2px solid var(--sprout);
  background: var(--sprout); color: var(--forest); text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--sprout-hover); border-color: var(--sprout-hover); color: var(--forest); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--leaf); }
.btn--ghost:hover { background: var(--mint); color: var(--forest); border-color: var(--leaf); }
.btn--light { background: #fff; border-color: #fff; color: var(--forest); }
.btn--light:hover { background: var(--mint); border-color: var(--mint); color: var(--forest); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--forest);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 80px; }
.logo img { width: 150px; height: auto; }
.nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav a {
  padding: .5rem .7rem; border-radius: var(--radius-sm);
  color: #d5e8dc; text-decoration: none; font-weight: 500; font-size: .98rem;
}
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { color: var(--sprout); }
.header-actions { display: flex; gap: .75rem; align-items: center; }
.header-actions .login { color: #fff; font-weight: 600; text-decoration: none; }
.header-actions .btn { padding: .65rem 1.15rem; font-size: .95rem; }
.menu-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm); padding: .5rem .7rem; font: 600 .95rem var(--font-body); color: #fff;
}
@media (max-width: 1080px) {
  .menu-toggle { display: inline-block; }
  .nav, .header-actions { display: none; }
  .site-header.open .wrap { flex-wrap: wrap; padding-bottom: 1rem; }
  .site-header.open .nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 0; }
  .site-header.open .header-actions { display: flex; width: 100%; }
}

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--mint { background: var(--mint); }
.section--forest { background: var(--forest); color: #d8e8de; }
.section--forest h2, .section--forest h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 2.75rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.section--forest .section-head p { color: #b9d0c2; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--wide-media { grid-template-columns: 5fr 6fr; }
@media (max-width: 860px) { .split, .split--wide-media { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3.5rem, 6vw, 5rem); background: var(--mint); overflow: hidden; }
.hero-kicker { font-weight: 600; color: var(--leaf-dark); margin-bottom: 1rem; }
.hero h1 span { display: block; color: var(--leaf-dark); }
.hero .lead { margin: 1.25rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-trust { margin-top: 2rem; color: var(--muted); font-size: .98rem; }
.hero-trust strong { color: var(--forest); font-size: 1.1rem; }
.hero-media svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(11,42,27,.14)); }

.page-hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--mint); }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); max-width: 18ch; }
.page-hero h1 span { display: block; color: var(--leaf-dark); }
.page-hero .lead { margin-top: 1rem; }

/* Three-up benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
.benefit img { width: 56px; height: 56px; margin-bottom: 1rem; }
.benefit p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .benefits { grid-template-columns: 1fr; gap: 2rem; } }

.stat-callout {
  margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between;
}
.stat-callout p { max-width: 62ch; margin: 0; font-size: 1.15rem; }

.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1.25rem; }
.check-list li { padding-left: 2rem; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem;
  border-radius: 50%; background: var(--leaf);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E");
}
.check-list li::after {
  content: ""; position: absolute; left: .38rem; top: .55em; width: .3rem; height: .55rem;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check-list strong { display: block; color: var(--forest); font-family: var(--font-head); font-size: 1.1rem; }
.check-list span { color: var(--muted); }

.stack > * + * { margin-top: clamp(4rem, 8vw, 6rem); }
.split--flip > :first-child { order: 2; }
@media (max-width: 860px) { .split--flip > :first-child { order: 0; } }

/* Blog cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius-lg); margin-bottom: 1rem; }
.post-card h3 { margin-bottom: .4rem; }
.post-card:hover h3 { color: var(--leaf-dark); text-decoration: underline; text-underline-offset: 3px; }
.post-card p { color: var(--muted); margin: 0 0 .5rem; }
.post-card time { font-size: .9rem; color: var(--muted); }

/* Testimonial */
.quote { max-width: 820px; }
.quote blockquote { margin: 0; }
.quote .big {
  font-family: var(--font-head); font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  line-height: 1.15; color: #fff; letter-spacing: -0.02em; margin-bottom: 1.25rem;
}
.quote p { font-size: 1.15rem; }
.quote figcaption { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; }
.quote figcaption img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.quote figcaption strong { color: #fff; display: block; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; color: var(--forest); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(30,140,78,.18); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

.newsletter { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.newsletter h2 { margin: 0; max-width: 20ch; }
.newsletter form { display: flex; gap: .75rem; flex: 1 1 360px; max-width: 520px; }
.newsletter input { flex: 1; font: inherit; padding: .85rem 1.25rem; border-radius: 999px; border: 1.5px solid var(--line); }
.newsletter input:focus { outline: none; border-color: var(--leaf); }
@media (max-width: 500px) { .newsletter form { flex-direction: column; } }

/* Features page */
.feature-group { padding-top: 3.5rem; margin-top: 3.5rem; border-top: 1px solid var(--line); }
.feature-group:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.feature-group > h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.feature-group > p { color: var(--muted); max-width: 60ch; margin-bottom: 2rem; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2.25rem 2rem; }
.feature img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top;
  border-radius: var(--radius-sm); border: 1px solid var(--line); margin-bottom: 1rem; background: var(--mint);
}
.feature h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.pillar { display: grid; grid-template-columns: 96px 1fr; gap: 1.5rem; align-items: start; }
.pillar img { width: 96px; height: 96px; object-fit: contain; }
.pillar p { color: #b9d0c2; margin: 0; }

/* Integrations */

/* Help / FAQ */
.help-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
@media (max-width: 700px) { .help-links { grid-template-columns: 1fr; } }
.help-link {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--forest); font-family: var(--font-head); font-weight: 600; font-size: 1.2rem;
}
.help-link:hover { border-color: var(--leaf); color: var(--leaf-dark); }
.help-link img { width: 40px; height: 40px; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--forest);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; font-size: 1.6rem; color: var(--leaf); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; margin: 0; max-width: 68ch; }

.doc-list { columns: 3 240px; column-gap: 2rem; padding: 0; list-style: none; }
.doc-list li { break-inside: avoid; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }

/* Jobs */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.values img { width: 48px; height: 48px; margin-bottom: 1rem; }
.values p { color: var(--muted); }
.roles { border-top: 1px solid var(--line); }
.role { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.role small { display: block; color: var(--leaf-dark); font-weight: 600; font-size: .9rem; }
.role h3 { margin: .15rem 0 0; }

/* Article */
.article { max-width: 720px; margin-inline: auto; }
.article-meta { color: var(--muted); margin-bottom: 2rem; }
.article-cover { border-radius: var(--radius-lg); margin: 0 0 2.5rem; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.article h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.article h2 { font-size: 1.65rem; margin-top: 2.2em; }
.article h3 { margin-top: 1.8em; }
.article blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; background: var(--mint); border-radius: var(--radius-sm); }
.article blockquote p:last-child { margin: 0; }
.article ul { padding-left: 1.25rem; }
.article li { margin-bottom: .6rem; }
.article-cta { margin-top: 3rem; padding: 2rem; background: var(--mint); border-radius: var(--radius-lg); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.article-cta p { margin: 0; font-family: var(--font-head); font-size: 1.3rem; color: var(--forest); font-weight: 600; }
.back { display: inline-block; margin-bottom: 2rem; font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { background: var(--forest); color: #b9d0c2; padding: 4rem 0 2rem; }
.site-footer a { color: #e2efe7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img { width: 150px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .92rem; }

/* ---------- Icons & illustrations ---------- */
.ico { width: 1.5rem; height: 1.5rem; flex: none; }
.illus { width: 100%; height: auto; display: block; }
.illus-frame { border-radius: var(--radius-lg); overflow: hidden; }
.icon-tile {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--mint); color: var(--leaf-dark); margin-bottom: 1rem;
}
.icon-tile .ico { width: 26px; height: 26px; }
.section--forest .icon-tile { background: rgba(0,222,104,.14); color: var(--sprout); }
.icon-tile--lg { width: 72px; height: 72px; border-radius: 20px; }
.icon-tile--lg .ico { width: 34px; height: 34px; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 600; font-size: .95rem; color: var(--forest);
}
.chip .ico { width: 1.1rem; height: 1.1rem; color: var(--leaf-dark); }

.benefit .icon-tile { margin-bottom: 1rem; }

.feature { display: grid; grid-template-columns: 44px 1fr; gap: 0 1rem; align-items: start; }
.feature .icon-tile { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.feature .icon-tile .ico { width: 22px; height: 22px; }
.feature-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem 2.5rem; }

.pillar { grid-template-columns: 72px 1fr; }

.form-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
@media (max-width: 760px) { .form-types { grid-template-columns: repeat(2, 1fr); } }
.form-type {
  display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem;
  background: #fff; border-radius: 14px; font-weight: 600; color: var(--forest);
}
.form-type .ico { color: var(--leaf-dark); }

.post-card .cover { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 1rem; }
.quote figcaption .avatar { width: 64px; height: 64px; flex: none; }

.integrations { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.integration {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: 14px; font-weight: 600; color: var(--forest);
}
.integration .icon-tile { width: 40px; height: 40px; border-radius: 11px; margin: 0; }
.integration .icon-tile .ico { width: 20px; height: 20px; }
.int-group + .int-group { margin-top: 3rem; }
.int-group h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }

.help-link .icon-tile { margin: 0; }

.form-status {
  grid-column: 1 / -1; margin: 0 0 .5rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--mint); color: var(--forest); font-weight: 600; border-left: 4px solid var(--sprout);
}
.form-status.is-error { background: #fdeeee; border-left-color: #c62828; color: #7a1c1c; }
.newsletter .form-status { flex-basis: 100%; }
.newsletter form { flex-wrap: wrap; }
