@font-face { font-family: 'Noto Sans TC'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/noto-sans-tc.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif TC'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/noto-serif-tc.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --ink: #14110f;
  --espresso: #2a1f18;
  --cream: #f2e8da;
  --amber: #e9a55b;
  --muted: #9c8e7e;
  --body-muted: #c9bfb2;
  --surface-muted: #6b5b4d;
  --divider: #d8c8b5;
  --field: #fffdf9;
  --field-border: #b6a28d;
  --selection: #966a40;
  --radius: 4px;
  --font-body: 'Noto Sans TC', system-ui, sans-serif;
  --font-heading: 'Noto Serif TC', 'PMingLiU', serif;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; }
p, h1, h2 { margin: 0; }
[hidden] { display: none !important; }
.site-header { border-bottom: 1px solid #f2e8da26; }
.header-inner { max-width: 1440px; min-height: 103px; margin-inline: auto; padding-inline: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner a { display: inline-flex; flex-shrink: 0; }
.wordmark { display: block; width: 160px; height: 50px; object-fit: contain; }
.header-label { font-size: 15px; }
.page-layout { max-width: 1440px; margin-inline: auto; padding: 48px 80px; min-height: calc(100svh - 104px); display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 680fr); gap: 80px; align-items: center; }
.introduction { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.progress { color: var(--amber); font-size: 15px; font-weight: 600; line-height: 1.5; }
h1 { font-family: var(--font-heading); font-size: 56px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.step-two h1 { font-size: 52px; }
.lead { font-size: 19px; line-height: 1.7; }
.expectation { font-size: 15px; line-height: 1.7; color: var(--body-muted); }
.bots { display: block; width: 100%; max-width: 520px; height: auto; aspect-ratio: 520 / 210; }
.offer { background: var(--espresso); border-radius: var(--radius); padding: 18px 22px; }
.offer h2 { color: var(--amber); font-size: 22px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.offer p { color: var(--divider); font-size: 15px; line-height: 1.6; }
.form-surface { color-scheme: light; color: var(--ink); background: var(--cream); padding: 36px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { display: block; width: 100%; padding: 0; font-size: 24px; font-weight: 600; line-height: 1.5; margin-bottom: 20px; overflow-wrap: anywhere; }
.option { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--divider); padding: 15px 0; cursor: pointer; min-height: 56px; transition: background-color 120ms ease; }
.option:hover, .option:has(input:checked) { background: #e9a55b1f; }
.option:has(input:focus-visible) { outline: 2px solid var(--selection); outline-offset: 3px; }
.option input { margin: 0; width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--selection); cursor: pointer; }
.option-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.option-title { font-size: 18px; font-weight: 600; line-height: 1.5; }
.option-description { color: var(--surface-muted); font-size: 16px; line-height: 1.5; }
.option-copy, .date-title { overflow-wrap: anywhere; }
.email-group { display: flex; flex-direction: column; gap: 20px; }
.email-group label { font-size: 16px; font-weight: 600; }
input[type=email] { width: 100%; min-width: 0; min-height: 56px; border: 1px solid var(--field-border); background: var(--field); color: var(--ink); border-radius: var(--radius); padding: 12px 14px; font-size: 16px; }
input::placeholder { color: #766858; opacity: 1; }
.primary-button { display: block; width: 100%; min-height: 60px; padding: 15px 20px; border: 0; border-radius: var(--radius); color: var(--ink); background: var(--amber); font-size: 18px; font-weight: 600; cursor: pointer; }
.primary-button:hover { background: #f0b879; }
.primary-button:active { background: #df984c; }
:focus-visible { outline: 3px solid var(--selection); outline-offset: 4px; }
.header-inner a:focus-visible { outline-color: var(--amber); }
.fine-print, .helper { color: var(--surface-muted); font-size: 16px; line-height: 1.5; }
.helper { margin-bottom: 20px; }
.date-options .option { padding-block: 18px; font-size: 18px; }
.date-title { font-size: 20px; font-weight: 600; }
.preview-note { color: var(--surface-muted); font-size: 13px; line-height: 1.5; border-top: 1px solid var(--divider); padding-top: 12px; }
.preview-result { padding: 16px; border: 1px solid var(--selection); border-radius: var(--radius); line-height: 1.6; }
.error-message { color: #9c291d; margin-top: 16px; line-height: 1.5; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 2; background: var(--cream); color: var(--ink); padding: 12px 16px; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 1200px) {
  .header-inner { padding-inline: 40px; }
  .page-layout { padding-inline: 40px; gap: 40px; }
  h1 { font-size: clamp(34px, 3.9vw, 56px); }
  .step-two h1 { font-size: clamp(34px, 3.65vw, 52px); }
  .form-surface { padding: 28px; }
}
@media (max-width: 959.98px) {
  .header-inner { min-height: 87px; }
  .page-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; padding-block: 40px 56px; gap: 32px; min-height: 0; }
  .introduction { gap: 20px; }
  h1, .step-two h1 { font-size: clamp(32px, 5.8vw, 48px); }
  .bots { max-width: 300px; align-self: flex-start; }
}
@media (max-width: 599.98px) {
  .header-inner { padding-inline: 20px; gap: 16px; min-height: 79px; }
  .wordmark { width: 112px; height: 35px; }
  .header-label { font-size: 12px; }
  .page-layout { padding: 32px 20px 40px; gap: 24px; }
  .introduction { gap: 16px; }
  .progress { font-size: 13px; }
  h1, .step-two h1 { font-size: clamp(28px, 7.9vw, 40px); line-height: 1.4; }
  .lead { font-size: 17px; line-height: 1.65; }
  .expectation { font-size: 14px; }
  .bots { max-width: 240px; }
  .form-surface { padding: 24px 20px; }
  legend { font-size: 21px; }
  .option { gap: 12px; }
  .option-title, .date-title { font-size: 17px; }
  .option-description, .fine-print, .helper { font-size: 15px; }
  .offer { padding: 16px 18px; }
  .offer h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .option { transition: none; } }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out 0.4s ease forwards; }
::view-transition-new(root) { animation: fade-in 0.4s ease forwards; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

.thanks-layout { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; max-width: 640px; }
.thanks-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--amber); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.thanks-message { font-family: var(--font-heading); font-size: 28px; font-weight: 600; line-height: 1.6; }
.error-banner { color: #d9644f; font-size: 15px; line-height: 1.5; }
.page-layout.thanks-page { grid-template-columns: minmax(0, 1fr); justify-content: center; justify-items: center; }
