/* ============================================================================
   Blackbelt Agency — marketing site
   Dojo brutalism: torn canvas, ink, tape and highlighter, with digital
   fragments taped in. Reference: docs/agency 4.jpg.
   Palette and lime accent shared with the client platform
   (Agency Platform/src/app/globals.css) so the two read as one company.
   ========================================================================== */

/* ---------- Fonts ---------- */

@font-face {
  font-family: 'Anton';
  src: url('fonts/anton-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('fonts/exo-2-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Rajdhani';
  src: url('fonts/rajdhani-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --black: #0a0a0a;
  --black-soft: #141218;
  --bone: #ede9e0;
  --bone-dim: #cfc8bb;
  --ink: #16141a;

  --lime: #bfff00;
  --pink: #ff2e97;
  --purple: #8a2be2;
  --purple-text: #b98cff;

  /* Belt ranks — the BJJ progression, also the upsell ladder. */
  --belt-white: #f4f1ea;
  --belt-blue: #2563c9;
  --belt-purple: #8a2be2;
  --belt-brown: #6b4423;
  --belt-black: #16141a;

  --display: 'Anton', 'Arial Narrow', sans-serif;
  --label: 'Rajdhani', ui-sans-serif, sans-serif;
  --body: 'Exo 2', ui-sans-serif, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --max: 80rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Photocopy grain over everything. Same device as the platform. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.on-bone :focus-visible { outline-color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Shared type ---------- */

.eyebrow {
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8125rem;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--lime);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  background: currentColor;
}
.on-bone .eyebrow { color: var(--ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; }

.shout {
  font-size: clamp(2.6rem, 7.8vw, 6rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 1.75rem;
}
/* Explicit word gaps: collapsed whitespace between inline-blocks is far too
   small a gap at display size. */
.shout .w { display: inline-block; margin-right: 0.2em; }
.shout .w:last-child { margin-right: 0; }
.shout--mid {
  font-size: clamp(1.875rem, 5.2vw, 3.625rem);
  line-height: 1.06;
  text-transform: uppercase;
  margin: 0 0 1.125rem;
}

/* The ink swipe: agency 4's highlighter, redrawn with hand-cut edges. */
.swipe {
  position: relative;
  display: inline-block;
  padding-inline: 0.22em;
}
.swipe > span { position: relative; z-index: 1; color: var(--black); }
.swipe::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 4%; bottom: 14%;
  background: var(--lime);
  clip-path: polygon(1% 6%, 99% 0%, 100% 88%, 97% 100%, 3% 96%, 0% 14%);
  transform-origin: left center;
  z-index: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease),
              background 200ms var(--ease), color 200ms var(--ease);
}
.btn .arrow { transition: transform 240ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--go { background: var(--lime); color: var(--black); }
.btn--go:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pink); }

.btn--outline { border-color: currentColor; color: inherit; background: transparent; }
.btn--outline:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 currentColor; }

.btn--dark { background: var(--ink); color: var(--bone); }
.btn--dark:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--lime); }

/* ---------- Torn edges ----------
   Drawn from docs/agency 4.jpg. The dominant feature there is the DIAGONAL, not
   the roughness: the edge travels steadily from one depth to another, and the
   tear itself is low-amplitude — small, soft undulations riding that line, the
   way a sheet of paper actually separates. Deep spikes read as mountains and
   even jitter reads as noise; neither reads as torn. So: many closely-spaced
   vertices, every step between neighbours kept under ~0.4rem, and the whole
   wobble held inside a ~2rem band. */

.torn-top {
  position: relative;
  clip-path: polygon(
    0% 2.9rem, 6% 2.6rem, 13% 2.8rem, 20% 2.4rem,
    27% 2.5rem, 34% 2.1rem, 41% 2.3rem, 48% 1.9rem,
    55% 2.0rem, 62% 1.6rem, 69% 1.8rem, 76% 1.4rem,
    83% 1.5rem, 90% 1.1rem, 96% 1.0rem, 100% 0.8rem,
    100% 100%, 0 100%
  );
}
/* The opposite slant, so consecutive tears don't read as a repeating pattern. */
.torn-top--alt {
  clip-path: polygon(
    0% 0.8rem, 6% 1.0rem, 13% 0.9rem, 20% 1.3rem,
    27% 1.2rem, 34% 1.6rem, 41% 1.5rem, 48% 1.9rem,
    55% 1.8rem, 62% 2.2rem, 69% 2.1rem, 76% 2.5rem,
    83% 2.4rem, 90% 2.8rem, 96% 2.7rem, 100% 3.0rem,
    100% 100%, 0 100%
  );
}

/* A tear eats into the top of a section, so its content needs clearance.
   --tear mirrors the deepest bite of the polygon above it; redraw a polygon and
   this number has to move with it, or headlines get clipped at narrow widths. */
.torn-top      { --tear: 2.9rem; padding-top: calc(var(--tear) + clamp(1.5rem, 5vw, 3rem)); }
.torn-top--alt { --tear: 3.0rem; }

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgb(10 10 10 / 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid #2a2630;
  padding-block: 0.75rem;
}
.site-head .wrap { display: flex; align-items: center; gap: 1.25rem; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand img { width: 56px; height: 56px; border-radius: 12px; }
@media (max-width: 640px) { .brand img { width: 44px; height: 44px; border-radius: 10px; } }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(0.875rem, 2.4vw, 2rem); }
.site-nav .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.site-nav .nav-link:hover { color: var(--lime); }
.site-nav .btn { min-height: 2.75rem; padding-inline: 1.25rem; font-size: 0.8125rem; }
@media (max-width: 52rem) { .site-nav .nav-link { display: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 46rem; height: 46rem;
  top: -24rem; left: -18rem;
  border-radius: 50%;
  background: rgb(138 43 226 / 0.3);
  filter: blur(130px);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: 1.12fr 0.88fr; align-items: center; }
}

.hero p.lead {
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  color: var(--bone-dim);
  max-width: 48ch;
  margin: 0 0 2.25rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.hero-meta {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid #2a2630;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--bone-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-meta span { display: flex; align-items: center; gap: 0.5rem; }
.hero-meta b { color: var(--lime); font-weight: 500; }

/* ---------- Phone demo ---------- */

.phone {
  justify-self: center;
  width: min(100%, 21rem);
  border: 2px solid #2a2630;
  background: linear-gradient(180deg, var(--black-soft), #0b0910);
  padding: 1.125rem 0.875rem 1.25rem;
  position: relative;
  box-shadow: 14px 14px 0 rgb(138 43 226 / 0.28);
}
/* Tape holding it to the page */
.phone::before {
  content: '';
  position: absolute;
  top: -0.75rem; left: 50%;
  width: 6.5rem; height: 1.5rem;
  transform: translateX(-50%) rotate(-2.4deg);
  background: rgb(237 233 224 / 0.2);
  border-left: 1px dashed rgb(237 233 224 / 0.3);
  border-right: 1px dashed rgb(237 233 224 / 0.3);
}
.phone-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem 0.375rem 0.875rem;
  border-bottom: 1px solid #2a2630;
  margin-bottom: 1rem;
}
.phone-head .who { font-weight: 600; font-size: 0.9375rem; }
.phone-head .when {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: #a19ab0;
}
.missed {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.6875rem;
  color: var(--pink);
  border: 1px solid rgb(255 46 151 / 0.45);
  background: rgb(255 46 151 / 0.12);
  padding: 0.25rem 0.625rem;
  margin-bottom: 1rem;
}
.thread { display: flex; flex-direction: column; gap: 0.625rem; }
.bubble {
  max-width: 86%;
  padding: 0.75rem 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.bubble--out {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--purple), #c8259f);
  color: #fff;
}
.bubble--in {
  align-self: flex-start;
  border: 1px solid #2a2630;
  background: #1b1822;
}
.bubble .meta {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Ticker ---------- */

.ticker {
  border-block: 2px solid var(--ink);
  background: var(--lime);
  color: var(--black);
  overflow: hidden;
  padding-block: 0.625rem;
}
.ticker-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.ticker-track span {
  font-family: var(--display);
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  padding-right: 2.5rem;
}
.ticker-track span::after { content: '✳'; font-size: 0.8125rem; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Bone sections ---------- */

.on-bone { background: var(--bone); color: var(--ink); position: relative; }
/* Faint canvas weave so the paper reads as material, not flat colour. */
.on-bone::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    repeating-linear-gradient(90deg, rgb(22 20 26 / 0.04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgb(22 20 26 / 0.04) 0 1px, transparent 1px 3px);
}
.on-bone > .wrap { position: relative; z-index: 1; }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); position: relative; }
.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.section-head p { margin: 0; font-size: 1.0625rem; opacity: 0.78; }

/* ---------- Services ---------- */

.services {
  display: grid;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}
@media (min-width: 40rem) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .services { grid-template-columns: repeat(3, 1fr); } }

.svc {
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.svc:hover { background: var(--ink); color: var(--bone); }
.svc:hover .svc-n { color: var(--lime); opacity: 1; }
.svc-n {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  opacity: 0.55;
  display: block;
  margin-bottom: 1.5rem;
}
/* balance splits the lines evenly instead of leaving a one-word orphan on the
   last line, which at this size reads as a mistake. */
.svc h3 { font-size: clamp(1.5rem, 2.1vw, 1.875rem); line-height: 0.98; text-transform: uppercase; margin: 0 0 0.75rem; text-wrap: balance; }
.svc p { margin: 0; font-size: 0.9688rem; opacity: 0.82; }
.svc .soon {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.6875rem;
  border: 1px solid currentColor;
  padding: 0.15rem 0.5rem;
  opacity: 0.75;
}

/* ---------- Belts ---------- */

.belts { display: grid; }
.belt {
  display: grid;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 2px solid rgb(22 20 26 / 0.16);
  align-items: center;
}
@media (min-width: 52rem) {
  .belt { grid-template-columns: 14rem 7rem 1fr; padding-block: 1.5rem; column-gap: 2.25rem; }
}
.belt:last-child { border-bottom: 0; }

.belt-bar {
  position: relative;
  height: 1.875rem;
  border: 2px solid var(--ink);
  background: var(--bone);
  overflow: hidden;
}
.belt-bar .fill {
  position: absolute;
  inset: 0;
  right: 1.125rem;
  background: var(--belt-c);
  transform-origin: left center;
}
/* The lime tag end of the belt — the logo mark's device. */
.belt-bar::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1.125rem;
  background: var(--lime);
  border-left: 2px solid var(--ink);
}
.belt-rank { font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.02em; }
.belt-body h3 {
  font-family: var(--label);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.25rem;
}
.belt-body p { margin: 0; font-size: 0.9688rem; opacity: 0.82; max-width: 54ch; }

/* ---------- Platform strip ---------- */

.platform { display: grid; gap: 2.5rem; align-items: center; }
/* The screenshot is a dense 1700px UI; an even split renders it too small to
   read, and reading it is the whole point of this section. The text column
   gives up the space - its paragraph is capped at 50ch regardless. */
@media (min-width: 60rem) { .platform { grid-template-columns: 1fr 1.5fr; gap: 3rem; } }
.platform p { color: var(--bone-dim); max-width: 50ch; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
/* Tracking, padding and gap tuned so all six fit one row in the narrowed text
   column - measured at 453px needed against 432px available, so ~21px had to
   come out. A single chip wrapping alone reads as a mistake. */
.chips li {
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.75rem;
  border: 1px solid #3a3446;
  padding: 0.3rem 0.45rem;
  color: var(--bone-dim);
}

/* The dashboard, photographed and taped down at an angle. */
.shot {
  margin: 0;
  transform: rotate(-1.4deg);
  position: relative;
}
.shot img {
  width: 100%;
  height: auto;
  border: 2px solid #3a3446;
  box-shadow: 16px 16px 0 rgb(138 43 226 / 0.35);
}
.shot figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #8a8398;
  margin-top: 0.875rem;
  text-align: right;
}

/* A terminal fragment taped into the collage. */
.terminal {
  border: 2px solid #2a2630;
  background: #0d0b11;
  padding: 1rem 1.125rem;
  margin-top: 2rem;
  max-width: 22rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.9;
  transform: rotate(-1.2deg);
  box-shadow: 10px 10px 0 rgb(255 46 151 / 0.2);
}
.terminal .k { color: var(--purple-text); }
.terminal .v { color: var(--lime); }
.terminal .c { color: #8a8398; }
.terminal .row { display: flex; gap: 0.75rem; }
.terminal .row span:last-child { margin-left: auto; }

/* ---------- Stats ---------- */

.stats { display: grid; gap: 2.5rem clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.stat .n { font-family: var(--display); font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 0.9; display: block; margin-bottom: 0.75rem; }
.stat p { margin: 0; font-size: 0.9688rem; opacity: 0.84; max-width: 28ch; }
.stat cite {
  display: block;
  margin-top: 0.625rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-style: normal;
  opacity: 0.68;
}
.stat cite a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- CTA ---------- */

.cta { text-align: center; padding-block: clamp(4rem, 9vw, 7rem); position: relative; overflow: hidden; }
/* Outranks the shorthand above, which would otherwise undercut the tear. */
.cta.torn-top { padding-top: calc(var(--tear) + clamp(1.5rem, 5vw, 3rem)); }
.cta::before {
  content: '';
  position: absolute;
  width: 40rem; height: 40rem;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgb(138 43 226 / 0.26), transparent 62%);
  filter: blur(90px);
  pointer-events: none;
}
.cta .wrap { position: relative; }
.cta p { color: var(--bone-dim); max-width: 42ch; margin: 0 auto 2.25rem; }

/* ---------- Footer ---------- */

.site-foot { border-top: 2px solid #2a2630; padding-block: 2.5rem; font-size: 0.9062rem; color: #a19ab0; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: center; }
.site-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--bone-dim);
  text-decoration: none;
}
.site-foot a:hover { color: var(--lime); }

/* ---------- Motion ----------
   Animated elements are written in their FINAL state. Motion animates *from*
   an offset, so if the CDN fails the page still renders correctly. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* ---------- Scrawl ----------
   Marker marks drawn over the layout, the way the reference does. Decorative
   only: every one is aria-hidden and none carries meaning on its own. */

.scrawl { position: absolute; pointer-events: none; z-index: 2; color: var(--lime); }
.scrawl path, .scrawl circle, .scrawl line { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.on-bone .scrawl { color: var(--ink); }

.scrawl--hero  { top: 1.5rem; right: 6%; width: 5.5rem; transform: rotate(8deg); }
.scrawl--svc   { top: 3.25rem; right: 4%; width: 7rem; color: var(--pink); }
.scrawl--belts { bottom: 1rem; right: 3%; width: 6.5rem; transform: rotate(-6deg); }
.scrawl--cta   { top: 12%; left: 7%; width: 7.5rem; transform: rotate(-12deg); }
@media (max-width: 64rem) { .scrawl { display: none; } }

/* A word with a scribbled ring around it. */
.ringed { position: relative; display: inline-block; }
.ringed svg {
  position: absolute;
  inset: -26% -7%;
  width: auto;
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.ringed svg ellipse { fill: none; stroke: var(--pink); stroke-width: 2.5; stroke-linecap: round; }

/* ---------- Chat widget ----------
   The service sold as "02 / Chat", running on our own site. Reuses the hero
   phone's .bubble styles so the demo and the real thing look like one product. */

/* Sits above the voice widget (bottom-right), so the two never overlap. */
.chat-launch {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: calc(clamp(1rem, 3vw, 2rem) + 5rem);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0 1.375rem;
  border: 2px solid var(--ink);
  background: var(--lime);
  color: var(--black);
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  cursor: pointer;
  /* Hard offset shadow plus a steady lime haze. The haze is static — only the
     ring below animates, so the pulse stays on transform and opacity. */
  box-shadow: 5px 5px 0 var(--ink), 0 0 20px rgb(191 255 0 / 0.38);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
/* The pulse: a lime ring breathing outward from the button's edges. Sits above
   the button's own background, so it has to be a ring, not a filled shape. */
.chat-launch::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--lime);
  pointer-events: none;
  animation: chat-pulse 2s var(--ease) infinite;
}
@keyframes chat-pulse {
  0%   { transform: scale(1);   opacity: 0.85; }
  72%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}
.chat-launch:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--pink), 0 0 26px rgb(191 255 0 / 0.5);
}
/* Once they're reaching for it, the attention-getter has done its job. */
.chat-launch:hover::after, .chat-launch:focus-visible::after { animation-play-state: paused; opacity: 0; }
.chat-launch[hidden] { display: none; }
/* The belt tag end, as on the logo mark. */
.chat-launch .tag {
  width: 0.75rem; height: 1.1rem;
  background: var(--ink);
  border-bottom: 4px solid var(--lime);
  flex: none;
}

.chat-panel {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: calc(clamp(1rem, 3vw, 2rem) + 5rem); /* clears the voice widget */
  z-index: 71;
  width: min(calc(100vw - 2rem), 23rem);
  max-height: min(34rem, calc(100vh - 7rem));
  display: flex;
  flex-direction: column;
  border: 2px solid var(--lime);
  background: linear-gradient(180deg, var(--black-soft), #0b0910);
  box-shadow: 14px 14px 0 rgb(138 43 226 / 0.3);
}
.chat-panel[hidden] { display: none; }

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 0.75rem 0.875rem 1rem;
  border-bottom: 2px solid var(--lime);
  background: var(--lime);
  color: var(--black);
  flex: none;
}
.chat-head b {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}
.chat-head .status {
  font-family: var(--mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.72;
}
.chat-close {
  margin-left: auto;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border: 2px solid transparent;
  background: transparent;
  color: var(--black);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.chat-close:hover { border-color: var(--black); }

.chat-log {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem 0.875rem;
}
/* Our side reads as the brand; theirs matches the hero demo's inbound bubble. */
.chat-log .bubble--out { background: var(--lime); color: var(--black); }

.chat-foot { flex: none; border-top: 1px solid #2a2630; padding: 0.75rem; }
.chat-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chat-choices button {
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--lime);
  background: transparent;
  color: var(--lime);
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.chat-choices button:hover { background: var(--lime); color: var(--black); }

.chat-form { display: flex; gap: 0.5rem; }
.chat-form input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid #2a2630;
  background: #1b1822;
  color: var(--bone);
  font-family: var(--body);
  font-size: 1rem;
}
.chat-form input:focus-visible { border-color: var(--lime); }
.chat-form button {
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 0.875rem;
  border: none;
  background: var(--lime);
  color: var(--black);
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.chat-err {
  margin: 0.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--pink);
}
.chat-foot .btn { width: 100%; }

/* Typing dots while the bot "thinks". */
.chat-typing { display: inline-flex; gap: 0.25rem; align-items: center; }
.chat-typing i {
  width: 0.375rem; height: 0.375rem;
  background: currentColor;
  border-radius: 50%;
  animation: chat-dot 1s infinite ease-in-out;
}
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.terminal b { font-weight: 500; color: inherit; font-variant-numeric: tabular-nums; }

/* ============ LEGAL PAGES (privacy, terms) + SMS consent note ============ */
.legal { padding: 7rem var(--gutter) 4rem; max-width: 46rem; }
.legal h1 { font-family: 'Anton', sans-serif; font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; margin: 0 0 .5rem; }
.legal h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; color: var(--lime); margin: 2.25rem 0 .5rem; }
.legal p, .legal li { color: var(--bone-dim); line-height: 1.7; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--lime); }
.legal .updated { color: var(--bone-dim); font-size: .9rem; }
.chat-consent { margin: .5rem 0 0; font-size: .72rem; line-height: 1.45; color: var(--bone-dim); }
.chat-consent a { color: inherit; text-decoration: underline; }
.site-foot .legal-name { flex-basis: 100%; font-size: .8rem; color: var(--bone-dim); }

/* ============ GET STARTED form ============ */
.lead-form { display: grid; gap: .5rem; margin-top: 2rem; }
.lead-form label { font-family: 'Rajdhani', sans-serif; font-size: 1rem; letter-spacing: .03em; color: var(--bone); margin-top: .75rem; }
.lead-form input, .lead-form textarea, .lead-form select { font: inherit; color: var(--bone); background: #121016; border: 2px solid #2a2630; border-radius: 10px; padding: .8rem .9rem; }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus { border-color: var(--lime); outline: none; }
.lead-form .consent { display: flex; gap: .75rem; align-items: flex-start; font-family: inherit; font-size: .88rem; line-height: 1.55; color: var(--bone-dim); letter-spacing: 0; margin: 1.25rem 0 .75rem; }
.lead-form .consent input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; flex: none; accent-color: var(--lime); }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { justify-self: start; }

/* ---------- Pricing ---------- */

.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); align-items: stretch; }
@media (min-width: 64rem) { .plan--hot { margin-block: -0.75rem; padding-block: 2.5rem; } }
.plan {
  border: 2px solid var(--ink);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bone);
}
.plan--hot { background: var(--ink); color: var(--bone); box-shadow: 8px 8px 0 var(--lime); }
.plan-tag {
  margin: 0 0 1rem;
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  opacity: 0.7;
}
.plan--hot .plan-tag { color: var(--lime); opacity: 1; }
.plan h3 { font-size: clamp(1.5rem, 2.1vw, 1.875rem); line-height: 0.98; text-transform: uppercase; margin: 0 0 0.75rem; text-wrap: balance; }
.plan-price { font-family: var(--display); font-size: 3rem; line-height: 1; margin: 0; }
.plan-price span { font-family: var(--body); font-size: 1rem; opacity: 0.7; margin-left: 0.25rem; }
.plan-sub { margin: 0.5rem 0 1.25rem; font-size: 0.875rem; opacity: 0.75; min-height: 2.6em; }
.plan ul { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0.5rem; flex: 1; align-content: start; }
.plan li { font-size: 0.9375rem; padding-left: 1.4rem; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.35rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.plan .btn { align-self: flex-start; }
.plan-note { margin: 1.75rem 0 0; font-size: 0.875rem; opacity: 0.65; max-width: 60ch; }

.plan-flag {
  position: absolute; top: -0.9rem; left: 1.5rem; margin: 0;
  background: var(--lime); color: var(--black);
  font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8125rem;
  padding: 0.25rem 0.75rem; border: 2px solid var(--black);
}
.plan-sub s { opacity: 0.7; }
.plan-sub strong { color: var(--lime); }
.plan-note a { text-decoration: underline; }

/* FAQ */
.faq-list { max-width: 52rem; border-top: 2px solid currentColor; }
.faq-item { border-bottom: 2px solid currentColor; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.125rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.75rem; line-height: 1; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.faq-item p { margin: 0 0 1.25rem; max-width: 60ch; opacity: 0.85; }
.faq-item a { text-decoration: underline; }

@media (max-width: 40rem) { .chat-launch { min-height: 2.75rem; padding: 0 1rem; font-size: 0.75rem; } }
