:root {
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #0c1222;
  --muted: #56607a;
  --blue: #0b5cff;
  --blue-pressed: #0648cb;
  --shadow: 0 16px 40px rgba(12, 18, 34, 0.12);
  --shadow-soft: 0 10px 24px rgba(12, 18, 34, 0.08);
  --radius: 22px;
  --radius-sm: 16px;
  --ring: 0 0 0 4px rgba(11, 92, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1400px 700px at 20% -10%, #e6efff 0%, rgba(230, 239, 255, 0) 55%),
    radial-gradient(1200px 700px at 100% 10%, #e8fff3 0%, rgba(232, 255, 243, 0) 55%),
    var(--bg);
  color: var(--text);
}

.bg-orb {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
}

.bg-orb--1 {
  width: 320px;
  height: 320px;
  left: -110px;
  top: 18vh;
  background: radial-gradient(circle at 30% 30%, rgba(11, 92, 255, 0.55), rgba(11, 92, 255, 0));
}

.bg-orb--2 {
  width: 360px;
  height: 360px;
  right: -150px;
  bottom: 10vh;
  background: radial-gradient(circle at 50% 40%, rgba(41, 205, 131, 0.45), rgba(41, 205, 131, 0));
}

.app-shell {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  max-width: 480px;
  margin: 0 auto;
}

.app-header {
  display: grid;
  gap: 14px;
  align-content: start;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  width: fit-content;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 10px;
  background-image: url("./logo.png"), linear-gradient(135deg, var(--blue), #33d0ff);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  box-shadow: 0 10px 22px rgba(11, 92, 255, 0.18);
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.06);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), #33d0ff);
  border-radius: 999px;
  transition: width 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-main {
  display: grid;
  align-content: stretch;
  padding: 16px 0;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 16px;
  height: 100%;
  min-height: 560px;
  position: relative;
  overflow: hidden;
}

.view-wrap {
  display: grid;
  gap: 16px;
  animation: enter 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.view-wrap.is-leaving {
  animation: leave 220ms cubic-bezier(0.4, 0.2, 1, 1);
}

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

@keyframes leave {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.hero {
  display: grid;
  gap: 14px;
}

.hero-cover-wrap {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(12, 18, 34, 0.03);
  box-shadow: 0 14px 30px rgba(12, 18, 34, 0.08);
}

.hero-cover {
  width: 100%;
  height: auto;
  display: block;
}

.hero-head {
  display: grid;
  gap: 10px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(11, 92, 255, 0.12);
  color: var(--blue);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.hero-chip--soft {
  background: rgba(12, 18, 34, 0.05);
  color: rgba(12, 18, 34, 0.7);
}

.hero-top {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}

.hero-ill {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 30%, rgba(11, 92, 255, 0.18), rgba(11, 92, 255, 0)),
    radial-gradient(circle at 70% 70%, rgba(41, 205, 131, 0.18), rgba(41, 205, 131, 0)),
    rgba(11, 92, 255, 0.06);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(12, 18, 34, 0.08);
}

.title {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.benefits {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.benefit {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  background: rgba(12, 18, 34, 0.03);
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(41, 205, 131, 0.14);
  display: grid;
  place-items: center;
}

.benefit span {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trust-row {
  display: grid;
  grid-template-columns: 10px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(12, 18, 34, 0.03);
}

.trust-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(41, 205, 131, 0.65);
  box-shadow: 0 10px 18px rgba(41, 205, 131, 0.25);
}

.btn {
  border: 0;
  border-radius: 18px;
  padding: 16px 16px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
  user-select: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring), var(--shadow-soft);
}

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

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #33d0ff);
  color: white;
  box-shadow: 0 16px 26px rgba(11, 92, 255, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.02);
}

.btn-primary:active {
  background: linear-gradient(135deg, var(--blue-pressed), #25bfe9);
}

.btn-ghost {
  background: rgba(12, 18, 34, 0.04);
  color: var(--text);
}

.btn-row {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.q-top {
  display: grid;
  gap: 8px;
}

.q-kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted);
  font-size: 12px;
}

.q-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.option {
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(12, 18, 34, 0.08);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 20px rgba(12, 18, 34, 0.06);
}

.option:hover {
  border-color: rgba(11, 92, 255, 0.22);
}

.option:active {
  border-color: rgba(11, 92, 255, 0.4);
}

.option-sub {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}

.insight {
  display: grid;
  gap: 10px;
  padding: 6px 0;
}

.field {
  display: grid;
  gap: 10px;
  padding: 6px 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(12, 18, 34, 0.08);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 20px rgba(12, 18, 34, 0.06);
}

.field-row input {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  width: 100%;
}

.field-row input::placeholder {
  color: rgba(86, 96, 122, 0.7);
  font-weight: 700;
}

.field-unit {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.05);
  color: rgba(12, 18, 34, 0.7);
  font-weight: 800;
  font-size: 12px;
}

.analyze {
  display: grid;
  gap: 12px;
  padding: 6px 0;
}

.analyze-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.06);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.analyze-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(41, 205, 131, 1), rgba(11, 92, 255, 1));
  border-radius: 999px;
  transition: width 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.analyze-list {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.analyze-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(12, 18, 34, 0.03);
  color: rgba(12, 18, 34, 0.72);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.analyze-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.18);
}

.analyze-row.is-active {
  background: rgba(11, 92, 255, 0.08);
  color: var(--blue);
}

.analyze-row.is-active .analyze-dot {
  background: rgba(11, 92, 255, 0.75);
  box-shadow: 0 10px 18px rgba(11, 92, 255, 0.22);
}

.pref-grid {
  display: grid;
  gap: 12px;
}

.pref-group {
  border-radius: var(--radius-sm);
  background: rgba(12, 18, 34, 0.03);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.pref-title {
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(12, 18, 34, 0.06);
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.check span {
  color: rgba(12, 18, 34, 0.78);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.plan-grid {
  display: grid;
  gap: 12px;
}

.day-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(12, 18, 34, 0.06);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.day-title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.day-meal {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(12, 18, 34, 0.03);
}

.day-k {
  color: rgba(12, 18, 34, 0.7);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.day-v {
  color: rgba(12, 18, 34, 0.75);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.result-grid {
  display: grid;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(11, 92, 255, 0.08);
  color: var(--blue);
  font-weight: 700;
  width: fit-content;
}

.result-card {
  border-radius: var(--radius-sm);
  background: rgba(12, 18, 34, 0.03);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.result-card h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.result-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.lock {
  border-radius: var(--radius-sm);
  background: rgba(12, 18, 34, 0.03);
  padding: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(12, 18, 34, 0.05);
}

.lock-content {
  filter: blur(7px);
  opacity: 0.65;
  user-select: none;
  pointer-events: none;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  background: radial-gradient(600px 200px at 50% 0%, rgba(11, 92, 255, 0.14), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.65));
  backdrop-filter: blur(10px);
}

.lock-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 16px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(41, 205, 131, 0.14);
  color: #117e4b;
  font-weight: 800;
  font-size: 12px;
}

.app-footer {
  display: grid;
  place-items: center;
  padding-top: 10px;
}

.footer-pill {
  width: 120px;
  height: 5px;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.18);
}

@media (max-width: 380px) {
  .hero-top {
    grid-template-columns: 96px 1fr;
  }

  .hero-ill {
    width: 96px;
    height: 96px;
    border-radius: 24px;
  }

  .title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar {
    transition: none;
  }

  .view-wrap {
    animation: none;
  }

  .view-wrap.is-leaving {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
