/* ─────────────────────────────────────────────────────────────
   afosales — what every feature page shares.

   Only the frame: colours, type, the nav, the footer, the form.
   Everything inside a page is written for that page, because the
   shape of a page should come from its subject — leads are a
   race, payments are a ledger, the inbox is a conversation — and
   a shared set of section components would flatten all of that
   into the same three-cards-and-a-CTA every landing page has.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper: #fff;
  --wash: #f7f9f8;
  --wash-2: #eef3f1;
  --line: #e3eae7;

  --ink: #0d1b16;
  --ink-2: #46574f;
  --ink-3: #7b8b83;

  --g: #12a150;
  --g-d: #0b7a3c;
  --g-w: #e8f7ee;
  --g-l: #bfe6cf;

  --amber: #e8930c;
  --amber-w: #fef5e6;
  --red: #d64545;
  --red-w: #fdeeee;
  --blue: #2563eb;
  --blue-w: #eff4ff;
  --violet: #7c3aed;

  --f: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --m: 'JetBrains Mono', ui-monospace, monospace;

  --gut: clamp(18px, 4vw, 56px);
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}
body { font-family: var(--f); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.55; overflow-x: hidden; }

.w { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 880px; }

h1,h2,h3,h4 { font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 700; letter-spacing: -.02em; }
p { color: var(--ink-2); }
.lead { font-size: clamp(1rem, 1.5vw, 1.13rem); line-height: 1.62; }
.sm { font-size: .875rem; color: var(--ink-3); }
.xs { font-size: .78rem; color: var(--ink-3); }
.mono { font-family: var(--m); }

.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--g); }

section { padding: clamp(2.8rem, 6vw, 5rem) 0; }
.band { background: var(--wash); }
.dark { background: var(--ink); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark p { color: #a3b5ac; }
.dark .eyebrow { color: #4ade80; }

.head { max-width: 42rem; }
.head.mid { margin: 0 auto; text-align: center; }
.head h2 { margin-top: .8rem; }
.head p { margin-top: .9rem; }

/* ── announcement + nav ────────────────────────────────────── */

.shout { background: var(--ink); color: #fff; text-align: center; font-size: .84rem; padding: .6rem var(--gut); }
.shout a { color: #7ee2a8; text-decoration: none; font-weight: 600; }

nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.93); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; }
nav.stuck { border-bottom-color: var(--line); }
nav .w { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.18rem; letter-spacing: -.04em; color: var(--ink); text-decoration: none; }
.logo-m { width: 29px; height: 29px; border-radius: 9px; background: var(--g); color: #fff; display: grid; place-items: center; font-size: .92rem; }
/* The same menu as the home page. A site whose header changes
   between pages reads as two sites stitched together — and the
   moment somebody notices that, they check the URL. */
.menu { display: flex; align-items: center; gap: .25rem; }
.menu > .item { position: relative; }
.menu > .item > a, .menu > .item > button {
  display: flex; align-items: center; gap: .3rem;
  padding: .5rem .72rem; border-radius: 9px; border: 0; background: none;
  font-family: var(--f); font-size: .91rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer; text-decoration: none;
}
.menu > .item:hover > a, .menu > .item:hover > button { color: var(--ink); background: var(--wash); }
.menu > .item.here > a, .menu > .item.here > button { color: var(--g-d); }
.menu .caret { width: 9px; height: 9px; transition: transform .2s; }
.menu > .item:hover .caret { transform: rotate(180deg); }
@media (max-width: 1000px) { .menu { display: none; } }

.mega {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(13,27,22,.2);
  padding: 1.3rem; opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  display: grid; gap: 1.6rem; z-index: 70;
}
.item:hover .mega, .mega:hover { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega.two { grid-template-columns: 1fr 1fr; width: 620px; }
.mega.one { width: 320px; }
.mega h5 { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .7rem; }
.mega a { display: flex; gap: .7rem; padding: .55rem; border-radius: 10px; text-decoration: none; }
.mega a:hover { background: var(--wash); }
.mega a.on { background: var(--g-w); }
.mega .ic {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--g-w); color: var(--g-d);
  display: grid; place-items: center;
}
.mega .tx b { display: block; font-size: .89rem; font-weight: 600; color: var(--ink); }
.mega .tx span { font-size: .77rem; color: var(--ink-3); line-height: 1.35; display: block; }

/* Where you are, said once. On a page three levels down, the
   fastest way back is a trail rather than a back button. */
.crumbs { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--ink-3); padding-top: 1.4rem; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--g-d); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .68rem 1.25rem; border-radius: 10px; font-family: var(--f); font-size: .93rem; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .12s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-p { background: var(--g); color: #fff; }
.btn-p:hover { background: var(--g-d); box-shadow: 0 6px 18px -6px rgba(18,161,80,.45); }
.btn-o { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-o:hover { background: var(--wash); border-color: var(--ink-3); }
.btn-lg { padding: .88rem 1.6rem; font-size: 1rem; }
.ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; }

/* ── bits pages reuse ──────────────────────────────────────── */

.pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; border-radius: 100px; padding: .18rem .58rem; }
.p-ok { background: var(--g-w); color: var(--g-d); }
.p-warn { background: var(--amber-w); color: #9a6205; }
.p-bad { background: var(--red-w); color: var(--red); }
.p-blue { background: var(--blue-w); color: var(--blue); }
.p-grey { background: var(--wash-2); color: var(--ink-3); }

.card { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }

.slot { position: relative; overflow: hidden; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--wash); aspect-ratio: 16/10; display: grid; place-items: center; text-align: center; padding: 1.4rem; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .hint { position: relative; z-index: 1; max-width: 21rem; }
.slot .hint .k { font-family: var(--m); font-size: .68rem; color: var(--g); display: block; margin-bottom: .4rem; }
.slot .hint .d { font-size: .8rem; color: var(--ink-3); line-height: 1.45; }

.bullets { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin-top: 1.1rem; }
.bullets li { display: flex; gap: .6rem; font-size: .95rem; color: var(--ink-2); }
.bullets li svg { flex: none; color: var(--g); margin-top: .22rem; }

/* ── chat bubbles, for the pages that show messages ────────── */

.wa { background: #ece5dd; border-radius: 16px; padding: .9rem .8rem; display: flex; flex-direction: column; gap: .35rem; }
.bub { max-width: 84%; padding: .45rem .62rem .22rem; border-radius: 8px; font-size: .86rem; line-height: 1.42; box-shadow: 0 1px 1px rgba(0,0,0,.07); }
.bub.i { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.bub.o { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 2px; }
.bub .t { display: block; text-align: right; font-size: .6rem; color: #8a9a92; margin-top: .12rem; }
.bub .keys { margin: .35rem -.62rem -.22rem; }
.bub .keys b { display: block; padding: .35rem; text-align: center; font-weight: 500; font-size: .8rem; color: #027eb5; border-top: 1px solid rgba(0,0,0,.08); }

/* ── the form ──────────────────────────────────────────────── */

.form-band { background: var(--ink); color: #fff; }
.form-g { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 880px) { .form-g { grid-template-columns: 1fr; } }
.form-band h2 { color: #fff; }
.form-band p { color: #a3b5ac; margin-top: 1rem; }
.form-band .eyebrow { color: #4ade80; }
.form-card { background: #fff; border-radius: 20px; padding: clamp(1.5rem,3vw,2rem); }
.form-card h3 { color: var(--ink); font-size: 1.12rem; }
.fld { margin-top: 1rem; }
.fld label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: .4rem; }
.fld input, .fld select { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 .85rem; font-family: var(--f); font-size: .94rem; color: var(--ink); background: #fff; }
.fld input:focus, .fld select:focus { outline: 0; border-color: var(--g); box-shadow: 0 0 0 3px var(--g-w); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 100px; padding: .45rem .9rem; font-family: var(--f); font-size: .85rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .18s; }
.chips button:hover { border-color: var(--ink-3); }
.chips button.on { background: var(--g-w); border-color: var(--g); color: var(--g-d); }
.form-card .btn { width: 100%; margin-top: 1.2rem; }
.form-card .fine { margin-top: .8rem; font-size: .75rem; color: var(--ink-3); text-align: center; }

/* ── footer ────────────────────────────────────────────────── */

footer { background: var(--wash); border-top: 1px solid var(--line); padding: clamp(2.4rem,5vw,3.4rem) 0 2.2rem; }
.fcols { display: grid; grid-template-columns: 1.4fr repeat(4,1fr); gap: 2rem; }
@media (max-width: 900px) { .fcols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fcols { grid-template-columns: 1fr; } }
.fcols h5 { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .85rem; }
.fcols ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.fcols a { color: var(--ink-2); text-decoration: none; font-size: .88rem; }
.fcols a:hover { color: var(--g-d); }
.fbot { margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* ── reveal ────────────────────────────────────────────────── */
.up { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.up.in { opacity: 1; transform: none; }
.d1 { transition-delay: .09s; } .d2 { transition-delay: .18s; } .d3 { transition-delay: .27s; }


/* ─────────────────────────────────────────────────────────────
   Each trade its own colour.

   Six pages in the same green read as one page with the noun
   changed, however different the layout underneath is. So each
   sets --tint, and the hero wash, the data and the numbers take
   it — while the buttons and the nav stay brand green, because
   that is the thing that has to be the same everywhere.
   ───────────────────────────────────────────────────────────── */

body { --tint: #12a150; --tint-w: #e8f7ee; --tint-d: #0b7a3c; }

body.wholesale  { --tint: #1e5eb8; --tint-w: #eaf1fc; --tint-d: #164a94; }
body.clinics    { --tint: #0891a8; --tint-w: #e6f6f9; --tint-d: #067183; }
body.salons     { --tint: #b8397a; --tint-w: #fbeaf3; --tint-d: #952e63; }
body.coaching   { --tint: #6046c9; --tint-w: #eeebfb; --tint-d: #4d38a5; }
body.realestate { --tint: #b56410; --tint-w: #fdf1e2; --tint-d: #94500c; }
body.ecommerce  { --tint: #7c3aed; --tint-w: #f2ecfd; --tint-d: #6428c9; }

.eyebrow { color: var(--tint); }
.crumbs a:hover { color: var(--tint-d); }

/* ── the hero, with weight ─────────────────────────────────── */

/* Big enough to be a statement rather than a heading. The old
   size was polite, and polite is what "cheap" usually means on a
   page that is trying to sell something. */
.hero-band { position: relative; overflow: hidden; padding-top: 1.4rem; }
.hero-band::before {
  content: ''; position: absolute; inset: -30% -20% auto -20%; height: 150%;
  background: radial-gradient(ellipse 60% 55% at 30% 20%, var(--tint-w), transparent 70%);
  pointer-events: none;
}
.hero-band .w { position: relative; }
.hero-band h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  letter-spacing: -.045em; line-height: .98;
}
.hero-band .lead { font-size: clamp(1.05rem, 1.7vw, 1.24rem); }

/* ── depth ─────────────────────────────────────────────────── */

/* Thin borders on white read as a wireframe. A real shadow and a
   little lift is most of the difference between a mock-up and a
   product. */
.lift {
  box-shadow:
    0 1px 2px rgba(13,27,22,.04),
    0 12px 28px -14px rgba(13,27,22,.16),
    0 32px 60px -32px rgba(13,27,22,.22);
}
.lift-lg {
  box-shadow:
    0 2px 4px rgba(13,27,22,.05),
    0 20px 44px -18px rgba(13,27,22,.2),
    0 48px 90px -40px rgba(13,27,22,.28);
}

/* ── the counter ───────────────────────────────────────────── */

/* Honest urgency: what is going wrong while the page is open,
   counted from a rate the reader can check. Not a fake stock
   level or a countdown that resets — those get noticed, and once
   somebody notices one the rest of the page is suspect too. */
.tick {
  display: inline-flex; align-items: baseline; gap: .55rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: .5rem 1rem .5rem .75rem; margin-top: 1.4rem;
  box-shadow: 0 6px 20px -10px rgba(13,27,22,.2);
}
.tick .live { width: 7px; height: 7px; border-radius: 50%; background: var(--tint); flex: none; align-self: center; animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.tick .n { font-family: var(--m); font-size: 1.05rem; font-weight: 500; color: var(--tint-d); }
.tick .l { font-size: .84rem; color: var(--ink-2); }

/* ── tinted pieces ─────────────────────────────────────────── */

.tinted { background: var(--tint-w); }
.on-tint { color: var(--tint-d); }
.bar-tint { background: var(--tint) !important; }
.pill-tint { background: var(--tint-w); color: var(--tint-d); }

/* Numbers big enough to be read across a room. */
.figure { font-size: clamp(2.4rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }

/* A quiet rule under a section heading, in the trade's colour —
   enough to say "this page is not the last one" without another
   coloured box. */
.head h2::after {
  content: ''; display: block; width: 44px; height: 3px; border-radius: 2px;
  background: var(--tint); margin-top: 1rem;
}
.head.mid h2::after { margin-left: auto; margin-right: auto; }
.dark .head h2::after, .band-ink .head h2::after { background: #4ade80; }
