/* 舖見 sales pages (D122): /for-shops, /consult, /signup. Loaded after
   portal.css and uses its tokens (light and dark); no web fonts, no inline
   styles. Phone first: one column, short sections, a sticky bar with the two
   actions; 44 px targets everywhere. */
.eyebrow { margin: 0 0 8px; font-size: .8125rem; letter-spacing: .12em; color: var(--text-2); }
.hero { padding: 4px 0 8px; }

.hero .lead { font-size: 1.0625rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.btn-lg { min-height: 52px; padding: 10px 28px; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }
.fine { margin: 12px 0 0; font-size: .875rem; color: var(--text-2); }
.section { padding-top: 4px; border-top: 1px solid var(--border); }
.section-title { margin: 12px 0 8px; font-family: var(--font-heading); font-weight: 600; font-size: 1.375rem; line-height: 1.35; letter-spacing: .03em; }
.section p { margin: 0 0 8px; }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 719px) { .who .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; } .who .chips li { flex: none; } }
.chips li { padding: 6px 14px; border: 1px solid var(--border); border-radius: 9999px; background: var(--surface); font-size: .9375rem; }

.mods, .plans, .demos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
/* D123: on a phone the modules and the plans are one row each that scrolls
   sideways and snaps to a card (the next card peeks in); from 960 px the
   modules are a grid and the plans a table. No JavaScript, no layout shift. */
.snap { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 2px 2px 10px; scrollbar-width: thin; }
.snap > li { scroll-snap-align: start; }
.snap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.swipe-hint { margin: 0 !important; font-size: .8125rem; color: var(--text-2); white-space: nowrap; }
.compare { display: none; }
@media (min-width: 960px) {
  .swipe-hint { display: none; }
  .mods.snap { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding: 0; }
  .plans.snap { display: none; }
  .compare { display: block; margin-top: 4px; }
}
.mod-card, .plan-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.mod-card h3, .plan-card h3 { margin: 0; font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; }
.mod-card p, .plan-card p { margin: 0; }
.mod-in { margin-top: auto !important; padding-top: 6px; font-size: .8125rem; color: var(--text-2); }
.plan-desc { color: var(--text-2); font-size: .9375rem; }
.plan-price { font-size: 1.125rem; font-weight: 600; }
.plan-price-list { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 2px; }
.plan-price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.plan-price-list strong { font-variant-numeric: tabular-nums; }
.plan-note { font-size: .8125rem; color: var(--text-2); }
.plan-card .btn { margin-top: auto; }
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "＋"; color: var(--accent); font-weight: 600; }
details[open] > summary::before { content: "－"; }
.plan-mods summary { min-height: 44px; }
.plan-mods ul { margin: 0 0 8px; padding-left: 1.25em; font-size: .9375rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); scrollbar-width: thin; }
.compare-table { border-collapse: collapse; width: 100%; font-size: .875rem; }
.compare-table th, .compare-table td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: top; }
.compare-table .price-row td { font-weight: 600; font-variant-numeric: tabular-nums; }
.compare-table td.note, .th-sub { font-size: .8125rem; color: var(--text-2); font-weight: 400; }
.th-sub { display: block; margin-top: 2px; }
.compare-table tfoot td { border-bottom: 0; padding-top: 10px; }
.compare-table th[scope="row"] { text-align: left; font-weight: 400; white-space: nowrap; }
.compare-table thead th { font-weight: 600; background: var(--surface-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.demos a { display: flex; flex-direction: column; min-height: 44px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); text-decoration: none; color: var(--text); font-weight: 600; }
.demos a:hover { border-color: var(--accent); }
.demo-host { font-weight: 400; font-size: .8125rem; color: var(--accent); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { padding: 6px 0; font-weight: 600; }
.faq details p { margin: 0 0 12px; color: var(--text-2); }
.closing { padding-bottom: 8px; }

/* The two actions stay in reach on a phone. */
.cta-bar { display: none; }
@media (max-width: 719px) {
  .has-cta-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .cta-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border); }
  .cta-bar .btn { flex: 1; min-height: 48px; }
  .cta-row .btn-lg { flex: 1 1 auto; }
  .has-cta-bar .closing { display: none; }
}

/* forms */
.form-page { max-width: 560px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.form { display: flex; flex-direction: column; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9375rem; }
.req { color: var(--accent); }
.opt { font-weight: 400; color: var(--text-2); font-size: .8125rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: var(--danger); }
.hint { margin: 6px 0 0; font-size: .8125rem; color: var(--text-2); }
.field-err { margin: 6px 0 0; font-size: .875rem; color: var(--danger); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin: 0; font-size: .8125rem; color: var(--text-2); }
.check, .field label.check { display: flex; font-weight: 400; gap: 10px; align-items: flex-start; min-height: 44px; font-size: .9375rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.notice { margin: 0; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.notice-ok { border-color: var(--ok-border); background: var(--ok-bg); color: var(--ok); }
.notice-warn { border-color: var(--warn-border); background: var(--warn-bg); color: var(--warn); }
.slug-input { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.slug-input input { border: 0; min-width: 0; flex: 1; }
.slug-input:focus-within { outline: 2px solid var(--focus); box-shadow: 0 0 0 4px var(--accent-soft); }
.slug-input input:focus-visible { outline: 0; box-shadow: none; }
.slug-suffix { display: flex; align-items: center; padding: 0 12px; color: var(--text-2); font-size: .875rem; white-space: nowrap; border-left: 1px solid var(--border); }
.slug-status { min-height: 1.4em; margin: 6px 0 0; font-size: .875rem; }
.slug-status.ok { color: var(--ok); } .slug-status.no { color: var(--danger); }
@media (max-width: 340px) { .slug-input { flex-direction: column; } .slug-suffix { border-left: 0; border-top: 1px solid var(--border); padding: 6px 12px; } }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.steps { margin: 0; padding-left: 1.25em; }
.steps li { margin-bottom: 4px; }
.facts { padding-left: 1.25em; }
.facts li { margin-bottom: 6px; }
/* D123: FAQ answers in the Markdown subset; the copy preview's note. */
.faq-a p, .faq-a ul { margin: 0 0 12px; color: var(--text-2); }
.faq-a ul { padding-left: 1.25em; }
.preview-note { margin: 0 0 8px; }
/* D123: 服務條款 / 隱私權說明 */
.legal { max-width: 720px; }
.legal-meta { margin: 0; font-size: .875rem; color: var(--text-2); }
.legal-body h3 { margin: 20px 0 8px; font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; }
.legal-body p, .legal-body ul { margin: 0 0 10px; }
.legal-body ul { padding-left: 1.25em; }
.legal-body li { margin-bottom: 4px; }
.legal-versions ul { margin: 0 0 8px; padding-left: 1.25em; }
.legal-foot { margin: 0; }
/* D126: 店家說明 (/help) */
.legal-body h2 { margin: 24px 0 8px; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.legal-body ol { margin: 0 0 10px; padding-left: 1.5em; }
.help-index { list-style: none; margin: 16px 0; padding: 0; }
.help-index li { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px solid var(--border); }
.help-index a { display: inline-block; min-height: 44px; padding-top: 10px; }
