:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --surface-muted: #f0f1f3;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-deep: #515154;
  --border: rgba(29, 29, 31, 0.1);
  --border-strong: rgba(29, 29, 31, 0.16);
  --green: #08785c;
  --green-bright: #16a379;
  --mint: #e5f6ef;
  --blue: #1674dc;
  --blue-soft: #eaf3ff;
  --amber: #9a6500;
  --amber-soft: #fff4d9;
  --red: #c73535;
  --red-soft: #fff0ef;
  --dark: #111413;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.04);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(22, 116, 220, 0.35);
  outline-offset: 2px;
}

.shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(249, 250, 250, 0.99) 0%, rgba(249, 250, 250, 0.94) 34%, rgba(249, 250, 250, 0.32) 62%, rgba(249, 250, 250, 0.02) 100%),
    url("/assets/pace-runner-hero.png") 66% center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 180px;
  content: "";
  background: linear-gradient(180deg, rgba(245, 245, 247, 0), var(--bg));
  pointer-events: none;
}

.hero-app {
  min-height: 470px;
  background-position: 66% 42%;
}

.hero-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 116px;
}

.brand-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(250, 250, 252, 0.7);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.brand-mark {
  position: relative;
  width: 19px;
  height: 19px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--text);
}

.brand-mark::after {
  position: absolute;
  top: 4px;
  left: 7px;
  width: 4px;
  height: 11px;
  border-radius: 4px;
  content: "";
  background: #ffffff;
  transform: rotate(28deg);
}

.brand-meta {
  color: var(--muted-deep);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.01em;
}

.hero-tag {
  justify-self: end;
  color: var(--muted-deep);
  font-size: 12px;
  font-weight: 600;
}

.brand-row .btn {
  justify-self: end;
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
}

.hero-copy {
  margin-top: 108px;
  max-width: 660px;
  animation: hero-in 800ms var(--ease) both;
}

.hero-app .hero-copy {
  margin-top: 70px;
}

.hero-eyebrow {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(58px, 7.2vw, 106px);
  font-weight: 710;
  line-height: 0.91;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: var(--green);
}

.hero p {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted-deep);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 430;
  line-height: 1.45;
  letter-spacing: -0.018em;
}

.app-wrap,
.auth {
  position: relative;
  z-index: 3;
  width: min(1220px, calc(100% - 48px));
  margin: -92px auto 72px;
  align-items: start;
}

.app-wrap {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 22px;
}

.auth {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}

.panel,
.nav,
.card {
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-sm);
}

.panel,
.nav {
  border-radius: 30px;
}

.panel {
  padding: 32px;
}

.app-panel {
  min-width: 0;
}

.auth-panel {
  min-height: 500px;
  padding: 42px;
}

.feature-panel {
  min-height: 500px;
  overflow: hidden;
  padding: 42px;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 90% 0%, rgba(37, 186, 139, 0.38), transparent 38%),
    linear-gradient(145deg, #121715 0%, #0e3328 100%);
  box-shadow: var(--shadow-lg);
}

.feature-intro {
  max-width: 530px;
  margin-bottom: 62px;
}

.feature-panel .kicker {
  color: #76deb9;
}

.feature-panel h2 {
  margin-top: 12px;
  color: #ffffff;
  font-size: clamp(32px, 4vw, 48px);
}

.feature-stack {
  display: grid;
}

.feature-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.feature-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 620;
}

.feature-row .muted {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.feature-number {
  color: #76deb9;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.nav {
  position: sticky;
  top: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
}

.nav button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  color: var(--muted-deep);
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-size: 14px;
  font-weight: 590;
  text-align: left;
  transition: color 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease);
}

.nav button:hover {
  color: var(--text);
  background: rgba(29, 29, 31, 0.045);
}

.nav button.active {
  color: #ffffff;
  background: var(--text);
  box-shadow: 0 8px 18px rgba(29, 29, 31, 0.14);
}

.nav button:active {
  transform: scale(0.985);
}

.nav-arrow {
  color: currentColor;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.46;
}

.nav button.active .nav-arrow {
  opacity: 0.8;
}

.nav .meta {
  margin-top: 12px;
  padding: 18px 14px 7px;
  overflow-wrap: anywhere;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 480;
  line-height: 1.6;
}

.nav .meta .status {
  margin-top: 8px;
}

.view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 670;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -0.047em;
}

h3 {
  margin-bottom: 9px;
  color: var(--text);
  font-size: 18px;
  font-weight: 630;
  letter-spacing: -0.025em;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 22px;
  border-radius: 24px;
  transition: box-shadow 220ms var(--ease), transform 220ms var(--ease);
}

.grid.three > .card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.score-card {
  position: relative;
  display: flex;
  min-height: 180px;
  overflow: hidden;
  align-items: center;
  gap: 24px;
  padding: 30px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 10%, rgba(78, 220, 168, 0.32), transparent 36%),
    linear-gradient(140deg, #111614, #0c5c47);
  box-shadow: 0 20px 46px rgba(7, 73, 55, 0.17);
}

.score-card::after {
  position: absolute;
  top: -54px;
  right: -34px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.score-card.amber {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 207, 102, 0.28), transparent 36%),
    linear-gradient(140deg, #191713, #74500b);
  box-shadow: 0 20px 46px rgba(119, 79, 0, 0.14);
}

.score-card.red {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 128, 118, 0.3), transparent 36%),
    linear-gradient(140deg, #191313, #712825);
  box-shadow: 0 20px 46px rgba(112, 40, 37, 0.14);
}

.score {
  position: relative;
  z-index: 1;
  display: grid;
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.score strong {
  color: #ffffff;
  font-size: 37px;
  font-weight: 610;
  line-height: 1;
  letter-spacing: -0.05em;
}

.score-card > div:last-child {
  position: relative;
  z-index: 1;
}

.score-card h3 {
  color: #ffffff;
  font-size: 23px;
}

.score-card .muted {
  max-width: 580px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.muted {
  color: var(--muted);
  font-size: 14px;
  font-weight: 430;
  line-height: 1.55;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span,
.field > label,
.field label {
  color: var(--muted-deep);
  font-size: 13px;
  font-weight: 590;
}

input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 14px;
  outline: none;
  background: var(--surface-muted);
  font-size: 15px;
  font-weight: 430;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

input::placeholder,
textarea::placeholder {
  color: #98989d;
}

input:hover,
textarea:hover,
select:hover {
  background: #eaebed;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(8, 120, 92, 0.35);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(8, 120, 92, 0.09);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-switch {
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 590;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.btn:hover {
  border-color: rgba(29, 29, 31, 0.24);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  color: #ffffff;
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 8px 20px rgba(8, 120, 92, 0.16);
}

.btn.primary:hover {
  border-color: #096d56;
  background: #096d56;
}

.btn.warn {
  color: #ffffff;
  border-color: var(--red);
  background: var(--red);
}

.btn-glass {
  border-color: rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.stat {
  min-height: 154px;
}

.stat strong {
  display: block;
  margin: 18px 0 7px;
  color: var(--text);
  font-size: 31px;
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.045em;
}

.stat .muted {
  margin-bottom: 0;
}

.list {
  display: grid;
  gap: 10px;
}

.grid.two.agents-layout {
  grid-template-columns: minmax(190px, 236px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.agent-picker {
  align-content: start;
}

.agent-button.btn {
  min-height: 58px;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.15;
  text-align: left;
}

.agent-button span {
  font-size: 14px;
  font-weight: 650;
}

.agent-button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 480;
  line-height: 1.25;
}

.agent-button.primary small {
  color: rgba(255, 255, 255, 0.7);
}

.item {
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}

.item-title {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 14px;
  font-weight: 620;
}

.item-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 430;
  line-height: 1.48;
}

.status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.status.ok {
  color: #08684f;
  background: var(--mint);
}

.status.warn {
  color: var(--amber);
  background: var(--amber-soft);
}

.status.bad {
  color: var(--red);
  background: var(--red-soft);
}

.chat-box {
  display: grid;
  height: 390px;
  overflow: auto;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-muted);
  scrollbar-color: #c7c7cc transparent;
  scrollbar-width: thin;
}

.bubble {
  max-width: 82%;
  padding: 12px 15px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px 18px 18px 5px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.035);
  font-size: 14px;
  font-weight: 430;
  line-height: 1.52;
}

.bubble.user {
  justify-self: end;
  color: #ffffff;
  border-color: var(--green);
  border-radius: 18px 18px 5px 18px;
  background: var(--green);
}

.notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  color: #184a76;
  border: 1px solid rgba(22, 116, 220, 0.12);
  border-radius: 16px;
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.5;
}

.notice.error {
  color: var(--red);
  border-color: rgba(199, 53, 53, 0.13);
  background: var(--red-soft);
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 14px;
  align-items: center;
}

.range-row strong {
  color: var(--muted-deep);
  font-size: 13px;
  font-weight: 610;
  text-align: right;
}

input[type="range"] {
  height: 26px;
  min-height: 26px;
  padding: 0;
  accent-color: var(--green);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.upload-card {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 26px;
  border: 1px solid rgba(8, 120, 92, 0.12);
  border-radius: 26px;
  background: linear-gradient(135deg, #f8fffc 0%, #eaf7f2 100%);
  box-shadow: var(--shadow-sm);
}

.recording-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: 30px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(8, 120, 92, 0.12);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.recording-demo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--mint);
}

.recording-demo svg {
  display: block;
  width: 100%;
  height: auto;
}

.demo-pill {
  position: absolute;
  right: 13px;
  bottom: 13px;
  padding: 7px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(14, 62, 49, 0.86);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
}

.demo-runner {
  transform-origin: 212px 122px;
  animation: demo-runner-bob 720ms ease-in-out infinite alternate;
}

.demo-motion {
  animation: demo-motion-pulse 720ms ease-in-out infinite alternate;
}

.demo-frame {
  animation: demo-frame-pulse 1.6s ease-in-out infinite;
}

.recording-copy {
  padding: 8px 10px 8px 0;
}

.recording-copy h3 {
  margin: 9px 0 12px;
  font-size: 27px;
}

.recording-copy p {
  margin-bottom: 18px;
  color: var(--muted-deep);
  font-size: 14px;
  line-height: 1.58;
}

.guide-checks {
  display: grid;
  gap: 9px;
}

.guide-checks span {
  position: relative;
  padding-left: 23px;
  color: var(--muted-deep);
  font-size: 12px;
  font-weight: 560;
}

.guide-checks span::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  content: "✓";
  background: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.video-check-pass {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-top: 12px;
  padding: 0 10px;
  color: var(--green);
  border-radius: 999px;
  background: rgba(8, 120, 92, 0.1);
  font-size: 11px;
  font-weight: 650;
}

.video-check-error {
  display: grid;
  gap: 4px;
  padding: 17px 19px;
  color: var(--red);
  border: 1px solid rgba(199, 53, 53, 0.15);
  border-radius: 18px;
  background: var(--red-soft);
}

.video-check-error strong {
  font-size: 14px;
  font-weight: 680;
}

.video-check-error span {
  font-size: 12px;
  line-height: 1.55;
}

.upload-card h3 {
  margin-bottom: 7px;
  font-size: 21px;
}

.upload-card .muted {
  max-width: 620px;
  margin-bottom: 0;
}

.upload-file-name {
  display: inline-flex;
  max-width: 100%;
  margin-top: 12px;
  overflow: hidden;
  color: var(--green);
  font-size: 12px;
  font-weight: 610;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-btn {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
}

.file-btn input {
  position: absolute;
  inset: 0;
  min-height: 0;
  cursor: pointer;
  opacity: 0;
}

.file-btn.is-loading {
  min-width: 142px;
}

.spinner {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

.spinner-dark {
  width: 24px;
  height: 24px;
  border-color: rgba(8, 120, 92, 0.18);
  border-top-color: var(--green);
}

.analysis-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 22px;
  border: 1px solid rgba(8, 120, 92, 0.1);
  border-radius: 20px;
  background: rgba(229, 246, 239, 0.72);
}

.analysis-loading strong,
.analysis-loading span {
  display: block;
}

.analysis-loading strong {
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 640;
}

.analysis-loading span:not(.spinner) {
  color: var(--muted);
  font-size: 12px;
}

.form-review-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.75fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.form-video-wrap {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  background: #080a09;
}

.form-video-wrap video {
  display: block;
  width: 100%;
  max-height: 480px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #080a09;
}

.speed-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(12, 15, 14, 0.68);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.form-commentary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(44, 187, 143, 0.12), transparent 42%),
    var(--surface-soft);
}

.form-commentary h3 {
  margin: 11px 0 14px;
  font-size: 25px;
}

.form-commentary p {
  margin-bottom: 22px;
  color: var(--muted-deep);
  font-size: 14px;
  line-height: 1.62;
}

.video-tip {
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.45;
}

.analysis-card {
  padding: 22px;
}

.analysis-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.analysis-head h3 {
  margin: 5px 0 0;
  font-size: 24px;
}

.analysis-summary {
  padding: 7px 10px;
  color: var(--muted-deep);
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 11px;
  font-weight: 620;
  white-space: nowrap;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.analysis-item {
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 28px minmax(0, 1fr) 9px;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.analysis-item.is-warning {
  border-color: rgba(154, 101, 0, 0.18);
  background: #fffbf2;
}

.analysis-number {
  color: #9a9aa0;
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.04em;
}

.analysis-copy {
  min-width: 0;
}

.analysis-item .item-title {
  margin-bottom: 1px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-item .item-note {
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-state {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(22, 163, 121, 0.1);
}

.is-warning .analysis-state {
  background: #d99211;
  box-shadow: 0 0 0 3px rgba(217, 146, 17, 0.12);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 590px;
    background-position: 58% center;
  }

  .hero-app {
    min-height: 450px;
  }

  .hero-copy {
    max-width: 570px;
  }

  .hero h1 {
    font-size: clamp(54px, 9vw, 82px);
  }

  .auth {
    grid-template-columns: 1fr;
  }

  .feature-panel,
  .auth-panel {
    min-height: auto;
  }

  .feature-intro {
    margin-bottom: 40px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 560px;
    background:
      linear-gradient(90deg, rgba(249, 250, 250, 0.98) 0%, rgba(249, 250, 250, 0.85) 48%, rgba(249, 250, 250, 0.2) 100%),
      url("/assets/pace-runner-hero.png") 58% center / cover no-repeat;
  }

  .hero-app {
    min-height: 430px;
  }

  .hero-inner,
  .app-wrap,
  .auth {
    width: min(100% - 28px, 680px);
  }

  .brand-row {
    grid-template-columns: 1fr auto;
  }

  .brand-meta {
    display: none;
  }

  .hero-copy {
    margin-top: 86px;
  }

  .hero-app .hero-copy {
    margin-top: 58px;
  }

  .app-wrap {
    grid-template-columns: minmax(0, 1fr);
    margin-top: -72px;
  }

  .nav {
    position: sticky;
    z-index: 10;
    top: 8px;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 8px;
    border-radius: 20px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav button {
    width: auto;
    min-width: max-content;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 12px;
  }

  .nav-arrow,
  .nav .meta {
    display: none;
  }

  .grid.three {
    grid-template-columns: 1fr;
  }

  .grid.two.agents-layout {
    grid-template-columns: 1fr;
  }

  .agent-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recording-guide {
    grid-template-columns: 1fr;
  }

  .recording-copy {
    padding: 2px 4px 6px;
  }

  .form-review-card {
    grid-template-columns: 1fr;
  }

  .form-commentary {
    padding: 26px;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 525px;
    background:
      linear-gradient(180deg, rgba(249, 250, 250, 0.96) 0%, rgba(249, 250, 250, 0.78) 56%, rgba(249, 250, 250, 0.28) 100%),
      url("/assets/pace-runner-hero.png") 62% center / cover no-repeat;
  }

  .hero-app {
    min-height: 405px;
  }

  .hero-inner {
    padding-top: 12px;
  }

  .brand-row {
    min-height: 50px;
    padding: 0 14px;
    border-radius: 16px;
  }

  .hero-tag {
    display: none;
  }

  .hero-copy {
    margin-top: 70px;
  }

  .hero-app .hero-copy {
    margin-top: 48px;
  }

  .hero-eyebrow {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .hero h1 {
    font-size: clamp(47px, 14.5vw, 68px);
    line-height: 0.94;
  }

  .hero p {
    max-width: 390px;
    margin-top: 20px;
    font-size: 17px;
  }

  .app-wrap,
  .auth {
    width: calc(100% - 20px);
    margin-bottom: 40px;
  }

  .auth {
    margin-top: -64px;
  }

  .panel,
  .auth-panel,
  .feature-panel {
    padding: 24px;
    border-radius: 24px;
  }

  .app-wrap {
    gap: 12px;
  }

  .view-head {
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .view-head .btn {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  h2 {
    font-size: 32px;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .agent-picker {
    grid-template-columns: 1fr;
  }

  .score-card {
    min-height: 0;
    align-items: flex-start;
    padding: 24px;
  }

  .score {
    width: 82px;
    height: 82px;
  }

  .score strong {
    font-size: 29px;
  }

  .score-card h3 {
    font-size: 19px;
  }

  .card {
    padding: 19px;
    border-radius: 20px;
  }

  .upload-card {
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
  }

  .recording-guide {
    gap: 20px;
    padding: 16px;
    border-radius: 22px;
  }

  .recording-copy h3 {
    font-size: 23px;
  }

  .upload-card .btn {
    width: 100%;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .analysis-head {
    align-items: flex-start;
  }

  .row.item {
    align-items: flex-start;
  }

  .item .status {
    margin-top: 1px;
  }

  .feature-panel h2 {
    font-size: 34px;
  }
}

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

@keyframes demo-runner-bob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-4px);
  }
}

@keyframes demo-motion-pulse {
  from {
    opacity: 0.35;
    transform: translateX(9px);
  }
  to {
    opacity: 0.95;
    transform: translateX(0);
  }
}

@keyframes demo-frame-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
