/* ============================================================================
   國興場地通 平台頁（銷售首頁、自助開通、開通進度、找我的組織）
   設計來源：docs/saas/prototype/landing.html、signup.html、provisioning.html
   ============================================================================ */
:root {
  --ink: #101820;
  --paper: #f6f1e7;
  --paper-2: #ece4d3;
  --amber: #d97706;
  --amber-deep: #9a4d00;
  --moss: #2f5d50;
  --red: #b42318;
  --line: rgba(16, 24, 32, .14);
  --radius: 14px;
  font-family: "Noto Sans TC", system-ui, -apple-system, "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.pf {
  margin: 0; background: var(--paper); color: var(--ink); line-height: 1.7; min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(217, 119, 6, .18), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(16, 24, 32, .045) 39px 40px);
}
body.pf h1, body.pf h2, body.pf h3 { font-family: "Noto Serif TC", "Fraunces", serif; line-height: 1.15; margin: 0; letter-spacing: .01em; }
body.pf a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Noto Serif TC", serif; font-weight: 900; font-size: 1.25rem; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-weight: 500; }
.nav ul a { text-decoration: none; opacity: .8; }
.nav ul a:hover { opacity: 1; }
.nav .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; background: transparent; color: var(--ink); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(16, 24, 32, .5); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn.block { display: flex; justify-content: center; width: 100%; margin-top: 22px; padding: 14px; font-size: 1.02rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 56px 0 72px; }
.kicker { display: inline-block; font-size: .85rem; letter-spacing: .18em; color: var(--amber-deep); font-weight: 700; border-left: 3px solid var(--amber); padding-left: 10px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--amber-deep); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .18em; background: rgba(217, 119, 6, .28); z-index: -1; border-radius: 3px; }
.lead { font-size: 1.15rem; max-width: 34em; margin: 22px 0 30px; color: rgba(16, 24, 32, .8); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta small { display: block; width: 100%; color: rgba(16, 24, 32, .6); }

.cal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(16, 24, 32, .45), 0 2px 0 var(--paper-2); overflow: hidden; transform: rotate(-1.2deg); animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.cal-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.cal-card header span { font-size: .8rem; color: var(--moss); background: rgba(47, 93, 80, .1); padding: 3px 10px; border-radius: 999px; }
.cal-grid { display: grid; grid-template-columns: 90px repeat(6, 1fr); font-size: .78rem; }
.cal-grid > div { padding: 10px 8px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 44px; }
.cal-grid .h { background: var(--paper); font-weight: 700; color: rgba(16, 24, 32, .6); }
.cal-grid .room { font-weight: 700; }
.cal-grid .plus { color: rgba(16, 24, 32, .25); text-align: center; }
.slot { border-radius: 6px; padding: 5px 7px; font-weight: 700; color: #fff; display: inline-block; }
.slot.a { background: var(--moss); }
.slot.b { background: var(--amber); }
.slot.c { background: #4c5b70; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) rotate(-1.2deg); } to { opacity: 1; transform: rotate(-1.2deg); } }

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; font-size: .9rem; color: rgba(16, 24, 32, .6); }
.strip b { color: var(--ink); }

.pf section { padding: 80px 0; }
.sec-head { max-width: 40em; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; }
.sec-head p { color: rgba(16, 24, 32, .7); font-size: 1.05rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; overflow: hidden; }
.feat::before { content: attr(data-n); position: absolute; right: 14px; top: 6px; font-family: "Fraunces", serif; font-size: 4rem; font-weight: 800; color: rgba(217, 119, 6, .12); line-height: 1; }
.feat h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feat p { margin: 0; color: rgba(16, 24, 32, .75); font-size: .97rem; }

.pf .how { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 64px 48px; }
.how .sec-head h2, .how .sec-head p { color: inherit; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { border: 1px solid rgba(246, 241, 231, .18); border-radius: var(--radius); padding: 22px; counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font-family: "Fraunces", serif; font-size: 2rem; font-weight: 800; color: var(--amber); margin-bottom: 8px; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: .92rem; color: rgba(246, 241, 231, .78); }
.how code { background: rgba(246, 241, 231, .12); padding: 2px 8px; border-radius: 6px; font-size: .9em; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; }
.plan.hot { border: 2px solid var(--amber); box-shadow: 0 24px 50px -30px rgba(217, 119, 6, .6); }
.plan .tag { font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--amber-deep); }
.plan .price { font-family: "Fraunces", serif; font-size: 2.6rem; font-weight: 800; margin: 8px 0 2px; }
.plan .price small { font-size: .95rem; font-family: "Noto Sans TC", sans-serif; font-weight: 500; color: rgba(16, 24, 32, .6); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: .95rem; border-bottom: 1px dashed var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--moss); font-weight: 900; }
.plan li.no { color: rgba(16, 24, 32, .45); }
.plan li.no::before { content: "—"; color: rgba(16, 24, 32, .3); }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.trust ul { padding-left: 0; list-style: none; }
.trust li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); }
.trust li::before { content: ""; position: absolute; left: 0; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: var(--moss); box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 7px var(--moss); }

/* 常見問答（內容來自平台後台「銷售頁 SEO」；答案保留換行） */
.faq { display: grid; gap: 12px; max-width: 52em; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--amber-deep); font-weight: 900; flex-shrink: 0; }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 12px 0 0; color: rgba(16, 24, 32, .78); white-space: pre-line; }

.pf-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: rgba(16, 24, 32, .65); font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.pf-footer a { text-decoration: none; margin-right: 18px; }

/* signup */
.layout { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: start; padding: 12px 0 72px; }
.side h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.side p { color: rgba(16, 24, 32, .75); max-width: 30em; }
.side ol { padding-left: 0; list-style: none; margin: 28px 0 0; counter-reset: s; }
.side li { counter-increment: s; padding: 14px 0 14px 54px; position: relative; border-top: 1px solid var(--line); }
.side li::before { content: "0" counter(s); position: absolute; left: 0; top: 10px; font-family: "Fraunces", serif; font-weight: 800; font-size: 1.6rem; color: var(--amber); }
.side li b { display: block; }
.side li span { font-size: .92rem; color: rgba(16, 24, 32, .7); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; box-shadow: 0 30px 60px -36px rgba(16, 24, 32, .5); }
.panel h2 { font-size: 1.4rem; font-weight: 900; margin-bottom: 4px; }
.panel .sub { font-size: .9rem; color: rgba(16, 24, 32, .65); margin-bottom: 22px; }
.panel label { display: block; font-weight: 700; font-size: .92rem; margin: 14px 0 6px; }
.panel label small { font-weight: 400; color: rgba(16, 24, 32, .6); }
.panel input[type=text], .panel input[type=email], .panel input[type=password] { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
.panel input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(217, 119, 6, .15); }
.slug-box { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.slug-box:focus-within { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(217, 119, 6, .15); }
.slug-box .pre { background: var(--paper); padding: 12px; font-size: .85rem; color: rgba(16, 24, 32, .6); white-space: nowrap; border-right: 1.5px solid var(--line); display: flex; align-items: center; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.panel .slug-box input { border: none; box-shadow: none !important; border-radius: 0; }
.hint { font-size: .85rem; margin-top: 6px; display: flex; gap: 6px; align-items: center; min-height: 1.4em; }
.hint.ok { color: var(--moss); }
.hint.bad, .field-error { color: var(--red); }
.hint.wait { color: rgba(16, 24, 32, .55); }
.field-error { display: block; font-size: .85rem; margin-top: 4px; }
.rule { font-size: .82rem; color: rgba(16, 24, 32, .6); margin-top: 6px; }
.captcha { display: flex; gap: 10px; align-items: center; }
.captcha img { width: 160px; height: 56px; border: 1px solid var(--line); border-radius: 8px; background: #f8f6f0; }
.captcha button { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; width: 44px; height: 44px; cursor: pointer; font-size: 1.1rem; }
.panel .captcha input { flex: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-top: 18px; }
.panel .check { font-weight: 400; }
.check input { margin-top: 5px; }
.foot { font-size: .85rem; color: rgba(16, 24, 32, .6); text-align: center; margin-top: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert { border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: .92rem; border-left: 4px solid; }
.alert.error { background: #fdecea; border-color: var(--red); color: var(--red); }
.alert.success { background: #e7f3ef; border-color: var(--moss); color: var(--moss); }
.alert.note { background: var(--paper); border-color: var(--amber); color: rgba(16, 24, 32, .8); }
.alert ul { margin: 0; padding-left: 18px; }
.code-input { font-family: "Fraunces", ui-monospace, monospace; font-size: 1.8rem !important; letter-spacing: .5em; text-align: center; }

/* 置中卡片頁（驗證、進度、找組織、條款） */
.center { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 24px 0 48px; }
.prov-card { width: min(640px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px 34px; box-shadow: 0 30px 60px -36px rgba(16, 24, 32, .5); }
.prov-card h1 { font-weight: 900; font-size: 1.7rem; margin: 0 0 6px; }
.prov-card .sub { color: rgba(16, 24, 32, .65); margin-bottom: 26px; }
.prov-card code { background: var(--paper); padding: 2px 8px; border-radius: 6px; }
.prov-steps { list-style: none; padding: 0; margin: 0; }
.prov-steps li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.prov-steps li:last-child { border-bottom: 1px solid var(--line); }
.prov-steps .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; border: 2px solid var(--line); color: rgba(16, 24, 32, .45); }
.prov-steps .done .dot { background: var(--moss); border-color: var(--moss); color: #fff; }
.prov-steps .doing .dot { border-color: var(--amber); color: var(--amber); animation: pulse 1.2s ease-in-out infinite; }
.prov-steps .retry .dot { border-color: var(--red); color: var(--red); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, .35); } 50% { box-shadow: 0 0 0 8px rgba(217, 119, 6, 0); } }
.prov-steps b { display: block; }
.prov-steps span { font-size: .88rem; color: rgba(16, 24, 32, .65); }
.t { font-size: .82rem; color: rgba(16, 24, 32, .5); font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: var(--paper); border-radius: 999px; overflow: hidden; margin: 22px 0 10px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--moss), var(--amber)); border-radius: 999px; transition: width .6s; }
.prov-ok { text-align: center; margin-top: 22px; }
.prov-ok .big { font-family: "Fraunces", "Noto Serif TC", serif; font-weight: 800; font-size: 2.4rem; color: var(--moss); margin: 0 0 10px; }
.prose h2 { font-size: 1.2rem; margin: 22px 0 8px !important; }
.prose p, .prose li { color: rgba(16, 24, 32, .8); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .cal-card { transform: none; }
  .features, .plans, .steps, .trust { grid-template-columns: 1fr; }
  .pf .how { padding: 40px 22px; }
  .nav ul { display: none; }
  .layout { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .cal-grid { overflow-x: auto; }
}
