@font-face {
  font-family: "Iansui";
  src: url("/fonts/iansui-sub.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat-sub.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Patrick Hand";
  src: url("/fonts/patrickhand-sub.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #fefef9;
  --ink: #3d2c28;
  --coral: #e45b3f;
  --coral-dark: #c8442a;
  --coral-soft: #fff1ec;
  --muted: #6f5a55;
  --mint: #7ec8b0;
  --mint-dark: #2f8f6f;
  --mint-soft: #e8f6f0;
  --gold: #efc15a;
  --gold-soft: #fff6d9;
  --line: #f3e6de;
  --zh: "Iansui", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --en: "Patrick Hand", "Comic Sans MS", system-ui, sans-serif;
  --head: "Caveat", "Patrick Hand", cursive;
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wobble2: 18px 225px 18px 255px / 255px 18px 225px 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--zh);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
p, h1, h2, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dark); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

.zh { font-family: var(--zh); }
.en { font-family: var(--en); color: var(--muted); }
p.en, span.en { display: block; }
.chip .en, .when .en, label .en, legend .en, .choice span[lang], .hint span, .opt span { display: inline; }

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 18px 120px;
  position: relative;
}

/* ---------------- hero ---------------- */
.hero { text-align: center; position: relative; padding: 8px 4px 8px; }
.kicker {
  display: inline-block;
  font-size: 15px;
  color: var(--mint-dark);
  background: var(--mint-soft);
  border: 2px dashed var(--mint);
  border-radius: 999px;
  padding: 2px 14px;
  margin-bottom: 14px;
}
.kicker span[lang] { font-family: var(--en); }
h1 {
  font-family: var(--zh);
  font-weight: 400;
  color: var(--coral);
  font-size: clamp(42px, 12.2vw, 76px);
  line-height: 1.1;
  letter-spacing: 0.03em;
}
.en-title {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(30px, 8.6vw, 46px);
  line-height: 1.05;
  margin-top: 4px;
}
.swoosh { display: block; width: 220px; height: 14px; margin: 6px auto 16px; }
.swoosh.small { width: 140px; margin-bottom: 8px; }
.hero .lead { font-size: 19px; line-height: 1.55; max-width: 30em; margin: 0 auto; }
.hero .lead + .en { font-size: 18px; line-height: 1.3; margin: 6px auto 0; max-width: 30em; }
.hero-art { width: 100%; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 8px; margin: 6px 0 22px; }
.chip {
  font-size: 16px;
  white-space: nowrap;
  padding: 5px 12px 4px;
  border: 2px solid var(--ink);
  border-radius: var(--wobble);
  background: #fff;
  box-shadow: 2px 3px 0 rgba(61, 44, 40, 0.85);
}
.chip .en { font-size: 15px; color: var(--ink); opacity: .75; }
.chip.coral { background: var(--coral-soft); transform: rotate(-2deg); }
.chip.mint { background: var(--mint-soft); transform: rotate(1.5deg); }
.chip.gold { background: var(--gold-soft); transform: rotate(-1deg); }

.doodle { position: absolute; pointer-events: none; }
.hero .d2 { top: 0; right: 4%; }
.art-wrap { position: relative; width: min(74%, 300px); margin: 12px auto 6px; }
.art-wrap .d1 { top: 2%; left: -8%; transform: rotate(-12deg); }
.art-wrap .d3 { bottom: 14%; right: -8%; transform: rotate(10deg); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 26px;
  font-family: var(--zh);
  font-size: 20px;
  color: #fff;
  background: var(--coral);
  border: 2.5px solid var(--ink);
  border-radius: 18px 26px 16px 24px / 24px 16px 26px 18px;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn span[lang] { font-family: var(--en); }
.btn:hover { background: var(--coral-dark); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible, .sticky-cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-big { min-width: 220px; }

/* ---------------- sections ---------------- */
.section { margin-top: 44px; position: relative; }
h2 { font-weight: 400; text-align: center; margin-bottom: 18px; }
h2 .zh { display: block; font-size: 30px; color: var(--coral); line-height: 1.2; }
h2 .en { display: block; font-family: var(--head); font-weight: 600; font-size: 26px; color: var(--ink); line-height: 1.1; }
h2.small { text-align: left; margin-bottom: 8px; }
h2.small .zh { font-size: 24px; }
h2.small .en { font-size: 22px; }
h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 0;
  border-top: 2.5px dashed var(--gold);
  margin: 8px auto 0;
}
h2.small::after { margin-left: 0; width: 48px; }
.thanks h2::after { display: none; }

.tilt-l { transform: rotate(-1.2deg); }
.tilt-r { transform: rotate(1.1deg); }

/* learn stickers */
.learn { display: grid; gap: 14px; }
.sticker {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--wobble);
  padding: 12px 18px 12px 12px;
  box-shadow: 3px 4px 0 var(--line);
}
.sticker .zh { font-size: 21px; line-height: 1.25; }
.sticker .en { font-size: 18px; line-height: 1.2; }
.icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed transparent;
  flex: none;
}
.icon.coral { background: var(--coral-soft); border-color: #f2b6a6; }
.icon.mint { background: var(--mint-soft); border-color: var(--mint); }
.icon.gold { background: var(--gold-soft); border-color: var(--gold); }

/* flow timeline */
.flow { position: relative; padding-left: 50px; display: grid; gap: 20px; }
.flow::before {
  content: "";
  position: absolute;
  left: 19px; top: 18px; bottom: 26px;
  border-left: 3px dashed #f0c4b8;
}
.step { position: relative; }
.num {
  position: absolute;
  left: -50px; top: 10px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 700; font-size: 26px;
  color: #fff; background: var(--coral);
  border: 2.5px solid var(--ink);
  border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%;
  z-index: 1;
}
.step:nth-child(2) .num { background: var(--mint-dark); }
.step:nth-child(3) .num { background: #d89a1c; }
.card {
  background: var(--coral-soft);
  border: 2px solid var(--ink);
  padding: 14px 18px 14px;
  box-shadow: 3px 4px 0 rgba(61, 44, 40, .12);
}
.wobble { border-radius: var(--wobble); }
.card.mintcard { background: var(--mint-soft); border-radius: var(--wobble2); }
.card.goldcard { background: var(--gold-soft); }
.when { font-size: 22px; color: var(--coral-dark); margin-bottom: 4px; line-height: 1.3; }
.mintcard .when { color: var(--mint-dark); }
.goldcard .when { color: #a26f05; }
.when .en { font-family: var(--head); font-weight: 700; font-size: 23px; color: inherit; }
.dur {
  display: inline-block;
  font-family: var(--en);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px dashed currentColor;
  border-radius: 999px;
  padding: 0 9px;
  margin-left: 4px;
  vertical-align: 2px;
}
.card p.zh { font-size: 19px; line-height: 1.55; }
.card p.en { font-size: 17px; line-height: 1.3; margin-top: 4px; }

/* who / dates */
.two { display: grid; gap: 20px; }
.note-card {
  position: relative;
  padding: 18px 20px 18px;
  border-radius: var(--wobble2);
}
.mintnote { background: var(--mint-soft); border: 2.5px dashed var(--mint); }
.goldnote { background: var(--gold-soft); border: 2.5px dashed var(--gold); }
.note-card p.zh { font-size: 19px; line-height: 1.5; }
.note-card p.en { font-size: 17px; line-height: 1.3; }
.note-card p.big { font-size: 30px; color: var(--ink); line-height: 1.2; }
.note-card p.big + p.en { font-family: var(--head); font-size: 26px; font-weight: 600; color: var(--ink); }
.small-print { margin-top: 10px; font-size: 16px !important; color: var(--muted); }
p.en.small-print { margin-top: 0; }
.goldnote .d4 { top: -12px; right: 14px; transform: rotate(14deg); }

/* demo */
.sticker-card {
  position: relative;
  display: block;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 20px 24px 18px 26px;
  padding: 10px 10px 16px;
  box-shadow: 5px 6px 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
  transform: rotate(-1deg);
  transition: transform .15s ease;
}
.sticker-card:hover, .sticker-card:focus-visible { transform: rotate(0deg) translateY(-2px); }
.sticker-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.sticker-card img { border-radius: 12px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tape {
  position: absolute; top: -12px; left: 50%;
  width: 96px; height: 24px; margin-left: -48px;
  background: rgba(239, 193, 90, .75);
  transform: rotate(-3deg);
  border-radius: 3px;
}
.demo-body { display: block; padding: 12px 8px 0; text-align: center; }
.badge {
  display: inline-block;
  font-family: var(--zh);
  font-size: 18px;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  padding: 2px 16px;
  margin-bottom: 8px;
}
.demo-body .zh { display: block; font-size: 20px; line-height: 1.4; }
.demo-body .en { font-size: 17px; }
.open {
  display: inline-block;
  margin-top: 10px;
  font-size: 18px;
  color: var(--coral-dark);
  border-bottom: 2.5px dashed var(--coral);
  padding-bottom: 1px;
}
.open span { font-family: var(--en); }

/* privacy */
.privacy {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 2px dashed var(--mint);
  border-radius: var(--wobble);
  padding: 16px 18px;
}
.privacy p.zh { font-size: 19px; line-height: 1.5; }
.privacy p.en { font-size: 17px; line-height: 1.3; }

/* ---------------- form ---------------- */
.form-section:focus { outline: none; }
.form-card, .thanks {
  position: relative;
  background: #fff;
  border: 3px solid var(--coral);
  border-radius: 26px 30px 24px 32px / 30px 24px 32px 26px;
  padding: 24px 18px 26px;
  box-shadow: 6px 7px 0 var(--coral-soft);
}
.form-card .d5 { top: -14px; right: 18px; transform: rotate(10deg); }
.form-intro { text-align: center; font-size: 15px; color: var(--muted); margin: -8px 0 14px; }
.form-intro .en { display: inline; }
.req-mark { color: var(--coral); font-family: var(--en); }

.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
label, legend {
  display: block;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 6px;
  padding: 0;
}
label .en, legend .en { font-size: 17px; }
.opt { font-size: 15px; color: var(--muted); }
.opt span { font-family: var(--en); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  font: 17px/1.4 system-ui, -apple-system, "Segoe UI", "PingFang TC", "Noto Sans TC", sans-serif;
  font-size: max(16px, 17px);
  color: var(--ink);
  background: var(--bg);
  border: 2px solid #d9c3ba;
  border-radius: 14px 16px 13px 17px;
  padding: 12px 14px;
  min-height: 50px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 64px; }
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'><path d='M1.5 2 7 8l5.5-6' fill='none' stroke='%233d2c28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
input::placeholder, textarea::placeholder { color: #a08d87; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(228, 91, 63, .18);
  background: #fff;
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--coral-dark); background: var(--coral-soft); }
.hint { font-size: 14px; color: var(--muted); margin-top: 4px; }
.hint span[lang] { font-family: var(--en); font-size: 15px; }
.err { color: var(--coral-dark); font-size: 15px; line-height: 1.35; margin-top: 4px; min-height: 0; }
.err:empty { display: none; }
.form-err { text-align: center; background: var(--coral-soft); border: 2px dashed var(--coral); border-radius: 14px; padding: 10px 12px; margin: 4px 0 14px; font-size: 16px; }

.row2 { display: grid; gap: 0; }

.choices { display: grid; gap: 10px; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin: 0;
  padding: 10px 14px;
  background: var(--bg);
  border: 2px solid #d9c3ba;
  border-radius: 14px 18px 13px 17px;
  cursor: pointer;
  font-size: 18px;
  -webkit-tap-highlight-color: transparent;
}
.choice span[lang] { font-family: var(--en); color: var(--muted); font-size: 17px; }
.choice b { font-weight: 400; }
.choice input {
  appearance: none; -webkit-appearance: none;
  flex: none;
  width: 24px; height: 24px; margin: 0;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  display: grid; place-content: center;
}
.choice input::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: var(--coral); transform: scale(0); transition: transform .1s;
}
.choice input:checked::before { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--coral); background: var(--coral-soft); }
.choice input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.field.invalid .choice { border-color: var(--coral-dark); }

.consent-field { margin-top: 6px; }
.consent {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 17px;
  line-height: 1.45;
  cursor: pointer;
  padding: 12px 14px;
  background: var(--mint-soft);
  border: 2px dashed var(--mint);
  border-radius: 16px;
}
.consent .en { font-size: 16px; display: inline; }
.consent input {
  appearance: none; -webkit-appearance: none;
  width: 26px; height: 26px; margin: 1px 0 0;
  border: 2.5px solid var(--ink);
  border-radius: 6px 8px 5px 9px;
  background: #fff;
  display: grid; place-content: center;
}
.consent input::before {
  content: "";
  width: 14px; height: 8px;
  border-left: 3px solid var(--coral);
  border-bottom: 3px solid var(--coral);
  transform: rotate(-45deg) scale(0);
  margin-top: -3px;
  transition: transform .1s;
}
.consent input:checked::before { transform: rotate(-45deg) scale(1); }
.consent input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.field.invalid .consent { border-color: var(--coral-dark); background: var(--coral-soft); }

.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { width: 100%; margin-top: 6px; font-size: 21px; }
.btn-submit .loading { display: none; align-items: center; gap: 8px; }
.btn-submit.is-loading .label { display: none; }
.btn-submit.is-loading .loading { display: inline-flex; }
.btn-submit:disabled { cursor: progress; background: #e9846f; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* thanks */
.thanks { text-align: center; padding: 40px 22px 36px; background: var(--coral-soft); }
.thanks:focus { outline: none; }
.thanks-emoji { font-size: 54px; line-height: 1; margin-bottom: 10px; }
.thanks h2 .zh { font-size: 28px; line-height: 1.35; }
.thanks h2 .en { font-size: 28px; margin-top: 4px; }
.thanks p.zh { font-size: 18px; }
.thanks p.en { font-size: 17px; }
.thanks .t1 { top: 16px; left: 18px; transform: rotate(-12deg); }
.thanks .t2 { top: 26px; right: 22px; }
.thanks .t3 { bottom: 18px; right: 30px; transform: rotate(12deg); }

/* footer */
.footer { text-align: center; margin-top: 48px; font-family: var(--en); color: var(--muted); font-size: 17px; }
.inline-heart { vertical-align: -2px; }

/* sticky CTA */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 200px;
  padding: 12px 30px;
  font-family: var(--zh);
  font-size: 20px;
  color: #fff;
  background: var(--coral);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 4px 0 var(--ink);
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.sticky-cta span { font-family: var(--en); margin-left: 6px; }
.sticky-cta.hide { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }

/* ---------------- larger screens ---------------- */
@media (min-width: 600px) {
  .page { padding-top: 44px; }
  .learn { grid-template-columns: repeat(3, 1fr); }
  .sticker { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 18px 14px; }
  .two { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .choices { grid-template-columns: repeat(3, 1fr); }
  .form-card { padding: 30px 32px 32px; }
}
