@import url('tokens.css');

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

:root {
  --brand-blue: #007aff;
  --cyan: var(--brand-blue);
  --green: #6ecf8a;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --start-mobile-ui-lift: 0px;
  --layout-max: 480px;
}

@media (max-width: 767px) {
  :root {
    /* 200% of 56px footer button — clears Safari bottom browser chrome */
    --start-mobile-ui-lift: 112px;
  }
}

@media (min-width: 768px) {
  :root {
    --layout-max: 720px;
  }

  .ob-top,
  .ob-content {
    padding-left: 40px;
    padding-right: 40px;
  }

  .ob-footer {
    padding-left: 40px;
    padding-right: 40px;
  }
}

.start-site .ob-flow {
  min-height: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .start-site .ob-top,
  .start-site .ob-headline,
  .start-site .ob-main-lead,
  .start-site .ob-main-body,
  .start-site .ob-footer,
  .start-site .ob-flow .ob-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .start-site .ob-intro {
    padding-top: 0;
  }
}

@media (min-width: 1200px) {
  :root {
    --layout-max: 960px;
  }
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

#app {
  min-height: 100%;
  padding-bottom: var(--safe-bottom);
}

.screen {
  max-width: var(--layout-max);
  margin: 0 auto;
  min-height: 100vh;
}

.logo-block {
  text-align: center;
  padding: 48px 24px 32px;
}

.logo-block .brand {
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-size: clamp(2rem, 10vw, 42px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--flame);
}

.logo-block .tagline {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--flame);
  color: var(--btn-on-flame);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

a.btn-primary,
a.btn-secondary {
  color: var(--btn-on-flame);
  text-decoration: none;
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 10px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--flame);
  color: var(--btn-on-flame);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  background: var(--flame);
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 32px 40px;
}

.form-block {
  padding: 0 24px 24px;
}

.form-block label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  margin-top: 16px;
}

.form-block input,
.form-block select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 16px;
}

.seg-row {
  display: flex;
  gap: 8px;
}

.seg-row button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
}

.seg-row button.active {
  border-color: var(--flame);
  background: var(--flame-dim);
  color: var(--flame);
}

.plan-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-header h1 {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.back-btn {
  color: var(--flame);
  font-size: 15px;
  font-weight: 600;
}

.summary-card {
  margin: 16px 20px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.summary-card h2 {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13px;
}

.summary-grid span:last-child {
  text-align: right;
  color: var(--green);
  font-weight: 700;
}

.fat-bar-wrap {
  margin: 0 20px 16px;
  padding: 14px 16px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.fat-bar {
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.fat-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.fat-bar-fill.over {
  background: var(--flame);
}

.fat-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.meal-card {
  margin: 0 20px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--flame);
  border-radius: 12px;
  overflow: hidden;
}

.meal-card-header {
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.meal-card-header .label {
  font-size: 18px;
  font-weight: 600;
  color: var(--cyan);
}

.meal-card-header .logged {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

.meal-card-header .meta {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}

.meal-card-header .expand {
  font-size: 11px;
  color: var(--flame);
  margin-top: 4px;
}

.meal-body {
  padding: 12px 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meal-card.meal-complete {
  border-left-color: var(--green);
}

.label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meal-check {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.meal-progress {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.cat-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #0d0d0d;
}

.cat-section.has-logged {
  border-color: rgba(255, 204, 0, 0.35);
}

.cat-section.fats-section {
  border-color: rgba(255, 204, 0, 0.25);
}

.cat-header {
  width: 100%;
  padding: 12px 14px;
  text-align: left;
}

.cat-header-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan);
  flex: 1;
}

.cat-header-servings {
  font-size: 13px;
  color: var(--muted);
}

.cat-chevron {
  font-size: 10px;
  color: var(--muted);
  margin-left: 4px;
}

.cat-header-logged {
  font-size: 13px;
  color: var(--flame);
  margin-top: 4px;
  line-height: 1.35;
}

.cat-header-hint {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

.fat-pts-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--flame);
}

.cat-body {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cat-tabs {
  display: flex;
  gap: 4px;
  margin: 10px 0 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 3px;
}

.cat-tabs button {
  flex: 1;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.cat-tabs button.active {
  background: rgba(94, 196, 232, 0.2);
  color: var(--text);
}

.food-search {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #000;
  font-size: 14px;
  margin-bottom: 6px;
}

.food-hint {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.top-picks-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--flame);
  margin: 6px 0 4px;
}

.food-divider {
  height: 1px;
  background: rgba(255, 204, 0, 0.2);
  margin: 6px 0;
}

.food-list {
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.food-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 4px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.food-row:last-child {
  border-bottom: none;
}

.food-row-plus {
  width: 22px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.food-row.logged .food-row-plus {
  color: var(--flame);
}

.food-row-name {
  flex: 1;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.food-row.logged .food-row-name {
  color: var(--flame);
}

.food-row-label {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  max-width: 45%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.food-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 4px;
  text-align: center;
}

.none-btn,
.remove-fat-btn {
  width: 100%;
  text-align: left;
  padding: 8px 4px;
  font-size: 13px;
  color: #ff6464;
}

.remove-fat-btn {
  color: rgba(255, 204, 0, 0.85);
}

.home-footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--muted);
}

.divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 8px 32px 16px;
}

.onboard-title {
  padding: 24px 24px 8px;
}

.onboard-title h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--flame);
}

.onboard-title p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.coach-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 40px);
  margin: 12px 20px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 204, 0, 0.12);
  border: 1px solid rgba(255, 204, 0, 0.3);
  text-align: left;
}

.coach-banner-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.coach-banner-text {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.coach-banner-chevron {
  color: var(--flame);
  font-size: 20px;
  font-weight: 700;
}

.coach-screen .plan-header {
  position: relative;
}

.coach-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.coach-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-height: 0;
}

.coach-carousel::-webkit-scrollbar {
  display: none;
}

.coach-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.coach-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  overflow-y: auto;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
}

.coach-text-card {
  margin: 0 16px 16px;
  padding: 20px;
  border-radius: 16px;
  background: #1f1f1f;
  border: 1px solid rgba(255, 204, 0, 0.25);
}

.coach-text-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--flame);
  margin-bottom: 10px;
}

.coach-body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}

.coach-body p + p {
  margin-top: 12px;
}

.coach-screenshot {
  display: block;
  width: calc(100% - 48px);
  margin: 0 auto 24px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.coach-footer {
  flex-shrink: 0;
  padding: 12px 20px 24px;
  padding-bottom: calc(24px + var(--safe-bottom));
}

.coach-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.coach-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a4a4a;
  cursor: pointer;
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.coach-dot.active {
  width: 10px;
  height: 10px;
  background: var(--flame);
}

.coach-swipe-hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.coach-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  padding: 40px;
}

.coach-empty-icon {
  font-size: 48px;
}

.grocery-screen {
  padding-bottom: 24px;
}

.grocery-header {
  text-align: center;
  padding: 12px 20px 8px;
}

.grocery-header-title {
  font-size: 15px;
  font-weight: 600;
}

.grocery-header-range {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.grocery-header-count {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.grocery-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 40px);
  margin: 12px 20px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 204, 0, 0.12);
  border: 1px solid rgba(255, 204, 0, 0.3);
  color: var(--flame);
  font-size: 15px;
  font-weight: 600;
}

.grocery-add-btn span {
  font-size: 18px;
  font-weight: 700;
}

.grocery-empty {
  text-align: center;
  padding: 32px 40px;
}

.grocery-empty h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.grocery-empty p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.grocery-section {
  margin: 12px 20px;
  border-radius: 14px;
  background: #121212;
  border: 1px solid var(--border);
  overflow: hidden;
}

.grocery-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.grocery-section-icon {
  font-size: 20px;
}

.grocery-section-label {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan);
}

.grocery-section-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--flame);
  background: rgba(255, 204, 0, 0.15);
  padding: 3px 8px;
  border-radius: 999px;
}

.grocery-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.grocery-row:last-child {
  border-bottom: none;
}

.grocery-row.checked {
  background: rgba(255,255,255,0.03);
}

.grocery-row.checked .grocery-row-name,
.grocery-row.checked .grocery-row-qty {
  color: var(--muted);
  text-decoration: line-through;
}

.grocery-check {
  font-size: 22px;
  color: var(--muted);
  width: 28px;
  flex-shrink: 0;
}

.grocery-row.checked .grocery-check {
  color: var(--cyan);
}

.grocery-row-body {
  flex: 1;
  min-width: 0;
}

.grocery-row-name {
  font-size: 16px;
  font-weight: 600;
}

.grocery-row-qty {
  font-size: 14px;
  color: var(--cyan);
  margin-top: 2px;
}

.grocery-remove {
  font-size: 22px;
  color: #666;
  padding: 4px;
  flex-shrink: 0;
}

.grocery-uncheck-all {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: 14px;
  color: var(--muted);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 100;
  display: flex;
  align-items: flex-end;
}

.sheet-panel {
  width: 100%;
  height: 85vh;
  max-height: 85vh;
  background: #0a0a0a;
  border-radius: 16px 16px 0 0;
  padding-bottom: var(--safe-bottom);
  display: flex;
  flex-direction: column;
}

.sheet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.sheet-header h2 {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
}

.grocery-add-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  scrollbar-width: none;
}

.grocery-add-tabs::-webkit-scrollbar {
  display: none;
}

.grocery-add-tabs button {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.grocery-add-tabs button.active {
  background: var(--flame);
  color: var(--btn-on-flame);
}

.sheet-panel .food-search {
  margin: 0 16px 8px;
  width: calc(100% - 32px);
}

.grocery-add-list {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 8px 16px;
  -webkit-overflow-scrolling: touch;
}

.grocery-add-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.grocery-add-row.on-list {
  opacity: 0.5;
}

.grocery-add-check {
  width: 20px;
  flex-shrink: 0;
  color: var(--muted);
}

.grocery-add-name {
  flex: 1;
  font-size: 15px;
}

.grocery-add-serving,
.grocery-add-tag {
  font-size: 12px;
  color: var(--muted);
}

/* Seminar onboarding */
.ob-flow {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: var(--layout-max);
  margin: 0 auto;
}

.ob-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
}

.ob-back,
.ob-back-spacer {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.ob-back {
  border-radius: 50%;
  background: #262626;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ob-progress {
  flex: 1;
  display: flex;
  gap: 3px;
}

.ob-progress span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #333;
}

.ob-progress span.filled {
  background: var(--cyan);
}

.ob-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 24px;
  -webkit-overflow-scrolling: touch;
}

.ob-footer {
  flex-shrink: 0;
  position: relative;
  padding: 16px 24px calc(16px + var(--safe-bottom));
  background: #000;
  border-top: 1px solid var(--border);
  width: 100%;
}

.ob-next {
  width: 100%;
  height: 56px;
  border-radius: 14px;
  background: var(--flame);
  color: var(--btn-on-flame);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ob-next.disabled,
.ob-next:disabled {
  background: #333;
  color: #666;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

.ob-welcome-line1,
.ob-brand-line1 {
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
}

.ob-welcome-line2,
.ob-brand-accent {
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--flame);
}

.ob-welcome {
  padding-top: 48px;
}

.ob-intro {
  max-width: 520px;
  margin: 0 auto;
  padding-top: 40px;
  text-align: center;
}

.ob-intro-headline {
  margin-bottom: 24px;
}

.ob-intro-body {
  font-size: 17px;
  line-height: 1.6;
  color: #b3b3b3;
  margin-bottom: 32px;
}

/* Testimony / quote cards — yellow top glow, left-aligned attribution */
.testimony-block {
  position: relative;
  margin-top: 20px;
  padding: 22px 20px 18px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(82, 72, 62, 0.55);
  text-align: left;
}

.testimony-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--yellow-rgb), 0.9) 20%, rgba(var(--yellow-rgb), 0.65) 50%, rgba(var(--yellow-rgb), 0.9) 80%, transparent);
  box-shadow: 0 0 14px rgba(var(--yellow-rgb), 0.45);
}

.testimony-text {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  line-height: 1.55;
  color: #ccc;
}

.testimony-name {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.3;
  color: var(--yellow);
}

.testimony-meta {
  margin-top: 2px;
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
  color: #888;
  letter-spacing: 0.02em;
}

.ob-intro .testimony-block {
  margin-top: 0;
}

.start-site .ob-flow .ob-main,
.start-site .ob-flow .ob-main-body {
  min-height: 0;
}

.start-site .ob-flow-step .ob-main-body,
.start-site .ob-flow-intro .ob-main-body {
  text-align: center;
}

@media (min-width: 768px) {
  .ob-intro {
    padding-top: 56px;
  }

  .start-site .ob-intro {
    padding-top: 0;
  }

  .ob-intro-headline .ob-welcome-line1,
  .ob-intro-headline .ob-welcome-line2 {
    font-size: clamp(40px, 6vw, 56px);
  }
}

.ob-welcome-headline {
  min-height: 120px;
}

.ob-welcome-body {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.ob-quote {
  margin-top: 28px;
  padding: 16px;
  border-radius: 10px;
  background: #141414;
  border: 1px solid #262626;
}

.ob-quote p {
  font-size: 16px;
  font-style: italic;
  color: #b3b3b3;
  line-height: 1.5;
}

.ob-quote-by {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
}

.ob-welcome-brand {
  padding-top: 64px;
}

.ob-brand-tag {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

.ob-brand-line1 {
  font-size: clamp(48px, 14vw, 72px);
}

.ob-brand-line2 {
  font-size: clamp(48px, 14vw, 72px);
  font-weight: 900;
  line-height: 1;
}

.ob-brand-amp {
  color: var(--cyan);
}

.ob-brand-sub {
  margin-top: 24px;
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

.ob-question {
  padding-top: 16px;
}

.start-site .ob-question,
.start-site .ob-confirm {
  max-width: none;
  margin: 0;
  padding-top: 0;
  width: 100%;
  text-align: center;
}

.start-site .ob-step-header {
  margin: 0;
  text-align: center;
}

.start-site .ob-step-headline {
  margin-bottom: 0;
}

.start-site .ob-info {
  text-align: left;
}

.start-site .ob-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.start-site .ob-step-prefix {
  font-size: clamp(32px, 9vw, 48px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #fff;
}

.start-site .ob-step-title {
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--flame);
  margin-top: 0;
}

.start-site .ob-step-sub {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: #b3b3b3;
}

.start-site .ob-step-sub-spacer {
  min-height: 3.2em;
}

.start-site .ob-field-label,
.start-site .ob-section-label {
  margin-top: 28px;
  color: #aaa;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.start-site .ob-next {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--flame);
  color: var(--btn-on-flame);
}

.start-site .ob-next.disabled,
.start-site .ob-next:disabled {
  background: #333;
  color: #666;
  pointer-events: none;
}

.ob-step-num {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #666;
  margin-bottom: 8px;
}

.ob-step-prefix {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.ob-step-title {
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 900;
  color: #fff;
  margin-top: 4px;
}

.ob-step-sub {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.ob-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1.5px solid #404040;
  background: var(--card);
  font-size: 16px;
}

.ob-input:-webkit-autofill,
.ob-input:-webkit-autofill:hover,
.ob-input:-webkit-autofill:focus,
.ob-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--card) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 99999s ease-out 0s;
}

.ob-input-lg {
  font-size: 22px;
  font-weight: 700;
}

.ob-input-birth {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.ob-input-birth.is-invalid {
  color: #fca5a5;
}

.ob-field-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #f87171;
  text-align: center;
}

.ob-range-readonly {
  pointer-events: none;
}

.ob-field-label,
.ob-section-label {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #bfbfbf;
}

.ob-seg {
  display: flex;
  gap: 0;
  border-radius: 10px;
  border: 1.5px solid #404040;
  overflow: hidden;
  background: var(--card);
}

.ob-seg button {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.ob-seg button.active {
  background: rgba(94, 196, 232, 0.25);
  color: #fff;
}

.ob-info {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #262626;
}

.ob-info-icon {
  font-size: 20px;
}

.ob-info p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.ob-big-value {
  text-align: center;
  font-size: 64px;
  font-weight: 900;
  color: var(--flame);
  margin-top: 20px;
}

.ob-big-age {
  font-size: 80px;
}

.ob-big-sub {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.ob-input-activity-hours.is-instruction {
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
}

.ob-input-activity-hours:not(.is-instruction) {
  font-style: normal;
  color: var(--text);
}

.ob-range {
  width: 100%;
  accent-color: var(--flame);
}

.ob-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}

.ob-weight-row,
.ob-height-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.ob-height-row {
  gap: 20px;
}

.ob-height-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ob-height-input {
  width: 80px;
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  color: var(--flame);
}

.ob-height-entry {
  gap: 16px;
}

.ob-height-entry .ob-height-input {
  width: 96px;
  letter-spacing: 0.06em;
}

.ob-height-entry .pd-height-readable,
.ob-height-entry .ob-unit.pd-height-readable {
  flex: 0 0 auto;
  text-align: right;
  font-size: 15px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.ob-weight-input {
  width: 120px;
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  color: var(--flame);
}

.ob-weight-input.is-instruction {
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.ob-weight-row .ob-weight-input {
  width: auto;
  flex: 1;
  min-width: 140px;
  max-width: 220px;
}

.ob-unit {
  font-size: 18px;
  font-weight: 700;
  color: #bfbfbf;
}

.ob-radio {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin-top: 10px;
  border-radius: 12px;
  border: 1.5px solid #333;
  background: var(--card);
  cursor: pointer;
}

.ob-radio.selected {
  border-color: var(--flame);
  background: var(--flame-dim);
}

.ob-radio input {
  margin-top: 4px;
  accent-color: var(--flame);
}

.ob-radio-label {
  font-size: 16px;
  font-weight: 600;
}

.ob-radio-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

.ob-fat-input {
  margin: 8px 0 12px 8px;
}

.ob-fat-label {
  font-size: 16px;
  font-weight: 600;
  color: #bfbfbf;
  margin-bottom: 8px;
}

.ob-exercise-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 8px;
}

.ob-hr-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #bfbfbf;
  margin-bottom: 8px;
}

.ob-hr-label-tight {
  margin-bottom: 4px;
}

.ob-input-activity-hours {
  margin-bottom: 8px;
}

.ob-activity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.ob-activity-row-label {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.ob-section-label-inline {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.3;
}

.ob-activity-row .ob-hr-label-tight {
  margin-top: 4px;
  margin-bottom: 0;
}

.ob-input-activity-hours-inline {
  width: 5.5ch;
  min-width: 56px;
  max-width: 72px;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  padding: 10px 6px;
}

.ob-slider-label {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #bfbfbf;
}

.ob-divider {
  height: 1px;
  background: #262626;
  margin: 20px 0;
}

.ob-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid #333;
  cursor: pointer;
}

.ob-check.selected {
  border-color: var(--flame);
  background: var(--flame-dim);
}

.ob-check input {
  accent-color: var(--flame);
}

.ob-time-input {
  margin-top: 12px;
  text-align: center;
  font-size: 24px;
}

.ob-wake-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.ob-wake-picker .ob-select {
  flex: 1;
  max-width: 88px;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
}

.ob-wake-picker .ob-select[data-wake-part="ampm"] {
  max-width: 72px;
  font-size: 16px;
}

.ob-wake-colon {
  font-size: 24px;
  font-weight: 700;
  color: var(--flame);
}

.ob-wake-display {
  text-align: center;
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.ob-reminder-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-top: 12px;
  border-radius: 12px;
  border: 1.5px solid #333;
  background: var(--card);
  text-align: left;
}

.ob-reminder-toggle.on {
  border-color: var(--flame);
  background: var(--flame-dim);
}

.ob-reminder-title {
  font-size: 16px;
  font-weight: 700;
}

.ob-reminder-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

.ob-toggle-pill {
  width: 50px;
  height: 30px;
  border-radius: 16px;
  background: #404040;
  position: relative;
  flex-shrink: 0;
}

.ob-reminder-toggle.on .ob-toggle-pill {
  background: var(--flame);
}

.ob-toggle-pill::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

.ob-reminder-toggle.on .ob-toggle-pill::after {
  transform: translateX(20px);
}

.ob-confirm {
  padding-top: 24px;
}

.ob-confirm-kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #888;
  margin-bottom: 8px;
}

.ob-confirm-rows {
  margin-top: 24px;
}

.ob-confirm-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #222;
  text-align: left;
}

.ob-confirm-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #bfbfbf;
}

.ob-confirm-sub {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.ob-confirm-value {
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  color: #fff;
}

.ob-edit {
  font-size: 12px;
  color: var(--flame);
}

.ob-ready-box {
  margin-top: 24px;
  padding: 18px;
  border-radius: 0 12px 12px 0;
  background: var(--flame-dim);
  border-left: 3px solid var(--flame);
}

.ob-ready-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--flame);
  margin-bottom: 8px;
}

.ob-ready-box p {
  font-size: 14px;
  line-height: 1.5;
  color: #ccc;
}

.ob-done {
  padding-top: 80px;
  text-align: center;
}

.ob-done-check {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  border: 3px solid var(--flame);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--flame);
}

.ob-done-body {
  margin-top: 24px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.ob-done-sub {
  margin-top: 12px;
  font-size: 15px;
  color: #bfbfbf;
  line-height: 1.45;
}

.home-program-day {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--flame);
  margin: -16px 0 8px;
}

.import-block {
  padding: 0 24px 32px;
}

.import-lead {
  font-size: 15px;
  color: #ccc;
  line-height: 1.55;
  margin-bottom: 20px;
}

.import-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.import-block input[type="file"] {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--card);
  font-size: 14px;
}

.import-divider {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 20px 0;
}

.import-paste {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  resize: vertical;
}

.import-error {
  background: rgba(255, 204, 0, 0.15);
  border: 1px solid var(--flame);
  color: var(--flame);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.import-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.import-note a {
  color: var(--cyan);
}
