/* WEDAR 28 週年慶感謝頁
   色票依 WEDAR 數位介面色彩規範：深綠當文字、橘黃只給唯一一顆 CTA */
:root {
  --deep-green: #004540;   /* 深綠：標題與 CTA 上的文字 */
  --amber: #FFB966;        /* 橘黃：CTA 填色，整頁只出現這一處 */
  --amber-dark: #F2A64C;
  --ink: #4b5563;
  --muted: #6b7280;
  --bg: #f9fafb;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.card {
  width: 100%;
  max-width: 640px;
  text-align: center;
  animation: rise .5s ease-out both;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 28px;
}

h1 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--deep-green);
  letter-spacing: .01em;
}

.thanks {
  margin: 0;
  font-size: 1rem;
  line-height: 2;
  color: var(--ink);
}

.cta {
  display: inline-block;
  margin-top: 40px;
  padding: 13px 34px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--deep-green);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.cta:hover,
.cta:focus-visible { background: var(--amber-dark); transform: translateY(-1px); }

.cta:focus-visible { outline: 2px solid var(--deep-green); outline-offset: 3px; }

.countdown {
  margin: 18px 0 0;
  font-size: .8125rem;
  color: var(--muted);
}

footer {
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: .75rem;
  line-height: 1.8;
  color: var(--muted);
}

footer p { margin: 0; }

.only-mobile { display: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .stage { padding: 56px 20px; }
  .only-mobile { display: inline; }
}

@media (min-width: 641px) {
  h1 { font-size: 1.875rem; }
  .thanks { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .cta { transition: none; }
}
