:root {
  --reset-primary: #59c3e1;
  --reset-primary-dark: #3298b4;
  --reset-accent: #f4e16b;
  --reset-text: #31353d;
  --reset-muted: #727272;
  --reset-soft: #e8f4f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans TC', 'Noto Serif TC', sans-serif;
  background: #f4f7fb;
  font-size: 16px;
  color: var(--reset-text);
}

.reset-page {
  background: radial-gradient(circle at top, #ffffff 0%, #f4f7fb 55%, #ecf2f8 100%);
  color: var(--reset-text);
  padding: 103.4px 20px 80px;
  min-height: 100vh;
}

.hero,
.card,
.stepper,
.nav,
.result-cta {
  max-width: 920px;
  margin: 0 auto 24px;
}

.hero,
.card,
.stepper {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 10px rgba(89, 195, 225, 0.1);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-logo {
  width: 120px;
  object-fit: contain;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-text {
  color: #31353d;
  margin: 0;
}

.hero-divider {
  height: 2px;
  width: 64px;
  background: var(--reset-primary);
  border-radius: 2px;
  margin: 24px auto 12px;
}

.hero-question {
  text-align: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-steps {
  display: grid;
  gap: 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #31353d;
}

.hero-step {
  opacity: 0;
  transform: translateY(10px);
  animation: riseIn 1s ease-out forwards;
}

.hero-step:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-step:nth-child(2) {
  animation-delay: 0.35s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 100px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

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

.btn-primary {
  background: var(--reset-primary);
  color: #ffffff;
  font-size: 14px;
}

.btn-secondary {
  background: transparent;
  color: var(--reset-primary);
  border: 1px solid var(--reset-primary);
  font-size: 14px;
}

.start-btn {
  margin: 24px auto 0;
  display: block;
  padding: 10px 28px;
}

.stepper {
  margin-bottom: 24px;
  position: sticky;
  top: 12px;
  z-index: 20;
}

.stepper-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.stepper-meta-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stepper-tag {
  font-weight: 700;
  color: var(--reset-primary);
}

.stepper-meta {
  color: var(--reset-muted);
}

.stepper-logo {
  width: 80px;
  object-fit: contain;
  margin-left: auto;
}

.progress-track {
  height: 10px;
  background: #e6edf3;
  border-radius: 999px;
  overflow: hidden;
}

.progress-value {
  height: 100%;
  width: 25%;
  background: var(--reset-primary);
}

.card-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-sub {
  font-size: 16px;
  color: var(--reset-muted);
  margin-bottom: 18px;
}

.stack-12 {
  margin-top: 12px;
}

.stack-16 {
  margin-bottom: 16px;
}

.stack-24 {
  margin-top: 24px;
}

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

.checklist.two-col {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.check-item {
  border: 1px solid #d7e8f2;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fdfefe;
}

.check-item.other {
  padding: 10px 14px;
  cursor: pointer;
}

#step-energy .checklist + .check-item.other {
  margin-top: 12px;
}

.check-item-label {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.check-item-label input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid #b7d4e4;
  border-radius: 6px;
  background: #ffffff;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.check-item-label input[type='checkbox']::before {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 0.15s ease;
}

.check-item-label input[type='checkbox']:checked {
  background: var(--reset-primary);
  border-color: var(--reset-primary);
}

.check-item-label input[type='checkbox']:checked::before {
  transform: rotate(-45deg) scale(1);
}

.check-item-label input[type='checkbox']:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(89, 195, 225, 0.3);
}

.other-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.other-input,
.text-input,
.textarea {
  width: 100%;
  border: 1px solid #d7e8f2;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  color: #31353d;
}

.other-input {
  width: 220px;
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.callout {
  margin-top: 22px;
  background: var(--reset-soft);
  color: #3d4c5c;
  padding: 18px 20px;
  border-radius: 16px;
}

.callout-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.divider {
  height: 1px;
  background: #e4eef5;
  margin: 22px 0;
}

.card-foot {
  margin-top: 20px;
  color: var(--reset-muted);
}

.who-list {
  display: grid;
  gap: 16px;
}

.who-row {
  padding: 16px;
  border-radius: 16px;
  background: #fdfefe;
  border: 1px solid #d7e8f2;
}

.who-question {
  font-weight: 600;
  margin-bottom: 10px;
}

.who-options {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}

.who-option {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 34px;
  cursor: pointer;
}

.who-option input[type='radio'] {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 2px solid #b7d4e4;
  border-radius: 999px;
  background: #ffffff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.who-option input[type='radio']::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--reset-primary);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.who-option input[type='radio']:checked {
  border-color: var(--reset-primary);
}

.who-option input[type='radio']:checked::before {
  transform: scale(1);
}

.who-option input[type='radio']:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(89, 195, 225, 0.3);
}

.who-value {
  font-size: 14px;
  color: #7da5bf;
}

.who-option.is-selected .who-value {
  color: var(--reset-primary);
  font-weight: 700;
}

.score-board {
  margin-top: 24px;
  background: var(--reset-soft);
  padding: 24px;
  border-radius: 16px;
}

.score-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.score-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--reset-primary);
}

.score-note {
  margin-top: 6px;
}

.score-legend {
  margin-top: 12px;
  color: var(--reset-muted);
  display: grid;
  gap: 6px;
}

.score-reference {
  margin-top: 12px;
  font-size: 14px;
}

.qr-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.result-card {
  border-radius: 16px;
  border: 1px solid #d7e8f2;
  padding: 24px;
  background: #f7fcff;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.cta-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.result-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--reset-muted);
}

.result-title {
  font-size: 22px;
  font-weight: 700;
  color: #3d4c5c;
}

.result-score {
  color: var(--reset-primary);
  font-weight: 700;
}

.result-text {
  line-height: 1.7;
  color: #4b6174;
  white-space: pre-line;
}

.result-subtitle {
  font-weight: 700;
  color: #3d4c5c;
}

.result-next {
  display: grid;
  gap: 8px;
}

.result-list {
  margin: 0;
  padding-left: 18px;
  color: #4b6174;
  line-height: 1.6;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.cta-title {
  font-size: 28px;
  font-weight: 700;
}

.cta-title-spaced {
  margin-bottom: 12px;
}

.cta-quote {
  border-left: 3px solid var(--reset-primary);
  padding-left: 16px;
  font-weight: 600;
  color: #4b6174;
  margin-bottom: 18px;
}

.plans-toggle-hint {
  font-weight: 500;
  color: #6a7a88;
  font-size: 14px;
}

.plans-toggle-hint-spaced {
  margin-top: 12px;
}

.social-share-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.social-share-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #cfe0ec;
  background: #eaf2f8;
  color: #6b7f92;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.social-share-btn:hover {
  background: #dfeef8;
  box-shadow: 0 8px 16px rgba(49, 53, 61, 0.12);
  transform: translateY(-1px);
}

.social-share-icon-svg {
  width: 16px;
  height: 16px;
}

.social-share-icon-svg path,
.social-share-icon-svg rect,
.social-share-icon-svg circle {
  vector-effect: non-scaling-stroke;
}

.social-share-icon-filled {
  fill: #6b7f92;
  stroke: none;
}

.cta-bridge {
  background: linear-gradient(120deg, #f6fbff 0%, #eef6fb 100%);
  border: 1px dashed #cfe3f1;
}

.bridge-text {
  color: #6a7a88;
  line-height: 1.6;
}

.plans-intro {
  color: #6a7a88;
  margin-top: 6px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.plan-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 24px;
}

.plan-card {
  border: 2px solid #b9ddef;
  border-radius: 16px;
  padding: 16px;
  background: #fdfefe;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card.featured {
  background: #eef9ff;
  border-color: var(--reset-primary);
  position: relative;
}

.plan-title {
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}

.plan-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--reset-primary);
  text-align: center;
}

.plan-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
}

.plan-note {
  font-size: 14px;
  text-align: center;
  color: var(--reset-muted);
}

.plan-btn {
  margin-top: auto;
}

.line-btn {
  border-radius: 999px;
  font-weight: 700;
}

.reset-row {
  display: flex;
  justify-content: center;
}

.reset-btn {
  margin-top: 18px;
}

.notify-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  z-index: 1200;
}

.notify-item {
  min-width: 180px;
  max-width: min(88vw, 360px);
  border-radius: 12px;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(49, 53, 61, 0.18);
  animation: notify-in 0.2s ease;
}

.notify-item.positive {
  background: #20b27a;
}

.notify-item.negative {
  background: #d64545;
}

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

.is-hidden {
  display: none !important;
}

.btn-full {
  width: 100%;
}

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

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .reset-page {
    padding-top: 88.76px;
  }
}

@media (max-width: 720px) {
  .reset-page {
    padding-bottom: 140px;
  }

  .hero,
  .card,
  .stepper {
    padding: 26px 20px;
  }

  .hero-title {
    font-size: 26px;
  }

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

  .score-value {
    font-size: 30px;
  }

  .who-option input[type='radio'] {
    width: 26px;
    height: 26px;
  }

  .who-option input[type='radio']::before {
    width: 12px;
    height: 12px;
  }

  .nav {
    flex-direction: row;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    max-width: none;
    padding: 12px 16px 16px;
    background: rgba(244, 247, 251, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 -10px 10px rgba(89, 195, 225, 0.1);
    z-index: 10;
  }
}