/* ---------- tokens ---------- */
:root {
  --paper: #f0ebe3;
  --sage: #8a9a7b;
  --moss: #5f7155;
  --ink: #2f2b26;
  --ink-soft: #3a352e;
  --border: #d6cdbd;
  --card: #faf7f1;
  --leaf: #3d7b2f;
  --leaf-deep: #2a5e20;
  --leaf-line: color-mix(in srgb, var(--leaf) 45%, var(--border));
  --leaf-tint: color-mix(in srgb, var(--leaf) 14%, var(--card));
  --highlight: #f2ed8a;
  --white: #fff;

  --paper-08: color-mix(in srgb, var(--paper) 8%, transparent);
  --paper-12: color-mix(in srgb, var(--paper) 12%, transparent);
  --paper-25: color-mix(in srgb, var(--paper) 25%, transparent);
  --paper-38: color-mix(in srgb, var(--paper) 38%, transparent);
  --paper-50: color-mix(in srgb, var(--paper) 50%, transparent);
  --paper-72: color-mix(in srgb, var(--paper) 72%, transparent);

  --ink-08: color-mix(in srgb, var(--ink) 8%, transparent);

  --leaf-wash: color-mix(in srgb, var(--leaf) 22%, var(--card));
  --leaf-deep-30: color-mix(in srgb, var(--leaf-deep) 30%, transparent);
  --leaf-deep-35: color-mix(in srgb, var(--leaf-deep) 35%, transparent);

  --font-display: "Fraunces", "Songti TC", "Noto Serif TC", "Noto Serif CJK TC", "Source Han Serif TC", PMingLiU, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif;
  --font-mono: "DM Mono", "Courier New", monospace;

  --gutter: 4rem;
}

@media (max-width: 900px) {
  :root { --gutter: 1.5rem; }
}

/* ---------- base ---------- */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 7.5rem; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.line-id {
  margin-left: .45rem;
  font-family: var(--font-mono);
  font-size: .9em;
  letter-spacing: .06em;
  opacity: .72;
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: box-shadow .2s;
}
.topbar.is-scrolled { box-shadow: 0 2px 20px var(--ink-08); }

.nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
/* latest cases ticker; the track holds the message twice so it loops seamlessly */
.marquee {
  overflow: hidden;
  padding: .45rem 0;
  background: var(--leaf-deep);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track p { padding-right: 4em; white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { width: auto; height: 52px; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--moss); }
.nav-links .nav-cta { padding: .5rem 1.2rem; background: var(--ink); color: var(--paper); transition: background .2s; }
.nav-links .nav-cta:hover { background: var(--moss); color: var(--white); }
.nav-burger {
  display: none;
  padding: .4rem .7rem;
  background: none;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.is-open { display: flex; }
}

/* ---------- page ---------- */
.page {
  max-width: 1080px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 10rem 2rem 4rem;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: "text art" "features features";
  align-items: center;
  gap: 2.5rem 3.5rem;
  margin-bottom: 4.5rem;
}
.hero-text { grid-area: text; }
.hero-label {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--leaf-deep);
}
.hero-label::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
.hero-wave {
  display: block;
  width: min(100%, 26rem);
  height: .9rem;
  margin-top: .4rem;
  fill: none;
  stroke: var(--leaf);
  stroke-width: 4px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.hero-title {
  margin: 1.8rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 5.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
  letter-spacing: .02em;
}
.hero-lede { max-width: 34rem; font-size: 1.1rem; line-height: 1.8; color: var(--ink-soft); }
.hero-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.hero-chips li {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 1rem;
  color: var(--ink);
}
.hero-chips li::before { content: "✓"; font-weight: 700; color: var(--leaf); }
.hero-art { grid-area: art; justify-self: end; width: 100%; max-width: 480px; height: auto; }

.features { grid-area: features; }
/* centered heading with a rule on each side */
.ruled {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
}
.ruled::before,
.ruled::after { content: ""; flex: 0 1 7rem; height: 2px; background: currentColor; }

.features-title {
  margin-bottom: 1.2rem;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--leaf-deep);
}
.features-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.features-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding: 1.4rem .5rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--cream);
  border-radius: 14px;
  box-shadow: 0 4px 12px var(--ink-08);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--leaf-deep);
  text-align: center;
}
.features-list img { width: auto; height: 72px; }

/* card sections (plans, steps) */
.card-section { margin-bottom: 4.5rem; }
.section-head { margin-bottom: 1.8rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .04em;
  color: var(--leaf-deep);
}
.section-title--mark { display: flex; align-items: center; gap: .9rem; }
.section-title--mark::before { content: ""; margin-left: .3rem; width: 3px; height: .9em; border-radius: 2px; background: var(--leaf); transform: rotate(35deg); }
.section-sub { margin-top: .4rem; font-size: 1.1rem; letter-spacing: .06em; color: var(--ink-soft); }
.card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.8rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
}
.card-top { flex: 1; display: flex; align-items: center; gap: 1.4rem; }
.card-icon { width: 76px; height: auto; flex-shrink: 0; }
.card-icon-link { display: block; flex-shrink: 0; animation: float-y 1.8s ease-in-out infinite; }
.card-top > div { padding-left: 1.4rem; border-left: 1px solid var(--border); }
.card-name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.3; letter-spacing: .04em; }
.card-desc { margin-top: .3rem; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.card-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .4rem 1rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--border);
}
.card-amount { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--leaf-deep); white-space: nowrap; }
.card-amount small { margin-left: .8rem; font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--ink); }
.card-step { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--leaf-deep); }
/* the call to action is an image with its label drawn in */
.card-go { margin-left: auto; animation: float-x 1.2s ease-in-out infinite; }
.card-go img { display: block; width: auto; height: 96px; }

.page > :last-child { margin-bottom: 0; }

/* centered section heading (faq, contact) */
.center-head { margin-bottom: 2rem; text-align: center; }
.center-title {
  gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  color: var(--leaf-deep);
}
.center-title::before,
.center-title::after { flex-basis: 6rem; }
.center-title img { width: auto; height: 1.35em; margin-right: -.2rem; }
.center-sub { margin-top: .5rem; font-size: 1.15rem; letter-spacing: .16em; color: var(--ink-soft); }
.swoosh {
  display: block;
  width: min(70%, 20rem);
  height: 1rem;
  margin: .2rem auto 0;
  fill: none;
  stroke: color-mix(in srgb, var(--leaf) 45%, transparent);
  stroke-width: 5px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.faq, .contact { margin-bottom: 4.5rem; }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 1rem; max-width: 52rem; margin: 0 auto; }
.faq-item {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--leaf-line);
  border-radius: 14px;
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .04em;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: .6rem;
  height: .6rem;
  margin: 0 .3rem 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform .2s;
}
.faq-item[open] summary { background: var(--leaf-tint); color: var(--leaf-deep); }
.faq-item[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.faq-q {
  flex-shrink: 0;
  padding: .15rem .75rem;
  border-radius: 999px;
  background: var(--leaf);
  font-size: 1.15rem;
  color: var(--white);
}
.faq-item p { padding: 1.1rem 1.5rem 1.3rem; font-size: 1.02rem; line-height: 1.8; color: var(--ink-soft); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.2rem; max-width: 60rem; margin: 0 auto; }
.contact-line-panel { display: grid; align-items: center; padding: 1.6rem; background: var(--leaf-wash); border-radius: 22px; }
.line-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-deep));
  border: 3px solid var(--white);
  border-radius: 18px;
  box-shadow: 0 6px 16px var(--leaf-deep-30);
  color: var(--white);
  text-decoration: none;
  animation: float-y 2.4s ease-in-out infinite;
  transition: box-shadow .2s;
}
.line-cta:hover { box-shadow: 0 10px 22px var(--leaf-deep-35); }
/* the word sits in ::after so it stays out of the button text the event setup tool reads */
.line-logo { position: relative; flex-shrink: 0; width: 64px; }
.line-logo svg { display: block; width: 100%; height: auto; fill: var(--white); }
.line-logo::after {
  content: "LINE";
  position: absolute;
  inset: 0 0 12% 0;
  display: grid;
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: .95rem;
  font-weight: 900;
  color: var(--leaf-deep);
}
.line-cta-text { display: flex; flex-direction: column; gap: .2rem; white-space: nowrap; }
.line-cta-text strong { font-size: 1.6rem; letter-spacing: .04em; line-height: 1.25; }
.line-cta-text span { font-size: 1rem; letter-spacing: .08em; }
.line-cta-go {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-left: auto;
  border-radius: 50%;
  background: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--leaf-deep);
}
.contact-info {
  padding: 1.3rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 4px 12px var(--ink-08);
}
.contact-info-title {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--leaf-deep);
}
.contact-info-title img { width: 48px; height: auto; }
.contact-hours { display: flex; align-items: flex-start; gap: .8rem; font-size: 1.1rem; font-weight: 700; line-height: 1.7; color: var(--ink-soft); }
.contact-hours img { width: 32px; height: auto; margin-top: .2rem; }
.contact-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 60rem;
  margin: 2rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--leaf-line);
}
.contact-points li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--leaf-deep);
}
.contact-points li + li { border-left: 1px solid var(--leaf-line); }
.contact-points img { width: auto; height: 72px; }
.scam-alert {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
  max-width: 60rem;
  margin: 1.6rem auto 0;
  padding: 1.2rem 1.4rem;
  background: var(--leaf-tint);
  border: 1px solid var(--leaf-line);
  border-radius: 16px;
}
.scam-alert img { width: 56px; height: auto; }
.scam-title {
  padding-left: 1.2rem;
  border-left: 2px solid var(--leaf-deep);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--leaf-deep);
  white-space: nowrap;
}
.scam-title mark { background: linear-gradient(transparent 55%, var(--highlight) 55%); color: inherit; }
.scam-alert p { font-size: .95rem; line-height: 1.75; color: var(--ink-soft); }

/* light green hills above the footer */
.hills { display: block; width: 100%; height: clamp(48px, 8vw, 110px); }
.hills path:first-child { fill: color-mix(in srgb, var(--leaf) 22%, var(--paper)); }
.hills path:last-child { fill: color-mix(in srgb, var(--leaf) 40%, var(--paper)); }

@media (max-width: 900px) {
  .page { padding: 8.5rem 1.5rem 4rem; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "text" "features" "art"; gap: 1.8rem; margin-bottom: 3.5rem; }
  .hero-art { justify-self: center; max-width: 520px; }
  .card-section, .faq, .contact { margin-bottom: 3.5rem; }
  .card-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-line-panel { padding: 1rem; }
  .line-cta { gap: .75rem; padding: .9rem 1rem; }
  .line-logo { width: 46px; }
  .line-logo::after { font-size: .7rem; }
  .line-cta-text strong { font-size: 1.2rem; }
  .line-cta-text span { font-size: .85rem; letter-spacing: .04em; }
  .line-cta-go { width: 2.2rem; height: 2.2rem; font-size: 1.3rem; }
  .contact-points li { font-size: 1.05rem; }
  .contact-points img { height: 52px; }
  .scam-alert { grid-template-columns: auto minmax(0, 1fr); gap: .9rem; padding: 1rem 1.1rem; }
  .scam-alert img { width: 44px; }
  .scam-title { font-size: 1.35rem; }
  .scam-alert p { grid-column: 1 / -1; }
  .center-title::before,
  .center-title::after { flex-basis: 2.5rem; }
  .faq-item summary { gap: .7rem; padding: .85rem 1rem; font-size: 1.05rem; }
  .faq-q { font-size: 1rem; padding-inline: .6rem; }
  .faq-item p { padding: .9rem 1.1rem 1.1rem; font-size: .95rem; }
  .hero-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .hero-chips li { padding-inline: .3rem; font-size: .95rem; }
  .features-list { gap: .5rem; }
  .features-list li { padding: .9rem .2rem .8rem; gap: .5rem; border-radius: 12px; font-size: .9rem; letter-spacing: .02em; }
  .features-list img { height: 44px; }
  .card { padding: 1.5rem 1.1rem 1.2rem; }
  .card-top { gap: .8rem; }
  .card-icon { width: 56px; }
  .card-top > div { padding-left: .8rem; }
  .card-name { font-size: 1.4rem; }
  .card-desc { font-size: .82rem; }
  .card-foot { gap: .4rem .6rem; }
  .card-amount { font-size: 1.2rem; }
  .card-amount small { margin-left: .4rem; font-size: .8rem; }
  .card-step { font-size: 1.35rem; }
  .card-go img { height: 80px; }
}

/* ---------- footer ---------- */
.footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2fr);
  gap: 2.5rem 3rem;
  padding: 3rem var(--gutter) 2.5rem;
  background: var(--ink);
  color: var(--paper-50);
  border-top: 1px solid var(--paper-08);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer-logo { display: flex; align-items: center; gap: .6rem; }
.footer-logo-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: .12em; color: var(--paper); }
.footer-copy { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; line-height: 1.8; }
.footer-line {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding-bottom: .15rem;
  border-bottom: 1px solid var(--paper-25);
  font-size: .82rem;
  color: var(--paper);
  text-decoration: none;
}
.footer-line:hover { color: var(--sage); border-color: var(--sage); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1.5rem 2rem; }
.footer-col-title {
  margin-bottom: .7rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-38);
}
.footer-cols a { display: block; font-size: .82rem; line-height: 1.9; color: var(--paper-72); text-decoration: none; transition: color .2s; }
.footer-cols a:hover { color: var(--sage); }

@media (max-width: 900px) {
  .footer { grid-template-columns: 1fr; padding-bottom: 5.5rem; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- floating LINE button ---------- */
.line-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 120;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--leaf-deep);
  color: var(--paper);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--ink) 22%, transparent);
  transition: background .2s, transform .2s;
}
.line-fab:hover { background: var(--leaf); transform: translateY(-2px); }

/* mobile bottom action bar (replaces the floating LINE button) */
.sticky-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 110;
  display: none;
  background: var(--ink);
  border-top: 1px solid var(--paper-12);
}
.sticky-bar a {
  flex: 1;
  padding: .9rem .4rem;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--paper);
  text-align: center;
  text-decoration: none;
}
.sticky-bar > * + * { border-left: 1px solid var(--paper-12); }

@media (max-width: 720px) {
  body { padding-bottom: 3.6rem; }
  .sticky-bar { display: flex; }
  .line-fab { display: none; }
}

/* floating calls to action; paused on hover so they hold still while being clicked */
@keyframes float-x {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(12px); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.card-go:hover,
.card-icon-link:hover,
.line-cta:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after, .line-fab, .line-cta { transition: none; }
  .card-go, .card-icon-link, .line-cta, .marquee-track { animation: none; }
  .line-fab:hover { transform: none; }
}
