/* =========================================================================
   MyCRS — Beta landing page
   Design: broadcast studio. Red/black/white from the logo, dial-style mono
   labels, an "ON AIR" tally light repurposed as a BETA indicator, and a
   live signal motif as the signature element.
   ========================================================================= */

:root {
  --ink:         #141414;
  --ink-soft:    #4a4546;
  --ink-mute:    #8a8385;
  --signal:      #e02028;   /* sampled from the logo */
  --signal-deep: #b0151b;
  --signal-tint: #fceaea;
  --paper:       #ffffff;
  --mist:        #f5f4f2;
  --line:        #e7e4e1;
  --studio:      #141010;
  --studio-2:    #1d1718;

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-dial:    "Space Mono", ui-monospace, "Courier New", monospace;

  --wrap: 1140px;
  --r: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.dial {
  font-family: var(--font-dial);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--signal);
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600; font-size: 1rem;
  padding: 0.85em 1.45em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--signal); color: #fff; }
.btn--primary:hover { background: var(--signal-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #fff; transform: translateY(-1px); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px;
}
.site-header__logo img { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 500; color: var(--ink-soft);
  font-size: 0.95rem;
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav .nav-links { display: flex; gap: 28px; }

/* =========================================================================
   Tally light — the signature "BETA" indicator
   ========================================================================= */
.tally {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-dial); font-size: 0.74rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5em 0.95em 0.5em 0.75em;
  border: 1.5px solid var(--signal);
  border-radius: 999px; color: var(--signal);
  background: var(--signal-tint);
}
.tally__lamp {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(224,32,40,0.55);
  animation: tally-pulse 2.2s infinite;
}
@keyframes tally-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,32,40,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(224,32,40,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,32,40,0); }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero { padding-block: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero__eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__eyebrow .dial { color: var(--ink-mute); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hero h1 em { font-style: normal; color: var(--signal); }
.hero__sub {
  font-size: 1.18rem; color: var(--ink-soft);
  max-width: 33ch; margin: 0 0 30px;
}

/* Inline waitlist form */
.waitlist {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px;
  max-width: 560px;
}
.waitlist input {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.85em 1em; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); width: 100%;
}
.waitlist input:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: transparent; }
.waitlist .btn { white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin: 14px 2px 0; font-size: 0.9rem; color: var(--ink-mute); }
.form-msg { margin: 12px 2px 0; font-size: 0.96rem; font-weight: 500; min-height: 1.2em; }
.form-msg.is-ok { color: var(--signal-deep); }
.form-msg.is-err { color: #9a1b1b; }

.hero__trust { margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; }
.hero__trust span { font-size: 0.86rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.hero__trust span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }

/* Signal motif (signature) */
.signal {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 440px;
  margin-inline: auto; display: grid; place-items: center;
}
.signal__rings { position: absolute; inset: 0; }
.signal__ring {
  position: absolute; inset: 0; margin: auto; width: 100%; height: 100%;
  border: 2px solid var(--signal); border-radius: 50%;
  opacity: 0; transform: scale(0.3);
  animation: broadcast 4s ease-out infinite;
}
.signal__ring:nth-child(2) { animation-delay: 1s; }
.signal__ring:nth-child(3) { animation-delay: 2s; }
.signal__ring:nth-child(4) { animation-delay: 3s; }
@keyframes broadcast {
  0%   { opacity: 0;   transform: scale(0.28); }
  18%  { opacity: 0.55; }
  100% { opacity: 0;   transform: scale(1); }
}
.signal__core {
  position: relative; z-index: 2;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center;
  box-shadow: 0 24px 60px -22px rgba(224,32,40,0.5);
}
.signal__core svg { width: 46%; height: auto; }
.eq {
  display: flex; align-items: flex-end; gap: 5px; height: 30%;
  position: absolute; bottom: 20%; z-index: 3;
}
.eq span {
  width: 6px; background: var(--signal); border-radius: 3px;
  animation: eq 1.1s ease-in-out infinite;
}
.eq span:nth-child(1){ animation-delay: 0s; }
.eq span:nth-child(2){ animation-delay: .15s; }
.eq span:nth-child(3){ animation-delay: .3s; }
.eq span:nth-child(4){ animation-delay: .45s; }
.eq span:nth-child(5){ animation-delay: .6s; }
@keyframes eq { 0%,100% { height: 22%; } 50% { height: 100%; } }

/* =========================================================================
   Pain strip
   ========================================================================= */
.pain { background: var(--ink); color: #fff; padding-block: clamp(40px, 6vw, 64px); }
.pain__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.pain h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.1; margin: 0; letter-spacing: -0.01em;
}
.pain h2 em { font-style: normal; color: var(--signal); }
.pain p { margin: 0; color: #cfc9ca; max-width: 52ch; }
.pain__num { font-family: var(--font-dial); color: var(--signal); font-size: 0.78rem; letter-spacing: 0.2em; }

/* =========================================================================
   Section scaffolding
   ========================================================================= */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--mist { background: var(--mist); }
.section__head { max-width: 64ch; margin-bottom: 48px; }
.section__head .dial { display: block; margin-bottom: 14px; }
.section__head h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.06; margin: 0 0 16px;
}
.section__head p { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }

/* Feature grid */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(20,16,16,0.4); border-color: #d8d3d0; }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--signal-tint); color: var(--signal); margin-bottom: 18px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* =========================================================================
   Compliance — dark "studio" band (the differentiator)
   ========================================================================= */
.studio { background: var(--studio); color: #fff; padding-block: clamp(64px, 10vw, 120px); position: relative; overflow: hidden; }
.studio::before {
  content: ""; position: absolute; right: -10%; top: -30%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,32,40,0.22), transparent 65%);
}
.studio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; }
.studio .dial { color: var(--signal); }
.studio h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.08; margin: 14px 0 18px;
}
.studio h2 em { font-style: normal; color: var(--signal); }
.studio > .studio__grid p { color: #cfc9ca; font-size: 1.08rem; margin: 0 0 16px; }

.codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.codes li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 16px 18px; background: var(--studio-2); border: 1px solid #2c2425; border-radius: 12px;
}
.codes .code-tag {
  font-family: var(--font-dial); font-size: 0.7rem; letter-spacing: 0.12em;
  color: var(--signal); border: 1px solid var(--signal); border-radius: 6px;
  padding: 4px 7px; white-space: nowrap; align-self: start;
}
.codes strong { display: block; font-weight: 600; font-size: 0.98rem; }
.codes span { color: #b6afb0; font-size: 0.9rem; }
.studio__note { margin-top: 22px; font-size: 0.84rem; color: #8d8788; max-width: 50ch; }

/* =========================================================================
   Benefits / why
   ========================================================================= */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.why__item .dial { color: var(--signal); }
.why__item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 12px 0 10px; letter-spacing: -0.01em; }
.why__item p { margin: 0; color: var(--ink-soft); }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta { background: var(--signal); color: #fff; padding-block: clamp(56px, 8vw, 92px); text-align: center; }
.cta .tally { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.5); color: #fff; }
.cta .tally__lamp { background: #fff; animation: tally-pulse-light 2.2s infinite; }
@keyframes tally-pulse-light {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.cta h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.04; margin: 22px auto 14px; max-width: 18ch;
}
.cta p { margin: 0 auto 30px; max-width: 46ch; color: rgba(255,255,255,0.92); font-size: 1.12rem; }
.cta .waitlist { margin-inline: auto; }
.cta .waitlist input { border-color: transparent; }
.cta .waitlist input:focus { outline-color: #fff; }
.cta .btn--light { color: var(--signal-deep); font-weight: 700; }
.cta .form-msg.is-ok { color: #fff; }
.cta .form-msg.is-err { color: #ffe2e2; }
.cta .form-note { color: rgba(255,255,255,0.82); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq__list { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 4px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--signal); font-size: 1.5rem; line-height: 1; font-family: var(--font-body); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 4px 20px; color: var(--ink-soft); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--ink); color: #cfc9ca; padding-block: 48px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer img { height: 34px; }
.site-footer p { margin: 0; font-size: 0.88rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .signal { order: -1; max-width: 320px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .studio__grid { grid-template-columns: 1fr; gap: 36px; }
  .why { grid-template-columns: 1fr; gap: 28px; }
  .pain__inner { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 620px) {
  .site-nav .nav-links { display: none; }
  .waitlist { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero__sub { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .signal__ring, .eq span, .tally__lamp { animation: none; }
  html { scroll-behavior: auto; }
}
