/* Colours follow docs/product/concept/zh-tw/mockup.html. Large type for middle-aged visitors. */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eaf1ff;
  --ink: #1c2230;
  --ink-2: #4b5565;
  --line: #e7eaf0;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 19px; }
@media (min-width: 900px) { html { font-size: 20px; } }

body {
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1 { font-size: 1.8rem; line-height: 1.3; font-weight: 700; letter-spacing: .01em; }
h2 { font-size: 1.6rem; line-height: 1.35; font-weight: 700; margin-bottom: 1.2rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 1rem 0 .3rem; }
@media (min-width: 900px) { h1 { font-size: 2.6rem; } }

section { padding: 56px 0; }
section:nth-of-type(even) { background: var(--bg-alt); }

/* Call to action */
.cta {
  display: inline-block;
  min-height: 60px;
  padding: 14px 36px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .3);
}
.cta:hover { background: var(--blue-dark); }
.cta:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { height: 64px; display: flex; align-items: center; }
.brand { font-size: 1.3rem; font-weight: 700; color: var(--blue); }
.brand small { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-left: 6px; }

/* Hero */
.hero { padding-top: 40px; background: linear-gradient(180deg, var(--blue-soft), #fff); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--ink-2); margin: 1rem 0 1.6rem; }
.hero-phone img {
  width: min(300px, 80vw);
  margin: 0 auto;
  border-radius: 32px;
  box-shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 18px 40px rgba(20, 30, 60, .16);
}
@media (min-width: 900px) {
  .hero { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
}

/* Problem */
.pains { list-style: none; display: grid; gap: 16px; }
.pains li {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.pain-icon { font-size: 1.6rem; line-height: 1.2; }
@media (min-width: 900px) { .pains { grid-template-columns: repeat(3, 1fr); } }

/* How it works */
.section-note { color: var(--ink-2); margin: -0.6rem 0 1.6rem; font-size: .95rem; }
.screens { list-style: none; display: grid; gap: 40px; }
.screens li { text-align: center; }
.screens img {
  width: min(260px, 72vw);
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(20, 30, 60, .10);
}
.screens p { color: var(--ink-2); }
@media (min-width: 700px) { .screens { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .screens { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .screens img { width: 100%; }
}
.invite {
  margin-top: 40px; text-align: center; font-size: 1.1rem; font-weight: 600;
  background: var(--blue-soft); border-radius: var(--radius); padding: 18px 20px;
}

/* On the road */
.points { list-style: none; display: grid; gap: 14px; }
.points li { padding-left: 1.6rem; position: relative; }
.points li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* Coming later */
.later-list { list-style: none; display: grid; gap: 16px; }
.later-list li { border: 1px dashed #b8c4d8; border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.later-list h3 { margin-top: 0; }
.later-list p { color: var(--ink-2); }
@media (min-width: 900px) { .later-list { grid-template-columns: repeat(3, 1fr); } }

/* Final CTA */
.final { text-align: center; padding-bottom: 72px; }
.privacy { margin-top: 1.2rem; font-size: .85rem; color: var(--ink-2); }

.footer { border-top: 1px solid var(--line); padding: 24px 0 110px; font-size: .85rem; color: var(--ink-2); }
@media (min-width: 900px) { .footer { padding-bottom: 24px; } }

/* Sticky CTA, mobile only, shown once the hero button scrolls away */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
}
.sticky-cta .cta { width: 100%; }
.sticky-cta[hidden] { display: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Popup after the download tap */
dialog {
  margin: auto;
  width: min(420px, calc(100vw - 40px));
  border: 0; border-radius: 24px;
  padding: 32px 28px 28px;
  text-align: center;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(20, 30, 60, .25);
}
dialog::backdrop { background: rgba(20, 30, 60, .45); }
dialog h2 { font-size: 1.35rem; margin-bottom: .6rem; }
dialog p { color: var(--ink-2); margin-bottom: 1.4rem; }
dialog .cta { min-width: 140px; }
