:root {
  --c-red: #d96159;
  --c-red-dark: #cf5249;
  --c-red-light: #f3d6d2;
  --c-peach: #faeeea;
  --c-plan: #7a4d8e;
  --c-plan-dark: #623a72;
  --c-plan-light: #ebdfef;
  --c-text: #2b2b2b;
  --c-muted: #6a6a6a;
  --c-footer-bg: #f1e9f0;
  --c-line: #e0d6dd;
  --font-title: "Epilogue", "PingFang TC", "Microsoft JhengHei", "微軟正黑體", sans-serif;
  --font-body: "Karla", "PingFang TC", "Microsoft JhengHei", "微軟正黑體", sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--c-text);
  line-height: 1.55;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: #d54e44;
  color: #fff;
  font-size: 13px;
}
.topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}
.topbar__info { display: flex; gap: 24px; }
.topbar__item i { margin-right: 6px; opacity: .9; }
.topbar__social { display: flex; gap: 12px; }
.topbar__social a {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 14px;
}

/* ---------- Nav ---------- */
.nav {
  background: var(--c-red);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex: 1;
}
.nav__logo {
  height: 38px;
  width: 38px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}
.nav__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  line-height: 1.2;
}
.btn--solid {
  background: var(--c-red);
  color: #fff;
  border-color: var(--c-red);
}
.btn--solid:hover { background: var(--c-red-dark); border-color: var(--c-red-dark); }
.btn--outline {
  background: transparent;
  color: var(--c-red);
  border-color: var(--c-red);
}
.btn--outline:hover { background: var(--c-red); color: #fff; }
.btn--white {
  background: #fff;
  color: var(--c-red);
  border-color: #fff;
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 2px;
}
.btn--white:hover { background: transparent; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 460px;
  background: url('../images/banner.jpg') left center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 90px 24px;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.18);
}
.hero__content {
  position: relative;
  max-width: 720px;
}
.hero__title {
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 800;
  letter-spacing: .04em;
  margin: 0 0 14px;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  margin: 0 0 32px;
  opacity: .95;
}
.hero__cta { padding: 12px 30px; font-size: 16px; }

/* ---------- Promo (two-up cards) ---------- */
.promo {
  padding: 64px 24px;
  background: #fff;
}
.promo__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.promo__card {
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.promo__card--peach {
  background: var(--c-peach);
  border-radius: 4px;
}
.promo__media {
  width: 100%;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 4px;
}
.promo__media img {
  width: 100%;
  height: auto;
  display: block;
}
.promo__media--contain {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo__media--contain img {
  max-width: 320px;
  width: 100%;
}
.promo__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}
.promo__desc, .promo__subtitle {
  margin: 0 0 24px;
  color: var(--c-muted);
  font-size: 15px;
  font-weight: 400;
}
.promo__subtitle { font-size: 14px; }
.promo__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Plans ---------- */
.plans {
  padding: 80px 24px 96px;
  background: #fff;
}
.plans__head {
  text-align: center;
  margin-bottom: 56px;
}
.plans__head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 16px;
}
.plans__head h5 {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-plan);
  margin: 0;
}
.plans__grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.plan {
  position: relative;
  border: 1px solid #e6e6e6;
  background: #fff;
  padding: 28px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.plan--featured {
  border: 1px solid var(--c-plan);
}
.plan__badge {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--c-plan);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.plan__topspacer { height: 0; }
.plan--featured .plan__topspacer { display: none; }
.plan__header {
  width: 100%;
  padding: 18px 16px;
  margin-bottom: 28px;
}
.plan__header--soft {
  background: var(--c-plan-light);
  color: var(--c-plan);
}
.plan__header--solid {
  background: var(--c-plan);
  color: #fff;
}
.plan__name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}
.plan__sub {
  margin: 0;
  font-size: 14px;
  opacity: .95;
}
.plan__icon {
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.plan__icon img { max-width: 100%; max-height: 100%; }
.plan__amount {
  margin-bottom: 24px;
}
.plan__label {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--c-plan);
  font-weight: 500;
}
.plan__amount h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--c-plan);
}
.plan__cta {
  min-width: 140px;
  margin-bottom: 24px;
}
.plan__foot {
  margin: 0;
  font-size: 14px;
  color: var(--c-text);
  font-weight: 500;
}
.plan--featured .plan__foot { color: var(--c-plan); }

.plan .btn--solid {
  background: var(--c-plan);
  border-color: var(--c-plan);
}
.plan .btn--solid:hover {
  background: var(--c-plan-dark);
  border-color: var(--c-plan-dark);
}
.plan .btn--outline {
  color: var(--c-plan);
  border-color: var(--c-plan);
}
.plan .btn--outline:hover {
  background: var(--c-plan);
  color: #fff;
}

/* ---------- Bottom banner ---------- */
.bottom-banner {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--c-footer-bg);
  padding: 56px 24px 32px;
  color: #444;
  font-size: 14px;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 40px;
  align-items: center;
}
.footer__logo img {
  width: 180px;
  height: auto;
}
.footer__brand p { margin: 2px 0; }
.footer__brand strong { font-size: 15px; }
.footer__copy { margin: 0; color: #555; }
.footer__contact { text-align: right; }
.footer__contact p {
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.footer__contact i { color: var(--c-red); }
.footer__social {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.footer__social a {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #d8b5c5;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.footer__rule {
  border: 0;
  border-top: 1px solid #d9cdd5;
  max-width: var(--container);
  margin: 32px auto 0;
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 280px;
  background: #f4f4f4;
  border-radius: 4px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  font-size: 13px;
  z-index: 100;
  color: #333;
}
.cookie__title { font-weight: 700; margin-bottom: 6px; }
.cookie__body { margin: 0 0 12px; line-height: 1.5; }
.cookie__ok {
  background: transparent;
  border: 0;
  padding: 0;
  color: #333;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  margin-right: 16px;
}
.cookie__more { color: #2c5cff; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer__inner {
    grid-template-columns: auto 1fr;
    gap: 24px 32px;
    text-align: left;
  }
  .footer__contact { grid-column: 1 / -1; text-align: left; }
  .footer__contact p { justify-content: flex-start; }
  .footer__social { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .topbar__inner { justify-content: space-between; padding: 6px 16px; font-size: 12px; gap: 12px; }
  .topbar__info { gap: 12px; }

  .nav__inner { padding: 10px 16px; }
  .nav__logo { height: 32px; width: 32px; }
  .nav__title { font-size: 16px; }
  .btn--white { padding: 6px 14px; font-size: 13px; }

  .hero { min-height: 360px; padding: 64px 20px; }
  .hero__title { font-size: clamp(48px, 14vw, 80px); }

  .promo { padding: 40px 16px; }
  .promo__grid { grid-template-columns: 1fr; gap: 32px; }
  .promo__actions { flex-direction: column; width: 100%; max-width: 320px; }
  .promo__actions .btn { width: 100%; }

  .plans { padding: 56px 16px 72px; }
  .plans__grid { grid-template-columns: 1fr; gap: 56px; max-width: 360px; }

  .footer { padding: 40px 20px 24px; }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: start;
  }
  .footer__logo img { width: 150px; }
  .footer__contact { text-align: left; }
  .footer__contact p { justify-content: flex-start; }
  .footer__social { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .hero { background-image: none; background-color: var(--c-red); }
}

@media (max-width: 420px) {
  .topbar__info .topbar__item:first-child { display: none; }
}
