/* ============================================================
   Coexa Layouts, Direction 3, "Daylight"
   A bright, precise white canvas carrying Coexa's real brand mark
   and purple-to-pink gradient. Same approved recipe as the Coexa
   Studios booking page (coexa-studios/site/css/d6.css): white
   canvas, near black ink, Space Grotesk display + Inter body +
   IBM Plex Mono meta labels, small radii, hairline borders, tiny
   crosshair "plus mark" registration details at card corners,
   solid black buttons that turn into the brand gradient on hover.
   Hex values, fonts and component ideas below are carried over
   from that approved file. Class names are new since this is its
   own page and composition (product marketing page, not a quiz
   or booking flow).
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Tokens (Daylight recipe) ---------- */
:root {
  --bg: #FFFFFF;
  --ink: #0A0A0C;
  --dim: rgba(10,10,12,.62);
  --faint: rgba(10,10,12,.42);
  --line: rgba(10,10,12,.18);
  --hair: rgba(10,10,12,.1);
  --a: #8B5CF6;
  --b: #FF6FA8;
  --pink: #C81B67;
  --good: #1BA672;
  --grad: linear-gradient(120deg, var(--a), var(--b));

  --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --maxw: 1180px;
  --radius-card: 4px;
  --radius-device: 26px;
  --radius-btn: 3px;
  --shadow-card: 0 1px 2px rgba(10,10,12,.04), 0 24px 48px -28px rgba(10,10,12,.18);
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--a);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter);
}
.wrap.divider { border-top: 1px solid var(--hair); }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.accent-bar {
  width: 2.25rem;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  margin-bottom: .9rem;
}
.h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
  margin-top: .6rem;
}
.section-sub {
  margin-top: .9rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--dim);
  max-width: 36em;
}
.section-head { max-width: 42em; margin-bottom: clamp(2.4rem, 5vw, 3.4rem); }
.memory .section-head { margin-bottom: 0; }

/* ---------- Header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem var(--gutter);
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand .mark { width: 1.75rem; height: 1.75rem; }
.brand .mark svg { width: 100%; height: 100%; }
.wordmark {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
}
.top__meta {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--faint);
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(4.5rem, 10vw, 7.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  letter-spacing: -.04em;
  line-height: 1.02;
  max-width: 13em;
  text-wrap: balance;
  margin-top: 1.1rem;
}
.h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--dim);
  max-width: 38em;
}
.hero__stats { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--dim);
}
.chip b { color: var(--ink); font-weight: 700; }

/* ---------- Device / chat preview ---------- */
.device-row { display: flex; justify-content: center; }
.device {
  position: relative;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-device);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}
.x { position: absolute; width: 11px; height: 11px; pointer-events: none; }
.x::before, .x::after { content: ""; position: absolute; background: var(--line); }
.x::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.x::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.x1 { top: 10px; left: 10px; }
.x2 { top: 10px; right: 10px; }
.x3 { bottom: 10px; left: 10px; }
.x4 { bottom: 10px; right: 10px; }

.device__head {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--hair);
}
.device__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.device__avatar svg { width: 1.05rem; height: 1.05rem; }
.device__who { font-family: var(--font); font-weight: 700; font-size: .88rem; }
.device__status {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .15rem;
}
.dot--live { width: 6px; height: 6px; border-radius: 50%; background: var(--good); flex-shrink: 0; }

.chat { display: flex; flex-direction: column; gap: .55rem; }
.bubble {
  max-width: 84%;
  padding: .6rem .95rem;
  font-size: .92rem;
  line-height: 1.42;
  border-radius: 14px;
}
.bubble.prospect {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.bubble.coexa {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.pillar { background: #fff; padding: clamp(1.6rem, 3vw, 2.2rem); }
.pillar__num { font-family: var(--mono); font-size: .78rem; color: var(--faint); margin-bottom: 1.5rem; }
.pillar__name { font-family: var(--font); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: .5rem; }
.pillar__desc { font-size: .92rem; line-height: 1.5; color: var(--dim); }

/* ---------- Memory / qualification ---------- */
.memory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.mcard {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.mrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--hair);
}
.mrow:last-child { border-bottom: 0; }
.mkey {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--faint);
  text-transform: uppercase;
  white-space: nowrap;
}
.mval { font-family: var(--body); font-size: .95rem; font-weight: 500; color: var(--ink); text-align: right; }
.mval.accent { color: var(--b); font-weight: 700; }
.pill--good {
  display: inline-flex;
  padding: .2rem .6rem;
  border: 1px solid var(--good);
  border-radius: 999px;
  color: var(--good);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
}

/* ---------- Performance stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.stat { background: #fff; padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .4rem; }
.stat--hero { grid-column: span 2; }
.stat__num { font-family: var(--font); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.02em; color: var(--ink); }
.stat__label { font-size: .85rem; color: var(--dim); }
.stat__sub { font-family: var(--mono); font-size: .74rem; color: var(--faint); }

/* ---------- Conversation funnel ---------- */
.funnel-head { margin-top: clamp(3rem, 6vw, 4rem); margin-bottom: 1.4rem; }
.funnel {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.funnel__stage { display: flex; flex-direction: column; gap: .35rem; }
.funnel__num { font-family: var(--font); font-weight: 700; font-size: clamp(1.15rem, 2.1vw, 1.6rem); letter-spacing: -.02em; }
.funnel__label { font-family: var(--mono); font-size: .68rem; letter-spacing: .03em; text-transform: uppercase; color: var(--faint); line-height: 1.3; }

/* ---------- Closing ---------- */
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.2rem;
  padding-top: clamp(4rem, 9vw, 6rem);
  padding-bottom: 8rem;
}
.close-line {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  letter-spacing: -.025em;
  line-height: 1.22;
  max-width: 19em;
  text-wrap: balance;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius-btn);
  padding: 1rem 1.9rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  transition: background .25s ease;
}
.cta:hover { background: var(--grad); }
.cta span { transition: transform .3s ease; }
.cta:hover span { transform: translateX(6px); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .memory { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .top { padding: 1.1rem 1.25rem; }
  .wrap { padding-left: 1.25rem; padding-right: 1.25rem; }
  .pillars { grid-template-columns: 1fr; }
  .device { padding: 1.15rem; border-radius: 20px; }
  .hero__stats { gap: .6rem; }
}
@media (max-width: 480px) {
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
}
