/* ===== Websites & Landing Pages page (preview) =====
   Page-specific visuals, loaded after service-page.css on /websites-landing-pages/ only, so the
   approved homepage, Google Ads and Meta Ads pages are unaffected. Styling only; copy is in the HTML.
   Every animated element's resting style is its finished state, so reduced-motion and no-JS
   visitors see the complete illustration. */

/* ---------- Hero: desktop browser mockup (sized with container units so it scales cleanly) ---------- */
.wb-visual { max-width: 580px; width: 100%; justify-self: end; }
.wb-stage { position: relative; padding: 6px 0 52px; }
.wb-window { container-type: inline-size; position: relative; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 34px 70px rgba(0, 0, 0, .38); rotate: -1deg; }
.wb-chrome { display: flex; align-items: center; gap: 3cqw; padding: 2.2cqw 3cqw; background: var(--paper-alt); border-bottom: 1px solid var(--rule); }
.wb-chrome .dots { display: flex; gap: 1.2cqw; }
.wb-chrome .dots i { width: 1.9cqw; height: 1.9cqw; border-radius: 50%; background: #cfd2c6; }
.wb-url { flex: 0 1 52%; margin-inline: auto; text-align: center; font-size: 2.3cqw; color: var(--muted); background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: .7cqw 2.5cqw; }
.wb-page { padding: 3cqw 4cqw 4.2cqw; background: var(--paper); display: grid; gap: 3.4cqw; }
.wb-nav { display: flex; align-items: center; gap: 3cqw; }
.wb-nav b { width: 15cqw; height: 2.6cqw; border-radius: 1cqw; background: var(--ink); }
.wb-nav span { display: flex; gap: 2.2cqw; margin-left: auto; }
.wb-nav span i { width: 7cqw; height: 1.5cqw; border-radius: 1cqw; background: var(--rule); }
.wb-nav em { width: 13cqw; height: 3.8cqw; border-radius: 999px; background: var(--ink); }
.wb-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4cqw; align-items: center; }
.wb-copy { display: grid; gap: 1.6cqw; justify-items: start; }
.wb-copy i { display: block; height: 1.6cqw; border-radius: 1cqw; background: var(--rule); }
.wb-copy i.h1 { width: 92%; height: 3.6cqw; background: var(--ink); }
.wb-copy i.h2 { width: 66%; height: 3.6cqw; background: var(--ink); margin-bottom: 1cqw; }
.wb-copy i.p { width: 96%; }
.wb-copy i.p.s { width: 72%; }
.wb-cta { position: relative; margin-top: 1.6cqw; font-size: 2.4cqw; font-weight: 600; line-height: 1.2; padding: 1.6cqw 3.2cqw; border-radius: 999px; background: var(--ink); color: var(--paper); white-space: nowrap; }
.wb-pointer { position: absolute; right: -3cqw; bottom: -4.6cqw; width: 5.4cqw; height: 5.4cqw; fill: var(--ink); stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.wb-img { aspect-ratio: 4 / 3; border-radius: 2cqw; background: linear-gradient(135deg, var(--ink), #3c5a4b); position: relative; }
.wb-img span { position: absolute; right: 12%; top: 14%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: var(--sage); }
.wb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6cqw; }
.wb-cards div { background: #fff; border: 1px solid var(--rule); border-radius: 1.8cqw; padding: 2.2cqw; display: grid; gap: 1.3cqw; }
.wb-cards b { width: 4cqw; height: 4cqw; border-radius: 1cqw; background: var(--sage); }
.wb-cards i { display: block; height: 1.4cqw; border-radius: 1cqw; background: var(--rule); width: 90%; }
.wb-cards i.s { width: 60%; }
.wb-toast { position: absolute; left: -8px; bottom: 0; display: flex; align-items: center; gap: 12px; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 14px 18px; box-shadow: 0 24px 50px rgba(0, 0, 0, .32); rotate: 1.5deg; z-index: 2; }
.wb-toast .ok { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: .9rem; }
.wb-toast b { display: block; font-size: .98rem; }
.wb-toast small { display: block; font-size: .8rem; color: var(--muted); }
.page-hero .wb-visual p.wb-note { margin-top: 12px; text-align: right; font-size: .8rem; color: var(--sage); }

/* ---------- What we build: cards with small diagrams ---------- */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bento-card { background: var(--field); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.bento-body { padding: 22px 24px 26px; }
.bento-body h3 { font-size: 1.28rem; margin-bottom: 8px; color: var(--ink); }
.bento-body p { font-size: .96rem; }
.mi { min-height: 150px; background: var(--paper-alt); border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 18px; }
.mi span { font-size: .76rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.mi em { flex: none; width: 20px; height: 2px; background: var(--ink); }
.mi span.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mi i { display: block; height: 6px; border-radius: 3px; background: var(--rule); width: 85%; }
.mi i.s { width: 55%; }
/* business website */
.mi-site .frame { width: 190px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 9px; display: grid; gap: 9px; }
.mi-site .n { display: flex; align-items: center; gap: 6px; }
.mi-site .n b { width: 30px; height: 6px; border-radius: 3px; background: var(--ink); margin-right: auto; }
.mi-site .n i { width: 14px; height: 4px; }
.mi-site .h { display: grid; grid-template-columns: 1fr 58px; gap: 8px; align-items: center; }
.mi-site .h div { display: grid; gap: 5px; }
.mi-site .h div i:first-child { height: 8px; background: var(--ink); width: 90%; }
.mi-site .h em { width: 36px; height: 10px; border-radius: 999px; background: var(--ink); margin-top: 2px; }
.mi-site .h span { height: 40px; padding: 0; border: 0; border-radius: 6px; background: linear-gradient(135deg, var(--ink), #3c5a4b); }
.mi-site .c { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mi-site .c i { width: 100%; height: 18px; border-radius: 4px; background: var(--paper-alt); }
/* landing page */
.mi-lp .ad, .mi-lp .page { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 8px; display: grid; gap: 5px; }
.mi-lp .ad { width: 76px; }
.mi-lp .page { width: 108px; }
.mi-lp b { display: block; height: 10px; border-radius: 3px; background: var(--sage); width: 70%; }
.mi-lp .page b { background: var(--sage); }
.mi-lp .page span { display: block; margin-top: 4px; height: 14px; width: 70%; padding: 0; border: 0; border-radius: 999px; background: var(--ink); }
/* forms */
.mi-form .form { width: 118px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 9px; display: grid; gap: 6px; }
.mi-form .f { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 20px; border: 1px solid var(--rule); border-radius: 5px; padding: 0 6px; }
.mi-form .f i { width: 60%; height: 5px; }
.mi-form .f span { padding: 0; border: 0; background: none; font-size: .7rem; color: var(--ink); }
.mi-form .send { margin-top: 2px; text-align: center; font-size: .66rem; font-weight: 600; color: var(--paper); background: var(--ink); border-radius: 999px; padding: 4px 0; }
.mi-form .inbox { display: grid; justify-items: center; gap: 4px; }
.mi-form .inbox span { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 12px; font-size: 1.15rem; background: #fff; }
.mi-form .inbox b { font-size: .72rem; color: var(--ink); }
/* mobile + speed */
.mi-mobile { gap: 22px; }
.mi-mobile .ph { width: 58px; height: 104px; border-radius: 12px; background: #0f1d16; padding: 5px; display: grid; align-content: start; gap: 5px; }
.mi-mobile .ph b { display: block; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #3c5a4b, #6b8778); }
.mi-mobile .ph i { height: 4px; background: #c9cdc2; width: 90%; }
.mi-mobile .ph i.s { width: 60%; }
.mi-mobile .ph em { width: 70%; height: 9px; border-radius: 999px; background: var(--paper); margin-top: 4px; }
.mi-mobile .gauge { position: relative; width: 104px; height: 70px; }
.mi-mobile .gauge .arc { position: absolute; left: 0; top: 0; width: 104px; height: 52px; padding: 0; border: 8px solid var(--rule); border-bottom: 0; border-radius: 104px 104px 0 0; background: none; box-sizing: border-box; }
.mi-mobile .gauge .arc::after { content: ''; position: absolute; inset: -8px; border: 8px solid var(--ink); border-bottom: 0; border-radius: 104px 104px 0 0; clip-path: inset(0 0 0 52%); }
.mi-mobile .gauge .needle { position: absolute; left: 50px; top: 14px; width: 4px; height: 38px; padding: 0; border: 0; border-radius: 2px; background: var(--ink); transform-origin: 50% 100%; rotate: 52deg; }
.mi-mobile .gauge small { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: .7rem; font-weight: 600; color: var(--ink); }
/* tracking chain: keep the three steps on one line */
.mi-track { flex-wrap: nowrap; gap: 7px; padding-inline: 12px; }
.mi-track span { font-size: .7rem; padding: 5px 9px; }
.mi-track em { width: 12px; }
@media (max-width: 380px) {
  .mi-track { flex-direction: column; gap: 6px; }
  .mi-track em { width: 2px; height: 10px; }
}
/* search fundamentals */
.mi-seo { gap: 14px; }
.mi-seo .snippet { width: 150px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 10px; display: grid; gap: 5px; }
.mi-seo .snippet i.u { width: 50%; height: 5px; background: var(--sage); }
.mi-seo .snippet b { display: block; height: 8px; border-radius: 3px; background: var(--ink); width: 85%; }
.mi-seo .tags { display: grid; gap: 8px; }

/* ---------- How it works on forest ---------- */
.svc-dark .timeline::before { background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 75%, var(--sage) 100%); opacity: .55; }
.svc-dark .tl-node { background: var(--ink); border-color: var(--paper); }
.svc-dark .timeline li:last-child .tl-node { background: var(--paper); }
.svc-dark .tl-num { color: var(--paper); }
.svc-dark .timeline p { color: var(--on-dark); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* hero story, about 3s: the page assembles, a visitor clicks the request button, an inquiry arrives */
  .js .wb-window { animation: xaIn .7s cubic-bezier(.16, 1, .3, 1) .1s both, wbFloat 7s ease-in-out 3.2s infinite alternate; }
  .js .wb-nav { animation: svBuild .5s cubic-bezier(.16, 1, .3, 1) .45s backwards; }
  .js .wb-copy i.h1 { animation: svGrow .5s cubic-bezier(.16, 1, .3, 1) .6s backwards; }
  .js .wb-copy i.h2 { animation: svGrow .5s cubic-bezier(.16, 1, .3, 1) .7s backwards; }
  .js .wb-copy i.p { animation: svBuild .5s cubic-bezier(.16, 1, .3, 1) .8s backwards; }
  .js .wb-img { animation: wbImg .6s cubic-bezier(.16, 1, .3, 1) .75s backwards; }
  .js .wb-cta { animation: wbPop .45s cubic-bezier(.34, 1.56, .64, 1) 1s backwards, wbPress .4s ease 2s; }
  .js .wb-cta::after { content: ''; position: absolute; inset: -2px; border-radius: 999px; border: 2px solid var(--sage); opacity: 0; animation: xaRipple 2.2s cubic-bezier(.16, 1, .3, 1) 2.05s backwards; }
  .js .wb-cards div { animation: svBuild .5s cubic-bezier(.16, 1, .3, 1) 1.1s backwards; }
  .js .wb-cards div:nth-child(2) { animation-delay: 1.2s; }
  .js .wb-cards div:nth-child(3) { animation-delay: 1.3s; }
  .js .wb-pointer { animation: wbPoint .6s cubic-bezier(.45, 0, .2, 1) 1.4s backwards, wbClick .3s ease 2s; }
  .js .wb-toast { animation: xaFade .7s cubic-bezier(.34, 1.56, .64, 1) 2.25s both, wbFloat 8s ease-in-out 3.4s infinite alternate-reverse; }

  /* card diagrams build once as each card appears; hovers on pointer devices */
  .js .bento-card.reveal.is-visible .mi > * { animation: svBuild .7s cubic-bezier(.16, 1, .3, 1) .3s backwards; }
  .js .bento-card.reveal.is-visible .mi > :nth-child(2) { animation-delay: .42s; }
  .js .bento-card.reveal.is-visible .mi > :nth-child(3) { animation-delay: .54s; }
  .js .bento-card.reveal.is-visible .mi > :nth-child(4) { animation-delay: .66s; }
  .js .bento-card.reveal.is-visible .mi > :nth-child(5) { animation-delay: .78s; }
  .js .bento-card.reveal.is-visible .mi-mobile .needle { animation: wbNeedle 1s cubic-bezier(.34, 1.4, .64, 1) .7s backwards; }
  .js .bento-card.reveal {
    transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1), translate .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s ease, border-color .4s ease;
    transition-delay: var(--rd, 0ms);
  }
  @media (hover: hover) and (pointer: fine) {
    .bento-card:hover { translate: 0 -6px; box-shadow: 0 20px 40px rgba(31, 58, 46, .12); border-color: var(--sage); }
  }

  /* timeline on forest: the drawn line, filled dots and number emphasis in cream */
  .svc-dark .timeline.is-live::after { background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 75%, var(--sage) 100%); }
  .svc-dark .timeline.is-live li .tl-node { background: var(--ink); }
  .svc-dark .timeline.is-live li.is-reached .tl-node { background: var(--paper); animation: wbPing .9s ease-out; }
  .svc-dark .timeline.is-live .tl-num { color: var(--sage); }
  .svc-dark .timeline.is-live li.is-reached .tl-num { color: var(--paper); }
  @media (max-width: 900px) {
    .svc-dark .timeline.is-live::after { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 80%, var(--sage) 100%); }
  }
}
@keyframes wbImg { from { opacity: 0; scale: .94; } }
@keyframes wbPop { from { opacity: 0; scale: .8; } }
@keyframes wbPress { 40% { scale: .92; background: var(--accent-hover); } }
@keyframes wbPoint { from { opacity: 0; translate: 30cqw 22cqw; } 25% { opacity: 1; } }
@keyframes wbClick { 50% { scale: .82; } }
@keyframes wbNeedle { from { rotate: -70deg; } }
@keyframes wbFloat { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes wbPing { from { box-shadow: 0 0 0 0 rgba(243, 238, 227, .45); } to { box-shadow: 0 0 0 12px rgba(243, 238, 227, 0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .wb-visual { justify-self: center; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  /* phones: no continuous float, to save battery */
  .js .wb-window { animation-name: xaIn, none; }
  .js .wb-toast { animation-name: xaFade, none; }
  .wb-toast { left: 0; padding: 12px 14px; }
  .page-hero .wb-visual p.wb-note { text-align: left; }
}
