/* 年夜飯聊天卡 official site
   Warm cream paper with Lunar New Year red and gold, matching the app's palette
   (bg #FBF3E6, primary #B9382F, gold #C9A04E). Huninn for headings, Noto Sans TC for body. */

:root {
  --cream: #FBF3E6;
  --cream-2: #F3E6D2;
  --paper: #FFFCF6;
  --plinth: #E6D5BC;
  --plinth-dark: #D4BE9A;
  --ink: #2B1D1A;
  --ink-2: #5E4A45;
  --ink-3: #9A8680;
  --red: #B9382F;
  --red-deep: #9E2A22;
  --red-soft: #F6DDD6;
  --gold: #C9A04E;
  --gold-deep: #8C6A1E;
  --gold-soft: #F5E6C3;
  --green: #6A9E7A;
  --green-soft: #DDEBE0;
  --rose: #B5657E;
  --rose-soft: #F3DEE5;
  --shadow: 0 10px 30px rgba(120, 60, 40, 0.14);
  --shadow-sm: 0 4px 12px rgba(120, 60, 40, 0.12);
  --radius: 28px;
  --font-display: 'Huninn', 'Noto Sans TC', 'PingFang TC', sans-serif;
  --font-body: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Helvetica Neue', sans-serif;
  --font-latin: 'Fredoka', 'Huninn', 'Noto Sans TC', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(185, 56, 47, 0.07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: var(--red-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 230, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(185, 56, 47, 0.12);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(120, 60, 40, 0.22);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.brand-text small {
  font-family: var(--font-latin);
  color: var(--ink-3);
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  text-transform: uppercase;
}
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--red-soft); color: var(--red-deep); }
.nav a.pill {
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  box-shadow: 0 6px 14px rgba(185, 56, 47, 0.28);
}
.nav a.pill:hover { background: var(--red-deep); color: #fff; }
@media (max-width: 760px) {
  .nav a:not(.pill) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  padding-block: 56px 28px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F6E3D2 0%, var(--cream) 70%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-latin);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--red-deep);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.05rem, 5vw, 3.3rem);
  line-height: 1.28;
  margin: 14px 0 18px;
  text-wrap: balance;
  letter-spacing: 0.01em;
}
h1 em {
  font-style: normal;
  color: var(--red-deep);
  background: linear-gradient(transparent 64%, var(--gold-soft) 64%);
  padding-inline: 2px;
}
.lead {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 32em;
  margin: 0;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink);
  color: #fff;
  border-radius: 15px;
  padding: 10px 20px 10px 15px;
  text-decoration: none;
  line-height: 1.12;
  box-shadow: 0 10px 22px rgba(43, 29, 26, 0.22);
}
.store svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.store small { display: block; font-size: 0.68rem; opacity: 0.82; letter-spacing: 0.02em; }
.store strong { font-family: var(--font-latin); font-weight: 600; font-size: 1.2rem; }
.cta .note { color: var(--ink-3); font-size: 0.92rem; }

.stage {
  position: relative;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  width: min(270px, 64vw);
  aspect-ratio: 1320 / 2868;
  background: #1C1B1F;
  border-radius: 48px;
  padding: 9px;
  box-shadow: 0 34px 64px rgba(120, 60, 40, 0.3), inset 0 0 0 2px #3B3A41;
  position: relative;
  z-index: 2;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 40px;
  display: block;
}

/* floating question cards around the phone */
.qcard {
  position: absolute;
  z-index: 3;
  width: 164px;
  background: var(--paper);
  border-radius: 20px;
  padding: 16px 18px 14px;
  box-shadow: 0 18px 34px rgba(120, 60, 40, 0.22);
  border: 1.5px solid var(--plinth);
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
  animation: bob 7s ease-in-out infinite;
}
.qcard .deck {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  color: #fff;
  background: var(--gold);
}
.qcard.red .deck { background: #D9736A; }
.qcard.green .deck { background: var(--green); }
.qcard.rose .deck { background: var(--rose); }
.qcard.q1 { left: 0; top: 16px; rotate: -6deg; animation-delay: -1s; }
.qcard.q2 { right: 0; top: 96px; rotate: 5deg; animation-delay: -3.2s; }
.qcard.q3 { left: 0; bottom: 70px; rotate: 3deg; animation-delay: -5s; }
.qcard.q4 { right: 0; bottom: 6px; rotate: -4deg; animation-delay: -2.1s; }
.stamp {
  position: absolute;
  z-index: 4;
  width: 96px;
  height: 96px;
  border: 3px solid var(--red);
  border-radius: 50%;
  color: var(--red-deep);
  font-family: var(--font-display);
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.2;
  rotate: -14deg;
  background: rgba(251, 243, 230, 0.9);
  box-shadow: inset 0 0 0 3px rgba(251, 243, 230, 0.9), inset 0 0 0 4px var(--red);
  left: calc(50% - 196px);
  top: 47%;
}
.stamp b { display: block; font-weight: 400; font-size: 1rem; }
.stamp span { font-family: var(--font-latin); font-size: 0.62rem; letter-spacing: 0.08em; }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 12px; }
  .hero { padding-top: 36px; }
  .hero .stage { min-height: 640px; margin-top: 8px; align-items: flex-end; padding-bottom: 20px; }
  .hero .phone { width: min(240px, 58vw); }
  .qcard { width: 140px; font-size: 0.9rem; padding: 12px 14px 10px; }
  .qcard.q1 { left: 0; top: 0; }
  .qcard.q2 { right: 0; top: 10px; }
  .qcard.q3 { left: 2px; bottom: 10px; }
  .qcard.q4 { right: 2px; bottom: 30px; }
  .stamp { width: 84px; height: 84px; left: calc(50% - 150px); top: 50%; }
}
@media (max-width: 400px) {
  .qcard { width: 128px; font-size: 0.82rem; }
}

/* ---------- sections ---------- */
.section { padding-block: 76px; }
.section.alt { background: var(--cream-2); }
.section-head { max-width: 40em; margin-bottom: 36px; }
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.3;
  margin: 10px 0 12px;
  text-wrap: balance;
}
.section-head p { color: var(--ink-2); margin: 0; font-size: 1.05rem; }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow);
  border-bottom: 6px solid var(--plinth);
}
.step .num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 1.25rem;
  box-shadow: 0 6px 14px rgba(185, 56, 47, 0.35);
}
.step .icon {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 46px;
  height: 46px;
  color: var(--gold);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.32rem;
  margin: 18px 0 8px;
}
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

/* deck gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.deckcard {
  margin: 0;
  background: var(--paper);
  border-radius: 22px;
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-sm);
  border-bottom: 5px solid var(--tint, var(--plinth));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.deckcard:hover { transform: translateY(-5px) rotate(-0.6deg); box-shadow: var(--shadow); }
.deckcard .dot {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--tint, var(--gold));
  margin-bottom: 12px;
}
.deckcard .dot svg { width: 24px; height: 24px; }
.deckcard b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.deckcard span { color: var(--ink-3); font-size: 0.85rem; display: block; margin-bottom: 8px; }
.deckcard q {
  display: block;
  quotes: "「" "」";
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.teaser { margin: 28px 0 0; color: var(--ink-2); font-family: var(--font-display); font-size: 1.05rem; }

/* screenshots strip */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  align-items: start;
}
.shots figure { margin: 0; text-align: center; }
.shots .phone { width: 100%; margin-inline: auto; }
.shots figcaption { margin-top: 14px; font-family: var(--font-display); color: var(--ink-2); }

/* split (features) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.split .phone { margin-inline: auto; }
.features { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.features .dot {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--red-deep);
  background: var(--red-soft);
}
.features .dot.gold { color: var(--gold-deep); background: var(--gold-soft); }
.features .dot.green { color: #3E7A4E; background: var(--green-soft); }
.features .dot.rose { color: var(--rose); background: var(--rose-soft); }
.features .dot svg { width: 22px; height: 22px; }
.features b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.08rem; }
.features p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split .stage { min-height: auto; }
}

/* taboo list */
.taboo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 980px;
}
.taboo div {
  background: var(--paper);
  border-radius: 20px;
  padding: 18px 20px 16px;
  box-shadow: var(--shadow-sm);
  border-bottom: 5px solid var(--plinth);
}
.taboo s { display: block; color: var(--ink-3); text-decoration: line-through; font-size: 0.95rem; }
.taboo b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.08rem; color: var(--red-deep); margin-top: 4px; }

/* privacy promise */
.promise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.promise div {
  background: var(--paper);
  border-radius: 22px;
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-sm);
  border-bottom: 5px solid var(--plinth);
}
.promise svg { width: 30px; height: 30px; color: var(--gold-deep); display: block; margin-bottom: 10px; }
.promise b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; margin-bottom: 4px; }
.promise p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(185, 56, 47, 0.3);
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn.ghost {
  background: transparent;
  color: var(--red-deep);
  border: 2px solid var(--red);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--red-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- footer ---------- */
footer {
  padding-block: 40px 52px;
  border-top: 1px solid rgba(185, 56, 47, 0.14);
  color: var(--ink-2);
  font-size: 0.92rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  justify-content: space-between;
  align-items: center;
}
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid rgba(94, 74, 69, 0.3); }
footer a:hover { color: var(--red-deep); border-color: var(--red); }
footer .motto { font-family: var(--font-display); color: var(--ink-3); }

/* ---------- document pages (privacy, terms, support) ---------- */
.doc { max-width: 720px; padding-block: 44px 90px; }
.doc h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.3;
  margin: 6px 0 8px;
  text-wrap: balance;
}
.doc .meta { color: var(--ink-3); font-size: 0.92rem; margin: 0 0 24px; }
.doc h2 {
  font-size: 1.4rem;
  margin: 44px 0 10px;
  padding-top: 8px;
}
.doc h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.12rem;
  margin: 26px 0 6px;
  color: var(--red-deep);
}
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc hr { border: 0; border-top: 1px dashed var(--plinth-dark); margin: 48px 0; }
.lang-switch { display: flex; gap: 8px; margin: 0 0 8px; }
.lang-switch a {
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--plinth-dark);
  color: var(--ink-2);
  font-size: 0.9rem;
  background: var(--paper);
}
.lang-switch a:hover { border-color: var(--red); color: var(--red-deep); }
.doc .box {
  background: var(--paper);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  border-bottom: 4px solid var(--plinth);
}
.faq details {
  background: var(--paper);
  border-radius: 18px;
  padding: 4px 20px;
  margin: 10px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 4px solid var(--plinth);
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 12px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--red);
  font-family: var(--font-latin);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }

@media (prefers-reduced-motion: reduce) {
  .qcard { animation: none; }
  .deckcard, .btn { transition: none; }
  html { scroll-behavior: auto; }
}
