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

:root {
  --hof-green: #122720;
  --hof-cream: #f5f2ed;
  --white: #ffffff;
  --text: #000000;
  --text-secondary: #4d4d4d;
  --border: #e1e1e1;
}

html, body {
  height: 100%;
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  background: var(--white);
  color: var(--text);
  overflow: hidden;
}

#app { height: 100vh; position: relative; }

/* Screens */
.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 32px 24px;
  text-align: center;
}
.screen.active { display: flex; }

/* Logo */
.logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hof-green);
  margin-bottom: 32px;
}

/* Typography */
h1 { font-size: 28px; font-weight: 500; margin-bottom: 16px; }
h2 { font-size: 22px; font-weight: 500; margin-bottom: 12px; }
h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
p  { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

.intro { font-size: 16px; color: var(--text); margin-bottom: 24px; }

/* Privacy box */
.privacy-box {
  background: var(--hof-cream);
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  margin-bottom: 32px;
  width: 100%;
  max-width: 400px;
}
.privacy-box ul { list-style: none; }
.privacy-box ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
}
.privacy-box ul li::before { content: "✓  "; color: var(--hof-green); font-weight: 600; }

/* Buttons */
.btn-primary {
  background: var(--hof-green);
  color: var(--white);
  border: none;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 56px;
  padding: 0 40px;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
}
.btn-secondary {
  background: transparent;
  color: var(--hof-green);
  border: 1px solid var(--hof-green);
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 56px;
  padding: 0 40px;
  cursor: pointer;
  flex: 1;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--hof-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Progress bar */
.progress-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
}
#progress-fill {
  height: 100%;
  background: var(--hof-green);
  transition: width 0.3s ease;
  width: 25%;
}

/* Camera */
#screen-capture {
  justify-content: flex-start;
  padding-top: 24px;
}
#shot-header { width: 100%; text-align: left; padding: 16px 0 12px; }
#shot-number { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-secondary); }
#camera-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3/4;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0;
}
#camera-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
#overlay-guide {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  background: url('/assets/overlay-front.svg') center/contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
#shot-instruction { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }

.btn-capture {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--hof-green);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.btn-capture::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--hof-green);
  border-radius: 50%;
}

/* Review */
#review-img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  margin: 16px 0;
}
.review-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}
.review-actions .btn-primary { flex: 1; }

/* Results */
#measurements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin: 20px 0;
}
.measurement-card {
  background: var(--hof-cream);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
}
.measurement-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.measurement-card .value {
  font-size: 22px;
  font-weight: 500;
  color: var(--hof-green);
}
.measurement-card .unit { font-size: 12px; color: var(--text-secondary); }
.measurement-card.low-confidence { border: 1px solid #e8a800; }

.results-note { font-size: 13px; margin-bottom: 20px; max-width: 340px; }
.done-mark {
  font-size: 14px;
  font-weight: 600;
  color: var(--hof-green);
  letter-spacing: 0.06em;
}
