:root {
  --bg: #f3efe5;
  --text: #10150f;
  --muted: rgba(16, 21, 15, 0.62);
  --line: rgba(16, 21, 15, 0.1);
  --accent: #b8ff52;
  --accent-dark: #17300c;
  --shadow: 0 30px 70px rgba(15, 20, 12, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(184, 255, 82, 0.24), transparent 30%),
    linear-gradient(160deg, #ebe4d5 0%, #f8f5ee 52%, #dfe6d6 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

.mobile-shell {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 24px 18px 42px;
}

.step-card {
  padding: 22px 18px;
  border-radius: 28px;
  background: rgba(255, 252, 245, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: rise 320ms ease;
}

.step-card + .step-card {
  margin-top: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(3.4rem, 14vw, 5rem);
}

h2 {
  font-size: clamp(2.8rem, 12vw, 4rem);
}

.lead,
.guide-box,
.status-row,
.runtime-note,
.calibration-status {
  line-height: 1.45;
}

.lead {
  margin: 16px 0 22px;
}

.session-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(16, 21, 15, 0.05);
  margin-bottom: 20px;
}

.session-pill span {
  font-size: 0.82rem;
  color: var(--muted);
}

.runtime-note,
.calibration-status {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.preview-card {
  position: relative;
  min-height: 62vh;
  margin-top: 14px;
  border-radius: 30px;
  overflow: hidden;
  background: #081109;
}

.preview-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.monitor-frame {
  position: absolute;
  inset: 12%;
  border-radius: 24px;
  border: 3px dashed rgba(184, 255, 82, 0.82);
}

.guide-box {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(7, 12, 8, 0.72);
  color: #f5f0e5;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 10px;
  margin-top: 14px;
}

.primary-button,
.ghost-button {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-dark);
  font-weight: 700;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.ghost-button {
  background: rgba(16, 21, 15, 0.06);
  color: var(--text);
}

.link-button {
  min-height: 56px;
}

.hidden {
  display: none;
}

@media (max-width: 460px) {
  .button-row {
    grid-template-columns: 1fr;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
