:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --card: #ffffff;
  --ink: #181716;
  --muted: #716b65;
  --pink: #ed4f9b;
  --gold: #efc665;
  --green: #118878;
  --line: #e7e0d7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
}

a { color: inherit; }
.shell { width: min(100%, 1280px); margin: 0 auto; }
.hero { padding: calc(30px + env(safe-area-inset-top)) 20px 22px; }
.eyebrow { margin: 0 0 8px; color: var(--pink); font-size: 14px; font-weight: 800; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(30px, 8vw, 48px); line-height: 1.15; letter-spacing: -.035em; }
.lead { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px;
  background: rgba(247,244,239,.94);
  backdrop-filter: blur(12px);
}
.tabs a { padding: 12px 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-align: center; text-decoration: none; font-size: 14px; font-weight: 750; }
.tabs a.active { border-color: var(--ink); background: var(--ink); color: #fff; }

.steps { padding: 8px 12px 46px; }
.step {
  position: relative;
  margin: 0 0 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(48, 38, 28, .08);
}
.step-head { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; padding: 17px 18px 14px; }
.step-head.no-number { grid-template-columns: 1fr; }
.num { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--pink); color: #fff; font-size: 21px; font-weight: 900; }
.annual .num { background: var(--green); }
.installment .num { background: #d49114; }
.step h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.step p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.screen-wrap { padding: 0 14px 16px; }
.screen { display: block; width: 100%; height: auto; border: 1px solid #eee9e3; border-radius: 18px; background: #fff; }
.note { margin: 0 14px 16px; padding: 14px 15px; border-radius: 14px; background: #fff5d9; color: #563d06; font-weight: 750; line-height: 1.55; }
.success { background: #e7f7f3; color: #14584f; }
.quick-actions { display: grid; gap: 10px; padding: 0 14px 16px; }
.quick-action { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 11px; align-items: center; width: 100%; min-height: 76px; padding: 14px 16px; border-radius: 16px; background: #171717; color: #fff; text-decoration: none; box-shadow: 0 8px 22px rgba(20,20,20,.12); }
.quick-action.has-action-num { grid-template-columns: 40px minmax(0,1fr) auto; }
.quick-action.secondary { background: #d49114; color: #211604; }
.quick-action.red { background: #e02424; color: #fff; box-shadow: 0 8px 22px rgba(224,36,36,.28); }
.quick-action.red { animation: action-bounce 1.6s ease-in-out infinite; }
.quick-action.red .action-arrow { animation: action-nudge 1.6s ease-in-out infinite; }
@keyframes action-bounce { 0%, 60%, 100% { transform: translateY(0) scale(1); } 15% { transform: translateY(-6px) scale(1.02); } 30% { transform: translateY(0) scale(1); } 42% { transform: translateY(-3px) scale(1.01); } }
@keyframes action-nudge { 0%, 60%, 100% { transform: translateX(0); } 15% { transform: translateX(5px); } 30% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .quick-action.red, .quick-action.red .action-arrow { animation: none; } }
.quick-action .action-num { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); font-weight: 900; }
.quick-action span { min-width: 0; }
.quick-action strong { display: block; font-size: 16px; line-height: 1.45; overflow-wrap: break-word; }
.quick-action small { display: block; margin-top: 3px; opacity: .78; line-height: 1.35; }
.quick-action .action-arrow { justify-self: end; font-size: 22px; }
.back { display: inline-flex; margin: 0 12px 18px; padding: 11px 15px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 750; }
footer { padding: 0 20px calc(30px + env(safe-area-inset-bottom)); color: var(--muted); text-align: center; font-size: 13px; }

.chooser { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; }
.chooser-card { width: min(100%, 700px); margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: 0 18px 50px rgba(48,38,28,.09); }
.chooser-copy { padding: 26px 20px 28px; }
.brand-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.brand-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.chooser h1 { font-size: clamp(32px, 9vw, 54px); }
.choices { display: grid; gap: 14px; margin-top: 26px; }
.choice { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; }
.choice .icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 18px; background: #fce5f1; font-size: 26px; }
.choice.annual-choice .icon { background: #e1f3ef; }
.choice.installment-choice .icon { background: #fff1ce; }
.choice strong { display: block; font-size: 19px; }
.choice small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.45; }
.arrow { font-size: 22px; }

@media (min-width: 720px) {
  .hero { padding-left: 24px; padding-right: 24px; }
  .tabs { margin: 0 12px; border-radius: 22px; }
  .steps { padding-left: 24px; padding-right: 24px; }
  .screen-wrap { padding-left: 34px; padding-right: 34px; }
  .step-head { padding-left: 34px; padding-right: 34px; }
  .brand-visual { aspect-ratio: 16 / 8; }
}

@media (min-width: 900px) {
  .chooser { padding: clamp(36px, 5vw, 72px); }
  .chooser-card {
    display: grid;
    grid-template-columns: minmax(380px, .95fr) minmax(460px, 1.05fr);
    width: min(100%, 1180px);
    min-height: min(720px, calc(100vh - 112px));
  }
  .brand-visual {
    min-height: 100%;
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .brand-visual img { object-position: center; }
  .chooser-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px clamp(38px, 4vw, 64px);
  }
  .chooser h1 { font-size: clamp(42px, 4vw, 58px); }
  .choices { margin-top: 34px; }

  .hero { padding-top: 48px; padding-bottom: 30px; }
  .tabs { margin: 0 24px; padding: 12px; }
  .tabs a { padding: 14px 10px; font-size: 15px; }
  .steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    padding-top: 24px;
    padding-bottom: 56px;
  }
  .step { margin: 0; }
  .back { margin-left: 24px; }
}

@media (min-width: 1350px) {
  .chooser-card { width: min(100%, 1280px); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
