/* Movira early access. Brand gradient: #00D4FF -> #00FF88 -> #FF3D8F. */

:root {
  --bg: #f1f6fa;
  --surface: #ffffff;
  --text: #0c1a2b;
  --muted: #475a6b;
  --line: #cddae5;
  --blue: #00d4ff;
  --green: #00ff88;
  --pink: #ff3d8f;
  --ink-blue: #006a85;
  --ink-pink: #b8165b;
  --ink-green: #00703f;
  --focus: #006a85;
  --error: #b3123f;
  --error-bg: #fde8ee;
  --ok-bg: #e3f8ee;
  --phone: #0c1a2b;
  --grad: linear-gradient(100deg, var(--blue), var(--green) 50%, var(--pink));
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1a2b;
    --surface: #13263b;
    --text: #e9f2f8;
    --muted: #a3b6c6;
    --line: #26425c;
    --ink-blue: #00d4ff;
    --ink-pink: #ff6fa9;
    --ink-green: #00ff88;
    --focus: #00ff88;
    --error: #ff8fb3;
    --error-bg: #3a1b2c;
    --ok-bg: #0f3a2c;
    --phone: #050d17;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1a2b;
  --surface: #13263b;
  --text: #e9f2f8;
  --muted: #a3b6c6;
  --line: #26425c;
  --ink-blue: #00d4ff;
  --ink-pink: #ff6fa9;
  --ink-green: #00ff88;
  --focus: #00ff88;
  --error: #ff8fb3;
  --error-bg: #3a1b2c;
  --ok-bg: #0f3a2c;
  --phone: #050d17;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: var(--ink-blue); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* Header */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
}
.brand-mark { width: 28px; height: 28px; }
.top-cta {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--pink);
  padding-bottom: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #04121f;
  background: var(--grad);
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 0 transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px -8px rgba(255, 61, 143, 0.6); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.text-link { font-weight: 700; color: var(--text); text-underline-offset: 4px; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 25%, transparent);
  flex: none;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.lede {
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 34em;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* The cut diagram: long source strip, three picks, one vertical clip */
.cut {
  margin: 0;
  position: relative;
  display: grid;
  justify-items: center;
}
.source {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 16px;
  position: relative;
  z-index: 1;
}
.source-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.track {
  position: relative;
  height: 40px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  overflow: hidden;
}
.wave {
  position: absolute;
  inset: 8px 6px;
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--text) 30%, transparent) 0 2px, transparent 2px 5px);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 11px, rgba(0,0,0,.45) 11px 17px, #000 17px 23px, rgba(0,0,0,.6) 23px 31px);
  mask-image: repeating-linear-gradient(90deg, #000 0 11px, rgba(0,0,0,.45) 11px 17px, #000 17px 23px, rgba(0,0,0,.6) 23px 31px);
  opacity: 0.8;
}
.pick {
  position: absolute;
  top: 4px; bottom: 4px;
  border-radius: 6px;
  border: 2px solid;
}
.pick-a { left: 12%; width: 9%; border-color: var(--blue); background: color-mix(in srgb, var(--blue) 30%, transparent); }
.pick-b { left: 47%; width: 11%; border-color: var(--green); background: color-mix(in srgb, var(--green) 30%, transparent); }
.pick-c { left: 78%; width: 8%; border-color: var(--pink); background: color-mix(in srgb, var(--pink) 34%, transparent); }

.phone {
  margin-top: 22px;
  width: min(250px, 66%);
  aspect-ratio: 9 / 16;
  background: var(--phone);
  border-radius: 30px;
  padding: 9px;
  box-shadow: 0 30px 60px -30px rgba(12, 26, 43, 0.55);
  position: relative;
}
.phone::before {
  /* the link from the green pick to the clip */
  content: "";
  position: absolute;
  left: 50%;
  top: -23px;
  width: 2px;
  height: 23px;
  background: var(--green);
  transform: translateX(-50%);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(0, 212, 255, 0.35), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(255, 61, 143, 0.35), transparent 60%),
    #102338;
}
.speaker {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 78%;
  height: 72%;
  transform: translateX(-50%);
}
.speaker .head {
  position: absolute;
  left: 50%; top: 4%;
  width: 40%; aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  background: linear-gradient(160deg, #2c5274, #1b3753);
}
.speaker .body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56%;
  border-radius: 48% 48% 0 0 / 40% 40% 0 0;
  background: linear-gradient(170deg, #24486a, #162f48);
}
.caption {
  position: absolute;
  left: 8%; right: 8%;
  bottom: 22%;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}
.w {
  display: inline-block;
  padding: 0 0.12em;
  border-radius: 0.2em;
  animation: say 3.5s steps(1, end) infinite;
}
.w1 { animation-delay: 0s; }
.w2 { animation-delay: 0.5s; }
.w3 { animation-delay: 1s; }
.w4 { animation-delay: 1.5s; }
.w5 { animation-delay: 2s; }
.w6 { animation-delay: 2.5s; }
.w7 { animation-delay: 3s; }
@keyframes say {
  0% { background: var(--green); color: #04121f; text-shadow: none; }
  14.3% { background: transparent; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55); }
}
.clip-bar {
  position: absolute;
  left: 10%; right: 10%; bottom: 7%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.clip-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad);
  transform-origin: left;
  animation: play 3.5s linear infinite;
}
@keyframes play { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.cut figcaption {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  max-width: 30em;
  font-style: italic;
}

/* Sections */
.how, .who, .join, .faq {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}
.how { border-top: 1px solid var(--line); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: none;
}
.steps li { position: relative; padding-top: 72px; }
.steps li::before {
  /* the sequence line running through the numbers */
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  right: -32px;
  height: 2px;
  background: var(--line);
}
.steps li:last-child::before { right: 0; }
.step-n {
  position: absolute;
  top: 0;
  left: 0;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--bg);
  border: 2px solid var(--text);
  z-index: 1;
}
.steps li:nth-child(1) .step-n { border-color: var(--blue); }
.steps li:nth-child(2) .step-n { border-color: var(--green); }
.steps li:nth-child(3) .step-n { border-color: var(--pink); }
.steps li:nth-child(4) .step-n { background: var(--grad); border-color: transparent; color: #04121f; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }

.who { padding-top: 0; }
.who-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}
.who-list > div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 16px;
}
.who-list dt { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.who-list dd { margin: 0; color: var(--muted); }

/* Join */
.join {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  position: relative;
}
.join::before {
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter); top: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--grad);
}
.join-intro p { color: var(--muted); max-width: 30em; }
.join-intro p + p { margin-top: 12px; }
.fine { font-size: 0.9375rem; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 36px);
  display: grid;
  gap: 20px;
}
.field { display: grid; gap: 6px; }
label { font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="url"], select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  min-height: 48px;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input:focus-visible, select:focus-visible { border-color: var(--focus); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: 0.875rem; color: var(--muted); }
.field-err { font-size: 0.9375rem; color: var(--error); font-weight: 700; }
.check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink-green); }
.check label { font-weight: 400; }
.btn-submit { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status:empty { display: none; }
.form-status {
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
}
.form-status.is-ok { background: var(--ok-bg); }
.form-status.is-err { background: var(--error-bg); color: var(--error); }
.form-status:focus { outline: none; }

/* FAQ */
.faq { max-width: 860px; margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1875rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink-pink);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 40em; }

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .cut { max-width: 440px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .steps li:nth-child(2)::before { right: 0; }
  .who-list { grid-template-columns: minmax(0, 1fr); }
  .join { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { padding: 0 0 32px 72px; min-height: 54px; }
  .steps li::before { top: 54px; bottom: 0; left: 26px; right: auto; width: 2px; height: auto; }
  .steps li:last-child::before { display: none; }
  .who-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .top-cta { font-size: 0.9375rem; }
  .btn-submit { justify-self: stretch; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .w3 { background: var(--green); color: #04121f; text-shadow: none; }
  .clip-bar span { transform: scaleX(0.45); }
}
