/* ==========================================================================
   CRM Gorilla — shared design system (single source for all pages)
   Tokens + components. No per-page CSS anywhere else.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* palette — deep, premium, confident */
  --ink:        #0c0f14;   /* near-black base            */
  --ink-2:      #141922;   /* raised surface             */
  --ink-3:      #1c232f;   /* card on dark               */
  --line:       #2a3341;   /* hairline on dark           */
  --cream:      #f5f3ee;   /* light section bg           */
  --cream-2:    #ffffff;   /* card on light              */
  --paper-line: #e6e2d8;   /* hairline on light          */

  --fg:         #eef2f7;   /* text on dark               */
  --fg-mute:    #9aa7b8;   /* muted text on dark         */
  --fg-ink:     #12161d;   /* text on light              */
  --fg-ink-mute:#5a6472;   /* muted text on light        */

  --brand:      #2f6bff;   /* primary action — electric blue */
  --brand-ink:  #1b47c4;   /* pressed / darker           */
  --gold:       #d8b45a;   /* premium accent (Flagship)  */
  --gold-soft:  #f0e2be;

  /* type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", var(--sans);

  /* rhythm */
  --step--1: clamp(.8rem, .76rem + .2vw, .9rem);
  --step-0:  clamp(1rem, .95rem + .25vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.1vw, 2.25rem);
  --step-3:  clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
  --step-4:  clamp(2.8rem, 1.9rem + 3.8vw, 5rem);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -24px rgba(0,0,0,.55);
  --shadow-lift: 0 30px 70px -30px rgba(0,0,0,.7);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--fg);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.02em; font-weight: 600; }

/* ---- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.eyebrow {
  font: 600 var(--step--1)/1 var(--sans);
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}
.eyebrow--gold { color: var(--gold); }
.lede { font-size: var(--step-1); color: var(--fg-mute); max-width: 60ch; }

/* light section */
.band-light { background: var(--cream); color: var(--fg-ink); }
.band-light .eyebrow { color: var(--brand-ink); }
.band-light .lede { color: var(--fg-ink-mute); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 var(--step-0)/1 var(--sans);
  padding: .95em 1.6em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 12px 30px -12px rgba(47,107,255,.7); }
.btn--primary:hover { background: var(--brand-ink); transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(47,107,255,.8); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--fg-mute); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #2a2205; box-shadow: 0 12px 30px -12px rgba(216,180,90,.6); }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn--lg { font-size: var(--step-1); padding: 1.05em 1.9em; }

/* ---- Launch notice strip ------------------------------------------------ */
.notice { background: var(--ink-2); border-bottom: 1px solid var(--line); }
.notice__inner {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  padding-block: .55rem; font-size: var(--step--1); flex-wrap: wrap; text-align: center;
}
.notice p { color: var(--fg); }
.notice a { display: inline-block; color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.notice a:hover { color: var(--gold); }
.notice__dot {
  flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px 2px rgba(216,180,90,.55);
}
@media (max-width: 600px) { .notice__detail { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .notice__dot { animation: notice-pulse 2.4s ease-in-out infinite; }
  @keyframes notice-pulse {
    0%, 100% { box-shadow: 0 0 6px 1px rgba(216,180,90,.35); }
    50%      { box-shadow: 0 0 12px 3px rgba(216,180,90,.7); }
  }
}

/* ---- Launch announcement section ---------------------------------------- */
.launch { position: relative; overflow: hidden; }
.launch::before {
  content: ""; position: absolute; inset: auto -15% -30% 40%; height: 520px; z-index: 0;
  background: radial-gradient(55% 65% at 65% 55%, rgba(47,107,255,.18), transparent 65%);
  filter: blur(8px);
}
.launch__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
@media (max-width: 900px) { .launch__inner { grid-template-columns: 1fr; } }
.launch h2 { font-size: var(--step-3); margin: .6rem 0 1rem; max-width: 16ch; }
.launch__points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.launch__points li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--step--1); color: var(--fg); }
.launch__points svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .12rem; color: var(--gold); }
.launch__cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }
.launch__art { margin: 0; }
.launch__art img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-lift);
}

/* ---- Header ------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.brand__mark { width: 34px; height: 34px; }
.site-head nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.site-head nav a.navlink { color: var(--fg-mute); font-size: var(--step--1); font-weight: 500; transition: color .15s ease; }
.site-head nav a.navlink:hover { color: var(--fg); }
@media (max-width: 720px) { .site-head nav a.navlink { display: none; } }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 10vw, 8rem); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: 0;
  background:
    radial-gradient(60% 80% at 70% 10%, rgba(47,107,255,.28), transparent 60%),
    radial-gradient(50% 60% at 15% 0%, rgba(216,180,90,.12), transparent 60%);
  filter: blur(6px);
}
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { font-size: var(--step-4); margin-block: .6rem 1.1rem; }
.hero h1 .accent { color: var(--brand); }
.hero .lede { font-size: var(--step-1); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero__trust { margin-top: 2.4rem; color: var(--fg-mute); font-size: var(--step--1); display: flex; gap: 1.4rem; flex-wrap: wrap; }
.hero__trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust svg { width: 16px; height: 16px; color: var(--brand); }

/* ---- What-is stack ------------------------------------------------------ */
.whatis { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .whatis { grid-template-columns: 1fr; } }
.whatis__body p + p { margin-top: 1.1rem; }
.combine { display: grid; gap: .8rem; margin-top: .5rem; }
.combine__item {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--cream-2); border: 1px solid var(--paper-line); border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}
.combine__item h4 { font-family: var(--display); font-size: var(--step-0); margin-bottom: .15rem; }
.combine__item p { color: var(--fg-ink-mute); font-size: var(--step--1); line-height: 1.5; }
.combine__num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color:#fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* ---- Tier cards --------------------------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.tier {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tier:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--fg-mute) 40%, var(--line)); }
.tier__name { font-family: var(--display); font-size: var(--step-2); letter-spacing: -.02em; }
.tier__what { color: var(--fg-mute); font-size: var(--step--1); margin-top: .2rem; font-weight: 500; }
.tier__pitch { margin-top: 1.1rem; font-size: var(--step-0); color: var(--fg); font-style: italic; opacity: .95; }
.tier__price { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.tier__price .from { color: var(--fg-mute); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; }
.tier__price .amt { font-family: var(--display); font-size: var(--step-2); font-weight: 600; display: block; margin-top: .2rem; }
.tier__price .unit { color: var(--fg-mute); font-size: var(--step--1); }
.tier__list { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .7rem; }
.tier__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--step--1); color: var(--fg); }
.tier__list svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .12rem; color: var(--brand); }
.tier__cta { margin-top: auto; padding-top: 1.6rem; }
.tier__cta .btn { width: 100%; justify-content: center; }

/* recommended (middle) */
.tier--featured {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border-color: var(--brand); transform: translateY(-10px);
  box-shadow: var(--shadow-lift);
}
.tier--featured:hover { transform: translateY(-14px); }
@media (max-width: 900px) { .tier--featured, .tier--featured:hover { transform: none; } }
.tier__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font: 700 var(--step--1)/1 var(--sans);
  letter-spacing: .08em; text-transform: uppercase; padding: .5em 1em; border-radius: 999px;
  white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(47,107,255,.8);
}
/* flagship gold cues */
.tier--flagship .tier__name { color: var(--gold); }
.tier--flagship .tier__list svg { color: var(--gold); }
.tier--flagship { border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); }

/* ---- Comparison strip --------------------------------------------------- */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare__cell { border: 1px dashed var(--paper-line); border-radius: var(--radius-sm); padding: 1.3rem 1.4rem; }
.compare__cell strong { font-family: var(--display); font-size: var(--step-1); display: block; margin-bottom: .3rem; }
.compare__cell.-connect strong { color: var(--brand-ink); }
.compare__cell.-flagship strong { color: #a9852a; }
.compare__cell p { color: var(--fg-ink-mute); font-size: var(--step-0); }

/* ---- Retainer band ------------------------------------------------------ */
.retainer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 820px) { .retainer { grid-template-columns: 1fr; } }
.retainer__stat { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.retainer__big { font-family: var(--display); font-size: var(--step-3); color: var(--gold); }
.retainer__big span { font-size: var(--step-1); color: var(--fg-mute); }
.retainer__meta { color: var(--fg-mute); margin-top: .5rem; font-size: var(--step--1); }

/* ---- Final CTA ---------------------------------------------------------- */
.finalcta { text-align: center; }
.finalcta h2 { font-size: var(--step-3); max-width: 20ch; margin-inline: auto; }
.finalcta .lede { margin: 1rem auto 2rem; }

/* ---- Footer ------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 2.5rem; color: var(--fg-mute); font-size: var(--step--1); }
.site-foot__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ---- Motion / a11y ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
