/* 試用頁跟 App 品牌：米色紙、白卡、海軍藍價錢牌、收據式文案明細。只用淺色。 */
:root {
  --bg: #F6EEDF;
  --surface: #FFFDF8;
  --surface-muted: #EFE6D6;
  --text: #1C2430;
  --muted: #5C5A52;
  --faint: #7A7466;
  --accent: #1F3A5F;
  --accent-soft: #E4EAF2;
  --border: #E6DBC8;
  --border-strong: #CFC1A9;
  --tag: #FFC53D;
  --danger: #C2312D;
  --mono: ui-monospace, Menlo, Consolas, "SFMono-Regular", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #F6EEDF;
    --surface: #FFFDF8;
    --text: #1C2430;
    --muted: #5C5A52;
    --accent: #1F3A5F;
    --border: #E6DBC8;
  }
}
[hidden] { display: none !important; }
body.try { background: var(--bg); color: var(--text); }
body.try main { max-width: 560px; padding-bottom: 40px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 560px; margin: 0 auto; padding: 20px 16px 0; }
.header-app { flex: none; padding: 8px 14px; color: var(--accent); background: var(--surface); border: 1.5px solid var(--accent); border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; text-decoration: none; }
.logo img { border-radius: 9px; }

.hero h1 { margin: 22px 0 6px; font-size: 30px; line-height: 1.22; letter-spacing: -0.01em; }
.lead { margin: 0; color: var(--muted); }

/* 前後對比 */
.demo { margin-top: 22px; }
.eyebrow { margin: 0 0 10px; color: var(--faint); font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.demo-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot { margin: 0; padding: 8px 8px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 3px 10px rgba(92, 74, 46, .08); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 9px; }
.shot figcaption { padding: 8px 2px 10px; color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; }
.demo-arrow { position: absolute; left: 50%; top: 42%; display: grid; place-items: center; width: 40px; height: 40px; color: var(--text); background: var(--tag); border: 3px solid var(--bg); border-radius: 50%; transform: translate(-50%, -50%); }

/* 收據：上下鋸齒邊，等寬字 */
.receipt {
  padding: 22px 20px 24px;
  color: var(--text);
  background: var(--surface);
  font-family: var(--mono);
  -webkit-mask: radial-gradient(circle at 50% 0, transparent 6px, #000 6.5px) top / 16px 51% repeat-x,
                radial-gradient(circle at 50% 100%, transparent 6px, #000 6.5px) bottom / 16px 51% repeat-x;
          mask: radial-gradient(circle at 50% 0, transparent 6px, #000 6.5px) top / 16px 51% repeat-x,
                radial-gradient(circle at 50% 100%, transparent 6px, #000 6.5px) bottom / 16px 51% repeat-x;
}
.receipt p { margin: 0; }
.receipt-mini { margin-top: 12px; padding: 18px 16px 20px; }
.r-brand { font-weight: 700; font-size: 17px; text-align: center; letter-spacing: .04em; }
.r-sub { color: var(--muted); font-size: 13px; text-align: center; margin-top: 2px !important; }
.r-rule { margin: 12px 0; border-top: 1px dashed var(--border-strong); }
.r-label { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px !important; }
.r-title { font-weight: 700; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.receipt-mini .r-title { font-size: 14px; margin-bottom: 10px !important; }
.r-row { display: flex; gap: 12px; justify-content: space-between; font-size: 14px; }
.r-row span:last-child { flex: none; }
.r-price { font-weight: 700; font-size: 17px; }

/* 三步 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 14px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; color: #fff; background: var(--accent); border-radius: 50%; font: 700 14px/1 var(--mono); }
.steps strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }

/* 卡片同表單 */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-top: 20px; box-shadow: 0 3px 10px rgba(92, 74, 46, .08); }
.trial-card { margin-top: 24px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trial-card label { display: block; min-width: 0; font-size: 14px; font-weight: 600; }
.trial-card select {
  display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 0 10px;
  color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px; font: inherit;
}
.trial-card .photo-picker {
  display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
  min-height: 180px; margin-top: 16px; padding: 18px; text-align: center; cursor: pointer;
  color: var(--accent); font-weight: 700; background: var(--bg); border: 2px dashed var(--border-strong); border-radius: 14px;
}
.photo-picker:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.photo-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-picker img { display: block; max-width: 100%; max-height: 280px; object-fit: contain; border-radius: 10px; }
.note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.note a { color: var(--accent); }

/* 海軍藍價錢牌按鈕：左邊方、右邊圓，右邊有個孔 */
.tag-button {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 54px; padding: 0 52px 0 20px;
  color: #fff; background: var(--accent); border: 0; border-radius: 8px 30px 30px 8px;
  font: inherit; font-size: 17px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 12px rgba(31, 58, 95, .25);
}
.tag-button::after { content: ""; position: absolute; right: 22px; top: 50%; width: 11px; height: 11px; background: var(--bg); border-radius: 50%; transform: translateY(-50%); }
.tag-button:disabled { cursor: default; opacity: .45; box-shadow: none; }
main a.tag-button, main a.tag-button:visited { color: #fff; }
.ghost-button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 16px;
  color: var(--accent); background: transparent; border: 1.5px solid var(--accent); border-radius: 12px;
  font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
.platform-button {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 16px;
  color: #fff; background: var(--platform, var(--accent)); border: 0; border-radius: 30px;
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
}
.message { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.message.error { color: var(--danger); }

/* 結果 */
.result { margin-top: 28px; }
.result-heading { margin: 0 0 12px; font-size: 22px; }
.result h3 { margin: 18px 0 4px; color: var(--faint); font-size: 13px; }
.copy-card h3:first-child { margin-top: 0; }
.description { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tags { margin: 0; color: var(--accent); overflow-wrap: anywhere; }
.photo-result { margin-top: 18px; }
.photo-result h3 { margin-top: 0; }
.photo-result img { display: block; width: 100%; max-height: 460px; object-fit: contain; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.photo-result .ghost-button { margin-top: 10px; }
.photo-status { color: var(--muted); font-size: 14px; }
.actions { display: grid; gap: 10px; margin-top: 18px; }

.next h2 { margin-top: 0; }
.next-points { margin: 10px 0; padding-left: 20px; }
.next-points li { margin-top: 6px; }

body.try footer { max-width: 560px; color: var(--muted); }
body.try footer a { color: var(--muted); }

@media (max-width: 420px) {
  .hero h1 { font-size: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .steps { gap: 8px; }
  .steps li { padding: 12px 10px; font-size: 12px; }
  .steps strong { font-size: 14px; }
}

.result-app {
  display: block;
  width: 100%;
  margin-top: 14px;
  text-align: center;
}

/* 上載掣放喺第一屏：手機睇到標題就見到 */
.trial-card { margin-top: 18px; }
.trial-card .photo-picker:first-child { margin-top: 0; }
.reassure { margin: 8px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; }
.example-button { margin: 12px 0 16px; }
.example-note { margin-top: 12px; }
.try-own { margin-top: 10px; }
@media (max-width: 420px) {
  .hero h1 { margin-top: 14px; }
  .trial-card { padding: 16px; }
  .trial-card .photo-picker { min-height: 120px; padding: 14px; }
}
