/* Ripple Agents — v2, warm edition
   Palette lifted from Wittl (onepagelove.com/wittl), sampled from OnePageLove's
   preserved copy: warm off-white base, near-black with a green undertone,
   forest green depth, lime accents.

   Deliberately de-teched vs the earlier violet build:
     · no monospace type    (mono reads as "developer tool")
     · no gradient glows    (flat, warm colour blocks instead)
     · no grid-line overlay (open cream space instead)
     · light hero, not dark
   Layout ideas still come from Jords & Co (bento, marquee, load animation)
   and DesignPixil (accordion, pricing, slider). */

:root {
  --cream: #fcfcfc;
  --cream-2: #f3f3f1;
  --white: #ffffff;
  --ink: #141616;
  --forest: #263921;
  --forest-lt: #3a5233;
  --lime: #c1fa6b;
  --lime-pale: #e7fdbc;
  --text: #525653;
  /* Wittl's own muted grey is #a0a1a1, but at the small uppercase sizes used here
     that lands at 2.5:1 on the cream background — below the 4.5:1 AA floor.
     Darkened to keep the same warm-neutral feel while passing. */
  --muted: #6e726f;
  --muted-soft: #a0a1a1;  /* decorative use only, never for text that carries meaning */
  --line: #e4e4e0;
  --line-forest: rgba(255, 255, 255, .13);
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --r: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.68;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }

/* ---------- type ---------- */
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.1; font-weight: 400; }
h1 { font-family: var(--serif); font-size: clamp(2.9rem, 7vw, 5.4rem); letter-spacing: -.015em; }
h2 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.012em; }
h3 { font-family: var(--sans); font-size: 1.06rem; font-weight: 600; letter-spacing: -.005em; }
h1 em, h2 em { font-style: italic; color: var(--forest); }
p { margin: 0 0 1.1em; }
a { color: inherit; }

/* small caps label — sans, not mono; the single biggest de-teching change */
.label {
  font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--forest); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.label::before { content: ""; width: 22px; height: 6px; border-radius: 99px; background: var(--lime); }
.on-forest .label { color: var(--lime); }
.on-forest .label::before { background: var(--lime); }

/* ---------- page-load reveal ---------- */
#loader {
  position: fixed; inset: 0; z-index: 999; background: var(--forest);
  display: grid; place-items: center;
  transition: transform .9s cubic-bezier(.76, 0, .24, 1);
}
#loader.done { transform: translateY(-101%); }
#loader .ring { width: 64px; height: 64px; }
#loader .r2 { animation: pulse 1.6s ease-out infinite; }
#loader .r3 { animation: pulse 1.6s ease-out .35s infinite; }
@keyframes pulse { 0% { opacity: .9; r: 10; } 100% { opacity: 0; r: 30; } }

/* ---------- scroll reveal ----------
   Gated behind .js-anim, which JS adds only when IntersectionObserver exists,
   so content is never invisible if script fails. */
.js-anim .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.js-anim .rise.in { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 18px 28px; max-width: var(--wrap); margin: 0 auto;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(252, 252, 252, .9); backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  max-width: none; padding-inline: max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.04rem; white-space: nowrap; letter-spacing: -.015em; }
.brand svg { width: 25px; height: 25px; flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav-links a:hover { color: var(--forest); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 27px;
  border-radius: 999px; font-size: .94rem; font-weight: 600; text-decoration: none;
  white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--forest); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #b2f052; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.on-forest .btn-outline { border-color: rgba(255,255,255,.32); color: var(--cream); }
.on-forest .btn-outline:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* ---------- hero (light + warm, Wittl) ---------- */
.hero { position: relative; padding: 172px 0 96px; overflow: hidden; background: var(--cream); }
/* soft pale-lime shape instead of a glowing gradient orb */
.hero::before {
  content: ""; position: absolute; top: -160px; right: -140px;
  width: 620px; height: 620px; border-radius: 50%;
  background: var(--lime-pale); opacity: .55; pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; }
.hero-sub { font-size: clamp(1.04rem, 1.5vw, 1.2rem); max-width: 50ch; margin-top: 26px; color: var(--text); }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 38px; }
.hero-meta {
  display: flex; gap: 34px; flex-wrap: wrap; margin-top: 60px; padding-top: 26px;
  border-top: 1px solid var(--line); font-size: .8rem; letter-spacing: .09em;
  text-transform: uppercase; font-weight: 500; color: var(--muted);
}
.hero-meta b { color: var(--forest); font-weight: 700; }

/* interior-page hero — same system, less drama than the home hero */
.hero.sub { padding: 142px 0 62px; }
.hero.sub::before { width: 400px; height: 400px; top: -150px; right: -110px; opacity: .45; }
.hero.sub h1 { max-width: 20ch; font-size: clamp(2.4rem, 5.4vw, 4rem); }

/* answer-first block — the self-contained passage an AI engine can lift and attribute.
   Used on the interior pages; the single highest-yield AEO pattern on the site. */
.answer {
  border-left: 3px solid var(--lime); background: var(--lime-pale);
  padding: 20px 24px; border-radius: 0 12px 12px 0; margin: 0 0 28px;
  color: var(--ink); font-size: 1.06rem;
}
.answer strong { font-weight: 600; }

/* prose rhythm for the long-form interior pages */
.prose h2 { margin-top: 2.2em; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 1.8em; margin-bottom: .5em; }
.prose code {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-size: .9em;
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--forest); padding: 19px 0; overflow: hidden; white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 54px; animation: slide 34s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee span {
  font-size: .84rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.72); display: inline-flex; align-items: center; gap: 54px;
}
.marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

/* ---------- sections ---------- */
section { padding: 106px 0; }
.on-paper-2 { background: var(--cream-2); }
.on-forest { background: var(--forest); color: rgba(255,255,255,.74); }
.on-forest h2, .on-forest h3 { color: var(--cream); }
.sec-head { max-width: 640px; margin-bottom: 54px; }
.sec-head p { font-size: 1.07rem; margin-bottom: 0; }
.on-forest .sec-head p { color: rgba(255,255,255,.7); }

/* ---------- BENTO (light + editorial, not dashboard-y) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cell {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; position: relative; overflow: hidden;
}
.cell.span2 { grid-column: span 2; }
.cell.row2 { grid-row: span 2; }
.cell .ctitle {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--muted); margin-bottom: 18px; display: block;
}
.cell .big { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 3.7rem); color: var(--ink); line-height: 1; }
.cell p { font-size: .93rem; color: var(--text); margin: 12px 0 0; }
.cell.lime { background: var(--lime-pale); border-color: transparent; }
.cell.forest { background: var(--forest); border-color: transparent; }
.cell.forest .ctitle { color: rgba(255,255,255,.55); }
.cell.forest .big { color: var(--lime); }
.cell.forest p { color: rgba(255,255,255,.74); }

/* engine bars */
.bars { display: flex; flex-direction: column; gap: 15px; margin-top: 4px; }
.bar-row { display: grid; grid-template-columns: 104px 1fr 42px; align-items: center; gap: 13px; }
.bar-row .nm { font-size: .84rem; font-weight: 500; color: var(--ink); }
.bar { height: 8px; border-radius: 99px; background: var(--cream-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--forest); width: 0; transition: width 1.2s cubic-bezier(.2,.7,.3,1); }
.bar-row .pc { font-size: .82rem; font-weight: 600; color: var(--forest); text-align: right; }

/* "monitoring" cell — warm, no blinking terminal dot */
.clock { font-family: var(--serif); font-size: 2.2rem; color: var(--ink); line-height: 1; }
.on-going { display: inline-block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--forest); background: var(--lime); padding: 4px 11px; border-radius: 99px; margin-bottom: 14px; }

/* the overheard-conversation cell — replaces the old terminal block */
.said { border-left: 2px solid var(--lime); padding-left: 18px; margin-top: 4px; }
.said .turn { margin-bottom: 16px; }
.said .turn:last-child { margin-bottom: 0; }
.said .who3 { font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 600; color: var(--muted); display: block; margin-bottom: 5px; }
.said q { font-family: var(--serif); font-size: 1.16rem; color: var(--ink); font-style: italic; quotes: none; }
.said q b { font-style: normal; font-weight: 400; background: var(--lime-pale); padding: 1px 5px; border-radius: 4px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: s; }
.step { border-top: 2px solid var(--lime); padding-top: 22px; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; color: var(--forest); display: block; margin-bottom: 13px;
}
.step p { font-size: .93rem; margin: 0; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--lime); box-shadow: 0 16px 44px rgba(38,57,33,.09); }
.pcard .n { font-size: .74rem; font-weight: 700; letter-spacing: .12em; color: var(--forest); display: block; margin-bottom: 15px; }
.pcard p { font-size: .93rem; margin: 0; }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.tier { border: 1px solid var(--line); border-radius: 24px; padding: 38px; background: var(--white); }
.tier.hot { background: var(--forest); border-color: var(--forest); color: rgba(255,255,255,.76); position: relative; }
.tier.hot h3, .tier.hot .amt { color: var(--cream); }
.tier.hot .amt small { color: rgba(255,255,255,.55); }
.tier.hot li { color: rgba(255,255,255,.8); }
.tier.hot li::before { background: var(--lime); }
.tier.hot .tline { border-color: var(--line-forest); }
.tier .pill {
  position: absolute; top: 24px; right: 24px; background: var(--lime); color: var(--ink);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
}
.tier h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin-bottom: .1em; }
.tier .who { font-size: .92rem; margin-bottom: 28px; }
.amt { font-family: var(--serif); font-size: 3.3rem; color: var(--ink); line-height: 1; }
.amt small { font-family: var(--sans); font-size: .76rem; font-weight: 600; color: var(--muted); letter-spacing: .09em; }
.tline { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.tier ul { list-style: none; padding: 0; margin: 0 0 32px; }
.tier li { position: relative; padding-left: 25px; margin-bottom: 12px; font-size: .92rem; }
.tier li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--forest); }
.tier .btn { width: 100%; justify-content: center; }

/* ---------- FAQ accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; padding: 27px 44px 27px 0; position: relative;
  font-size: 1.09rem; font-weight: 600; color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease;
}
.acc details[open] summary { color: var(--forest); }
.acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acc .body { padding: 0 60px 27px 0; font-size: .97rem; }
.acc .body p:last-child { margin-bottom: 0; }

/* ---------- evidence / proof stats (forest section) ---------- */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pf { border-top: 2px solid var(--lime); padding-top: 24px; }
.pf .pfn { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--lime); line-height: 1; margin-bottom: 14px; }
.pf p { font-size: .95rem; color: rgba(255,255,255,.74); margin: 0 0 14px; }
.pf cite {
  font-style: normal; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 600; color: rgba(255,255,255,.45); display: block;
}
.proof-note {
  margin: 46px 0 0; max-width: 62ch; font-size: 1.05rem; color: var(--cream);
  border-left: 2px solid rgba(255,255,255,.24); padding-left: 20px;
}

/* ---------- testimonial slider (unused — kept for when real quotes exist) ---------- */
.quote-box { position: relative; min-height: 215px; }
.quote { display: none; }
.quote.on { display: block; animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
.quote blockquote {
  font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.36;
  color: var(--cream); margin: 0 0 26px;
}
.quote .who2 { font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; color: var(--lime); }
.qnav { display: flex; gap: 9px; margin-top: 30px; }
.qnav button {
  width: 32px; height: 3px; border: 0; padding: 0; border-radius: 99px;
  background: rgba(255,255,255,.24); cursor: pointer; transition: background .25s ease;
}
.qnav button[aria-selected="true"] { background: var(--lime); }

/* ---------- CTA ---------- */
.cta { background: var(--lime-pale); text-align: center; padding: 120px 0; position: relative; overflow: hidden; }
.cta h2 { max-width: 17ch; margin-inline: auto; color: var(--ink); }
.cta p { max-width: 47ch; margin-inline: auto; color: var(--text); }

/* ---------- lead form ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  padding: 38px; max-width: 560px; margin: 38px auto 0; text-align: left;
  box-shadow: 0 20px 60px rgba(38, 57, 33, .08);
}
.field { margin-bottom: 20px; }
.field:last-of-type { margin-bottom: 26px; }
.field > label, .legend {
  display: block; font-size: .82rem; font-weight: 600; color: var(--ink);
  letter-spacing: .02em; margin-bottom: 8px;
}
.req { color: var(--forest); }
.hint { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.field input[type="email"], .field input[type="text"], .field input[type="url"] {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: var(--muted); opacity: .8; }
.field input:focus-visible {
  outline: none; border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(38, 57, 33, .13);
}
.field input[aria-invalid="true"] { border-color: #b4462d; background: #fdf3f0; }
.err { display: none; font-size: .82rem; color: #9c3a24; margin-top: 6px; font-weight: 500; }
.err.show { display: block; }

/* yes / no choice */
fieldset.field { border: 0; padding: 0; margin-inline: 0; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: block; padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--ink); background: var(--cream);
  transition: border-color .15s ease, background .15s ease;
}
.choice input:checked + span { border-color: var(--forest); background: var(--lime-pale); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(38, 57, 33, .18); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-card .btn { width: 100%; justify-content: center; }
.form-note { font-size: .82rem; color: var(--muted); margin: 16px 0 0; text-align: center; line-height: 1.55; }

/* email escape hatch beside the form */
.alt-contact { font-size: .94rem; color: var(--text); margin: 24px 0 0; text-align: center; }
.alt-contact a {
  color: var(--forest); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.alt-contact a:hover { color: var(--ink); }

/* success panel */
.sent { display: none; text-align: center; padding: 8px 0 4px; }
.sent.show { display: block; }
.sent .tick {
  width: 52px; height: 52px; border-radius: 50%; background: var(--lime);
  display: grid; place-items: center; margin: 0 auto 20px;
}
.sent .tick svg { width: 24px; height: 24px; }
.sent h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin-bottom: .35em; }
.sent p { font-size: .95rem; margin-bottom: 0; }
.sent p + p { margin-top: 12px; }

@media (max-width: 520px) {
  .form-card { padding: 26px 22px; border-radius: 18px; }
  .choices { flex-direction: column; }
  .choice span { text-align: center; }
}

/* ---------- notice ---------- */
.notice {
  border: 1px dashed #b8952a; background: #fdf6e0; color: #6b5900;
  border-radius: 12px; padding: 15px 19px; font-size: .89rem; margin-bottom: 30px;
}
.on-forest .notice { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); color: var(--lime-pale); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.56); padding: 62px 0 34px; font-size: .9rem; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; margin-bottom: 42px; }
.foot .brand { color: var(--cream); }
.foot h4 { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.58); margin: 0 0 15px; font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 10px; }
.foot a { color: rgba(255,255,255,.74); text-decoration: none; }
.foot a:hover { color: var(--lime); }
.foot-bot { border-top: 1px solid var(--line-forest); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .76rem; letter-spacing: .04em; color: rgba(255,255,255,.58); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 74px 0; }
  .hero { padding: 134px 0 74px; }
  .hero::before { width: 380px; height: 380px; top: -120px; right: -120px; }
  .bento, .steps, .cards, .tiers, .foot-top, .proof { grid-template-columns: 1fr; }
  .cell.span2, .cell.row2 { grid-column: span 1; grid-row: span 1; }
  .nav-links { gap: 16px; }
  .nav-links a.hide-sm { display: none; }
  .nav-links .btn { display: none; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .acc .body { padding-right: 0; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  .nav { padding-inline: 18px; }
  .hero-meta { gap: 18px; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-anim .rise { opacity: 1; transform: none; }
  #loader { display: none; }
}
