:root {
  --bg: #f4f7fb;
  --bg-alt: #ffffff;
  --navy: #1a2744;
  --navy-mid: #243656;
  --navy-light: #2d4a6f;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-glow: rgba(13, 148, 136, 0.3);
  --gold: #c9a227;
  --gold-light: #f5e6a8;
  --wa: #25d366;
  --wa-dark: #1da851;
  --text: #1a1a2e;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(26, 39, 68, 0.1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: calc(88px + var(--safe-bottom));
}

/* Top bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal));
  color: #fff;
  font-size: 12px;
  text-align: center;
  font-weight: 500;
}

.top-bar__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.top-bar strong {
  font-weight: 900;
}

/* Hero */
.hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 45%, var(--navy-light) 100%);
  color: #fff;
  padding: 28px 20px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -15%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__tag {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(13, 148, 136, 0.45);
  color: #5eead4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero__title {
  position: relative;
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: normal;
  color: var(--gold-light);
  display: inline-block;
}

.hero__sub {
  position: relative;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 18px;
}

.hero__sub strong {
  color: #5eead4;
}

.hero__badges {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.hero__badges span {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

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

.btn--primary {
  width: 100%;
  max-width: 340px;
  height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wa) 0%, var(--wa-dark) 100%);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
}

.btn--lg {
  max-width: 100%;
  height: 58px;
  font-size: 17px;
}

.btn--sticky {
  flex-shrink: 0;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 16px var(--teal-glow);
}

.btn__icon {
  display: flex;
  align-items: center;
}

.hero__note {
  position: relative;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.hero__note strong {
  color: rgba(255, 255, 255, 0.9);
}

.hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #5eead4;
  line-height: 1.2;
}

.stat span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
  display: block;
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 32px 20px;
}

.section--alt {
  background: var(--bg-alt);
}

.section--trust {
  background: var(--navy);
  color: #fff;
}

.section--trust .section__title {
  color: #fff;
}

.section__title {
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 20px;
  color: var(--navy);
  line-height: 1.35;
}

.section__hint {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* Service cards */
.service-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.service-card--featured {
  border-color: var(--teal);
  border-width: 2px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06) 0%, #fff 100%);
}

.service-card__icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
}

.service-card > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card li {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-mid);
  padding-left: 16px;
  position: relative;
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
}

/* Plan chips */
.plan-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.plan-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Pain list */
.pain-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pain-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pain-item__icon {
  font-size: 24px;
  flex-shrink: 0;
}

.pain-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--navy);
}

.pain-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Steps */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.steps strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--navy);
}

.steps p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Client chips */
.client-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.client-chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trust-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric {
  text-align: center;
  padding: 20px 12px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.metric__val {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--teal);
  line-height: 1.2;
}

.metric__label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

/* FAQ */
.faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  color: var(--navy);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  float: right;
  font-weight: 900;
  color: var(--teal);
}

.faq[open] summary::after {
  content: '−';
}

.faq p {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* CTA block */
.cta-block {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 36px 20px;
  text-align: center;
}

.cta-block__tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.25);
  color: #5eead4;
  font-size: 12px;
  font-weight: 700;
}

.cta-block h2 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 10px;
}

.cta-block h2 strong {
  color: var(--gold-light);
}

.cta-block p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 22px;
}

/* Footer */
.footer {
  padding: 24px 20px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.footer a {
  color: #5eead4;
  text-decoration: none;
}

.footer__copy {
  margin-top: 10px;
  opacity: 0.7;
}

/* Sticky bar */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + var(--safe-bottom));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.sticky-bar__inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-bar__text strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
}

.sticky-bar__text span {
  font-size: 11px;
  color: var(--muted);
}

/* Phone modal */
.phone-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s ease, visibility 0.28s;
}

.phone-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.phone-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0.7);
}

.phone-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 20px calc(24px + var(--safe-bottom));
  border-radius: 24px 24px 0 0;
  background: linear-gradient(165deg, var(--navy-mid) 0%, var(--navy) 100%);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-bottom: none;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.phone-modal.is-open .phone-modal__sheet {
  transform: translateY(0);
}

.phone-modal__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.phone-modal__sub {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.5;
}

.phone-modal__box {
  padding: 18px 16px 16px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.phone-modal__label {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.phone-field {
  display: flex;
  align-items: center;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.phone-field:focus-within {
  border-color: var(--teal);
}

.phone-field__plus {
  flex: 0 0 auto;
  padding: 0 2px 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  user-select: none;
}

.phone-field__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 12px 0 6px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  outline: none;
  -webkit-text-fill-color: #fff;
}

.phone-field__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-size: 14px;
}

.phone-modal__hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

.phone-modal__error {
  min-height: 18px;
  margin: 0 0 10px;
  color: #fda4af;
  font-size: 13px;
  text-align: center;
}

.phone-modal__btn {
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wa) 0%, var(--wa-dark) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
}

.phone-modal__btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}
